LLVM  3.7.0
Public Types | Public Member Functions | List of all members
llvm::MachineFunction Class Reference

#include <MachineFunction.h>

Public Types

typedef
BasicBlockListType::iterator 
iterator
 
typedef
BasicBlockListType::const_iterator 
const_iterator
 
typedef std::reverse_iterator
< const_iterator
const_reverse_iterator
 
typedef std::reverse_iterator
< iterator
reverse_iterator
 
typedef ArrayRecycler
< MachineOperand >::Capacity 
OperandCapacity
 

Public Member Functions

 MachineFunction (const Function *Fn, const TargetMachine &TM, unsigned FunctionNum, MachineModuleInfo &MMI)
 
 ~MachineFunction ()
 
MachineModuleInfogetMMI () const
 
MCContextgetContext () const
 
const DataLayoutgetDataLayout () const
 Return the DataLayout attached to the Module associated to this MF. More...
 
const FunctiongetFunction () const
 getFunction - Return the LLVM function that this machine code represents More...
 
StringRef getName () const
 getName - Return the name of the corresponding LLVM function. More...
 
unsigned getFunctionNumber () const
 getFunctionNumber - Return a unique ID for the current function. More...
 
const TargetMachinegetTarget () const
 getTarget - Return the target machine this machine code is compiled with More...
 
const TargetSubtargetInfogetSubtarget () const
 getSubtarget - Return the subtarget for which this machine code is being compiled. More...
 
void setSubtarget (const TargetSubtargetInfo *ST)
 
template<typename STC >
const STC & getSubtarget () const
 getSubtarget - This method returns a pointer to the specified type of TargetSubtargetInfo. More...
 
MachineRegisterInfogetRegInfo ()
 getRegInfo - Return information about the registers currently in use. More...
 
const MachineRegisterInfogetRegInfo () const
 
MachineFrameInfogetFrameInfo ()
 getFrameInfo - Return the frame info object for the current function. More...
 
const MachineFrameInfogetFrameInfo () const
 
const MachineJumpTableInfogetJumpTableInfo () const
 getJumpTableInfo - Return the jump table info object for the current function. More...
 
MachineJumpTableInfogetJumpTableInfo ()
 
MachineJumpTableInfogetOrCreateJumpTableInfo (unsigned JTEntryKind)
 getOrCreateJumpTableInfo - Get the JumpTableInfo for this function, if it does already exist, allocate one. More...
 
MachineConstantPoolgetConstantPool ()
 getConstantPool - Return the constant pool object for the current function. More...
 
const MachineConstantPoolgetConstantPool () const
 
unsigned getAlignment () const
 getAlignment - Return the alignment (log2, not bytes) of the function. More...
 
void setAlignment (unsigned A)
 setAlignment - Set the alignment (log2, not bytes) of the function. More...
 
void ensureAlignment (unsigned A)
 ensureAlignment - Make sure the function is at least 1 << A bytes aligned. More...
 
bool exposesReturnsTwice () const
 exposesReturnsTwice - Returns true if the function calls setjmp or any other similar functions with attribute "returns twice" without having the attribute itself. More...
 
void setExposesReturnsTwice (bool B)
 setCallsSetJmp - Set a flag that indicates if there's a call to a "returns twice" function. More...
 
bool hasInlineAsm () const
 Returns true if the function contains any inline assembly. More...
 
void setHasInlineAsm (bool B)
 Set a flag that indicates that the function contains inline assembly. More...
 
template<typename Ty >
Ty * getInfo ()
 getInfo - Keep track of various per-function pieces of information for backends that would like to do so. More...
 
template<typename Ty >
const Ty * getInfo () const
 
MachineBasicBlockgetBlockNumbered (unsigned N) const
 getBlockNumbered - MachineBasicBlocks are automatically numbered when they are inserted into the machine function. More...
 
bool shouldSplitStack ()
 Should we be emitting segmented stack stuff for the function. More...
 
unsigned getNumBlockIDs () const
 getNumBlockIDs - Return the number of MBB ID's allocated. More...
 
void RenumberBlocks (MachineBasicBlock *MBBFrom=nullptr)
 RenumberBlocks - This discards all of the MachineBasicBlock numbers and recomputes them. More...
 
void print (raw_ostream &OS, SlotIndexes *=nullptr) const
 print - Print out the MachineFunction in a format suitable for debugging to the specified stream. More...
 
void viewCFG () const
 viewCFG - This function is meant for use from the debugger. More...
 
void viewCFGOnly () const
 viewCFGOnly - This function is meant for use from the debugger. More...
 
void dump () const
 dump - Print the current MachineFunction to cerr, useful for debugger use. More...
 
void verify (Pass *p=nullptr, const char *Banner=nullptr) const
 verify - Run the current MachineFunction through the machine code verifier, useful for debugger use. More...
 
unsigned addLiveIn (unsigned PReg, const TargetRegisterClass *RC)
 addLiveIn - Add the specified physical register as a live-in value and create a corresponding virtual register for it. More...
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
unsigned size () const
 
bool empty () const
 
const MachineBasicBlockfront () const
 
MachineBasicBlockfront ()
 
const MachineBasicBlockback () const
 
MachineBasicBlockback ()
 
void push_back (MachineBasicBlock *MBB)
 
void push_front (MachineBasicBlock *MBB)
 
void insert (iterator MBBI, MachineBasicBlock *MBB)
 
void splice (iterator InsertPt, iterator MBBI)
 
void splice (iterator InsertPt, iterator MBBI, iterator MBBE)
 
void remove (iterator MBBI)
 
void erase (iterator MBBI)
 
unsigned addToMBBNumbering (MachineBasicBlock *MBB)
 Adds the MBB to the internal numbering. More...
 
void removeFromMBBNumbering (unsigned N)
 removeFromMBBNumbering - Remove the specific machine basic block from our tracker, this is only really to be used by the MachineBasicBlock implementation. More...
 
MachineInstrCreateMachineInstr (const MCInstrDesc &MCID, DebugLoc DL, bool NoImp=false)
 CreateMachineInstr - Allocate a new MachineInstr. More...
 
MachineInstrCloneMachineInstr (const MachineInstr *Orig)
 CloneMachineInstr - Create a new MachineInstr which is a copy of the 'Orig' instruction, identical in all ways except the instruction has no parent, prev, or next. More...
 
void DeleteMachineInstr (MachineInstr *MI)
 DeleteMachineInstr - Delete the given MachineInstr. More...
 
MachineBasicBlockCreateMachineBasicBlock (const BasicBlock *bb=nullptr)
 CreateMachineBasicBlock - Allocate a new MachineBasicBlock. More...
 
void DeleteMachineBasicBlock (MachineBasicBlock *MBB)
 DeleteMachineBasicBlock - Delete the given MachineBasicBlock. More...
 
MachineMemOperandgetMachineMemOperand (MachinePointerInfo PtrInfo, unsigned f, uint64_t s, unsigned base_alignment, const AAMDNodes &AAInfo=AAMDNodes(), const MDNode *Ranges=nullptr)
 getMachineMemOperand - Allocate a new MachineMemOperand. More...
 
MachineMemOperandgetMachineMemOperand (const MachineMemOperand *MMO, int64_t Offset, uint64_t Size)
 getMachineMemOperand - Allocate a new MachineMemOperand by copying an existing one, adjusting by an offset and using the given size. More...
 
MachineOperandallocateOperandArray (OperandCapacity Cap)
 Allocate an array of MachineOperands. More...
 
void deallocateOperandArray (OperandCapacity Cap, MachineOperand *Array)
 Dellocate an array of MachineOperands and recycle the memory. More...
 
uint32_t * allocateRegisterMask (unsigned NumRegister)
 Allocate and initialize a register mask with NumRegister bits. More...
 
MachineInstr::mmo_iterator allocateMemRefsArray (unsigned long Num)
 allocateMemRefsArray - Allocate an array to hold MachineMemOperand pointers. More...
 
std::pair
< MachineInstr::mmo_iterator,
MachineInstr::mmo_iterator
extractLoadMemRefs (MachineInstr::mmo_iterator Begin, MachineInstr::mmo_iterator End)
 extractLoadMemRefs - Allocate an array and populate it with just the load information from the given MachineMemOperand sequence. More...
 
std::pair
< MachineInstr::mmo_iterator,
MachineInstr::mmo_iterator
extractStoreMemRefs (MachineInstr::mmo_iterator Begin, MachineInstr::mmo_iterator End)
 extractStoreMemRefs - Allocate an array and populate it with just the store information from the given MachineMemOperand sequence. More...
 
MCSymbolgetJTISymbol (unsigned JTI, MCContext &Ctx, bool isLinkerPrivate=false) const
 getJTISymbol - Return the MCSymbol for the specified non-empty jump table. More...
 
MCSymbolgetPICBaseSymbol () const
 getPICBaseSymbol - Return a function-local symbol to represent the PIC base. More...
 

Detailed Description

Definition at line 86 of file MachineFunction.h.

Member Typedef Documentation

Definition at line 325 of file MachineFunction.h.

Definition at line 326 of file MachineFunction.h.

Definition at line 324 of file MachineFunction.h.

Definition at line 436 of file MachineFunction.h.

typedef std::reverse_iterator<iterator> llvm::MachineFunction::reverse_iterator

