diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-13 22:02:44 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-13 22:02:44 +0000 |
commit | 16a2c927e95c29a316d0271c93e0490ce3bc06ce (patch) | |
tree | ea3508ac917b92473823e2e45200877892d455e9 /include/llvm/CodeGen/MachineLoopInfo.h | |
parent | 6761c5d609b45f246c3098034683e47113f9f635 (diff) |
Move isLCSSAForm, isLoopInvariant, getCanonicalInductionVariable,
and related functions out of LoopBase and into Loop, since they
are specific to BasicBlock-based loops. This also allows the code
to be moved out-of-line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75523 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineLoopInfo.h')
-rw-r--r-- | include/llvm/CodeGen/MachineLoopInfo.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/include/llvm/CodeGen/MachineLoopInfo.h b/include/llvm/CodeGen/MachineLoopInfo.h index 1511b40897..65ad4e4841 100644 --- a/include/llvm/CodeGen/MachineLoopInfo.h +++ b/include/llvm/CodeGen/MachineLoopInfo.h @@ -35,45 +35,6 @@ namespace llvm { -class MachineLoop; - -// Provide overrides for Loop methods that don't make sense for machine loops. -template<> inline -PHINode * -LoopBase<MachineBasicBlock, MachineLoop>::getCanonicalInductionVariable() const { - assert(0 && "getCanonicalInductionVariable not supported for machine loops!"); - return 0; -} - -template<> inline Instruction* -LoopBase<MachineBasicBlock, - MachineLoop>::getCanonicalInductionVariableIncrement() const { - assert(0 && - "getCanonicalInductionVariableIncrement not supported for machine loops!"); - return 0; -} - -template<> -inline bool -LoopBase<MachineBasicBlock, MachineLoop>::isLoopInvariant(Value *V) const { - assert(0 && "isLoopInvariant not supported for machine loops!"); - return false; -} - -template<> -inline Value * -LoopBase<MachineBasicBlock, MachineLoop>::getTripCount() const { - assert(0 && "getTripCount not supported for machine loops!"); - return 0; -} - -template<> -inline bool -LoopBase<MachineBasicBlock, MachineLoop>::isLCSSAForm() const { - assert(0 && "isLCSSAForm not supported for machine loops"); - return false; -} - class MachineLoop : public LoopBase<MachineBasicBlock, MachineLoop> { public: MachineLoop(); |