X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FCodeGen%2FScheduleHazardRecognizer.h;h=2f53baa1c7e6722b51912868293105468d947a24;hb=0e122d1c2422285c872f68fc0ae1f7e5d2739572;hp=4771a35bc78e85eaaa6ccd95d68aa7990c9f5237;hpb=2da8bc8a5f7705ac131184cd247f48500da0d74e;p=oota-llvm.git diff --git a/include/llvm/CodeGen/ScheduleHazardRecognizer.h b/include/llvm/CodeGen/ScheduleHazardRecognizer.h index 4771a35bc78..2f53baa1c7e 100644 --- a/include/llvm/CodeGen/ScheduleHazardRecognizer.h +++ b/include/llvm/CodeGen/ScheduleHazardRecognizer.h @@ -42,6 +42,8 @@ public: unsigned getMaxLookAhead() const { return MaxLookAhead; } + bool isEnabled() const { return MaxLookAhead != 0; } + /// atIssueLimit - Return true if no more instructions may be issued in this /// cycle. virtual bool atIssueLimit() const { return false; }