diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-05-16 23:45:53 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-05-16 23:45:53 +0000 |
commit | d60483ef99a15630abba934001b1ff7d16a33b18 (patch) | |
tree | d8f9354ff89b2fd3932f259cbe38b63b52d17472 /include/llvm/Target/TargetInstrInfo.h | |
parent | b6ec3a933d13fbfd4fe3d8944ae58770affec2f1 (diff) | |
download | external_llvm-d60483ef99a15630abba934001b1ff7d16a33b18.tar.gz external_llvm-d60483ef99a15630abba934001b1ff7d16a33b18.tar.bz2 external_llvm-d60483ef99a15630abba934001b1ff7d16a33b18.zip |
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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 00a05569b9..4c0e1b8e94 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 { |