LLVM
13.0.0git
|
#include "Target/ARM/ARMBasicBlockInfo.h"
Public Member Functions | |
ARMBasicBlockUtils (MachineFunction &MF) | |
void | computeAllBlockSizes () |
void | computeBlockSize (MachineBasicBlock *MBB) |
unsigned | getOffsetOf (MachineInstr *MI) const |
getOffsetOf - Return the current offset of the specified machine instruction from the start of the function. More... | |
unsigned | getOffsetOf (MachineBasicBlock *MBB) const |
void | adjustBBOffsetsAfter (MachineBasicBlock *MBB) |
void | adjustBBSize (MachineBasicBlock *MBB, int Size) |
bool | isBBInRange (MachineInstr *MI, MachineBasicBlock *DestBB, unsigned MaxDisp) const |
isBBInRange - Returns true if the distance between specific MI and specific BB can fit in MI's displacement field. More... | |
void | insert (unsigned BBNum, BasicBlockInfo BBI) |
void | clear () |
BBInfoVector & | getBBInfo () |
Definition at line 109 of file ARMBasicBlockInfo.h.
|
inline |
Definition at line 118 of file ARMBasicBlockInfo.h.
References llvm::MachineFunction::getInfo(), llvm::TargetSubtargetInfo::getInstrInfo(), llvm::MachineFunction::getSubtarget(), isThumbFunction(), and TII.
void llvm::ARMBasicBlockUtils::adjustBBOffsetsAfter | ( | MachineBasicBlock * | MBB | ) |
Definition at line 117 of file ARMBasicBlockInfo.cpp.
References assert(), BB, llvm::dbgs(), llvm::numbers::e, llvm::MachineBasicBlock::getAlignment(), llvm::MachineFunction::getBlockNumbered(), llvm::MachineFunction::getName(), llvm::MachineFunction::getNumBlockIDs(), i, LLVM_DEBUG, and Offset.
|
inline |
Definition at line 140 of file ARMBasicBlockInfo.h.
References MBB, and llvm::Check::Size.
|
inline |
Definition at line 151 of file ARMBasicBlockInfo.h.
|
inline |
Definition at line 124 of file ARMBasicBlockInfo.h.
References computeBlockSize(), llvm::MachineFunction::getNumBlockIDs(), and MBB.
void llvm::ARMBasicBlockUtils::computeBlockSize | ( | MachineBasicBlock * | MBB | ) |
Definition at line 47 of file ARMBasicBlockInfo.cpp.
References Align, llvm::MachineBasicBlock::back(), llvm::dbgs(), llvm::MachineBasicBlock::empty(), llvm::MachineFunction::ensureAlignment(), llvm::ARMBaseInstrInfo::getInstSizeInBytes(), llvm::MachineBasicBlock::getName(), llvm::MachineBasicBlock::getNumber(), llvm::MachineInstr::getOpcode(), llvm::MachineBasicBlock::getParent(), I, LLVM_DEBUG, llvm::mayOptimizeThumb2Instruction(), MBB, llvm::BasicBlockInfo::PostAlign, llvm::BasicBlockInfo::Size, and llvm::BasicBlockInfo::Unalign.
Referenced by computeAllBlockSizes().
|
inline |
Definition at line 153 of file ARMBasicBlockInfo.h.
|
inline |
Definition at line 134 of file ARMBasicBlockInfo.h.
References MBB.
unsigned llvm::ARMBasicBlockUtils::getOffsetOf | ( | MachineInstr * | MI | ) | const |
getOffsetOf - Return the current offset of the specified machine instruction from the start of the function.
This offset changes as stuff is moved around inside the function.
Definition at line 75 of file ARMBasicBlockInfo.cpp.
References assert(), llvm::MachineBasicBlock::begin(), llvm::MachineBasicBlock::end(), llvm::ARMBaseInstrInfo::getInstSizeInBytes(), llvm::MachineBasicBlock::getNumber(), I, MBB, MI, and Offset.
Referenced by isBBInRange().
|
inline |
Definition at line 147 of file ARMBasicBlockInfo.h.
bool llvm::ARMBasicBlockUtils::isBBInRange | ( | MachineInstr * | MI, |
MachineBasicBlock * | DestBB, | ||
unsigned | MaxDisp | ||
) | const |
isBBInRange - Returns true if the distance between specific MI and specific BB can fit in MI's displacement field.
Definition at line 93 of file ARMBasicBlockInfo.cpp.
References llvm::dbgs(), llvm::MachineBasicBlock::getNumber(), getOffsetOf(), LLVM_DEBUG, MI, and llvm::printMBBReference().