Definition at line 327 of file MachineFunction.h.

Constructor & Destructor Documentation

MachineFunction::MachineFunction ( const Function Fn,
const TargetMachine TM,
unsigned  FunctionNum,
MachineModuleInfo MMI 
)
MachineFunction::~MachineFunction ( )

Member Function Documentation

unsigned MachineFunction::addLiveIn ( unsigned  PReg,
const TargetRegisterClass RC 
)
unsigned llvm::MachineFunction::addToMBBNumbering ( MachineBasicBlock MBB)
inline

Adds the MBB to the internal numbering.

Returns the unique number assigned to the MBB.

Definition at line 379 of file MachineFunction.h.

MachineInstr::mmo_iterator MachineFunction::allocateMemRefsArray ( unsigned long  Num)
MachineOperand* llvm::MachineFunction::allocateOperandArray ( OperandCapacity  Cap)
inline

Allocate an array of MachineOperands.

This is only intended for use by internal MachineInstr functions.

Definition at line 440 of file MachineFunction.h.

References llvm::ArrayRecycler< T, Align >::allocate().

uint32_t* llvm::MachineFunction::allocateRegisterMask ( unsigned  NumRegister)
inline

Allocate and initialize a register mask with NumRegister bits.

Definition at line 452 of file MachineFunction.h.

References llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold >::Allocate().

const MachineBasicBlock& llvm::MachineFunction::back ( ) const
inline

Definition at line 350 of file MachineFunction.h.

References llvm::iplist< NodeTy, Traits >::back().

MachineBasicBlock& llvm::MachineFunction::back ( )
inline

Definition at line 351 of file MachineFunction.h.

References llvm::iplist< NodeTy, Traits >::back().

iterator llvm::MachineFunction::begin ( )
inline
const_iterator llvm::MachineFunction::begin ( ) const
inline

Definition at line 337 of file MachineFunction.h.

References llvm::iplist< NodeTy, Traits >::begin().

MachineInstr * MachineFunction::CloneMachineInstr ( const MachineInstr Orig)

CloneMachineInstr - Create a new MachineInstr which is a copy of the 'Orig' instruction, identical in all ways except the instruction has no parent, prev, or next.

Create a new MachineInstr which is a copy of the 'Orig' instruction, identical in all ways except the instruction has no parent, prev, or next.

See also TargetInstrInfo::duplicate() for target-specific fixes to cloned instructions.

Definition at line 194 of file MachineFunction.cpp.

Referenced by llvm::TargetInstrInfo::commuteInstruction(), llvm::X86InstrInfo::commuteInstruction(), llvm::TargetInstrInfo::duplicate(), insertDelayFiller(), llvm::ARMBaseInstrInfo::reMaterialize(), llvm::TargetInstrInfo::reMaterialize(), and llvm::X86InstrInfo::reMaterialize().

MachineBasicBlock * MachineFunction::CreateMachineBasicBlock ( const BasicBlock bb = nullptr)
MachineInstr * MachineFunction::CreateMachineInstr ( const MCInstrDesc MCID,
DebugLoc  DL,
bool  NoImp = false 
)

CreateMachineInstr - Allocate a new MachineInstr.

Allocate a new MachineInstr. Use this instead of `new MachineInstr'.

Use this instead of `new MachineInstr'.

Definition at line 185 of file MachineFunction.cpp.

Referenced by llvm::BuildMI(), foldPatchpoint(), FuseInst(), FuseTwoAddrInst(), and llvm::X86InstrInfo::unfoldMemoryOperand().

void llvm::MachineFunction::deallocateOperandArray ( OperandCapacity  Cap,
MachineOperand Array 
)
inline

Dellocate an array of MachineOperands and recycle the memory.

This is only intended for use by internal MachineInstr functions. Cap must be the same capacity that was used to allocate the array.

Definition at line 447 of file MachineFunction.h.

References llvm::ArrayRecycler< T, Align >::deallocate().

Referenced by DeleteMachineInstr().

void MachineFunction::DeleteMachineBasicBlock ( MachineBasicBlock MBB)

DeleteMachineBasicBlock - Delete the given MachineBasicBlock.

Delete the given MachineBasicBlock.

Definition at line 225 of file MachineFunction.cpp.

References llvm::MachineBasicBlock::getParent().

void MachineFunction::DeleteMachineInstr ( MachineInstr MI)

DeleteMachineInstr - Delete the given MachineInstr.

Delete the given MachineInstr.

This function also serves as the MachineInstr destructor - the real ~MachineInstr() destructor must be empty.

Definition at line 204 of file MachineFunction.cpp.

References deallocateOperandArray().

Referenced by llvm::Thumb1FrameLowering::restoreCalleeSavedRegisters().

void MachineFunction::dump ( ) const

dump - Print the current MachineFunction to cerr, useful for debugger use.

Definition at line 326 of file MachineFunction.cpp.

References llvm::dbgs(), and print().

Referenced by llvm::A57ChainingConstraint::apply().

bool llvm::MachineFunction::empty ( ) const
inline

Definition at line 347 of file MachineFunction.h.

References llvm::iplist< NodeTy, Traits >::empty().

Referenced by RenumberBlocks().

iterator llvm::MachineFunction::end ( )
inline
const_iterator llvm::MachineFunction::end ( ) const
inline

Definition at line 339 of file MachineFunction.h.

References llvm::iplist< NodeTy, Traits >::end().

void llvm::MachineFunction::ensureAlignment ( unsigned  A)
inline

ensureAlignment - Make sure the function is at least 1 << A bytes aligned.

Definition at line 228 of file MachineFunction.h.

References llvm::ARM_PROC::A.

void llvm::MachineFunction::erase ( iterator  MBBI)
inline
bool llvm::MachineFunction::exposesReturnsTwice ( ) const
inline

exposesReturnsTwice - Returns true if the function calls setjmp or any other similar functions with attribute "returns twice" without having the attribute itself.

Definition at line 235 of file MachineFunction.h.

std::pair< MachineInstr::mmo_iterator, MachineInstr::mmo_iterator > MachineFunction::extractLoadMemRefs ( MachineInstr::mmo_iterator  Begin,
MachineInstr::mmo_iterator  End 
)

extractLoadMemRefs - Allocate an array and populate it with just the load information from the given MachineMemOperand sequence.

Definition at line 262 of file MachineFunction.cpp.

References allocateMemRefsArray(), getMachineMemOperand(), llvm::MachineMemOperand::getSize(), and I.

Referenced by llvm::X86InstrInfo::unfoldMemoryOperand().

std::pair< MachineInstr::mmo_iterator, MachineInstr::mmo_iterator > MachineFunction::extractStoreMemRefs ( MachineInstr::mmo_iterator  Begin,
MachineInstr::mmo_iterator  End 
)

extractStoreMemRefs - Allocate an array and populate it with just the store information from the given MachineMemOperand sequence.

Definition at line 294 of file MachineFunction.cpp.

References allocateMemRefsArray(), getMachineMemOperand(), llvm::MachineMemOperand::getSize(), and I.

Referenced by llvm::X86InstrInfo::unfoldMemoryOperand().

const MachineBasicBlock& llvm::MachineFunction::front ( ) const
inline
MachineBasicBlock& llvm::MachineFunction::front ( )
inline

Definition at line 349 of file MachineFunction.h.

References llvm::iplist< NodeTy, Traits >::front().

unsigned llvm::MachineFunction::getAlignment ( ) const
inline

getAlignment - Return the alignment (log2, not bytes) of the function.

Definition at line 221 of file MachineFunction.h.

Referenced by llvm::ARMFrameLowering::adjustForSegmentedStacks(), and llvm::MipsAsmPrinter::EmitFunctionEntryLabel().

MachineBasicBlock* llvm::MachineFunction::getBlockNumbered ( unsigned  N) const
inline

getBlockNumbered - MachineBasicBlocks are automatically numbered when they are inserted into the machine function.

The block number for a machine basic block can be found by using the MBB::getBlockNumber method, this method provides the inverse mapping.

Definition at line 275 of file MachineFunction.h.

References N.

Referenced by llvm::MIRParserImpl::initializeMachineFunction(), llvm::BitTracker::run(), and llvm::SplitEditor::splitLiveThroughBlock().

MachineConstantPool* llvm::MachineFunction::getConstantPool ( )
inline
const MachineConstantPool* llvm::MachineFunction::getConstantPool ( ) const
inline

Definition at line 217 of file MachineFunction.h.

MCContext& llvm::MachineFunction::getContext ( ) const
inline
const DataLayout & MachineFunction::getDataLayout ( ) const
MachineFrameInfo* llvm::MachineFunction::getFrameInfo ( )
inline

getFrameInfo - Return the frame info object for the current function.

This object contains information about objects allocated on the stack frame of the current function in an abstract way.

Definition at line 198 of file MachineFunction.h.

