From 16a2c927e95c29a316d0271c93e0490ce3bc06ce Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 13 Jul 2009 22:02:44 +0000 Subject: 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 --- include/llvm/CodeGen/MachineLoopInfo.h | 39 ---------------------------------- 1 file changed, 39 deletions(-) (limited to 'include/llvm/CodeGen/MachineLoopInfo.h') 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::getCanonicalInductionVariable() const { - assert(0 && "getCanonicalInductionVariable not supported for machine loops!"); - return 0; -} - -template<> inline Instruction* -LoopBase::getCanonicalInductionVariableIncrement() const { - assert(0 && - "getCanonicalInductionVariableIncrement not supported for machine loops!"); - return 0; -} - -template<> -inline bool -LoopBase::isLoopInvariant(Value *V) const { - assert(0 && "isLoopInvariant not supported for machine loops!"); - return false; -} - -template<> -inline Value * -LoopBase::getTripCount() const { - assert(0 && "getTripCount not supported for machine loops!"); - return 0; -} - -template<> -inline bool -LoopBase::isLCSSAForm() const { - assert(0 && "isLCSSAForm not supported for machine loops"); - return false; -} - class MachineLoop : public LoopBase { public: MachineLoop(); -- cgit v1.2.3-18-g5258