diff options
| author | Owen Anderson <resistor@mac.com> | 2007-12-01 03:01:39 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2007-12-01 03:01:39 +0000 |
| commit | b9ba3b077c6efcb5c3a4cad3d59c0a095e111cc7 (patch) | |
| tree | 200d9f15b49b1d83b5c5364b1addad067f16e775 /include/llvm/CodeGen | |
| parent | ff52f082846db6a31d73cb6f02f62401e20eda6f (diff) | |
| download | external_llvm-b9ba3b077c6efcb5c3a4cad3d59c0a095e111cc7.zip external_llvm-b9ba3b077c6efcb5c3a4cad3d59c0a095e111cc7.tar.gz external_llvm-b9ba3b077c6efcb5c3a4cad3d59c0a095e111cc7.tar.bz2 | |
Fixes for MachineLoopInfo, mostly from Evan. With these, it should be almost useable!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44480 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
| -rw-r--r-- | include/llvm/CodeGen/MachineLoopInfo.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/include/llvm/CodeGen/MachineLoopInfo.h b/include/llvm/CodeGen/MachineLoopInfo.h index 1f6b1a1..6f1dd86 100644 --- a/include/llvm/CodeGen/MachineLoopInfo.h +++ b/include/llvm/CodeGen/MachineLoopInfo.h @@ -39,14 +39,13 @@ namespace llvm { // Provide overrides for Loop methods that don't make sense for machine loops. -template<> +template<> inline PHINode *LoopBase<MachineBasicBlock>::getCanonicalInductionVariable() const { assert(0 && "getCanonicalInductionVariable not supported for machine loops!"); return 0; } -template<> -Instruction* +template<> inline Instruction* LoopBase<MachineBasicBlock>::getCanonicalInductionVariableIncrement() const { assert(0 && "getCanonicalInductionVariableIncrement not supported for machine loops!"); @@ -54,19 +53,19 @@ LoopBase<MachineBasicBlock>::getCanonicalInductionVariableIncrement() const { } template<> -bool LoopBase<MachineBasicBlock>::isLoopInvariant(Value *V) const { +inline bool LoopBase<MachineBasicBlock>::isLoopInvariant(Value *V) const { assert(0 && "isLoopInvariant not supported for machine loops!"); return false; } template<> -Value *LoopBase<MachineBasicBlock>::getTripCount() const { +inline Value *LoopBase<MachineBasicBlock>::getTripCount() const { assert(0 && "getTripCount not supported for machine loops!"); return 0; } template<> -bool LoopBase<MachineBasicBlock>::isLCSSAForm() const { +inline bool LoopBase<MachineBasicBlock>::isLCSSAForm() const { assert(0 && "isLCSSAForm not supported for machine loops"); return false; } @@ -129,10 +128,6 @@ public: virtual void releaseMemory() { LI->releaseMemory(); } - virtual void print(std::ostream &O, const Module* M = 0) const { - if (O) LI->print(O, M); - } - virtual void getAnalysisUsage(AnalysisUsage &AU) const; /// removeLoop - This removes the specified top-level loop from this loop info |
