diff options
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 { |