LLVM 20.0.0git
Public Member Functions | List of all members
llvm::ARMBasicBlockUtils Class Reference

#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.
 
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.
 
void insert (unsigned BBNum, BasicBlockInfo BBI)
 
void clear ()
 
BBInfoVectorgetBBInfo ()
 

Detailed Description

Definition at line 109 of file ARMBasicBlockInfo.h.

Constructor & Destructor Documentation

◆ ARMBasicBlockUtils()

llvm::ARMBasicBlockUtils::ARMBasicBlockUtils ( MachineFunction MF)
inline

Member Function Documentation

◆ adjustBBOffsetsAfter()

void llvm::ARMBasicBlockUtils::adjustBBOffsetsAfter ( MachineBasicBlock MBB)

◆ adjustBBSize()

void llvm::ARMBasicBlockUtils::adjustBBSize ( MachineBasicBlock MBB,
int  Size 
)
inline

Definition at line 140 of file ARMBasicBlockInfo.h.

References MBB, llvm::SmallVectorBase< Size_T >::Size, and Size.

◆ clear()

void llvm::ARMBasicBlockUtils::clear ( )
inline

Definition at line 151 of file ARMBasicBlockInfo.h.

References llvm::SmallVectorImpl< T >::clear().

◆ computeAllBlockSizes()

void llvm::ARMBasicBlockUtils::computeAllBlockSizes ( )
inline

◆ computeBlockSize()

void llvm::ARMBasicBlockUtils::computeBlockSize ( MachineBasicBlock MBB)

◆ getBBInfo()

BBInfoVector & llvm::ARMBasicBlockUtils::getBBInfo ( )
inline

Definition at line 153 of file ARMBasicBlockInfo.h.

◆ getOffsetOf() [1/2]

unsigned llvm::ARMBasicBlockUtils::getOffsetOf ( MachineBasicBlock MBB) const
inline

Definition at line 134 of file ARMBasicBlockInfo.h.

References MBB.

◆ getOffsetOf() [2/2]

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 74 of file ARMBasicBlockInfo.cpp.

References assert(), llvm::MachineBasicBlock::begin(), llvm::MachineBasicBlock::end(), llvm::ARMBaseInstrInfo::getInstSizeInBytes(), llvm::MachineBasicBlock::getNumber(), I, MBB, MI, and llvm::Offset.

Referenced by isBBInRange().

◆ insert()

void llvm::ARMBasicBlockUtils::insert ( unsigned  BBNum,
BasicBlockInfo  BBI 
)
inline

◆ isBBInRange()

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 92 of file ARMBasicBlockInfo.cpp.

References llvm::dbgs(), llvm::MachineBasicBlock::getNumber(), getOffsetOf(), LLVM_DEBUG, MI, and llvm::printMBBReference().


The documentation for this class was generated from the following files: