aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetInstrInfo.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-05-16 23:45:53 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-05-16 23:45:53 +0000
commitd60483ef99a15630abba934001b1ff7d16a33b18 (patch)
treed8f9354ff89b2fd3932f259cbe38b63b52d17472 /include/llvm/Target/TargetInstrInfo.h
parentb6ec3a933d13fbfd4fe3d8944ae58770affec2f1 (diff)
downloadexternal_llvm-d60483ef99a15630abba934001b1ff7d16a33b18.zip
external_llvm-d60483ef99a15630abba934001b1ff7d16a33b18.tar.gz
external_llvm-d60483ef99a15630abba934001b1ff7d16a33b18.tar.bz2
Add target hook to specify block size limit for if-conversion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37134 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetInstrInfo.h')
-rw-r--r--include/llvm/Target/TargetInstrInfo.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h
index 00a0556..4c0e1b8 100644
--- a/include/llvm/Target/TargetInstrInfo.h
+++ b/include/llvm/Target/TargetInstrInfo.h
@@ -394,6 +394,11 @@ public:
virtual bool PredicateInstruction(MachineInstr *MI,
std::vector<MachineOperand> &Cond) const;
+ /// getBlockSize - Calculate the size of the specified MachineBasicBlock.
+ /// Note the result may not be 100% accurate especially if there are inline
+ /// asm's in the block.
+ virtual unsigned getBlockSize(MachineBasicBlock *MBB) const;
+
/// getPointerRegClass - Returns a TargetRegisterClass used for pointer
/// values.
virtual const TargetRegisterClass *getPointerRegClass() const {