Referenced by llvm::addFrameReference(), llvm::RegsForValue::AddInlineAsmOperands(), addPristines(), llvm::PPCFrameLowering::addScavengingSpillSlot(), llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::CCState::AllocateStack(), llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), llvm::X86FrameLowering::assignCalleeSavedSpillSlots(), llvm::VirtRegMap::assignVirt2StackSlot(), llvm::X86TargetLowering::BuildFILD(), CalculateTailCallArgDest(), llvm::AArch64RegisterInfo::cannotEliminateFrame(), llvm::ARMBaseRegisterInfo::cannotEliminateFrame(), llvm::X86RegisterInfo::canRealignStack(), llvm::ARMFrameLowering::canSimplifyCallFramePseudos(), llvm::AArch64FrameLowering::canUseRedZone(), llvm::MipsFunctionInfo::createEhDataRegsFI(), llvm::XCoreFunctionInfo::createEHSpillSlot(), llvm::XCoreFunctionInfo::createFPSpillSlot(), llvm::XCoreFunctionInfo::createLRSpillSlot(), llvm::SelectionDAG::CreateStackTemporary(), llvm::SystemZFrameLowering::determineCalleeSaves(), llvm::MipsSEFrameLowering::determineCalleeSaves(), llvm::HexagonFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::determineCalleeSaves(), llvm::XCoreFrameLowering::determineCalleeSaves(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::X86FrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::determineFrameLayout(), llvm::TargetOptions::DisableFramePointerElim(), llvm::BPFRegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::NVPTXRegisterInfo::eliminateFrameIndex(), llvm::HexagonRegisterInfo::eliminateFrameIndex(), llvm::MipsRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), emitAlignedDPRCS2Spills(), llvm::AArch64FrameLowering::emitCalleeSavedFrameMoves(), llvm::X86FrameLowering::emitCalleeSavedFrameMoves(), emitComments(), llvm::Mips16FrameLowering::emitEpilogue(), llvm::MipsSEFrameLowering::emitEpilogue(), llvm::SparcFrameLowering::emitEpilogue(), llvm::Thumb1FrameLowering::emitEpilogue(), llvm::MSP430FrameLowering::emitEpilogue(), llvm::ARMFrameLowering::emitEpilogue(), llvm::XCoreFrameLowering::emitEpilogue(), llvm::AArch64FrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitEpilogue(), llvm::MipsAsmPrinter::emitFrameDirective(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::TargetLoweringBase::emitPatchPoint(), llvm::NVPTXFrameLowering::emitPrologue(), llvm::Mips16FrameLowering::emitPrologue(), llvm::MipsSEFrameLowering::emitPrologue(), llvm::SparcFrameLowering::emitPrologue(), llvm::HexagonFrameLowering::emitPrologue(), llvm::Thumb1FrameLowering::emitPrologue(), llvm::XCoreFrameLowering::emitPrologue(), llvm::MSP430FrameLowering::emitPrologue(), llvm::ARMFrameLowering::emitPrologue(), llvm::AArch64FrameLowering::emitPrologue(), llvm::PPCFrameLowering::emitPrologue(), llvm::SystemZFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), EmitTailCallStoreFPAndRetAddr(), EmitTailCallStoreRetAddr(), llvm::MipsFrameLowering::estimateStackSize(), fixupFuncForFI(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::SystemZFrameLowering::getAllocatedStackSize(), getFRAMEADDR(), getFrameIndexMMO(), llvm::AMDGPUFrameLowering::getFrameIndexOffset(), llvm::SystemZFrameLowering::getFrameIndexOffset(), llvm::HexagonFrameLowering::getFrameIndexOffset(), llvm::X86FrameLowering::getFrameIndexOffset(), llvm::TargetFrameLowering::getFrameIndexOffset(), llvm::X86FrameLowering::getFrameIndexOffsetFromSP(), llvm::AMDGPUInstrInfo::getIndirectIndexBegin(), llvm::AMDGPUInstrInfo::getIndirectIndexEnd(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), llvm::MipsInstrInfo::GetMemOperand(), getMemsetStores(), llvm::MipsFunctionInfo::getMoveF64ViaSpillFI(), getPrologueDeath(), llvm::MipsRegisterInfo::getReservedRegs(), llvm::MSP430TargetLowering::getReturnAddressFrameIndex(), llvm::X86TargetLowering::getReturnAddressFrameIndex(), llvm::SIMachineFunctionInfo::getSpilledReg(), GetTLSADDR(), llvm::CCState::HandleByVal(), llvm::AArch64RegisterInfo::hasBasePointer(), llvm::X86RegisterInfo::hasBasePointer(), llvm::ARMBaseRegisterInfo::hasBasePointer(), llvm::MipsFrameLowering::hasBP(), llvm::MipsFrameLowering::hasFP(), llvm::SparcFrameLowering::hasFP(), llvm::PPCFrameLowering::hasFP(), llvm::SystemZFrameLowering::hasFP(), llvm::MSP430FrameLowering::hasFP(), llvm::XCoreFrameLowering::hasFP(), llvm::ARMFrameLowering::hasFP(), llvm::HexagonFrameLowering::hasFP(), llvm::AArch64FrameLowering::hasFP(), llvm::X86FrameLowering::hasFP(), llvm::MipsSEFrameLowering::hasReservedCallFrame(), llvm::SparcFrameLowering::hasReservedCallFrame(), llvm::Mips16FrameLowering::hasReservedCallFrame(), llvm::WebAssemblyFrameLowering::hasReservedCallFrame(), llvm::Thumb1FrameLowering::hasReservedCallFrame(), llvm::MSP430FrameLowering::hasReservedCallFrame(), llvm::ARMFrameLowering::hasReservedCallFrame(), llvm::AArch64FrameLowering::hasReservedCallFrame(), llvm::X86FrameLowering::hasReservedCallFrame(), llvm::SelectionDAG::InferPtrAlignment(), llvm::MIRParserImpl::initializeMachineFunction(), llvm::RegScavenger::initRegState(), llvm::SelectionDAG::isConsecutiveLoad(), isConsecutiveLSLoc(), llvm::XCoreFunctionInfo::isLargeFrame(), llvm::SystemZInstrInfo::isStackSlotCopy(), llvm::Thumb1InstrInfo::loadRegFromStackSlot(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), llvm::MSP430InstrInfo::loadRegFromStackSlot(), llvm::XCoreInstrInfo::loadRegFromStackSlot(), llvm::SparcInstrInfo::loadRegFromStackSlot(), llvm::HexagonInstrInfo::loadRegFromStackSlot(), llvm::SIInstrInfo::loadRegFromStackSlot(), llvm::AArch64InstrInfo::loadRegFromStackSlot(), llvm::PPCInstrInfo::loadRegFromStackSlot(), llvm::ARMBaseInstrInfo::loadRegFromStackSlot(), LowerAsSplatVectorLoad(), llvm::HexagonTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::TargetLowering::LowerCallTo(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), llvm::SparcTargetLowering::LowerF128_LibCallArg(), llvm::SparcTargetLowering::LowerF128Op(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::MSP430TargetLowering::LowerFRAMEADDR(), llvm::HexagonTargetLowering::LowerFRAMEADDR(), llvm::AMDGPUTargetLowering::LowerGlobalAddress(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), LowerINTRINSIC_W_CHAIN(), llvm::MSP430TargetLowering::LowerRETURNADDR(), llvm::HexagonTargetLowering::LowerRETURNADDR(), LowerRETURNADDR(), LowerSEHRESTOREFRAME(), LowerVASTART(), llvm::SparcTargetLowering::makeAddress(), llvm::Mips16InstrInfo::makeFrame(), llvm::HexagonFrameLowering::needsAligna(), llvm::PPCFrameLowering::needsFP(), llvm::AArch64RegisterInfo::needsFrameBaseReg(), llvm::ARMBaseRegisterInfo::needsFrameBaseReg(), llvm::X86FrameLowering::needsFrameIndexResolution(), llvm::TargetFrameLowering::needsFrameIndexResolution(), llvm::WebAssemblyRegisterInfo::needsStackRealignment(), llvm::HexagonRegisterInfo::needsStackRealignment(), llvm::MipsRegisterInfo::needsStackRealignment(), llvm::AArch64RegisterInfo::needsStackRealignment(), llvm::X86RegisterInfo::needsStackRealignment(), llvm::ARMBaseRegisterInfo::needsStackRealignment(), llvm::PPCRegisterInfo::needsStackRealignment(), llvm::MipsAsmPrinter::printSavedRegsBitmask(), llvm::SystemZFrameLowering::processFunctionBeforeFrameFinalized(), llvm::HexagonFrameLowering::processFunctionBeforeFrameFinalized(), llvm::MSP430FrameLowering::processFunctionBeforeFrameFinalized(), llvm::PPCFrameLowering::processFunctionBeforeFrameFinalized(), llvm::XCoreFrameLowering::processFunctionBeforeFrameFinalized(), llvm::SIRegisterInfo::requiresRegisterScavenging(), llvm::AArch64FrameLowering::resolveFrameIndexReference(), llvm::ARMFrameLowering::ResolveFrameIndexReference(), llvm::Mips16InstrInfo::restoreFrame(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::FastISel::selectPatchpoint(), llvm::FastISel::selectStackmap(), llvm::FunctionLoweringInfo::set(), llvm::Mips16FrameLowering::spillCalleeSavedRegisters(), llvm::MipsSEFrameLowering::spillCalleeSavedRegisters(), llvm::Thumb1FrameLowering::spillCalleeSavedRegisters(), llvm::CriticalAntiDepBreaker::StartBlock(), llvm::AggressiveAntiDepBreaker::StartBlock(), llvm::Thumb1InstrInfo::storeRegToStackSlot(), llvm::Thumb2InstrInfo::storeRegToStackSlot(), llvm::MSP430InstrInfo::storeRegToStackSlot(), llvm::XCoreInstrInfo::storeRegToStackSlot(), llvm::HexagonInstrInfo::storeRegToStackSlot(), llvm::SparcInstrInfo::storeRegToStackSlot(), llvm::SIInstrInfo::storeRegToStackSlot(), llvm::AArch64InstrInfo::storeRegToStackSlot(), llvm::PPCInstrInfo::storeRegToStackSlot(), llvm::ARMBaseInstrInfo::storeRegToStackSlot(), llvm::X86InstrInfo::storeRegToStackSlot(), updateLiveness(), llvm::AArch64RegisterInfo::useFPForScavengingIndex(), llvm::SelectionDAGBuilder::visitSPDescriptorParent(), and WindowsRequiresStackProbe().

const MachineFrameInfo* llvm::MachineFunction::getFrameInfo ( ) const
inline

Definition at line 199 of file MachineFunction.h.

const Function* llvm::MachineFunction::getFunction ( ) const
inline

getFunction - Return the LLVM function that this machine code represents

Definition at line 163 of file MachineFunction.h.

Referenced by llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::NVPTXTargetLowering::allowFMA(), llvm::AMDGPUMachineFunction::AMDGPUMachineFunction(), llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), llvm::DwarfCFIException::beginFunction(), llvm::WinException::beginFunction(), llvm::WinCodeViewLineTables::beginFunction(), llvm::DwarfDebug::beginFunction(), llvm::WebAssemblyRegisterInfo::canRealignStack(), llvm::AArch64RegisterInfo::canRealignStack(), llvm::X86RegisterInfo::canRealignStack(), llvm::ARMBaseRegisterInfo::canRealignStack(), llvm::PPCRegisterInfo::canRealignStack(), llvm::AArch64FrameLowering::canUseRedZone(), checkNumAlignedDPRCS2Regs(), llvm::XCoreFunctionInfo::createLRSpillSlot(), llvm::SystemZFrameLowering::determineCalleeSaves(), llvm::XCoreFrameLowering::determineCalleeSaves(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::TargetFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::determineFrameLayout(), llvm::TargetOptions::DisableFramePointerElim(), duplicateCPV(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::HexagonRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::PPCTargetLowering::emitEHSjLjSetJmp(), llvm::ARMFrameLowering::emitEpilogue(), llvm::AArch64FrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitEpilogue(), llvm::MipsAsmPrinter::EmitFunctionBodyStart(), llvm::AsmPrinter::EmitJumpTableInfo(), llvm::ARMBaseRegisterInfo::emitLoadConstPool(), llvm::XCoreFrameLowering::emitPrologue(), llvm::ARMFrameLowering::emitPrologue(), llvm::AArch64FrameLowering::emitPrologue(), llvm::PPCFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), emitThumb1LoadConstPool(), emitThumb2LoadConstPool(), llvm::WinException::endFunction(), llvm::ARMException::endFunction(), llvm::WinCodeViewLineTables::endFunction(), llvm::DwarfDebug::endFunction(), ExpandPowI(), findDeadCallerSavedReg(), llvm::X86InstrInfo::foldMemoryOperandImpl(), get64BitArgumentXMMs(), llvm::MSP430RegisterInfo::getCalleeSavedRegs(), llvm::AArch64RegisterInfo::getCalleeSavedRegs(), llvm::PPCRegisterInfo::getCalleeSavedRegs(), llvm::ARMBaseRegisterInfo::getCalleeSavedRegs(), llvm::X86RegisterInfo::getCalleeSavedRegs(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), getMemsetStores(), getName(), llvm::ARMBaseInstrInfo::getOperandLatency(), llvm::ARMTargetLowering::getOptimalMemOpType(), llvm::AArch64TargetLowering::getOptimalMemOpType(), llvm::PPCTargetLowering::getOptimalMemOpType(), llvm::X86TargetLowering::getOptimalMemOpType(), llvm::X86RegisterInfo::getPointerRegClass(), llvm::MipsRegisterInfo::getReservedRegs(), llvm::X86RegisterInfo::getReservedRegs(), GetScratchRegister(), llvm::SparcTargetLowering::getSRetArgSize(), HasNestArgument(), hasReturnsTwiceAttr(), llvm::HexagonEvaluator::HexagonEvaluator(), llvm::SelectionDAG::init(), llvm::MIRParserImpl::initializeMachineFunction(), llvm::HexagonTargetLowering::IsEligibleForTailCallOptimization(), llvm::TargetLowering::isInTailCallPosition(), isMinSize(), isNoReturnDef(), isOptSize(), llvm::ARMBaseInstrInfo::isProfitableToIfCvt(), llvm::XCoreInstrInfo::loadImmediate(), llvm::SIInstrInfo::loadRegFromStackSlot(), llvm::AMDGPUMCInstLower::lower(), llvm::HexagonTargetLowering::LowerCall(), llvm::AMDGPUTargetLowering::LowerCall(), llvm::NVPTXTargetLowering::LowerCall(), llvm::AsmPrinter::lowerConstant(), llvm::SITargetLowering::LowerFormalArguments(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::AMDGPUTargetLowering::LowerGlobalAddress(), LowerInterruptReturn(), llvm::NVPTXTargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), LowerSEHRESTOREFRAME(), LowerVectorBroadcast(), llvm::AsmPrinter::needsCFIMoves(), llvm::PPCFrameLowering::needsFP(), llvm::XCoreRegisterInfo::needsFrameMoves(), llvm::AsmPrinter::needsSEHMoves(), llvm::WebAssemblyRegisterInfo::needsStackRealignment(), llvm::MipsRegisterInfo::needsStackRealignment(), llvm::AArch64RegisterInfo::needsStackRealignment(), llvm::X86RegisterInfo::needsStackRealignment(), llvm::ARMBaseRegisterInfo::needsStackRealignment(), llvm::PPCRegisterInfo::needsStackRealignment(), llvm::TargetFrameLowering::noFramePointerElim(), llvm::OptLevelChanger::OptLevelChanger(), PerformOrCombine(), performSTORECombine(), PerformSTORECombine(), print(), llvm::MachineBasicBlock::print(), llvm::AMDGPUAsmPrinter::PrintAsmOperand(), ProfitableToMerge(), llvm::MipsTargetMachine::resetSubtarget(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::ARMAsmPrinter::runOnMachineFunction(), llvm::X86AsmPrinter::runOnMachineFunction(), llvm::VLIWMachineScheduler::schedule(), llvm::AsmPrinter::SetupMachineFunction(), shouldSplitStack(), llvm::SystemZFrameLowering::spillCalleeSavedRegisters(), llvm::SIInstrInfo::storeRegToStackSlot(), llvm::tryFoldSPUpdateIntoPushPop(), llvm::ARMSubtarget::useMovt(), WindowsRequiresStackProbe(), and llvm::OptLevelChanger::~OptLevelChanger().

unsigned llvm::MachineFunction::getFunctionNumber ( ) const
inline
template<typename Ty >
Ty* llvm::MachineFunction::getInfo ( )
inline

getInfo - Keep track of various per-function pieces of information for backends that would like to do so.

Definition at line 259 of file MachineFunction.h.

Referenced by llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::X86FrameLowering::assignCalleeSavedSpillSlots(), llvm::SIInstrInfo::calculateLDSSpillAddress(), CalculateTailCallSPDiff(), llvm::ARMBaseRegisterInfo::canRealignStack(), llvm::AArch64FrameLowering::canUseRedZone(), checkNumAlignedDPRCS2Regs(), llvm::SystemZFrameLowering::determineCalleeSaves(), llvm::MipsSEFrameLowering::determineCalleeSaves(), llvm::SparcFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::determineCalleeSaves(), llvm::HexagonFrameLowering::determineCalleeSaves(), llvm::XCoreFrameLowering::determineCalleeSaves(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::X86FrameLowering::determineCalleeSaves(), duplicateCPV(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), emitAlignedDPRCS2Restores(), emitAlignedDPRCS2Spills(), llvm::MipsSEFrameLowering::emitEpilogue(), llvm::SparcFrameLowering::emitEpilogue(), llvm::MSP430FrameLowering::emitEpilogue(), llvm::Thumb1FrameLowering::emitEpilogue(), llvm::ARMFrameLowering::emitEpilogue(), llvm::XCoreFrameLowering::emitEpilogue(), llvm::AArch64FrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitEpilogue(), llvm::SystemZFrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitEpilogue(), llvm::R600TargetLowering::EmitInstrWithCustomInserter(), llvm::HexagonTargetLowering::EmitInstrWithCustomInserter(), llvm::MipsSEFrameLowering::emitPrologue(), llvm::SparcFrameLowering::emitPrologue(), llvm::MSP430FrameLowering::emitPrologue(), llvm::Thumb1FrameLowering::emitPrologue(), llvm::XCoreFrameLowering::emitPrologue(), llvm::ARMFrameLowering::emitPrologue(), llvm::AArch64FrameLowering::emitPrologue(), llvm::PPCFrameLowering::emitPrologue(), llvm::SystemZFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), estimateRSStackSizeLimit(), fixupFuncForFI(), llvm::X86FrameLowering::getFrameIndexOffset(), llvm::X86FrameLowering::getFrameIndexOffsetFromSP(), llvm::MipsDAGToDAGISel::getGlobalBaseReg(), llvm::SparcInstrInfo::getGlobalBaseReg(), llvm::X86InstrInfo::getGlobalBaseReg(), llvm::MipsTargetLowering::getGlobalReg(), llvm::SIRegisterInfo::getPreloadedValue(), llvm::MipsRegisterInfo::getReservedRegs(), llvm::PPCRegisterInfo::getReservedRegs(), llvm::MSP430TargetLowering::getReturnAddressFrameIndex(), llvm::X86TargetLowering::getReturnAddressFrameIndex(), llvm::ARMBaseRegisterInfo::hasBasePointer(), llvm::SystemZFrameLowering::hasFP(), llvm::HexagonFrameLowering::hasFP(), llvm::X86FrameLowering::hasFP(), hasNonRISpills(), llvm::X86FrameLowering::hasReservedCallFrame(), llvm::PPCRegisterInfo::hasReservedSpillSlot(), hasSpills(), llvm::ARMBaseInstrInfo::InsertBranch(), llvm::ARMBaseInstrInfo::isPredicable(), llvm::SIInstrInfo::loadRegFromStackSlot(), llvm::PPCInstrInfo::loadRegFromStackSlot(), llvm::HexagonTargetLowering::LowerEH_RETURN(), llvm::SITargetLowering::LowerFormalArguments(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::HexagonTargetLowering::LowerINLINEASM(), LowerINTRINSIC_W_CHAIN(), llvm::R600TargetLowering::LowerOperation(), llvm::SITargetLowering::LowerOperation(), llvm::SparcTargetLowering::LowerReturn_32(), LowerSEHRESTOREFRAME(), LowerToTLSLocalDynamicModel(), llvm::MSP430TargetLowering::LowerVASTART(), llvm::HexagonTargetLowering::LowerVASTART(), LowerVASTART(), llvm::ARMBaseRegisterInfo::materializeFrameBaseRegister(), MustSaveLR(), llvm::PPCFrameLowering::needsFP(), llvm::ARMBaseRegisterInfo::needsFrameBaseReg(), llvm::X86FrameLowering::needsFrameIndexResolution(), llvm::PPCFrameLowering::processFunctionBeforeFrameFinalized(), llvm::XCoreFrameLowering::processFunctionBeforeFrameFinalized(), llvm::Thumb2InstrInfo::ReplaceTailWithBranchTo(), llvm::ARMBaseRegisterInfo::resolveFrameIndex(), llvm::AArch64FrameLowering::resolveFrameIndexReference(), llvm::ARMFrameLowering::ResolveFrameIndexReference(), llvm::SystemZFrameLowering::restoreCalleeSavedRegisters(), llvm::Thumb1FrameLowering::restoreCalleeSavedRegisters(), llvm::ARMFrameLowering::restoreCalleeSavedRegisters(), llvm::ARMAsmPrinter::runOnMachineFunction(), llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::MipsAsmPrinter::runOnMachineFunction(), setUsesTOCBasePtr(), llvm::SystemZFrameLowering::spillCalleeSavedRegisters(), llvm::XCoreFrameLowering::spillCalleeSavedRegisters(), llvm::ARMFrameLowering::spillCalleeSavedRegisters(), llvm::MSP430FrameLowering::spillCalleeSavedRegisters(), llvm::PPCFrameLowering::spillCalleeSavedRegisters(), spillsCR(), spillsVRSAVE(), llvm::SIInstrInfo::storeRegToStackSlot(), llvm::PPCInstrInfo::storeRegToStackSlot(), llvm::R600InstrInfo::usesTextureCache(), and llvm::R600InstrInfo::usesVertexCache().

template<typename Ty >
const Ty* llvm::MachineFunction::getInfo ( ) const
inline

Definition at line 266 of file MachineFunction.h.

MCSymbol * MachineFunction::getJTISymbol ( unsigned  JTI,
MCContext Ctx,
bool  isLinkerPrivate = false 
) const

getJTISymbol - Return the MCSymbol for the specified non-empty jump table.

Return the MCSymbol for the specified non-empty jump table.

If isLinkerPrivate is specified, an 'l' label is returned, otherwise a normal 'L' label is returned.

Definition at line 464 of file MachineFunction.cpp.

References llvm::DL, getDataLayout(), getFunctionNumber(), llvm::DataLayout::getLinkerPrivateGlobalPrefix(), llvm::MCContext::getOrCreateSymbol(), llvm::DataLayout::getPrivateGlobalPrefix(), llvm::cl::Prefix, and size().

Referenced by llvm::AsmPrinter::GetJTISymbol(), and llvm::TargetLowering::getPICJumpTableRelocBaseExpr().

const MachineJumpTableInfo* llvm::MachineFunction::getJumpTableInfo ( ) const
inline

getJumpTableInfo - Return the jump table info object for the current function.

This object contains information about jump tables in the current function. If the current function has no jump tables, this will return null.

Definition at line 205 of file MachineFunction.h.

Referenced by llvm::ARMAsmPrinter::EmitJumpTableAddrs(), llvm::AsmPrinter::EmitJumpTableInfo(), llvm::ARMAsmPrinter::EmitJumpTableInsts(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), llvm::HexagonTargetLowering::LowerBR_JT(), and llvm::BranchFolder::OptimizeFunction().

MachineJumpTableInfo* llvm::MachineFunction::getJumpTableInfo ( )
inline

Definition at line 206 of file MachineFunction.h.

MachineMemOperand * MachineFunction::getMachineMemOperand ( MachinePointerInfo  PtrInfo,
unsigned  f,
uint64_t  s,
unsigned  base_alignment,
const AAMDNodes AAInfo = AAMDNodes(),
const MDNode Ranges = nullptr 
)

getMachineMemOperand - Allocate a new MachineMemOperand.

MachineMemOperands are owned by the MachineFunction and need not be explicitly deallocated.

Definition at line 232 of file MachineFunction.cpp.

Referenced by llvm::addFrameReference(), llvm::X86TargetLowering::BuildFILD(), llvm::FastISel::createMachineMemOperandFor(), llvm::TargetLoweringBase::emitPatchPoint(), extractLoadMemRefs(), extractStoreMemRefs(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::SelectionDAG::getAtomic(), llvm::SelectionDAG::getAtomicCmpSwap(), getFrameIndexMMO(), llvm::SelectionDAG::getLoad(), llvm::SelectionDAG::getMemIntrinsicNode(), llvm::MipsInstrInfo::GetMemOperand(), llvm::SelectionDAG::getStore(), llvm::SelectionDAG::getTruncStore(), llvm::Thumb1InstrInfo::loadRegFromStackSlot(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), llvm::MSP430InstrInfo::loadRegFromStackSlot(), llvm::XCoreInstrInfo::loadRegFromStackSlot(), llvm::SparcInstrInfo::loadRegFromStackSlot(), llvm::HexagonInstrInfo::loadRegFromStackSlot(), llvm::AArch64InstrInfo::loadRegFromStackSlot(), llvm::PPCInstrInfo::loadRegFromStackSlot(), llvm::ARMBaseInstrInfo::loadRegFromStackSlot(), NarrowVectorLoadToElement(), llvm::PPCTargetLowering::PerformDAGCombine(), llvm::Thumb1InstrInfo::storeRegToStackSlot(), llvm::Thumb2InstrInfo::storeRegToStackSlot(), llvm::MSP430InstrInfo::storeRegToStackSlot(), llvm::XCoreInstrInfo::storeRegToStackSlot(), llvm::HexagonInstrInfo::storeRegToStackSlot(), llvm::SparcInstrInfo::storeRegToStackSlot(), llvm::AArch64InstrInfo::storeRegToStackSlot(), llvm::PPCInstrInfo::storeRegToStackSlot(), and llvm::ARMBaseInstrInfo::storeRegToStackSlot().

MachineMemOperand * MachineFunction::getMachineMemOperand ( const MachineMemOperand MMO,
int64_t  Offset,
uint64_t  Size 
)

getMachineMemOperand - Allocate a new MachineMemOperand by copying an existing one, adjusting by an offset and using the given size.

MachineMemOperands are owned by the MachineFunction and need not be explicitly deallocated.

Definition at line 241 of file MachineFunction.cpp.

References llvm::MachineMemOperand::getBaseAlignment(), llvm::MachineMemOperand::getFlags(), llvm::MachineMemOperand::getOffset(), llvm::MachineMemOperand::getPseudoValue(), and llvm::MachineMemOperand::getValue().

MachineModuleInfo& llvm::MachineFunction::getMMI ( ) const
inline
StringRef MachineFunction::getName ( ) const
unsigned llvm::MachineFunction::getNumBlockIDs ( ) const
inline
MachineJumpTableInfo * MachineFunction::getOrCreateJumpTableInfo ( unsigned  EntryKind)

getOrCreateJumpTableInfo - Get the JumpTableInfo for this function, if it does already exist, allocate one.

Get the JumpTableInfo for this function.

If it does not already exist, allocate one.

Definition at line 129 of file MachineFunction.cpp.

MCSymbol * MachineFunction::getPICBaseSymbol ( ) const

getPICBaseSymbol - Return a function-local symbol to represent the PIC base.

Return a function-local symbol to represent the PIC base.

Definition at line 479 of file MachineFunction.cpp.

References llvm::DL, getDataLayout(), getFunctionNumber(), llvm::MCContext::getOrCreateSymbol(), and llvm::DataLayout::getPrivateGlobalPrefix().

Referenced by llvm::X86AsmPrinter::EmitInstruction(), llvm::X86TargetLowering::getPICJumpTableRelocBaseExpr(), GetSymbolRef(), and printSymbolOperand().

MachineRegisterInfo& llvm::MachineFunction::getRegInfo ( )
inline

getRegInfo - Return information about the registers currently in use.

Definition at line 191 of file MachineFunction.h.

Referenced by llvm::RegsForValue::AddInlineAsmOperands(), addLiveIn(), llvm::MachineBasicBlock::addLiveIn(), addLiveIn(), llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::SITargetLowering::AdjustInstrPostInstrSelection(), llvm::AllocationOrder::AllocationOrder(), llvm::VirtRegMap::assignVirt2StackSlot(), llvm::SIInstrInfo::calculateLDSSpillAddress(), llvm::VirtRegAuxInfo::calculateSpillWeightAndHint(), llvm::calculateSpillWeightsAndHints(), canCombineWithMUL(), canCompareBeNewValueJump(), canFoldCopy(), llvm::AArch64InstrInfo::canInsertSelect(), llvm::PPCInstrInfo::canInsertSelect(), llvm::X86InstrInfo::canInsertSelect(), llvm::MipsRegisterInfo::canRealignStack(), llvm::X86RegisterInfo::canRealignStack(), llvm::ARMBaseRegisterInfo::canRealignStack(), llvm::X86InstrInfo::classifyLEAReg(), CombineCVTAToLocal(), llvm::SystemZInstrInfo::convertToThreeAddress(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::NVPTXInstrInfo::copyPhysReg(), llvm::AMDGPUTargetLowering::CreateLiveInRegister(), llvm::HexagonInstrInfo::createVR(), llvm::XCoreFrameLowering::determineCalleeSaves(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::TargetFrameLowering::determineCalleeSaves(), llvm::SystemZRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::PPCTargetLowering::EmitAtomicBinary(), llvm::PPCTargetLowering::emitEHSjLjLongJmp(), llvm::PPCTargetLowering::emitEHSjLjSetJmp(), llvm::R600TargetLowering::EmitInstrWithCustomInserter(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitInstrWithCustomInserter(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitPartwordAtomicBinary(), llvm::NVPTXFrameLowering::emitPrologue(), llvm::MipsSEFrameLowering::emitPrologue(), llvm::AArch64FrameLowering::emitPrologue(), llvm::MSP430TargetLowering::EmitShiftInstr(), emitThumbRegPlusImmInReg(), llvm::RegScavenger::enterBasicBlock(), llvm::MachineInstr::eraseFromParentAndMarkDBGValuesForRemoval(), llvm::SparcTargetLowering::expandAtomicRMW(), llvm::findPHICopyInsertPoint(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), foldPatchpoint(), forceReg(), llvm::AArch64InstrInfo::genAlternativeCodeSequence(), llvm::X86InstrInfo::genAlternativeCodeSequence(), llvm::PPCRegisterInfo::getCalleeSavedRegs(), GetCostForDef(), llvm::MipsFunctionInfo::getGlobalBaseReg(), llvm::SparcInstrInfo::getGlobalBaseReg(), llvm::X86InstrInfo::getGlobalBaseReg(), llvm::AMDGPUInstrInfo::getIndirectIndexBegin(), llvm::MipsFunctionInfo::getMips16SPAliasReg(), llvm::PPCInstrInfo::getOperandLatency(), llvm::SIInstrInfo::getOpRegClass(), getPrologueDeath(), llvm::ARMBaseRegisterInfo::getRegAllocationHints(), llvm::TargetRegisterInfo::getRegAllocationHints(), GetRegistersForValue(), getRegTy(), llvm::SIMachineFunctionInfo::getSpilledReg(), llvm::VirtRegMap::grow(), HandleVRSaveUpdate(), hasReassocSibling(), hasVGPROperands(), hasVirtualRegDefsInBasicBlock(), llvm::RegPressureTracker::init(), llvm::MIRParserImpl::initializeMachineFunction(), llvm::AArch64InstrInfo::insertSelect(), llvm::PPCInstrInfo::insertSelect(), llvm::X86InstrInfo::insertSelect(), isEAXLiveIn(), isNonFoldablePartialRegisterLoad(), llvm::SIInstrInfo::isOperandLegal(), llvm::X86InstrInfo::isReallyTriviallyReMaterializable(), llvm::SIInstrInfo::legalizeOperands(), llvm::SIInstrInfo::legalizeOpWithMove(), llvm::MipsSEInstrInfo::loadImmediate(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), llvm::AArch64InstrInfo::loadRegFromStackSlot(), llvm::PPCRegisterInfo::lowerCRBitRestore(), llvm::PPCRegisterInfo::lowerCRBitSpilling(), llvm::PPCRegisterInfo::lowerCRRestore(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::R600TargetLowering::LowerOperation(), llvm::PPCRegisterInfo::lowerVRSAVERestore(), llvm::PPCRegisterInfo::lowerVRSAVESpilling(), llvm::MachineSSAUpdater::MachineSSAUpdater(), llvm::AArch64RegisterInfo::materializeFrameBaseRegister(), llvm::PPCRegisterInfo::materializeFrameBaseRegister(), llvm::ARMBaseRegisterInfo::materializeFrameBaseRegister(), llvm::SIInstrInfo::moveToVALU(), MustSaveLR(), needToReserveScavengingSpillSlots(), llvm::AArch64InstrInfo::optimizeCondBranch(), llvm::BranchFolder::OptimizeFunction(), llvm::ARMBaseInstrInfo::optimizeSelect(), llvm::HexagonInstrInfo::PredicateInstruction(), llvm::MachineInstr::print(), reassociateOps(), llvm::LiveRangeCalc::reset(), llvm::PPCRegisterInfo::resolveFrameIndex(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::MachineTraceMetrics::runOnMachineFunction(), llvm::RegisterClassInfo::runOnMachineFunction(), llvm::LiveVariables::runOnMachineFunction(), llvm::LiveIntervals::runOnMachineFunction(), llvm::FunctionLoweringInfo::set(), llvm::CoalescerPair::setRegisters(), llvm::Thumb1FrameLowering::spillCalleeSavedRegisters(), llvm::MachineBasicBlock::SplitCriticalEdge(), llvm::SIInstrInfo::splitSMRD(), llvm::Thumb2InstrInfo::storeRegToStackSlot(), llvm::AArch64InstrInfo::storeRegToStackSlot(), llvm::tryFoldSPUpdateIntoPushPop(), UpdateOperandRegClass(), llvm::ARMBaseRegisterInfo::updateRegAllocHint(), usesTheStack(), and llvm::SIInstrInfo::verifyInstruction().

const MachineRegisterInfo& llvm::MachineFunction::getRegInfo ( ) const
inline

Definition at line 192 of file MachineFunction.h.

const TargetSubtargetInfo& llvm::MachineFunction::getSubtarget ( ) const
inline

getSubtarget - Return the subtarget for which this machine code is being compiled.

Definition at line 179 of file MachineFunction.h.

Referenced by llvm::MachineBasicBlock::addLiveIn(), addLiveInRegs(), llvm::ScheduleDAGInstrs::addPhysRegDataDeps(), addSavedGPR(), llvm::ScheduleDAGInstrs::addVRegUseDeps(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::CCState::analyzeMustTailForwardedRegisters(), llvm::A57ChainingConstraint::apply(), llvm::DwarfDebug::beginFunction(), llvm::ScheduleDAGInstrs::buildSchedGraph(), llvm::SIInstrInfo::calculateLDSSpillAddress(), llvm::LiveRangeEdit::calculateRegClassAndHint(), llvm::VirtRegAuxInfo::calculateSpillWeightAndHint(), llvm::MachineBasicBlock::canFallThrough(), llvm::MipsRegisterInfo::canRealignStack(), llvm::ARMBaseRegisterInfo::canRealignStack(), CC_MipsO32(), checkNumAlignedDPRCS2Regs(), llvm::TargetSchedModel::computeOutputLatency(), llvm::Thumb1InstrInfo::copyPhysReg(), llvm::createBURRListDAGScheduler(), llvm::createDefaultScheduler(), llvm::ARM::createFastISel(), llvm::PPC::createFastISel(), llvm::createHybridListDAGScheduler(), llvm::createILPListDAGScheduler(), llvm::FunctionLoweringInfo::CreateReg(), llvm::FunctionLoweringInfo::CreateRegs(), llvm::createSourceListDAGScheduler(), llvm::PPCInstrInfo::CreateTargetPostRAHazardRecognizer(), llvm::SystemZFrameLowering::determineCalleeSaves(), llvm::HexagonFrameLowering::determineCalleeSaves(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::TargetFrameLowering::determineCalleeSaves(), llvm::TargetOptions::DisableFramePointerElim(), llvm::AArch64FrameLowering::eliminateCallFramePseudoInstr(), llvm::MSP430FrameLowering::eliminateCallFramePseudoInstr(), llvm::XCoreFrameLowering::eliminateCallFramePseudoInstr(), llvm::BPFRegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::SystemZRegisterInfo::eliminateFrameIndex(), llvm::HexagonRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), emitAlignedDPRCS2Restores(), emitAlignedDPRCS2Spills(), emitAligningInstructions(), llvm::AArch64FrameLowering::emitCalleeSavedFrameMoves(), emitComments(), emitDebugLocValue(), emitDebugValueComment(), llvm::AsmPrinter::EmitDwarfRegOp(), llvm::SparcFrameLowering::emitEpilogue(), llvm::MSP430FrameLowering::emitEpilogue(), llvm::ARMFrameLowering::emitEpilogue(), llvm::XCoreFrameLowering::emitEpilogue(), llvm::AArch64FrameLowering::emitEpilogue(), llvm::SystemZFrameLowering::emitEpilogue(), llvm::MipsAsmPrinter::emitFrameDirective(), llvm::AMDGPUAsmPrinter::EmitFunctionBodyStart(), llvm::SystemZAsmPrinter::EmitInstruction(), llvm::AMDGPUAsmPrinter::EmitInstruction(), llvm::X86AsmPrinter::EmitInstruction(), llvm::BPFTargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::AsmPrinter::EmitJumpTableInfo(), llvm::ThumbRegisterInfo::emitLoadConstPool(), llvm::ARMBaseRegisterInfo::emitLoadConstPool(), llvm::PPCDispatchGroupSBHazardRecognizer::EmitNoop(), llvm::NVPTXFrameLowering::emitPrologue(), llvm::HexagonFrameLowering::emitPrologue(), llvm::SparcFrameLowering::emitPrologue(), llvm::XCoreFrameLowering::emitPrologue(), llvm::MSP430FrameLowering::emitPrologue(), llvm::AArch64FrameLowering::emitPrologue(), llvm::SystemZFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), llvm::MSP430TargetLowering::EmitShiftInstr(), llvm::ARMSelectionDAGInfo::EmitSpecializedLibcall(), EmitTailCallStoreFPAndRetAddr(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), emitThumb1LoadConstPool(), emitThumb2LoadConstPool(), llvm::RegScavenger::enterBasicBlock(), llvm::MachineFrameInfo::estimateStackSize(), llvm::DebugLocEntry::finalize(), llvm::finalizeBundle(), llvm::ARMFrameLowering::fixTCReturn(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::AArch64InstrInfo::genAlternativeCodeSequence(), llvm::PPCRegisterInfo::getBaseRegister(), llvm::MipsRegisterInfo::getCalleeSavedRegs(), llvm::HexagonRegisterInfo::getCalleeSavedRegs(), llvm::PPCRegisterInfo::getCalleeSavedRegs(), llvm::ARMBaseRegisterInfo::getCalleeSavedRegs(), llvm::X86RegisterInfo::getCalleeSavedRegs(), llvm::HexagonRegisterInfo::getCallerSavedRegs(), llvm::MipsRegisterInfo::getCallPreservedMask(), llvm::PPCRegisterInfo::getCallPreservedMask(), llvm::ARMBaseRegisterInfo::getCallPreservedMask(), llvm::X86RegisterInfo::getCallPreservedMask(), getFPMode(), llvm::TargetFrameLowering::getFrameIndexReference(), llvm::MipsRegisterInfo::getFrameRegister(), llvm::ARMBaseRegisterInfo::getFrameRegister(), llvm::MipsFunctionInfo::getGlobalBaseReg(), llvm::ARMHazardRecognizer::getHazardType(), llvm::AMDGPUInstrInfo::getIndirectIndexEnd(), llvm::MSP430InstrInfo::GetInstSizeInBytes(), llvm::ThumbRegisterInfo::getLargestLegalSuperClass(), llvm::PPCRegisterInfo::getLargestLegalSuperClass(), llvm::SIMachineFunctionInfo::getMaximumWorkGroupSize(), getMemcpyLoadsAndStores(), llvm::ThumbRegisterInfo::getPointerRegClass(), llvm::SparcRegisterInfo::getPointerRegClass(), llvm::MipsRegisterInfo::getPointerRegClass(), llvm::X86RegisterInfo::getPointerRegClass(), llvm::MachineFrameInfo::getPristineRegs(), llvm::X86RegisterInfo::getPtrSizedFrameRegister(), GetRegistersForValue(), llvm::MipsRegisterInfo::getRegPressureLimit(), llvm::ARMBaseRegisterInfo::getRegPressureLimit(), llvm::SIRegisterInfo::getRegPressureSetLimit(), llvm::R600RegisterInfo::getReservedRegs(), llvm::SIRegisterInfo::getReservedRegs(), llvm::SparcRegisterInfo::getReservedRegs(), llvm::MipsRegisterInfo::getReservedRegs(), llvm::PPCRegisterInfo::getReservedRegs(), llvm::X86RegisterInfo::getReservedRegs(), llvm::ARMBaseRegisterInfo::getReservedRegs(), llvm::TargetInstrInfo::getSPAdjust(), llvm::X86InstrInfo::getSPAdjust(), llvm::SIMachineFunctionInfo::getSpilledReg(), llvm::TargetInstrInfo::getStackSlotRange(), llvm::SelectionDAG::getSubtarget(), llvm::AsmPrinter::getSubtargetInfo(), llvm::MachineRegisterInfo::getTargetRegisterInfo(), llvm::ARMBaseRegisterInfo::getThisReturnPreservedMask(), llvm::CCState::HandleByVal(), HandleVRSaveUpdate(), llvm::ARMFrameLowering::hasFP(), llvm::AArch64FrameLowering::hasFP(), llvm::PPCRegisterInfo::hasReservedSpillSlot(), llvm::RegPressureTracker::init(), llvm::ConvergingVLIWScheduler::initialize(), llvm::PostGenericScheduler::initialize(), llvm::GenericScheduler::initPolicy(), initReachingDef(), llvm::TargetInstrInfo::isSchedulingBoundary(), llvm::PPCRegisterInfo::lowerCRBitRestore(), llvm::PPCRegisterInfo::lowerCRBitSpilling(), llvm::PPCRegisterInfo::lowerCRRestore(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), llvm::PPCRegisterInfo::lowerVRSAVERestore(), llvm::PPCRegisterInfo::lowerVRSAVESpilling(), llvm::MachineSSAUpdater::MachineSSAUpdater(), llvm::AArch64RegisterInfo::materializeFrameBaseRegister(), llvm::PPCRegisterInfo::materializeFrameBaseRegister(), llvm::ARMBaseRegisterInfo::materializeFrameBaseRegister(), MIsNeedChainEdge(), llvm::SIInstrInfo::moveSMRDToVALU(), llvm::MipsRegisterInfo::needsStackRealignment(), llvm::ARMFrameLowering::noFramePointerElim(), llvm::PPCDispatchGroupSBHazardRecognizer::PreEmitNoops(), print(), llvm::MachineFrameInfo::print(), llvm::MachineBasicBlock::print(), llvm::MachineInstr::print(), llvm::ARMAsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printSavedRegsBitmask(), reassociateOps(), llvm::MachineRegisterInfo::recomputeRegClass(), replaceFI(), llvm::R600InstrInfo::reserveIndirectRegisters(), llvm::ThumbRegisterInfo::resolveFrameIndex(), llvm::AArch64RegisterInfo::resolveFrameIndex(), llvm::PPCRegisterInfo::resolveFrameIndex(), llvm::ARMBaseRegisterInfo::resolveFrameIndex(), llvm::AArch64FrameLowering::resolveFrameIndexReference(), llvm::ARMFrameLowering::ResolveFrameIndexReference(), llvm::ResourcePriorityQueue::ResourcePriorityQueue(), llvm::SystemZFrameLowering::restoreCalleeSavedRegisters(), llvm::XCoreFrameLowering::restoreCalleeSavedRegisters(), llvm::MSP430FrameLowering::restoreCalleeSavedRegisters(), llvm::AArch64FrameLowering::restoreCalleeSavedRegisters(), restoreCRs(), llvm::ThumbRegisterInfo::rewriteFrameIndex(), llvm::HexagonAsmPrinter::runOnMachineFunction(), llvm::MipsDAGToDAGISel::runOnMachineFunction(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::ARMAsmPrinter::runOnMachineFunction(), llvm::MachineTraceMetrics::runOnMachineFunction(), llvm::RegisterClassInfo::runOnMachineFunction(), llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::LiveStacks::runOnMachineFunction(), llvm::MipsAsmPrinter::runOnMachineFunction(), llvm::X86AsmPrinter::runOnMachineFunction(), llvm::LiveVariables::runOnMachineFunction(), llvm::LiveIntervals::runOnMachineFunction(), llvm::NVPTXAsmPrinter::runOnMachineFunction(), llvm::Mips16RegisterInfo::saveScavengerRegister(), llvm::ThumbRegisterInfo::saveScavengerRegister(), llvm::ScheduleDAGInstrs::ScheduleDAGInstrs(), llvm::FunctionLoweringInfo::set(), setAliasRegs(), setCallTargetReg(), llvm::X86MachineFunctionInfo::setRestoreBasePointer(), llvm::SystemZFrameLowering::spillCalleeSavedRegisters(), llvm::XCoreFrameLowering::spillCalleeSavedRegisters(), llvm::MSP430FrameLowering::spillCalleeSavedRegisters(), llvm::AArch64FrameLowering::spillCalleeSavedRegisters(), llvm::MachineBasicBlock::SplitCriticalEdge(), llvm::SIInstrInfo::splitSMRD(), UpdateOperandRegClass(), llvm::DwarfCompileUnit::updateSubprogramScopeDIE(), llvm::MachineBasicBlock::updateTerminator(), and llvm::VLIWPacketizerList::VLIWPacketizerList().

template<typename STC >
const STC& llvm::MachineFunction::getSubtarget ( ) const
inline

getSubtarget - This method returns a pointer to the specified type of TargetSubtargetInfo.

In debug builds, it verifies that the object being returned is of the correct type.

Definition at line 185 of file MachineFunction.h.

const TargetMachine& llvm::MachineFunction::getTarget ( ) const
inline

getTarget - Return the target machine this machine code is compiled with

Definition at line 175 of file MachineFunction.h.

Referenced by llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::NVPTXTargetLowering::allowFMA(), llvm::AArch64RegisterInfo::cannotEliminateFrame(), llvm::ARMBaseRegisterInfo::cannotEliminateFrame(), llvm::X86FrameLowering::canUseLEAForSPInEpilogue(), llvm::MipsFunctionInfo::createEhDataRegsFI(), llvm::MipsTargetLowering::createFastISel(), llvm::PPCFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::eliminateCallFramePseudoInstr(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::AArch64FrameLowering::emitCalleeSavedFrameMoves(), llvm::PPCTargetLowering::emitEHSjLjLongJmp(), llvm::PPCFrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitEpilogue(), llvm::AsmPrinter::EmitJumpTableInfo(), llvm::NVPTXFrameLowering::emitPrologue(), llvm::ARMFrameLowering::emitPrologue(), llvm::AArch64FrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), llvm::X86FrameLowering::emitStackProbeCall(), llvm::ARMBaseInstrInfo::expandPostRAPseudo(), llvm::AArch64InstrInfo::expandPostRAPseudo(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::X86FrameLowering::getFrameIndexOffset(), llvm::MipsRegisterInfo::getFrameRegister(), llvm::MipsFunctionInfo::getGlobalBaseReg(), llvm::AArch64InstrInfo::GetInstSizeInBytes(), llvm::MSP430InstrInfo::GetInstSizeInBytes(), llvm::MipsInstrInfo::GetInstSizeInBytes(), llvm::ARMBaseInstrInfo::GetInstSizeInBytes(), llvm::SystemZInstrInfo::getInstSizeInBytes(), llvm::PPCInstrInfo::GetInstSizeInBytes(), llvm::X86InstrInfo::getMachineCombinerPatterns(), llvm::PPCFunctionInfo::getPICOffsetSymbol(), llvm::TargetInstrInfo::getStackSlotRange(), llvm::MipsFrameLowering::hasFP(), llvm::SparcFrameLowering::hasFP(), llvm::SystemZFrameLowering::hasFP(), llvm::MSP430FrameLowering::hasFP(), llvm::XCoreFrameLowering::hasFP(), llvm::ARMFrameLowering::hasFP(), llvm::X86FrameLowering::hasFP(), llvm::X86TargetLowering::LowerCustomJumpTableEntry(), LowerINTRINSIC_W_CHAIN(), llvm::PPCFrameLowering::needsFP(), llvm::PPCFrameLowering::processFunctionBeforeFrameFinalized(), llvm::MachineBasicBlock::SplitCriticalEdge(), and llvm::DwarfCompileUnit::updateSubprogramScopeDIE().

bool llvm::MachineFunction::hasInlineAsm ( ) const
inline

Returns true if the function contains any inline assembly.

Definition at line 246 of file MachineFunction.h.

Referenced by llvm::PPCRegisterInfo::getReservedRegs().

void llvm::MachineFunction::insert ( iterator  MBBI,
MachineBasicBlock MBB 
)
inline
void MachineFunction::print ( raw_ostream OS,
SlotIndexes Indexes = nullptr 
) const
void llvm::MachineFunction::push_back ( MachineBasicBlock MBB)
inline

Definition at line 353 of file MachineFunction.h.

References llvm::ilist< NodeTy >::push_back().

Referenced by llvm::FunctionLoweringInfo::set().

void llvm::MachineFunction::push_front ( MachineBasicBlock MBB)
inline
reverse_iterator llvm::MachineFunction::rbegin ( )
inline

Definition at line 341 of file MachineFunction.h.

References llvm::iplist< NodeTy, Traits >::rbegin().

const_reverse_iterator llvm::MachineFunction::rbegin ( ) const
inline

Definition at line 342 of file MachineFunction.h.

References llvm::iplist< NodeTy, Traits >::rbegin().

void llvm::MachineFunction::remove ( iterator  MBBI)
inline
void llvm::MachineFunction::removeFromMBBNumbering ( unsigned  N)
inline

removeFromMBBNumbering - Remove the specific machine basic block from our tracker, this is only really to be used by the MachineBasicBlock implementation.

Definition at line 387 of file MachineFunction.h.

References N.

reverse_iterator llvm::MachineFunction::rend ( )
inline

Definition at line 343 of file MachineFunction.h.

References llvm::iplist< NodeTy, Traits >::rend().

const_reverse_iterator llvm::MachineFunction::rend ( ) const
inline

Definition at line 344 of file MachineFunction.h.

References llvm::iplist< NodeTy, Traits >::rend().

void MachineFunction::RenumberBlocks ( MachineBasicBlock MBB = nullptr)

RenumberBlocks - This discards all of the MachineBasicBlock numbers and recomputes them.

This discards all of the MachineBasicBlock numbers and recomputes them.

This guarantees that the MBB numbers are sequential, dense, and match the ordering of the blocks within the function. If a specific MachineBasicBlock is specified, only that block and those after it are renumbered.

Definition at line 146 of file MachineFunction.cpp.

References begin(), empty(), and end().

void llvm::MachineFunction::setAlignment ( unsigned  A)
inline

setAlignment - Set the alignment (log2, not bytes) of the function.

Definition at line 225 of file MachineFunction.h.

References llvm::ARM_PROC::A.

Referenced by llvm::MIRParserImpl::initializeMachineFunction(), and llvm::AMDGPUAsmPrinter::runOnMachineFunction().

void llvm::MachineFunction::setExposesReturnsTwice ( bool  B)
inline

setCallsSetJmp - Set a flag that indicates if there's a call to a "returns twice" function.

Definition at line 241 of file MachineFunction.h.

Referenced by llvm::MIRParserImpl::initializeMachineFunction().

void llvm::MachineFunction::setHasInlineAsm ( bool  B)
inline

Set a flag that indicates that the function contains inline assembly.

Definition at line 251 of file MachineFunction.h.

Referenced by llvm::MIRParserImpl::initializeMachineFunction(), and llvm::SelectionDAGISel::runOnMachineFunction().

void llvm::MachineFunction::setSubtarget ( const TargetSubtargetInfo ST)
inline

Definition at line 180 of file MachineFunction.h.

References llvm::AArch64DB::ST.

Referenced by llvm::MipsTargetMachine::resetSubtarget().

bool MachineFunction::shouldSplitStack ( )

Should we be emitting segmented stack stuff for the function.

Definition at line 138 of file MachineFunction.cpp.

References getFunction(), and llvm::Function::hasFnAttribute().

Referenced by llvm::X86FrameLowering::emitPrologue().

unsigned llvm::MachineFunction::size ( ) const
inline
void llvm::MachineFunction::splice ( iterator  InsertPt,
iterator  MBBI 
)
inline
void llvm::MachineFunction::splice ( iterator  InsertPt,
iterator  MBBI,
iterator  MBBE 
)
inline

Definition at line 361 of file MachineFunction.h.

References llvm::iplist< NodeTy, Traits >::splice().

void MachineFunction::verify ( Pass p = nullptr,
const char *  Banner = nullptr 
) const

verify - Run the current MachineFunction through the machine code verifier, useful for debugger use.

Definition at line 271 of file MachineVerifier.cpp.

Referenced by llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::X86FrameLowering::adjustForSegmentedStacks(), and llvm::RegScavenger::forward().

void MachineFunction::viewCFG ( ) const

viewCFG - This function is meant for use from the debugger.

You can just say 'call F->viewCFG()' and a ghostview window should pop up from the program, displaying the CFG of the current function with the code for each basic block inside. This depends on there being a 'dot' and 'gv' program in your path.

Definition at line 417 of file MachineFunction.cpp.

References llvm::errs(), getName(), and llvm::ViewGraph().

void MachineFunction::viewCFGOnly ( ) const

viewCFGOnly - This function is meant for use from the debugger.

It works just like viewCFG, but it does not include the contents of basic blocks into the nodes, just the label. If you are only interested in the CFG this can make the graph smaller.

Definition at line 427 of file MachineFunction.cpp.

References llvm::errs(), getName(), and llvm::ViewGraph().


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