LLVM  6.0.0svn
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::MachineFunction Class Reference

#include "llvm/CodeGen/MachineFunction.h"

Collaboration diagram for llvm::MachineFunction:
Collaboration graph
[legend]

Classes

struct  VariableDbgInfo
 

Public Types

using VariableDbgInfoMapTy = SmallVector< VariableDbgInfo, 4 >
 
using iterator = BasicBlockListType::iterator
 
using const_iterator = BasicBlockListType::const_iterator
 
using const_reverse_iterator = BasicBlockListType::const_reverse_iterator
 
using reverse_iterator = BasicBlockListType::reverse_iterator
 
using OperandCapacity = ArrayRecycler< MachineOperand >::Capacity
 

Public Member Functions

 MachineFunction (const Function *Fn, const TargetMachine &TM, unsigned FunctionNum, MachineModuleInfo &MMI)
 
 MachineFunction (const MachineFunction &)=delete
 
MachineFunctionoperator= (const MachineFunction &)=delete
 
 ~MachineFunction ()
 
void reset ()
 Reset the instance as if it was just created. More...
 
MachineModuleInfogetMMI () const
 
MCContextgetContext () const
 
PseudoSourceValueManagergetPSVManager () 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
 
const WinEHFuncInfogetWinEHFuncInfo () const
 getWinEHFuncInfo - Return information about how the current function uses Windows exception handling. More...
 
WinEHFuncInfogetWinEHFuncInfo ()
 
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...
 
bool hasWinCFI () const
 
void setHasWinCFI (bool v)
 
const MachineFunctionPropertiesgetProperties () const
 Get the function properties. More...
 
MachineFunctionPropertiesgetProperties ()
 
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 () const
 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, const 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...
 
bool verify (Pass *p=nullptr, const char *Banner=nullptr, bool AbortOnError=true) const
 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, MachineBasicBlock *MBB)
 
void splice (iterator InsertPt, iterator MBBI, iterator MBBE)
 
void remove (iterator MBBI)
 
void remove (MachineBasicBlock *MBBI)
 
void erase (iterator MBBI)
 
void erase (MachineBasicBlock *MBBI)
 
template<typename Comp >
void sort (Comp comp)
 
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, const DebugLoc &DL, bool NoImp=false)
 CreateMachineInstr - Allocate a new MachineInstr. More...
 
MachineInstrCloneMachineInstr (const MachineInstr *Orig)
 Create a new MachineInstr which is a copy of Orig, identical in all ways except the instruction has no parent, prev, or next. More...
 
MachineInstrCloneMachineInstrBundle (MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, const MachineInstr &Orig)
 Clones instruction or the whole instruction bundle Orig and insert into MBB before InsertBefore. 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, MachineMemOperand::Flags f, uint64_t s, unsigned base_alignment, const AAMDNodes &AAInfo=AAMDNodes(), const MDNode *Ranges=nullptr, SyncScope::ID SSID=SyncScope::System, AtomicOrdering Ordering=AtomicOrdering::NotAtomic, AtomicOrdering FailureOrdering=AtomicOrdering::NotAtomic)
 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...
 
MachineMemOperandgetMachineMemOperand (const MachineMemOperand *MMO, const AAMDNodes &AAInfo)
 Allocate a new MachineMemOperand by copying an existing one, replacing only AliasAnalysis information. 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_tallocateRegisterMask (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_iteratorextractLoadMemRefs (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_iteratorextractStoreMemRefs (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...
 
const charcreateExternalSymbolName (StringRef Name)
 Allocate a string and populate it with the given external symbol name. 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...
 
const std::vector< MCCFIInstruction > & getFrameInstructions () const
 Returns a reference to a list of cfi instructions in the function's prologue. More...
 
LLVM_NODISCARD unsigned addFrameInst (const MCCFIInstruction &Inst)
 
void setVariableDbgInfo (const DILocalVariable *Var, const DIExpression *Expr, unsigned Slot, const DILocation *Loc)
 Collect information used to emit debugging information of a variable. More...
 
VariableDbgInfoMapTygetVariableDbgInfo ()
 
const VariableDbgInfoMapTygetVariableDbgInfo () const
 

Static Public Member Functions

static BasicBlockListType MachineFunction::* getSublistAccess (MachineBasicBlock *)
 Support for MachineBasicBlock::getNextNode(). More...
 

Public Attributes

VariableDbgInfoMapTy VariableDbgInfos
 

Exception Handling

bool callsEHReturn () const
 
void setCallsEHReturn (bool b)
 
bool callsUnwindInit () const
 
void setCallsUnwindInit (bool b)
 
bool hasEHFunclets () const
 
void setHasEHFunclets (bool V)
 
LandingPadInfogetOrCreateLandingPadInfo (MachineBasicBlock *LandingPad)
 Find or create an LandingPadInfo for the specified MachineBasicBlock. More...
 
void tidyLandingPads (DenseMap< MCSymbol *, uintptr_t > *LPMap=nullptr)
 Remap landing pad labels and remove any deleted landing pads. More...
 
const std::vector< LandingPadInfo > & getLandingPads () const
 Return a reference to the landing pad info for the current function. More...
 
void addInvoke (MachineBasicBlock *LandingPad, MCSymbol *BeginLabel, MCSymbol *EndLabel)
 Provide the begin and end labels of an invoke style call and associate it with a try landing pad block. More...
 
MCSymboladdLandingPad (MachineBasicBlock *LandingPad)
 Add a new panding pad. Returns the label ID for the landing pad entry. More...
 
void addCatchTypeInfo (MachineBasicBlock *LandingPad, ArrayRef< const GlobalValue *> TyInfo)
 Provide the catch typeinfo for a landing pad. More...
 
void addFilterTypeInfo (MachineBasicBlock *LandingPad, ArrayRef< const GlobalValue *> TyInfo)
 Provide the filter typeinfo for a landing pad. More...
 
void addCleanup (MachineBasicBlock *LandingPad)
 Add a cleanup action for a landing pad. More...
 
void addSEHCatchHandler (MachineBasicBlock *LandingPad, const Function *Filter, const BlockAddress *RecoverLabel)
 
void addSEHCleanupHandler (MachineBasicBlock *LandingPad, const Function *Cleanup)
 
unsigned getTypeIDFor (const GlobalValue *TI)
 Return the type id for the specified typeinfo. This is function wide. More...
 
int getFilterIDFor (std::vector< unsigned > &TyIds)
 Return the id of the filter encoded by TyIds. This is function wide. More...
 
void setCallSiteLandingPad (MCSymbol *Sym, ArrayRef< unsigned > Sites)
 Map the landing pad's EH symbol to the call site indexes. More...
 
SmallVectorImpl< unsigned > & getCallSiteLandingPad (MCSymbol *Sym)
 Get the call site indexes for a landing pad EH symbol. More...
 
bool hasCallSiteLandingPad (MCSymbol *Sym)
 Return true if the landing pad Eh symbol has an associated call site. More...
 
void setCallSiteBeginLabel (MCSymbol *BeginLabel, unsigned Site)
 Map the begin label for a call site. More...
 
unsigned getCallSiteBeginLabel (MCSymbol *BeginLabel) const
 Get the call site number for a begin label. More...
 
bool hasCallSiteBeginLabel (MCSymbol *BeginLabel) const
 Return true if the begin label has a call site number associated with it. More...
 
void addCodeViewAnnotation (MCSymbol *Label, MDNode *MD)
 Record annotations associated with a particular label. More...
 
ArrayRef< std::pair< MCSymbol *, MDNode * > > getCodeViewAnnotations () const
 
const std::vector< const GlobalValue * > & getTypeInfos () const
 Return a reference to the C++ typeinfo for the current function. More...
 
const std::vector< unsigned > & getFilterIds () const
 Return a reference to the typeids encoding filters used in the current function. More...
 

Detailed Description

Definition at line 225 of file MachineFunction.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 549 of file MachineFunction.h.

◆ const_reverse_iterator

Definition at line 550 of file MachineFunction.h.

◆ iterator

Definition at line 548 of file MachineFunction.h.

◆ OperandCapacity

Definition at line 682 of file MachineFunction.h.

◆ reverse_iterator

Definition at line 551 of file MachineFunction.h.

◆ VariableDbgInfoMapTy

Definition at line 359 of file MachineFunction.h.

Constructor & Destructor Documentation

◆ MachineFunction() [1/2]

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

◆ MachineFunction() [2/2]

llvm::MachineFunction::MachineFunction ( const MachineFunction )
delete

◆ ~MachineFunction()

MachineFunction::~MachineFunction ( )

Member Function Documentation

◆ addCatchTypeInfo()

void MachineFunction::addCatchTypeInfo ( MachineBasicBlock LandingPad,
ArrayRef< const GlobalValue *>  TyInfo 
)

Provide the catch typeinfo for a landing pad.

Definition at line 668 of file MachineFunction.cpp.

References getOrCreateLandingPadInfo(), getTypeIDFor(), N, llvm::ArrayRef< T >::size(), and llvm::LandingPadInfo::TypeIds.

Referenced by llvm::addLandingPadInfo().

◆ addCleanup()

void MachineFunction::addCleanup ( MachineBasicBlock LandingPad)

Add a cleanup action for a landing pad.

Definition at line 728 of file MachineFunction.cpp.

References getOrCreateLandingPadInfo(), and llvm::LandingPadInfo::TypeIds.

Referenced by llvm::addLandingPadInfo().

◆ addCodeViewAnnotation()

void llvm::MachineFunction::addCodeViewAnnotation ( MCSymbol Label,
MDNode MD 
)
inline

Record annotations associated with a particular label.

Definition at line 839 of file MachineFunction.h.

Referenced by getUnderlyingArgReg().

◆ addFilterTypeInfo()

void MachineFunction::addFilterTypeInfo ( MachineBasicBlock LandingPad,
ArrayRef< const GlobalValue *>  TyInfo 
)

Provide the filter typeinfo for a landing pad.

Definition at line 675 of file MachineFunction.cpp.

References E, getFilterIDFor(), getOrCreateLandingPadInfo(), getTypeIDFor(), I, llvm::ArrayRef< T >::size(), and llvm::LandingPadInfo::TypeIds.

Referenced by llvm::addLandingPadInfo().

◆ addFrameInst()

LLVM_NODISCARD unsigned llvm::MachineFunction::addFrameInst ( const MCCFIInstruction Inst)
inline

◆ addInvoke()

void MachineFunction::addInvoke ( MachineBasicBlock LandingPad,
MCSymbol BeginLabel,
MCSymbol EndLabel 
)

Provide the begin and end labels of an invoke style call and associate it with a try landing pad block.

Definition at line 654 of file MachineFunction.cpp.

References llvm::LandingPadInfo::BeginLabels, llvm::LandingPadInfo::EndLabels, and getOrCreateLandingPadInfo().

Referenced by llvm::IRTranslator::getAnalysisUsage(), and llvm::SelectionDAGBuilder::lowerInvokable().

◆ addLandingPad()

MCSymbol * MachineFunction::addLandingPad ( MachineBasicBlock LandingPad)

Add a new panding pad. Returns the label ID for the landing pad entry.

Definition at line 661 of file MachineFunction.cpp.

References getOrCreateLandingPadInfo(), and llvm::LandingPadInfo::LandingPadLabel.

Referenced by llvm::IRTranslator::getAnalysisUsage(), and hasExceptionPointerOrCodeUser().

◆ addLiveIn()

unsigned MachineFunction::addLiveIn ( unsigned  PReg,
const TargetRegisterClass RC 
)

◆ addSEHCatchHandler()

void MachineFunction::addSEHCatchHandler ( MachineBasicBlock LandingPad,
const Function Filter,
const BlockAddress RecoverLabel 
)

◆ addSEHCleanupHandler()

void MachineFunction::addSEHCleanupHandler ( MachineBasicBlock LandingPad,
const Function Cleanup 
)

◆ addToMBBNumbering()

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 613 of file MachineFunction.h.

Referenced by llvm::printMBBReference().

◆ allocateMemRefsArray()

MachineInstr::mmo_iterator MachineFunction::allocateMemRefsArray ( unsigned long  Num)

◆ allocateOperandArray()

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 686 of file MachineFunction.h.

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

Referenced by llvm::MachineInstr::addImplicitDefUseOperands(), and llvm::MachineInstr::addOperand().

◆ allocateRegisterMask()

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

◆ back() [1/2]

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

◆ back() [2/2]

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

Definition at line 581 of file MachineFunction.h.

◆ begin() [1/2]

iterator llvm::MachineFunction::begin ( )
inline

Definition at line 566 of file MachineFunction.h.

Referenced by llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::DwarfCFIException::beginFunction(), containsNewBackedge(), llvm::createR600ExpandSpecialInstrsPass(), llvm::createSILowerI1CopiesPass(), llvm::createSIWholeQuadModePass(), createSwiftErrorEntriesInEntryBlock(), llvm::createWebAssemblyFixIrreducibleControlFlow(), llvm::createWebAssemblyOptimizeLiveIntervals(), llvm::createX86FixupLEAs(), llvm::createXCoreFrameToArgsOffsetEliminationPass(), doesNotGeneratecode(), llvm::AVRTargetLowering::EmitInstrWithCustomInserter(), llvm::AVRFrameLowering::emitPrologue(), llvm::MSP430FrameLowering::emitPrologue(), llvm::SystemZFrameLowering::emitPrologue(), llvm::ScheduleDAGSDNodes::EmitSchedule(), llvm::WinException::endFunclet(), llvm::finalizeBundles(), FindStartOfTree(), llvm::HexagonInstrInfo::genAllInsnTimingClasses(), getBBFallenThrough(), getBranchDebugLoc(), getLayoutSuccessorProbThreshold(), getNewValueJumpOpcode(), getNextMachineInstr(), llvm::DOTGraphTraits< MachineBlockFrequencyInfo * >::getNodeLabel(), getReassignedChan(), llvm::MachineLoop::getTopBlock(), getTryAncestor(), HandleVRSaveUpdate(), HasArgumentDef(), hasTrivialSuccessor(), hoistAndMergeSGPRInits(), ImmInRange(), INITIALIZE_PASS(), insertCopy(), InsertLDR_STR(), isCopy(), isFunctionEntryBlock(), isIrreducibleCFG(), isSimpleIf(), isTerminalReg(), IsUnconditionalJump(), matchPair(), mergeOperations(), llvm::GraphTraits< MachineBlockFrequencyInfo * >::nodes_begin(), llvm::GraphTraits< MachineFunction * >::nodes_begin(), llvm::GraphTraits< const MachineFunction * >::nodes_begin(), opcodeEmitsNoInsts(), false::IntervalSorter::operator()(), printExtendedName(), ProfitableToMerge(), readsVCCZ(), regOverlapsSet(), removeExternalCFGEdges(), RemoveVRSaveCode(), RenumberBlocks(), llvm::PPCFrameLowering::replaceFPWithRealFP(), llvm::ARMTargetLowering::ReplaceNodeResults(), llvm::UnreachableBlockElimPass::run(), llvm::InsertNOPLoad::runOnMachineFunction(), llvm::DetectRoundChange::runOnMachineFunction(), llvm::FixAllFDIVSQRT::runOnMachineFunction(), llvm::ExecutionDepsFix::runOnMachineFunction(), shrinkScalarCompare(), llvm::TailDuplicator::tailDuplicateBlocks(), UseReg(), verify(), verifyCTRBranch(), verifyLeafProcRegUse(), VerifyPHIs(), and ~MachineFunction().

◆ begin() [2/2]

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

Definition at line 567 of file MachineFunction.h.

◆ callsEHReturn()

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

◆ callsUnwindInit()

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

◆ CloneMachineInstr()

MachineInstr * MachineFunction::CloneMachineInstr ( const MachineInstr Orig)

Create a new MachineInstr which is a copy of Orig, 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.

Bundling flags are reset.

Note: Clones a single instruction, not whole instruction bundles. Does not perform target specific adjustments; consider using TargetInstrInfo::duplicate() instead.

Definition at line 302 of file MachineFunction.cpp.

Referenced by CloneMachineInstrBundle(), llvm::TargetInstrInfo::commuteInstructionImpl(), llvm::SystemZInstrInfo::commuteInstructionImpl(), llvm::X86InstrInfo::commuteInstructionImpl(), llvm::RegBankSelect::getAnalysisUsage(), hasDataDependence(), insertDelayFiller(), MaySpeculate(), multipleIterations(), llvm::ARMBaseInstrInfo::reMaterialize(), llvm::X86InstrInfo::reMaterialize(), llvm::TargetInstrInfo::reMaterialize(), removePhis(), and llvm::SystemZInstrInfo::SystemZInstrInfo().

◆ CloneMachineInstrBundle()

MachineInstr & MachineFunction::CloneMachineInstrBundle ( MachineBasicBlock MBB,
MachineBasicBlock::iterator  InsertBefore,
const MachineInstr Orig 
)

Clones instruction or the whole instruction bundle Orig and insert into MBB before InsertBefore.

Note: Does not perform target specific adjustments; consider using TargetInstrInfo::duplicate() intead.

Definition at line 307 of file MachineFunction.cpp.

References llvm::MachineInstr::bundleWithPred(), CloneMachineInstr(), llvm::ilist_node_impl< OptionsT >::getIterator(), I, and llvm::MachineBasicBlock::insert().

Referenced by llvm::TargetInstrInfo::duplicate().

◆ createExternalSymbolName()

const char * MachineFunction::createExternalSymbolName ( StringRef  Name)

◆ CreateMachineBasicBlock()

MachineBasicBlock * MachineFunction::CreateMachineBasicBlock ( const BasicBlock bb = nullptr)

CreateMachineBasicBlock - Allocate a new MachineBasicBlock.

Allocate a new MachineBasicBlock.

Use this instead of `new MachineBasicBlock'.

Definition at line 346 of file MachineFunction.cpp.

Referenced by addExclusiveRegPair(), llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::analyzeArguments(), ComputeCommonTailLength(), createPHIsForCMOVsInSinkBB(), llvm::createWebAssemblyFixIrreducibleControlFlow(), llvm::PPCTargetLowering::EmitAtomicBinary(), emitBlockAfter(), emitClzero(), llvm::SparcTargetLowering::emitEHSjLjSetJmp(), llvm::PPCTargetLowering::emitEHSjLjSetJmp(), llvm::AArch64TargetLowering::EmitF128CSEL(), llvm::RISCVTargetLowering::EmitInstrWithCustomInserter(), llvm::BPFTargetLowering::EmitInstrWithCustomInserter(), llvm::AVRTargetLowering::EmitInstrWithCustomInserter(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitPartwordAtomicBinary(), emitPostSt(), llvm::MSP430TargetLowering::EmitShiftInstr(), emitXBegin(), llvm::SparcTargetLowering::expandSelectCC(), llvm::SelectionDAGBuilder::FindMergedConditions(), llvm::IRTranslator::getAnalysisUsage(), llvm::MipsTargetLowering::HandleByVal(), hasDataDependence(), hasOneExitNode(), INITIALIZE_PASS(), llvm::X86FrameLowering::inlineStackProbe(), isFunctionEntryBlock(), isImmValidForOpcode(), loadM0FromVGPR(), LowerFPToInt(), lowerVECTOR_SHUFFLE_VSHF(), makeImplicit(), opcodeEmitsNoInsts(), packCmovGroup(), PlaceLoopMarker(), removeExternalCFGEdges(), llvm::ARMTargetLowering::ReplaceNodeResults(), llvm::IRTranslator::runOnMachineFunction(), llvm::FunctionLoweringInfo::set(), split(), llvm::MachineBasicBlock::SplitCriticalEdge(), llvm::SITargetLowering::splitKillBlock(), toString(), trySequenceOfOnes(), and tryToElideArgumentCopy().

◆ CreateMachineInstr()

MachineInstr * MachineFunction::CreateMachineInstr ( const MCInstrDesc MCID,
const DebugLoc DL,
bool  NoImp = false 
)

◆ deallocateOperandArray()

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 693 of file MachineFunction.h.

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

Referenced by llvm::MachineInstr::addOperand(), and DeleteMachineInstr().

◆ DeleteMachineBasicBlock()

void MachineFunction::DeleteMachineBasicBlock ( MachineBasicBlock MBB)

DeleteMachineBasicBlock - Delete the given MachineBasicBlock.

Delete the given MachineBasicBlock.

Definition at line 353 of file MachineFunction.cpp.

References assert(), and llvm::MachineBasicBlock::getParent().

Referenced by llvm::MachineFunctionProperties::print(), and llvm::IRTranslator::runOnMachineFunction().

◆ DeleteMachineInstr()

void MachineFunction::DeleteMachineInstr ( MachineInstr MI)

◆ dump()

LLVM_DUMP_METHOD void MachineFunction::dump ( ) const

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

Definition at line 482 of file MachineFunction.cpp.

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

Referenced by llvm::A57ChainingConstraint::apply(), and checkRegOnlyPHIInputs().

◆ empty()

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

◆ end() [1/2]

iterator llvm::MachineFunction::end ( )
inline

Definition at line 568 of file MachineFunction.h.

Referenced by llvm::analyzeArguments(), BBHasFallthrough(), canFallThroughTo(), llvm::createR600ExpandSpecialInstrsPass(), llvm::createSILowerI1CopiesPass(), llvm::createWebAssemblyFixIrreducibleControlFlow(), llvm::createX86FixupLEAs(), llvm::createXCoreFrameToArgsOffsetEliminationPass(), llvm::AVRTargetLowering::EmitInstrWithCustomInserter(), llvm::AVRFrameLowering::emitPrologue(), llvm::MSP430FrameLowering::emitPrologue(), llvm::SystemZFrameLowering::emitPrologue(), llvm::WinException::endFunclet(), llvm::finalizeBundles(), findNextInsertLocation(), FixTail(), llvm::MachineLoop::getBottomBlock(), getBranchDebugLoc(), getLayoutSuccessorProbThreshold(), getNewValueJumpOpcode(), getNextBlock(), getNextMachineInstr(), llvm::DOTGraphTraits< MachineBlockFrequencyInfo * >::getNodeLabel(), getReassignedChan(), getTryAncestor(), llvm::guessSuccessors(), HandleVRSaveUpdate(), hasOneExitNode(), hasTrivialSuccessor(), hoistAndMergeSGPRInits(), ImmInRange(), llvm::InterferenceCache::init(), INITIALIZE_PASS(), insertCopy(), InsertLDR_STR(), llvm::SlotIndexes::insertMBBInMaps(), isCopy(), isSimpleIf(), isTerminalReg(), IsUnconditionalJump(), jumpTableFollowsTB(), matchPair(), mergeOperations(), llvm::GraphTraits< MachineBlockFrequencyInfo * >::nodes_end(), llvm::GraphTraits< MachineFunction * >::nodes_end(), llvm::GraphTraits< const MachineFunction * >::nodes_end(), opcodeEmitsNoInsts(), false::IntervalSorter::operator()(), PlaceLoopMarker(), printExtendedName(), readsVCCZ(), regOverlapsSet(), RemoveVRSaveCode(), RenumberBlocks(), llvm::PPCFrameLowering::replaceFPWithRealFP(), llvm::ARMTargetLowering::ReplaceNodeResults(), llvm::UnreachableBlockElimPass::run(), llvm::InsertNOPLoad::runOnMachineFunction(), llvm::DetectRoundChange::runOnMachineFunction(), llvm::FixAllFDIVSQRT::runOnMachineFunction(), shrinkScalarCompare(), llvm::MachineBasicBlock::SplitCriticalEdge(), llvm::TailDuplicator::tailDuplicateBlocks(), toString(), UseReg(), verify(), verifyCTRBranch(), verifyLeafProcRegUse(), VerifyPHIs(), and ~MachineFunction().

◆ end() [2/2]

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

Definition at line 569 of file MachineFunction.h.

◆ ensureAlignment()

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

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

Definition at line 445 of file MachineFunction.h.

Referenced by doesNotGeneratecode().

◆ erase() [1/2]

void llvm::MachineFunction::erase ( iterator  MBBI)
inline

◆ erase() [2/2]

void llvm::MachineFunction::erase ( MachineBasicBlock MBBI)
inline

◆ exposesReturnsTwice()

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 452 of file MachineFunction.h.

Referenced by computeWeight(), false::IntervalSorter::operator()(), and llvm::MIRPrinter::print().

◆ extractLoadMemRefs()

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 407 of file MachineFunction.cpp.

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

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

◆ extractStoreMemRefs()

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 441 of file MachineFunction.cpp.

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

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

◆ front() [1/2]

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

Definition at line 578 of file MachineFunction.h.

Referenced by AssignProtectedObjSet(), llvm::WinException::beginFunction(), llvm::SIInstrInfo::calculateLDSSpillAddress(), createBBSelectReg(), llvm::createSIWholeQuadModePass(), llvm::createWebAssemblyArgumentMove(), llvm::createWebAssemblyRegNumbering(), llvm::createX86PadShortFunctions(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), llvm::HexagonDAGToDAGISel::EmitFunctionEntryCode(), emitGPDisp(), llvm::Mips16FrameLowering::emitPrologue(), llvm::NVPTXFrameLowering::emitPrologue(), llvm::MipsSEFrameLowering::emitPrologue(), llvm::SparcFrameLowering::emitPrologue(), llvm::RISCVFrameLowering::emitPrologue(), llvm::XCoreFrameLowering::emitPrologue(), llvm::MSP430FrameLowering::emitPrologue(), llvm::HexagonFrameLowering::emitPrologue(), llvm::LanaiFrameLowering::emitPrologue(), llvm::SystemZFrameLowering::emitPrologue(), findScratchNonCalleeSaveRegister(), llvm::GraphTraits< MachineBlockFrequencyInfo * >::getEntryNode(), llvm::GraphTraits< MachineFunction * >::getEntryNode(), llvm::GraphTraits< const MachineFunction * >::getEntryNode(), getFPReg(), llvm::getFuncletMembership(), llvm::SparcInstrInfo::getGlobalBaseReg(), getLayoutSuccessorProbThreshold(), llvm::X86InstrInfo::getSerializableDirectMachineOperandTargetFlags(), getTryAncestor(), hasTrivialSuccessor(), PlaceBlockMarker(), PrevCrossBBInst(), llvm::X86FrameLowering::processFunctionBeforeFrameFinalized(), readsVCCZ(), llvm::PPCFrameLowering::replaceFPWithRealFP(), llvm::rdf::CopyPropagation::run(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::IRTranslator::runOnMachineFunction(), llvm::AVRDynAllocaSR::runOnMachineFunction(), llvm::Mips16FrameLowering::spillCalleeSavedRegisters(), llvm::MipsSEFrameLowering::spillCalleeSavedRegisters(), updateLiveness(), and verify().

◆ front() [2/2]

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

Definition at line 579 of file MachineFunction.h.

◆ getAlignment()

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

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

Definition at line 439 of file MachineFunction.h.

Referenced by llvm::WinException::beginFunclet(), llvm::AsmPrinter::EmitDebugThreadLocal(), llvm::MipsAsmPrinter::EmitFunctionEntryLabel(), INITIALIZE_PASS(), and llvm::MIRPrinter::print().

◆ getBlockNumbered()

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::getNumber method, this method provides the inverse mapping.

Definition at line 501 of file MachineFunction.h.

References assert(), and N.

Referenced by llvm::LiveRangeCalc::calculateValues(), llvm::HexagonFrameLowering::emitPrologue(), llvm::SplitAnalysis::getLastSplitPoint(), llvm::InterferenceCache::init(), and llvm::MachineTraceMetrics::Ensemble::verify().

◆ getCallSiteBeginLabel()

unsigned llvm::MachineFunction::getCallSiteBeginLabel ( MCSymbol BeginLabel) const
inline

◆ getCallSiteLandingPad()

SmallVectorImpl<unsigned>& llvm::MachineFunction::getCallSiteLandingPad ( MCSymbol Sym)
inline

Get the call site indexes for a landing pad EH symbol.

Definition at line 810 of file MachineFunction.h.

References assert().

Referenced by llvm::ARMTargetLowering::ReplaceNodeResults().

◆ getCodeViewAnnotations()

ArrayRef<std::pair<MCSymbol *, MDNode *> > llvm::MachineFunction::getCodeViewAnnotations ( ) const
inline

Definition at line 843 of file MachineFunction.h.

Referenced by llvm::CodeViewDebug::endFunctionImpl().

◆ getConstantPool() [1/2]

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

◆ getConstantPool() [2/2]

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

Definition at line 430 of file MachineFunction.h.

References llvm::ISD::ConstantPool.

◆ getContext()

MCContext& llvm::MachineFunction::getContext ( ) const
inline

◆ getDataLayout()

const DataLayout & MachineFunction::getDataLayout ( ) const

Return the DataLayout attached to the Module associated to this MF.

Definition at line 230 of file MachineFunction.cpp.

References llvm::Module::getDataLayout(), getOrCreateJumpTableInfo(), and llvm::GlobalValue::getParent().

Referenced by llvm::X86TargetLowering::BuildFILD(), llvm::ScheduleDAGInstrs::buildSchedGraph(), CallingConvSupported(), canLowerToLDG(), llvm::CC_ARM_AAPCS_Custom_Aggregate(), CC_RISCV(), llvm::FunctionLoweringInfo::ComputePHILiveOutRegInfo(), countOperands(), createPHIsForCMOVsInSinkBB(), llvm::FunctionLoweringInfo::CreateRegs(), createSwiftErrorEntriesInEntryBlock(), llvm::SparcTargetLowering::emitEHSjLjLongJmp(), llvm::PPCTargetLowering::emitEHSjLjLongJmp(), llvm::SparcTargetLowering::emitEHSjLjSetJmp(), llvm::PPCTargetLowering::emitEHSjLjSetJmp(), llvm::MipsAsmPrinter::EmitInstruction(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::AsmPrinter::EmitJumpTableInfo(), llvm::TargetLoweringBase::emitPatchPoint(), emitPostSt(), llvm::AArch64FrameLowering::emitPrologue(), EnsureStackAlignment(), llvm::InstructionSelector::executeMatchTable(), llvm::X86AsmPrinter::GetCPISymbol(), llvm::SelectionDAG::getDataLayout(), getDwarfRegNum(), llvm::PPCFunctionInfo::getGlobalEPSymbol(), getJTISymbol(), getLeaOP(), llvm::PPCFunctionInfo::getLocalEPSymbol(), llvm::FunctionLoweringInfo::getOrCreateSwiftErrorVReg(), llvm::FunctionLoweringInfo::getOrCreateSwiftErrorVRegDefAt(), getPICBaseSymbol(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), llvm::PPCFunctionInfo::getPICOffsetSymbol(), llvm::MSP430TargetLowering::getReturnAddressFrameIndex(), llvm::AsmPrinter::GetSizeOfEncodedValue(), llvm::TargetInstrInfo::getStackSlotRange(), llvm::PPCFunctionInfo::getTOCOffsetSymbol(), getUnderlyingObjects(), llvm::PPCTargetLowering::isLegalAddressingMode(), isSupportedType(), isXor1OfSetCC(), llvm::ARMLegalizerInfo::legalizeCustom(), llvm::ARMCallLowering::lowerCall(), llvm::HexagonTargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), lowerFCOPYSIGN64(), llvm::X86CallLowering::lowerFormalArguments(), llvm::ARMCallLowering::lowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::BPFTargetLowering::LowerOperation(), llvm::X86CallLowering::lowerReturn(), LowerShiftParts(), MachineFunction(), llvm::X86TargetLowering::markLibCallAttributes(), Passv64i1ArgInRegs(), llvm::PPCTargetLowering::PerformDAGCombine(), PrepareCall(), llvm::AsmPrinter::PrintSpecial(), processDbgDeclares(), propagateSwiftErrorVRegs(), llvm::ARMTargetLowering::ReplaceNodeResults(), llvm::FunctionLoweringInfo::set(), tryToElideArgumentCopy(), unpackFromMemLoc(), and llvm::X86CallLowering::X86CallLowering().

◆ getFilterIDFor()

int MachineFunction::getFilterIDFor ( std::vector< unsigned > &  TyIds)

Return the id of the filter encoded by TyIds. This is function wide.

Definition at line 765 of file MachineFunction.cpp.

References E, and I.

Referenced by addFilterTypeInfo().

◆ getFilterIds()

const std::vector<unsigned>& llvm::MachineFunction::getFilterIds ( ) const
inline

Return a reference to the typeids encoding filters used in the current function.

Definition at line 854 of file MachineFunction.h.

Referenced by llvm::EHStreamer::computeActionsTable(), llvm::EHStreamer::emitExceptionTable(), llvm::EHStreamer::emitTypeInfos(), and llvm::ARMException::endFunction().

◆ getFrameInfo() [1/2]

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 413 of file MachineFunction.h.

Referenced by llvm::AArch64CallLowering::AArch64CallLowering(), addCalleeSavedRegs(), addExclusiveRegPair(), llvm::addFrameReference(), llvm::RegsForValue::AddInlineAsmOperands(), llvm::LiveRegUnits::addLiveOuts(), llvm::LivePhysRegs::addLiveOuts(), llvm::LivePhysRegs::addLiveOutsNoPristines(), llvm::PPCFrameLowering::addScavengingSpillSlot(), llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::X86FrameLowering::adjustForSegmentedStacks(), AdjustStackOffset(), llvm::SIMachineFunctionInfo::allocateSGPRSpillToVGPR(), llvm::StatepointLoweringState::allocateStackSlot(), llvm::analyzeArguments(), AnalyzeReturnValues(), llvm::ARCFrameLowering::assignCalleeSavedSpillSlots(), llvm::X86FrameLowering::assignCalleeSavedSpillSlots(), llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), assignCalleeSavedSpillSlots(), AssignProtectedObjSet(), llvm::VirtRegMap::assignVirt2Phys(), llvm::VirtRegMap::assignVirt2StackSlot(), llvm::X86TargetLowering::BuildFILD(), buildMUBUFOffsetLoadStore(), calculateSetFPREG(), CalculateTailCallArgDest(), CallingConvSupported(), llvm::AArch64RegisterInfo::cannotEliminateFrame(), llvm::ARMBaseRegisterInfo::cannotEliminateFrame(), llvm::X86RegisterInfo::canRealignStack(), llvm::ARMFrameLowering::canSimplifyCallFramePseudos(), llvm::Thumb1FrameLowering::canUseAsEpilogue(), llvm::AArch64FrameLowering::canUseAsPrologue(), llvm::AArch64FrameLowering::canUseRedZone(), CC_Lanai32_VarArg(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), computeCalleeSaveRegisterPairs(), llvm::MIRPrinter::convertStackObjects(), llvm::MipsFunctionInfo::createEhDataRegsFI(), llvm::XCoreFunctionInfo::createEHSpillSlot(), llvm::XCoreFunctionInfo::createFPSpillSlot(), llvm::MipsFunctionInfo::createISRRegFI(), llvm::createLibcall(), llvm::XCoreFunctionInfo::createLRSpillSlot(), createPHIsForCMOVsInSinkBB(), llvm::SelectionDAG::CreateStackTemporary(), llvm::createXCoreFrameToArgsOffsetEliminationPass(), llvm::HexagonDAGToDAGISel::DetectUseSxtw(), llvm::SystemZFrameLowering::determineCalleeSaves(), llvm::ARCFrameLowering::determineCalleeSaves(), llvm::MipsSEFrameLowering::determineCalleeSaves(), llvm::XCoreFrameLowering::determineCalleeSaves(), llvm::LanaiFrameLowering::determineCalleeSaves(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::HexagonFrameLowering::determineCalleeSaves(), llvm::X86FrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::determineFrameLayout(), llvm::TargetOptions::DisableFramePointerElim(), llvm::WebAssemblyFrameLowering::eliminateCallFramePseudoInstr(), llvm::BPFRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::WebAssemblyRegisterInfo::eliminateFrameIndex(), llvm::LanaiRegisterInfo::eliminateFrameIndex(), llvm::AVRRegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::ARCRegisterInfo::eliminateFrameIndex(), llvm::NVPTXRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::MipsRegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), emitAlignedDPRCS2Spills(), llvm::AArch64FrameLowering::emitCalleeSavedFrameMoves(), llvm::X86FrameLowering::emitCalleeSavedFrameMoves(), emitComments(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), llvm::AVRFrameLowering::emitEpilogue(), llvm::Thumb1FrameLowering::emitEpilogue(), llvm::Mips16FrameLowering::emitEpilogue(), llvm::MipsSEFrameLowering::emitEpilogue(), llvm::SparcFrameLowering::emitEpilogue(), llvm::RISCVFrameLowering::emitEpilogue(), llvm::MSP430FrameLowering::emitEpilogue(), llvm::XCoreFrameLowering::emitEpilogue(), llvm::ARMFrameLowering::emitEpilogue(), llvm::SIFrameLowering::emitEpilogue(), llvm::AArch64FrameLowering::emitEpilogue(), llvm::ARCFrameLowering::emitEpilogue(), llvm::WebAssemblyFrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitEpilogue(), llvm::MipsAsmPrinter::emitFrameDirective(), llvm::HexagonDAGToDAGISel::EmitFunctionEntryCode(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::TargetLoweringBase::emitPatchPoint(), llvm::AVRFrameLowering::emitPrologue(), llvm::Thumb1FrameLowering::emitPrologue(), llvm::Mips16FrameLowering::emitPrologue(), llvm::NVPTXFrameLowering::emitPrologue(), llvm::MipsSEFrameLowering::emitPrologue(), llvm::SparcFrameLowering::emitPrologue(), llvm::RISCVFrameLowering::emitPrologue(), llvm::XCoreFrameLowering::emitPrologue(), llvm::MSP430FrameLowering::emitPrologue(), llvm::SIFrameLowering::emitPrologue(), llvm::ARMFrameLowering::emitPrologue(), llvm::ARCFrameLowering::emitPrologue(), llvm::AArch64FrameLowering::emitPrologue(), llvm::HexagonFrameLowering::emitPrologue(), llvm::WebAssemblyFrameLowering::emitPrologue(), llvm::LanaiFrameLowering::emitPrologue(), llvm::SystemZFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), llvm::PPCFrameLowering::emitPrologue(), llvm::AsmPrinter::emitStackSizeSection(), EmitTailCallStoreFPAndRetAddr(), EmitTailCallStoreRetAddr(), llvm::WinException::endFunclet(), llvm::CCState::ensureMaxAlignment(), EnsureStackAlignment(), llvm::BaseIndexOffset::equalBaseIndex(), llvm::MipsFrameLowering::estimateStackSize(), llvm::SITargetLowering::finalizeLowering(), llvm::ARMTargetLowering::finalizeLowering(), llvm::X86TargetLowering::finalizeLowering(), findBaseOffset(), findCalledFunction(), findUser(), fixupFuncForFI(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::TargetInstrInfo::genAlternativeCodeSequence(), getAbsolute(), getAddressForMemoryInput(), llvm::HexagonFrameLowering::getAlignaInstr(), llvm::SystemZFrameLowering::getAllocatedStackSize(), llvm::IRTranslator::getAnalysisUsage(), getDwarfRegNum(), llvm::HexagonTargetLowering::GetDynamicTLSAddr(), getFRAMEADDR(), getFrameIndexMMO(), getFrameIndexOperandNum(), llvm::R600FrameLowering::getFrameIndexReference(), llvm::MipsSEFrameLowering::getFrameIndexReference(), llvm::RISCVFrameLowering::getFrameIndexReference(), llvm::SIFrameLowering::getFrameIndexReference(), llvm::SparcFrameLowering::getFrameIndexReference(), llvm::SystemZFrameLowering::getFrameIndexReference(), llvm::HexagonFrameLowering::getFrameIndexReference(), llvm::X86FrameLowering::getFrameIndexReference(), llvm::TargetFrameLowering::getFrameIndexReference(), llvm::X86FrameLowering::getFrameIndexReferencePreferSP(), llvm::X86FrameLowering::getFrameIndexReferenceSP(), llvm::R600InstrInfo::getIndirectIndexBegin(), llvm::R600InstrInfo::getIndirectIndexEnd(), llvm::ARMTargetLowering::getJumpTableEncoding(), getLoadStoreOffsetAlign(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), llvm::MipsInstrInfo::GetMemOperand(), getMemsetStores(), llvm::MipsFunctionInfo::getMoveF64ViaSpillFI(), getMOVL(), getNextIntArgReg(), getNumExtraSGPRs(), getOpenCLAlignment(), llvm::MipsTargetLowering::getOpndList(), llvm::ARMBaseRegisterInfo::getRegPressureLimit(), llvm::MipsRegisterInfo::getReservedRegs(), llvm::MSP430TargetLowering::getReturnAddressFrameIndex(), llvm::X86TargetLowering::getReturnAddressFrameIndex(), GetTLSADDR(), getUnderlyingArgReg(), getVectorCompareInfo(), llvm::LanaiRegisterInfo::hasBasePointer(), llvm::AArch64RegisterInfo::hasBasePointer(), llvm::X86RegisterInfo::hasBasePointer(), llvm::ARMBaseRegisterInfo::hasBasePointer(), llvm::MipsFrameLowering::hasBP(), llvm::MipsFrameLowering::hasFP(), llvm::SparcFrameLowering::hasFP(), llvm::RISCVFrameLowering::hasFP(), llvm::WebAssemblyFrameLowering::hasFP(), llvm::SystemZFrameLowering::hasFP(), llvm::MSP430FrameLowering::hasFP(), llvm::ARMFrameLowering::hasFP(), llvm::XCoreFrameLowering::hasFP(), llvm::ARCFrameLowering::hasFP(), llvm::AArch64FrameLowering::hasFP(), llvm::SIFrameLowering::hasFP(), llvm::HexagonFrameLowering::hasFP(), llvm::PPCFrameLowering::hasFP(), llvm::X86FrameLowering::hasFP(), llvm::AVRFrameLowering::hasReservedCallFrame(), llvm::SparcFrameLowering::hasReservedCallFrame(), llvm::Thumb1FrameLowering::hasReservedCallFrame(), llvm::Mips16FrameLowering::hasReservedCallFrame(), llvm::MipsSEFrameLowering::hasReservedCallFrame(), llvm::WebAssemblyFrameLowering::hasReservedCallFrame(), llvm::MSP430FrameLowering::hasReservedCallFrame(), llvm::ARMFrameLowering::hasReservedCallFrame(), llvm::AArch64FrameLowering::hasReservedCallFrame(), llvm::X86FrameLowering::hasReservedCallFrame(), llvm::SIFrameLowering::hasSP(), hasTiedDef(), haveEfficientBuildVectorPattern(), INITIALIZE_PASS(), llvm::MIRParserImpl::initializeFrameInfo(), llvm::HexagonFrameLowering::insertCFIInstructions(), insertCSRRestores(), InsertLDR_STR(), llvm::Mips16RegisterInfo::intRegClass(), isConsecutiveLSLoc(), llvm::MachineInstr::isDereferenceableInvariantLoad(), isFuncletReturnInstr(), isImplicitOperandIn(), llvm::XCoreFunctionInfo::isLargeFrame(), llvm::ARCTargetLowering::isLegalAddressingMode(), llvm::PPCTargetLowering::isLegalAddressingMode(), llvm::SelectionDAGISel::isOrEquivalentToAdd(), isSortedByValueNo(), llvm::SystemZInstrInfo::isStackSlotCopy(), llvm::SITargetLowering::isTypeDesirableForOp(), llvm::Thumb1InstrInfo::loadRegFromStackSlot(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), llvm::MSP430InstrInfo::loadRegFromStackSlot(), llvm::XCoreInstrInfo::loadRegFromStackSlot(), llvm::ARCInstrInfo::loadRegFromStackSlot(), llvm::AVRInstrInfo::loadRegFromStackSlot(), llvm::SparcInstrInfo::loadRegFromStackSlot(), llvm::HexagonInstrInfo::loadRegFromStackSlot(), llvm::SIInstrInfo::loadRegFromStackSlot(), llvm::PPCInstrInfo::loadRegFromStackSlot(), llvm::ARMBaseInstrInfo::loadRegFromStackSlot(), llvm::AArch64InstrInfo::loadRegFromStackSlot(), llvm::AMDGPUTargetLowering::loadStackInputValue(), lookupCandidateBaseReg(), LoopIsOuterMostWithPredecessor(), LowerADDSUBCARRY(), LowerADJUST_TRAMPOLINE(), LowerAsSplatVectorLoad(), llvm::HexagonTargetLowering::LowerCall(), llvm::SITargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), lowerCallResult(), LowerCallResult(), llvm::TargetLowering::LowerCallTo(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), llvm::PPCRegisterInfo::lowerDynamicAreaOffset(), llvm::SparcTargetLowering::LowerF128_LibCallArg(), llvm::SparcTargetLowering::LowerF128Op(), lowerFCOPYSIGN64(), llvm::AArch64CallLowering::lowerFormalArguments(), llvm::Nios2TargetLowering::LowerFormalArguments(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::LanaiTargetLowering::LowerFRAMEADDR(), llvm::MSP430TargetLowering::LowerFRAMEADDR(), llvm::HexagonTargetLowering::LowerFRAMEADDR(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), LowerINTRINSIC_W_CHAIN(), llvm::X86CallLowering::lowerReturn(), llvm::ARMCallLowering::lowerReturn(), llvm::LanaiTargetLowering::LowerRETURNADDR(), llvm::MSP430TargetLowering::LowerRETURNADDR(), llvm::HexagonTargetLowering::LowerRETURNADDR(), LowerRETURNADDR(), LowerShiftParts(), llvm::MipsTargetLowering::lowerSTORE(), llvm::TargetLowering::LowerToTLSEmulatedModel(), LowerToTLSExecModel(), lowerUINT_TO_FP_vXi32(), LowerVASTART(), LowerVectorINT_TO_FP(), llvm::SparcTargetLowering::makeAddress(), llvm::Mips16InstrInfo::makeFrame(), MatchingStackOffset(), matchPair(), llvm::MachineInstr::mayAlias(), mayTailCallThisCC(), llvm::HexagonFrameLowering::needsAligna(), llvm::PPCFrameLowering::needsFP(), llvm::AArch64RegisterInfo::needsFrameBaseReg(), llvm::ARMBaseRegisterInfo::needsFrameBaseReg(), llvm::X86FrameLowering::needsFrameIndexResolution(), llvm::TargetFrameLowering::needsFrameIndexResolution(), llvm::TargetRegisterInfo::needsStackRealignment(), false::IntervalSorter::operator()(), llvm::X86FrameLowering::orderFrameObjects(), parsePhysicalReg(), PrepareCall(), llvm::MIRPrinter::print(), llvm::MipsAsmPrinter::printSavedRegsBitmask(), llvm::SIFrameLowering::processFunctionBeforeFrameFinalized(), llvm::SystemZFrameLowering::processFunctionBeforeFrameFinalized(), llvm::MSP430FrameLowering::processFunctionBeforeFrameFinalized(), llvm::XCoreFrameLowering::processFunctionBeforeFrameFinalized(), llvm::ARCFrameLowering::processFunctionBeforeFrameFinalized(), llvm::HexagonFrameLowering::processFunctionBeforeFrameFinalized(), llvm::PPCFrameLowering::processFunctionBeforeFrameFinalized(), llvm::X86FrameLowering::processFunctionBeforeFrameFinalized(), llvm::PPCFrameLowering::replaceFPWithRealFP(), llvm::ARMTargetLowering::ReplaceNodeResults(), llvm::SIRegisterInfo::requiresFrameIndexReplacementScavenging(), llvm::SIRegisterInfo::requiresFrameIndexScavenging(), llvm::SIRegisterInfo::requiresRegisterScavenging(), reservePrivateMemoryRegs(), llvm::AArch64FrameLowering::resolveFrameIndexReference(), llvm::ARMFrameLowering::ResolveFrameIndexReference(), llvm::Mips16InstrInfo::restoreFrame(), llvm::SIRegisterInfo::restoreSGPR(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::AVRFrameAnalyzer::runOnMachineFunction(), llvm::AVRDynAllocaSR::runOnMachineFunction(), llvm::HexagonDAGToDAGISel::SelectAddrFI(), llvm::HexagonDAGToDAGISel::SelectFrameIndex(), llvm::FastISel::selectPatchpoint(), llvm::FastISel::selectStackmap(), llvm::FunctionLoweringInfo::set(), llvm::SIMachineFunctionInfo::SIMachineFunctionInfo(), llvm::Mips16FrameLowering::spillCalleeSavedRegisters(), llvm::MipsSEFrameLowering::spillCalleeSavedRegisters(), spillIncomingStatepointValue(), llvm::SIRegisterInfo::spillSGPR(), llvm::CriticalAntiDepBreaker::StartBlock(), llvm::AggressiveAntiDepBreaker::StartBlock(), llvm::Thumb1InstrInfo::storeRegToStackSlot(), llvm::Thumb2InstrInfo::storeRegToStackSlot(), llvm::MSP430InstrInfo::storeRegToStackSlot(), llvm::XCoreInstrInfo::storeRegToStackSlot(), llvm::ARCInstrInfo::storeRegToStackSlot(), llvm::AVRInstrInfo::storeRegToStackSlot(), llvm::SparcInstrInfo::storeRegToStackSlot(), llvm::HexagonInstrInfo::storeRegToStackSlot(), llvm::SIInstrInfo::storeRegToStackSlot(), llvm::PPCInstrInfo::storeRegToStackSlot(), llvm::ARMBaseInstrInfo::storeRegToStackSlot(), llvm::AArch64InstrInfo::storeRegToStackSlot(), llvm::X86InstrInfo::storeRegToStackSlot(), llvm::SystemZInstrInfo::SystemZInstrInfo(), tryToElideArgumentCopy(), UnpackFromArgumentSlot(), unpackFromMemLoc(), updateLiveness(), llvm::HexagonPacketizerList::useCalleesSP(), llvm::HexagonPacketizerList::useCallersSP(), llvm::AArch64RegisterInfo::useFPForScavengingIndex(), verifyLeafProcRegUse(), llvm::SelectionDAGBuilder::visitSPDescriptorParent(), WindowsRequiresStackProbe(), and X86ChooseCmpImmediateOpcode().

◆ getFrameInfo() [2/2]

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

Definition at line 414 of file MachineFunction.h.

◆ getFrameInstructions()

const std::vector<MCCFIInstruction>& llvm::MachineFunction::getFrameInstructions ( ) const
inline

Returns a reference to a list of cfi instructions in the function's prologue.

Used to construct frame maps for debug and exception handling comsumers.

Definition at line 743 of file MachineFunction.h.

Referenced by llvm::AsmPrinter::emitCFIInstruction(), and llvm::MIPrinter::print().

◆ getFunction()

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

getFunction - Return the LLVM function that this machine code represents

Definition at line 383 of file MachineFunction.h.

References getName().

Referenced by addExclusiveRegPair(), adjCycles(), llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::NVPTXTargetLowering::allowUnsafeFPMath(), llvm::analyzeArguments(), AnalyzeReturnValues(), areCallingConvEligibleForTCO_64SVR4(), areCandidatesToMergeOrPair(), llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), AssignProtectedObjSet(), llvm::DwarfCFIException::beginFragment(), llvm::WinException::beginFunclet(), llvm::DwarfCFIException::beginFunction(), llvm::WinException::beginFunction(), llvm::DebugHandlerBase::beginFunction(), llvm::CodeViewDebug::beginFunctionImpl(), llvm::DwarfDebug::beginFunctionImpl(), llvm::DwarfDebug::beginInstruction(), llvm::MachineIRBuilder::buildConstant(), BuildInstOrderMap(), llvm::TargetLowering::BuildSDIVPow2(), llvm::SIInstrInfo::calculateLDSSpillAddress(), calculateSetFPREG(), callHasRegMask(), CallingConvSupported(), canLowerToLDG(), llvm::AArch64TargetLowering::canMergeStoresTo(), llvm::X86TargetLowering::canMergeStoresTo(), canMoveInstsAcrossMemOp(), CanMovePastDMB(), llvm::TargetRegisterInfo::canRealignStack(), llvm::AArch64FrameLowering::canUseRedZone(), CC_Lanai32_VarArg(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), checkNumAlignedDPRCS2Regs(), llvm::rdf::DataFlowGraph::DefStack::clear_block(), CombineCVTAToLocal(), combineFMinNumFMaxNum(), combineMul(), combineOr(), combineStore(), computeCalleeSaveRegisterPairs(), ConvertImplicitDefToConstZero(), llvm::createAArch64ConditionalCompares(), llvm::createHexagonHardwareLoops(), llvm::XCoreFunctionInfo::createLRSpillSlot(), createPHIsForCMOVsInSinkBB(), llvm::createRegUsageInfoCollector(), llvm::createSIWholeQuadModePass(), llvm::createSystemZLDCleanupPass(), llvm::createX86FixupBWInsts(), llvm::createX86FixupLEAs(), llvm::createX86GlobalBaseRegPass(), llvm::createX86OptimizeLEAs(), llvm::createX86PadShortFunctions(), llvm::SystemZFrameLowering::determineCalleeSaves(), llvm::ARCFrameLowering::determineCalleeSaves(), llvm::XCoreFrameLowering::determineCalleeSaves(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::TargetFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::determineFrameLayout(), llvm::TargetOptions::DisableFramePointerElim(), doesNotGeneratecode(), duplicateCPV(), llvm::ARCFrameLowering::eliminateCallFramePseudoInstr(), llvm::X86FrameLowering::eliminateCallFramePseudoInstr(), llvm::PPCRegisterInfo::eliminateFrameIndex(), emitBasicBlockLoopComments(), emitClzero(), llvm::AsmPrinter::EmitDebugThreadLocal(), llvm::PPCTargetLowering::emitEHSjLjSetJmp(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), llvm::AVRFrameLowering::emitEpilogue(), llvm::MipsSEFrameLowering::emitEpilogue(), llvm::XCoreFrameLowering::emitEpilogue(), llvm::ARMFrameLowering::emitEpilogue(), llvm::AArch64FrameLowering::emitEpilogue(), llvm::ARCFrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitEpilogue(), llvm::WebAssemblyAsmPrinter::EmitFunctionBodyStart(), llvm::MipsAsmPrinter::EmitFunctionBodyStart(), llvm::AMDGPUAsmPrinter::EmitFunctionBodyStart(), llvm::AMDGPUAsmPrinter::EmitFunctionEntryLabel(), EmitGCCInlineAsmStr(), llvm::AMDGPUAsmPrinter::EmitInstruction(), llvm::AsmPrinter::EmitJumpTableInfo(), EmitKTEST(), llvm::NVPTXAsmPrinter::emitLineNumberAsDotLoc(), llvm::ARMBaseRegisterInfo::emitLoadConstPool(), emitNonHSAIntrinsicError(), emitPostSt(), llvm::AVRFrameLowering::emitPrologue(), llvm::MipsSEFrameLowering::emitPrologue(), llvm::XCoreFrameLowering::emitPrologue(), llvm::ARMFrameLowering::emitPrologue(), llvm::ARCFrameLowering::emitPrologue(), llvm::AArch64FrameLowering::emitPrologue(), llvm::SystemZFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), llvm::PPCFrameLowering::emitPrologue(), emitRemovedIntrinsicError(), llvm::AsmPrinter::emitStackSizeSection(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), emitThumb1LoadConstPool(), emitThumb2LoadConstPool(), llvm::AsmPrinter::emitXRayTable(), llvm::AMDGPUSubtarget::enableIEEEBit(), llvm::X86FrameLowering::enableShrinkWrapping(), llvm::WinException::endFunclet(), llvm::ARMException::endFunction(), llvm::WinException::endFunction(), llvm::CodeViewDebug::endFunctionImpl(), llvm::DwarfDebug::endFunctionImpl(), EnsureStackAlignment(), errorUnsupported(), ExpandMOVImmSExti8(), ExpandPowI(), fail(), findCalledFunction(), findDeadCallerSavedReg(), findIncDecAfter(), llvm::LexicalScopes::findLexicalScope(), findSingleRegDef(), findUnwindDestinations(), findUser(), llvm::X86InstrInfo::foldMemoryOperandImpl(), get64BitArgumentXMMs(), getAbsolute(), llvm::IRTranslator::getAnalysisUsage(), getBranchDebugLoc(), llvm::MSP430RegisterInfo::getCalleeSavedRegs(), llvm::AVRRegisterInfo::getCalleeSavedRegs(), llvm::AArch64RegisterInfo::getCalleeSavedRegs(), llvm::MipsRegisterInfo::getCalleeSavedRegs(), llvm::SIRegisterInfo::getCalleeSavedRegs(), llvm::SystemZRegisterInfo::getCalleeSavedRegs(), llvm::PPCRegisterInfo::getCalleeSavedRegs(), llvm::X86RegisterInfo::getCalleeSavedRegs(), llvm::ARMBaseRegisterInfo::getCalleeSavedRegs(), llvm::AArch64RegisterInfo::getCalleeSavedRegsViaCopy(), llvm::PPCRegisterInfo::getCalleeSavedRegsViaCopy(), llvm::X86RegisterInfo::getCalleeSavedRegsViaCopy(), llvm::ARMBaseRegisterInfo::getCalleeSavedRegsViaCopy(), llvm::AArch64RegisterInfo::getCallPreservedMask(), llvm::SystemZRegisterInfo::getCallPreservedMask(), llvm::X86RegisterInfo::getCallPreservedMask(), llvm::ARMBaseRegisterInfo::getCallPreservedMask(), getCmpForPseudo(), llvm::SelectionDAG::getConstantPool(), llvm::ARMTargetLowering::getExceptionSelectorRegister(), getFPReg(), llvm::getFuncletMembership(), llvm::X86RegisterInfo::getGPRsForTailCall(), getIRBlockFromSlot(), llvm::ARMTargetLowering::getJumpTableEncoding(), getLayoutSuccessorProbThreshold(), getLoadStackGuard(), llvm::SISubtarget::getMaxNumSGPRs(), llvm::SISubtarget::getMaxNumVGPRs(), llvm::X86TargetLowering::getMaxSupportedInterleaveFactor(), getMaxWaves(), getMOVL(), getName(), getNewValueJumpOpcode(), getNumExtraSGPRs(), llvm::AMDGPUSubtarget::getOccupancyWithLocalMemSize(), getOModValue(), getOpenCLAlignment(), llvm::ARMBaseInstrInfo::getOperandLatency(), llvm::ARMTargetLowering::getOptimalMemOpType(), llvm::AArch64TargetLowering::getOptimalMemOpType(), llvm::X86TargetLowering::getOptimalMemOpType(), llvm::PPCTargetLowering::getOptimalMemOpType(), getOrExecSource(), llvm::AArch64InstrInfo::getOutliningType(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), getReassignedChan(), getRecipEstimateForFunc(), llvm::SIRegisterInfo::getRegPressureLimit(), llvm::MipsRegisterInfo::getReservedRegs(), llvm::X86RegisterInfo::getReservedRegs(), getRsrcReg(), GetScratchRegister(), llvm::MipsCCState::getSpecialCallingConvForCallee(), llvm::SparcTargetLowering::getSRetArgSize(), llvm::TargetFrameLowering::getStackAlignmentSkew(), llvm::X86TargetLowering::getStackProbeSymbolName(), getStartOrEndSlot(), getStoreTarget(), getSubOpcode(), getTag(), getUnderlyingArgReg(), llvm::CallLowering::handleAssignments(), handleNormalInst(), hasDebugInfo(), llvm::HexagonFrameLowering::hasFP(), HasNestArgument(), llvm::WebAssemblyFrameLowering::hasReservedCallFrame(), hasReturnsTwiceAttr(), llvm::ARMTargetLowering::hasStandaloneRem(), hasTiedDef(), llvm::HexagonEvaluator::HexagonEvaluator(), llvm::NVPTXAsmPrinter::ignoreLoc(), llvm::SelectionDAG::init(), llvm::LexicalScopes::initialize(), INITIALIZE_PASS(), llvm::MIRParserImpl::initializeConstantPool(), llvm::MIRParserImpl::initializeFrameInfo(), initSlots2Values(), InsertBitToMaskVector(), llvm::AArch64TargetLowering::insertCopiesSplitCSR(), llvm::PPCTargetLowering::insertCopiesSplitCSR(), insertCopy(), insertCSRRestores(), insertDeleteInstructions(), InsertLDR_STR(), isCompareZero(), isDebug(), llvm::HexagonTargetLowering::IsEligibleForTailCallOptimization(), llvm::SITargetLowering::isEligibleForTailCallOptimization(), isFpMulInstruction(), isFuncletReturnInstr(), llvm::AArch64InstrInfo::isFunctionSafeToOutlineFrom(), llvm::X86InstrInfo::isFunctionSafeToOutlineFrom(), isHardwareLoop(), isImplicitOperandIn(), llvm::TargetLowering::isInTailCallPosition(), llvm::X86TargetLowering::isIntDivCheap(), isIrreducibleCFG(), llvm::PPCTargetLowering::isLegalAddressingMode(), isLiveOut(), llvm::AMDGPUSubtarget::isMesaGfxShader(), llvm::AMDGPUSubtarget::isMesaKernel(), isMinSize(), isNoReturnDef(), isOptNone(), isOptSize(), llvm::ARMBaseInstrInfo::isProfitableToIfCvt(), llvm::ARMTargetLowering::isReadOnly(), llvm::PPCInstrInfo::isSignOrZeroExtended(), isSortedByValueNo(), isSupportedType(), isTargetConstant(), IsUnconditionalJump(), isVirtualRegisterOperand(), isXor1OfSetCC(), llvm::ARMLegalizerInfo::legalizeCustom(), llvm::SIInstrInfo::legalizeOperands(), llvm::LegalizerHelper::libcall(), llvm::XCoreInstrInfo::loadImmediate(), llvm::MipsSEInstrInfo::loadRegFromStack(), llvm::SIInstrInfo::loadRegFromStackSlot(), LoopIsOuterMostWithPredecessor(), llvm::AMDGPUMCInstLower::lower(), llvm::LegalizerHelper::lower(), lowerAtomicArithWithLOCK(), lowerBuildVectorAsBroadcast(), llvm::X86CallLowering::lowerCall(), llvm::AArch64CallLowering::lowerCall(), llvm::HexagonTargetLowering::LowerCall(), llvm::AsmPrinter::lowerConstant(), llvm::AMDGPUTargetLowering::LowerDYNAMIC_STACKALLOC(), llvm::SITargetLowering::LowerFormalArguments(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), LowerFPOWI(), LowerFPToInt(), llvm::AMDGPUTargetLowering::LowerGlobalAddress(), LowerINSERT_SUBVECTOR(), LowerInterruptReturn(), llvm::BPFTargetLowering::LowerOperation(), llvm::X86CallLowering::lowerReturn(), llvm::AMDGPUCallLowering::lowerReturn(), llvm::AArch64CallLowering::lowerReturn(), llvm::NVPTXTargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::AMDGPUTargetLowering::lowerUnhandledCall(), LowerVACOPY(), LowerVASTART(), llvm::X86TargetLowering::markLibCallAttributes(), MatchingStackOffset(), matchPair(), mayTailCallThisCC(), memOpsHaveSameBasePtr(), moveInstrOut(), llvm::LegalizerHelper::narrowScalar(), needFuncLabelsForEHOrDebugInfo(), llvm::AsmPrinter::needsCFIMoves(), llvm::PPCFrameLowering::needsFP(), llvm::XCoreRegisterInfo::needsFrameMoves(), llvm::ARCRegisterInfo::needsFrameMoves(), llvm::AsmPrinter::needsSEHMoves(), llvm::TargetRegisterInfo::needsStackRealignment(), nextIfDebug(), llvm::TargetFrameLowering::noFramePointerElim(), normalizePBQPSpillWeight(), opcodeEmitsNoInsts(), llvm::OptLevelChanger::OptLevelChanger(), parseCond(), Passv64i1ArgInRegs(), peekThroughBitcast(), performXorCombine(), PrepareCall(), llvm::MIRPrinter::print(), llvm::MIPrinter::print(), print(), llvm::MachineBasicBlock::print(), llvm::MachineInstr::print(), llvm::ARCFrameLowering::processFunctionBeforeFrameFinalized(), llvm::X86FrameLowering::processFunctionBeforeFrameFinalized(), produceCompactUnwindFrame(), ProfitableToMerge(), profitImm(), promoteToConstantPool(), llvm::AsmPrinter::recordSled(), reduceVMULWidth(), regOverlapsSet(), removeDebugValues(), llvm::ARMTargetLowering::ReplaceNodeResults(), replaceShuffleOfInsert(), reportIllegalCopy(), llvm::MipsTargetMachine::resetSubtarget(), llvm::AArch64FrameLowering::resolveFrameIndexReference(), llvm::ARCFrameLowering::restoreCalleeSavedRegisters(), llvm::X86FrameLowering::restoreCalleeSavedRegisters(), llvm::Legalizer::runOnMachineFunction(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::ARMAsmPrinter::runOnMachineFunction(), llvm::X86AsmPrinter::runOnMachineFunction(), llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::ExecutionDepsFix::runOnMachineFunction(), llvm::MachineOptimizationRemarkEmitterPass::runOnMachineFunction(), llvm::IRTranslator::runOnMachineFunction(), llvm::RegBankSelect::runOnMachineFunction(), scaleCaseProbality(), llvm::GCNIterativeScheduler::scheduleILP(), llvm::AsmPrinter::SetupMachineFunction(), shouldLowerMemFuncForSize(), shouldSplitStack(), llvm::TailDuplicator::shouldTailDuplicate(), shrinkScalarCompare(), llvm::SIMachineFunctionInfo::SIMachineFunctionInfo(), simplifyDivRem(), llvm::SystemZFrameLowering::spillCalleeSavedRegisters(), llvm::MipsSEFrameLowering::spillCalleeSavedRegisters(), llvm::ARCFrameLowering::spillCalleeSavedRegisters(), llvm::X86FrameLowering::spillCalleeSavedRegisters(), splitStores(), llvm::MipsSEInstrInfo::storeRegToStack(), llvm::SIInstrInfo::storeRegToStackSlot(), false::Chain::str(), llvm::AArch64TargetLowering::supportSplitCSR(), llvm::PPCTargetLowering::supportSplitCSR(), tieOpsIfNeeded(), toString(), llvm::tryFoldSPUpdateIntoPushPop(), UnpackFromArgumentSlot(), UpdateCPSRUse(), usedAsAddr(), llvm::NVPTXTargetLowering::useF32FTZ(), llvm::ARMSubtarget::useMovt(), UseReg(), llvm::R600InstrInfo::usesTextureCache(), llvm::ARMSubtarget::useStride4VFPs(), llvm::R600InstrInfo::usesVertexCache(), VerifyLowRegs(), llvm::SelectionDAGBuilder::visitSPDescriptorParent(), WarnSize(), WindowsRequiresStackProbe(), and llvm::OptLevelChanger::~OptLevelChanger().

◆ getFunctionNumber()

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

◆ getInfo() [1/2]

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 486 of file MachineFunction.h.

References Allocator.

Referenced by addExclusiveRegPair(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::X86FrameLowering::adjustForSegmentedStacks(), allocateKernArg(), llvm::analyzeArguments(), AnalyzeReturnValues(), llvm::X86FrameLowering::assignCalleeSavedSpillSlots(), llvm::SIInstrInfo::calculateLDSSpillAddress(), CalculateTailCallSPDiff(), CallingConvSupported(), llvm::X86InstrInfo::canMakeTailCallConditional(), llvm::AArch64FrameLowering::canUseAsPrologue(), llvm::AArch64FrameLowering::canUseRedZone(), CC_Lanai32_VarArg(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), changeFCMPPredToAArch64CC(), checkNumAlignedDPRCS2Regs(), llvm::WebAssemblyInstrInfo::commuteInstructionImpl(), llvm::computeBlockSize(), computeCalleeSaveRegisterPairs(), computeWeight(), createPHIsForCMOVsInSinkBB(), llvm::createSystemZLDCleanupPass(), llvm::createWebAssemblyLowerBrUnless(), llvm::createWebAssemblyRegNumbering(), llvm::createX86GlobalBaseRegPass(), llvm::SystemZFrameLowering::determineCalleeSaves(), llvm::SIFrameLowering::determineCalleeSaves(), llvm::SparcFrameLowering::determineCalleeSaves(), llvm::MipsSEFrameLowering::determineCalleeSaves(), llvm::XCoreFrameLowering::determineCalleeSaves(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::HexagonFrameLowering::determineCalleeSaves(), llvm::X86FrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::determineCalleeSaves(), duplicateCPV(), llvm::SIFrameLowering::eliminateCallFramePseudoInstr(), llvm::ARCFrameLowering::eliminateCallFramePseudoInstr(), llvm::X86FrameLowering::eliminateCallFramePseudoInstr(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), emitAlignedDPRCS2Restores(), emitAlignedDPRCS2Spills(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), llvm::AVRFrameLowering::emitEpilogue(), llvm::Thumb1FrameLowering::emitEpilogue(), llvm::MipsSEFrameLowering::emitEpilogue(), llvm::SparcFrameLowering::emitEpilogue(), llvm::MSP430FrameLowering::emitEpilogue(), llvm::XCoreFrameLowering::emitEpilogue(), llvm::SIFrameLowering::emitEpilogue(), llvm::ARMFrameLowering::emitEpilogue(), llvm::AArch64FrameLowering::emitEpilogue(), llvm::ARCFrameLowering::emitEpilogue(), llvm::WebAssemblyFrameLowering::emitEpilogue(), llvm::SystemZFrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitEpilogue(), llvm::X86AsmPrinter::EmitFunctionBodyStart(), llvm::AMDGPUAsmPrinter::EmitFunctionBodyStart(), llvm::HexagonDAGToDAGISel::EmitFunctionEntryCode(), llvm::AMDGPUAsmPrinter::EmitFunctionEntryLabel(), emitGPDisp(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), llvm::NVPTXAsmPrinter::emitLineNumberAsDotLoc(), llvm::AVRFrameLowering::emitPrologue(), llvm::Thumb1FrameLowering::emitPrologue(), llvm::MipsSEFrameLowering::emitPrologue(), llvm::SparcFrameLowering::emitPrologue(), llvm::MSP430FrameLowering::emitPrologue(), llvm::XCoreFrameLowering::emitPrologue(), llvm::SIFrameLowering::emitPrologue(), llvm::ARMFrameLowering::emitPrologue(), llvm::ARCFrameLowering::emitPrologue(), llvm::AArch64FrameLowering::emitPrologue(), llvm::WebAssemblyFrameLowering::emitPrologue(), llvm::SystemZFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), llvm::PPCFrameLowering::emitPrologue(), emitRemovedIntrinsicError(), llvm::AArch64FrameLowering::enableStackSlotScavenging(), EnsureStackAlignment(), estimateRSStackSizeLimit(), ExpandMOVImmSExti8(), llvm::SITargetLowering::finalizeLowering(), FindStartOfTree(), findTemporariesForLR(), findUser(), fixupFuncForFI(), getAbsolute(), llvm::HexagonFrameLowering::getAlignaInstr(), getAllSGPRs(), llvm::HexagonRegisterInfo::getCalleeSavedRegs(), llvm::AArch64RegisterInfo::getCalleeSavedRegs(), llvm::PPCRegisterInfo::getCalleeSavedRegs(), llvm::X86RegisterInfo::getCalleeSavedRegs(), llvm::ARMBaseRegisterInfo::getCalleeSavedRegs(), llvm::AArch64RegisterInfo::getCalleeSavedRegsViaCopy(), llvm::PPCRegisterInfo::getCalleeSavedRegsViaCopy(), llvm::X86RegisterInfo::getCalleeSavedRegsViaCopy(), llvm::ARMBaseRegisterInfo::getCalleeSavedRegsViaCopy(), getElementByteSizeValue(), llvm::ARMTargetLowering::getExceptionSelectorRegister(), getFPTernOp(), llvm::SparcFrameLowering::getFrameIndexReference(), llvm::HexagonFrameLowering::getFrameIndexReference(), llvm::X86FrameLowering::getFrameIndexReference(), llvm::X86FrameLowering::getFrameIndexReferencePreferSP(), llvm::MipsDAGToDAGISel::getGlobalBaseReg(), llvm::SparcInstrInfo::getGlobalBaseReg(), llvm::X86InstrInfo::getGlobalBaseReg(), llvm::MipsTargetLowering::getGlobalReg(), llvm::ARMTargetLowering::getJumpTableEncoding(), getLoadStoreOffsetAlign(), llvm::SISubtarget::getMaxNumSGPRs(), llvm::SISubtarget::getMaxNumVGPRs(), getMaxWaves(), getMOVL(), getNumExtraSGPRs(), llvm::AMDGPUSubtarget::getOccupancyWithLocalMemSize(), getOModValue(), llvm::MipsTargetLowering::getOpndList(), llvm::AArch64InstrInfo::getOutliningType(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), llvm::SIRegisterInfo::getRegPressureLimit(), llvm::SISubtarget::getReservedNumSGPRs(), llvm::MipsRegisterInfo::getReservedRegs(), llvm::SIRegisterInfo::getReservedRegs(), llvm::PPCRegisterInfo::getReservedRegs(), llvm::MSP430TargetLowering::getReturnAddressFrameIndex(), llvm::X86TargetLowering::getReturnAddressFrameIndex(), getRsrcReg(), llvm::X86InstrInfo::getSerializableDirectMachineOperandTargetFlags(), getSubOpcode(), llvm::X86FrameLowering::getWinEHParentFrameOffset(), handleNormalInst(), llvm::ARMBaseRegisterInfo::hasBasePointer(), llvm::AVRFrameLowering::hasFP(), llvm::SystemZFrameLowering::hasFP(), llvm::HexagonFrameLowering::hasFP(), llvm::X86FrameLowering::hasFP(), hasNonRISpills(), llvm::X86FrameLowering::hasReservedCallFrame(), llvm::PPCRegisterInfo::hasReservedSpillSlot(), hasSpills(), hasTrivialSuccessor(), INITIALIZE_PASS(), llvm::AArch64TargetLowering::initializeSplitCSR(), llvm::PPCTargetLowering::initializeSplitCSR(), llvm::X86FrameLowering::inlineStackProbe(), llvm::ARMBaseInstrInfo::insertBranch(), InsertLDR_STR(), llvm::intCCToAVRCC(), isADDADDMUL(), isCopy(), llvm::SITargetLowering::isEligibleForTailCallOptimization(), isFuncletReturnInstr(), llvm::X86TargetLowering::isIntDivCheap(), llvm::PPCTargetLowering::isLegalAddressingMode(), llvm::ARMBaseInstrInfo::isPredicable(), llvm::ARMTargetLowering::isReadOnly(), llvm::PPCInstrInfo::isSignOrZeroExtended(), isSortedByValueNo(), isStackPtrRelative(), llvm::SITargetLowering::isTypeDesirableForOp(), isXor1OfSetCC(), llvm::SIInstrInfo::loadRegFromStackSlot(), llvm::PPCInstrInfo::loadRegFromStackSlot(), llvm::WebAssemblyMCInstLower::Lower(), llvm::LowerARMMachineInstrToMCInst(), llvm::SITargetLowering::LowerCall(), lowerCallResult(), LowerCallResult(), llvm::HexagonTargetLowering::LowerEH_RETURN(), lowerFCOPYSIGN64(), llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::AArch64CallLowering::lowerFormalArguments(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::HexagonTargetLowering::LowerINLINEASM(), LowerInterruptReturn(), LowerINTRINSIC_W_CHAIN(), llvm::R600TargetLowering::LowerOperation(), llvm::SITargetLowering::LowerOperation(), llvm::AMDGPUCallLowering::lowerReturn(), llvm::SITargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), LowerToTLSLocalDynamicModel(), llvm::LanaiTargetLowering::LowerVASTART(), llvm::MSP430TargetLowering::LowerVASTART(), llvm::HexagonTargetLowering::LowerVASTART(), LowerVASTART(), LowerWRITE_REGISTER(), MatchingStackOffset(), llvm::ARMBaseRegisterInfo::materializeFrameBaseRegister(), MaybeRewriteToFallthrough(), mayTailCallThisCC(), MoveAndTeeForMultiUse(), MustSaveLR(), llvm::PPCFrameLowering::needsFP(), llvm::ARMBaseRegisterInfo::needsFrameBaseReg(), llvm::X86FrameLowering::needsFrameIndexResolution(), opcodeEmitsNoInsts(), parsePhysicalReg(), Passv64i1ArgInRegs(), PlaceMarkers(), PrepareCall(), llvm::SIFrameLowering::processFunctionBeforeFrameFinalized(), llvm::XCoreFrameLowering::processFunctionBeforeFrameFinalized(), llvm::HexagonFrameLowering::processFunctionBeforeFrameFinalized(), llvm::PPCFrameLowering::processFunctionBeforeFrameFinalized(), promoteToConstantPool(), readsVCCZ(), llvm::ARMTargetLowering::ReplaceNodeResults(), llvm::Thumb2InstrInfo::ReplaceTailWithBranchTo(), llvm::SIRegisterInfo::requiresFrameIndexReplacementScavenging(), llvm::SIRegisterInfo::requiresFrameIndexScavenging(), llvm::SIRegisterInfo::requiresRegisterScavenging(), llvm::SIRegisterInfo::resolveFrameIndex(), llvm::ARMBaseRegisterInfo::resolveFrameIndex(), llvm::AArch64FrameLowering::resolveFrameIndexReference(), llvm::ARMFrameLowering::ResolveFrameIndexReference(), llvm::Thumb1FrameLowering::restoreCalleeSavedRegisters(), llvm::SystemZFrameLowering::restoreCalleeSavedRegisters(), llvm::ARMFrameLowering::restoreCalleeSavedRegisters(), llvm::SIRegisterInfo::restoreSGPR(), llvm::WebAssemblyAsmPrinter::runOnMachineFunction(), llvm::ARMAsmPrinter::runOnMachineFunction(), llvm::MipsAsmPrinter::runOnMachineFunction(), llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::AVRFrameAnalyzer::runOnMachineFunction(), llvm::HexagonDAGToDAGISel::SelectFrameIndex(), setUsesTOCBasePtr(), llvm::AVRFrameLowering::spillCalleeSavedRegisters(), llvm::SystemZFrameLowering::spillCalleeSavedRegisters(), llvm::XCoreFrameLowering::spillCalleeSavedRegisters(), llvm::ARMFrameLowering::spillCalleeSavedRegisters(), llvm::MSP430FrameLowering::spillCalleeSavedRegisters(), llvm::PPCFrameLowering::spillCalleeSavedRegisters(), spillsCR(), llvm::SIRegisterInfo::spillSGPR(), spillsVRSAVE(), llvm::AVRInstrInfo::storeRegToStackSlot(), llvm::SIInstrInfo::storeRegToStackSlot(), llvm::PPCInstrInfo::storeRegToStackSlot(), llvm::SITargetLowering::supportSplitCSR(), and UnpackFromArgumentSlot().

◆ getInfo() [2/2]

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

Definition at line 493 of file MachineFunction.h.

◆ getJTISymbol()

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 617 of file MachineFunction.cpp.

References assert(), 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().

◆ getJumpTableInfo() [1/2]

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 420 of file MachineFunction.h.

Referenced by CallingConvSupported(), llvm::MipsAsmPrinter::EmitDebugThreadLocal(), llvm::ARMAsmPrinter::EmitJumpTableAddrs(), llvm::AsmPrinter::EmitJumpTableInfo(), llvm::ARMAsmPrinter::EmitJumpTableInsts(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), getBranchDebugLoc(), llvm::XCoreTargetLowering::getJumpTableEncoding(), and llvm::MIRPrinter::print().

◆ getJumpTableInfo() [2/2]

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

Definition at line 421 of file MachineFunction.h.

◆ getLandingPads()

const std::vector<LandingPadInfo>& llvm::MachineFunction::getLandingPads ( ) const
inline

◆ getMachineMemOperand() [1/3]

MachineMemOperand * MachineFunction::getMachineMemOperand ( MachinePointerInfo  PtrInfo,
MachineMemOperand::Flags  f,
uint64_t  s,
unsigned  base_alignment,
const AAMDNodes AAInfo = AAMDNodes(),
const MDNode Ranges = nullptr,
SyncScope::ID  SSID = SyncScope::System,
AtomicOrdering  Ordering = AtomicOrdering::NotAtomic,
AtomicOrdering  FailureOrdering = AtomicOrdering::NotAtomic 
)

getMachineMemOperand - Allocate a new MachineMemOperand.

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

Definition at line 359 of file MachineFunction.cpp.

Referenced by llvm::AArch64CallLowering::AArch64CallLowering(), llvm::addFrameReference(), llvm::X86TargetLowering::BuildFILD(), buildMUBUFOffsetLoadStore(), llvm::FastISel::createMachineMemOperandFor(), emitClzero(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::TargetLoweringBase::emitPatchPoint(), llvm::HexagonFrameLowering::emitPrologue(), llvm::WebAssemblyFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), emitRemovedIntrinsicError(), expandLoadStackGuard(), extractLoadMemRefs(), extractStoreMemRefs(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::IRTranslator::getAnalysisUsage(), llvm::SelectionDAG::getAtomic(), llvm::SelectionDAG::getAtomicCmpSwap(), getContiguousRangeOfSetBits(), getFrameIndexMMO(), getLeaOP(), llvm::SelectionDAG::getLoad(), getLoadStackGuard(), llvm::SelectionDAG::getMemIntrinsicNode(), llvm::MipsInstrInfo::GetMemOperand(), llvm::SelectionDAG::getStore(), llvm::SelectionDAG::getTruncStore(), llvm::ARMInstrInfo::getUnindexedOpcode(), isImplicitOperandIn(), isSupportedType(), llvm::AArch64LegalizerInfo::legalizeCustom(), llvm::Thumb1InstrInfo::loadRegFromStackSlot(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), llvm::MSP430InstrInfo::loadRegFromStackSlot(), llvm::XCoreInstrInfo::loadRegFromStackSlot(), llvm::ARCInstrInfo::loadRegFromStackSlot(), llvm::AVRInstrInfo::loadRegFromStackSlot(), llvm::SparcInstrInfo::loadRegFromStackSlot(), llvm::HexagonInstrInfo::loadRegFromStackSlot(), llvm::SIInstrInfo::loadRegFromStackSlot(), llvm::PPCInstrInfo::loadRegFromStackSlot(), llvm::ARMBaseInstrInfo::loadRegFromStackSlot(), llvm::AArch64InstrInfo::loadRegFromStackSlot(), LowerADJUST_TRAMPOLINE(), llvm::X86CallLowering::lowerReturn(), llvm::ARMCallLowering::lowerReturn(), llvm::AMDGPUCallLowering::lowerReturn(), lowerUINT_TO_FP_vXi32(), lowerVECTOR_SHUFFLE_VSHF(), lowerVectorShuffleAsBroadcast(), narrowExtractedVectorLoad(), llvm::PPCTargetLowering::PerformDAGCombine(), PrepareCall(), profitImm(), removePhis(), llvm::ARMTargetLowering::ReplaceNodeResults(), llvm::AArch64FrameLowering::restoreCalleeSavedRegisters(), llvm::SIRegisterInfo::restoreSGPR(), llvm::AArch64FrameLowering::spillCalleeSavedRegisters(), llvm::SIRegisterInfo::spillSGPR(), llvm::Thumb1InstrInfo::storeRegToStackSlot(), llvm::Thumb2InstrInfo::storeRegToStackSlot(), llvm::MSP430InstrInfo::storeRegToStackSlot(), llvm::XCoreInstrInfo::storeRegToStackSlot(), llvm::ARCInstrInfo::storeRegToStackSlot(), llvm::AVRInstrInfo::storeRegToStackSlot(), llvm::SparcInstrInfo::storeRegToStackSlot(), llvm::HexagonInstrInfo::storeRegToStackSlot(), llvm::SIInstrInfo::storeRegToStackSlot(), llvm::PPCInstrInfo::storeRegToStackSlot(), llvm::ARMBaseInstrInfo::storeRegToStackSlot(), llvm::AArch64InstrInfo::storeRegToStackSlot(), writeSPToMemory(), and llvm::X86CallLowering::X86CallLowering().

◆ getMachineMemOperand() [2/3]

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

◆ getMachineMemOperand() [3/3]

MachineMemOperand * MachineFunction::getMachineMemOperand ( const MachineMemOperand MMO,
const AAMDNodes AAInfo 
)

◆ getMMI()

MachineModuleInfo& llvm::MachineFunction::getMMI ( ) const
inline

◆ getName()

StringRef MachineFunction::getName ( ) const

getName - Return the name of the corresponding LLVM function.

Definition at line 487 of file MachineFunction.cpp.

References assert(), getFunction(), and llvm::Value::getName().

Referenced by adjCycles(), BuildInstOrderMap(), llvm::MachineBlockFrequencyInfo::calculate(), llvm::calculateSpillWeightsAndHints(), computeWeight(), llvm::createAArch64ConditionalCompares(), llvm::createRegUsageInfoCollector(), llvm::createWebAssemblyArgumentMove(), llvm::createWebAssemblyFixIrreducibleControlFlow(), llvm::createWebAssemblyLowerBrUnless(), llvm::createWebAssemblyOptimizeLiveIntervals(), llvm::createWebAssemblyRegNumbering(), llvm::createWebAssemblyReplacePhysRegs(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::ARCRegisterInfo::eliminateFrameIndex(), llvm::MipsRegisterInfo::eliminateFrameIndex(), llvm::SparcFrameLowering::emitPrologue(), llvm::GCNScheduleDAGMILive::finalizeSchedule(), findBaseOffset(), findCalledFunction(), FindStartOfTree(), llvm::MachineBasicBlock::getFullName(), llvm::DOTGraphTraits< ScheduleDAG * >::getGraphName(), llvm::DOTGraphTraits< SelectionDAG * >::getGraphName(), llvm::DOTGraphTraits< const MachineFunction * >::getGraphName(), llvm::DOTGraphTraits< ScheduleDAGMI * >::getGraphName(), getNewValueJumpOpcode(), getUnderlyingArgReg(), handleNormalInst(), HasArgumentDef(), hasTiedDef(), INITIALIZE_PASS(), insertDeleteInstructions(), llvm::AArch64InstrInfo::insertOutlinedCall(), llvm::X86InstrInfo::insertOutlinedCall(), isImmValidForOpcode(), isIrreducibleCFG(), llvm::SelectionDAGISel::isOrEquivalentToAdd(), IsPseudoCallIndirect(), isTerminalReg(), isVirtualRegisterOperand(), LoopIsOuterMostWithPredecessor(), LowerDYNAMIC_STACKALLOC(), llvm::NVPTXTargetLowering::LowerOperation(), MaybeRewriteToFallthrough(), MoveAndTeeForMultiUse(), normalizePBQPSpillWeight(), false::IntervalSorter::operator()(), optimizeCall(), parseCond(), PlaceMarkers(), PrepareCall(), llvm::MIRPrinter::print(), print(), printExtendedName(), profitImm(), regOverlapsSet(), reportFastISelFailure(), llvm::reportGISelFailure(), RewriteP2Align(), runOnBasicBlock(), llvm::InstructionSelect::runOnMachineFunction(), llvm::Legalizer::runOnMachineFunction(), llvm::Localizer::runOnMachineFunction(), llvm::RegBankSelect::runOnMachineFunction(), llvm::MIRParserImpl::setupRegisterInfo(), SortBlocks(), subRangeLiveAt(), toString(), verify(), llvm::MachineDominatorTree::verifyDomTree(), viewCFG(), and viewCFGOnly().

◆ getNumBlockIDs()

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

◆ getOrCreateJumpTableInfo()

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 237 of file MachineFunction.cpp.

Referenced by getDataLayout(), llvm::MIRParserImpl::initializeJumpTableInfo(), llvm::ARMTargetLowering::ReplaceNodeResults(), and tryToElideArgumentCopy().

◆ getOrCreateLandingPadInfo()

LandingPadInfo & MachineFunction::getOrCreateLandingPadInfo ( MachineBasicBlock LandingPad)

◆ getPICBaseSymbol()

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 632 of file MachineFunction.cpp.

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

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

◆ getProperties() [1/2]

const MachineFunctionProperties& llvm::MachineFunction::getProperties ( ) const
inline

◆ getProperties() [2/2]

MachineFunctionProperties& llvm::MachineFunction::getProperties ( )
inline

Definition at line 480 of file MachineFunction.h.

◆ getPSVManager()

PseudoSourceValueManager& llvm::MachineFunction::getPSVManager ( ) const
inline

◆ getRegInfo() [1/2]

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

getRegInfo - Return information about the registers currently in use.

Definition at line 407 of file MachineFunction.h.

Referenced by addCalleeSavedRegs(), llvm::RegsForValue::AddInlineAsmOperands(), llvm::MachineBasicBlock::addLiveIn(), addLiveIn(), addLiveIn(), addRegsToSet(), adjCycles(), llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::SITargetLowering::AdjustInstrPostInstrSelection(), llvm::SIMachineFunctionInfo::allocateSGPRSpillToVGPR(), llvm::AllocationOrder::AllocationOrder(), llvm::AMDGPUInstructionSelector::AMDGPUInstructionSelector(), llvm::analyzeArguments(), AnalyzeReturnValues(), llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), assignCalleeSavedSpillSlots(), llvm::VirtRegMap::assignVirt2StackSlot(), attachMEMCPYScratchRegs(), BuildInstOrderMap(), buildMUBUFOffsetLoadStore(), llvm::SIInstrInfo::calculateLDSSpillAddress(), llvm::calculateSpillWeightsAndHints(), callHasRegMask(), CallingConvSupported(), canCombine(), canCompareBeNewValueJump(), canFoldCopy(), llvm::PPCInstrInfo::canInsertSelect(), llvm::SystemZInstrInfo::canInsertSelect(), llvm::SIInstrInfo::canInsertSelect(), llvm::AArch64InstrInfo::canInsertSelect(), llvm::X86InstrInfo::canInsertSelect(), canMoveInstsAcrossMemOp(), llvm::MipsRegisterInfo::canRealignStack(), llvm::X86RegisterInfo::canRealignStack(), llvm::ARMBaseRegisterInfo::canRealignStack(), CC_Lanai32_VarArg(), changeFCMPPredToAArch64CC(), checkRegOnlyPHIInputs(), llvm::X86InstrInfo::classifyLEAReg(), llvm::SplitAnalysis::clear(), llvm::HexagonBlockRanges::computeDeadMap(), llvm::computeLiveIns(), computeLiveOuts(), computeWeight(), llvm::InstructionSelector::constrainOperandRegToRegClass(), llvm::InstructionSelector::constrainSelectedInstRegOperands(), llvm::SIInstrInfo::convertNonUniformIfRegion(), llvm::SIInstrInfo::convertNonUniformLoopRegion(), llvm::SystemZInstrInfo::convertToThreeAddress(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::WebAssemblyInstrInfo::copyPhysReg(), llvm::NVPTXInstrInfo::copyPhysReg(), llvm::createAArch64ConditionalCompares(), llvm::createHexagonHardwareLoops(), llvm::AMDGPUTargetLowering::CreateLiveInRegister(), createPHIsForCMOVsInSinkBB(), llvm::createRegUsageInfoCollector(), llvm::createSIFixWWMLivenessPass(), llvm::createSILowerI1CopiesPass(), llvm::createSIWholeQuadModePass(), createSwiftErrorEntriesInEntryBlock(), createVirtualRegs(), llvm::HexagonInstrInfo::createVR(), llvm::createWebAssemblyFixIrreducibleControlFlow(), llvm::createWebAssemblyLowerBrUnless(), llvm::createWebAssemblyOptimizeLiveIntervals(), llvm::createWebAssemblyRegNumbering(), llvm::createWebAssemblyReplacePhysRegs(), llvm::createX86FixupSetCC(), llvm::createX86GlobalBaseRegPass(), llvm::createX86OptimizeLEAs(), llvm::XCoreFrameLowering::determineCalleeSaves(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::HexagonFrameLowering::determineCalleeSaves(), llvm::TargetFrameLowering::determineCalleeSaves(), doCandidateWalk(), llvm::SIFrameLowering::eliminateCallFramePseudoInstr(), llvm::WebAssemblyRegisterInfo::eliminateFrameIndex(), llvm::HexagonRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::SystemZRegisterInfo::eliminateFrameIndex(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::PPCTargetLowering::EmitAtomicBinary(), emitClzero(), llvm::SparcTargetLowering::emitEHSjLjLongJmp(), llvm::PPCTargetLowering::emitEHSjLjLongJmp(), llvm::SparcTargetLowering::emitEHSjLjSetJmp(), llvm::PPCTargetLowering::emitEHSjLjSetJmp(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), llvm::WebAssemblyFrameLowering::emitEpilogue(), emitIndirectDst(), emitIndirectSrc(), llvm::R600TargetLowering::EmitInstrWithCustomInserter(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitInstrWithCustomInserter(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::NVPTXAsmPrinter::emitLineNumberAsDotLoc(), llvm::PPCTargetLowering::EmitPartwordAtomicBinary(), emitPostSt(), llvm::NVPTXFrameLowering::emitPrologue(), llvm::MipsSEFrameLowering::emitPrologue(), llvm::WebAssemblyFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), llvm::MSP430TargetLowering::EmitShiftInstr(), emitThumbRegPlusImmInReg(), emitXBegin(), EnsureStackAlignment(), llvm::MachineInstr::eraseFromParentAndMarkDBGValuesForRemoval(), eraseGPOpnd(), llvm::HexagonInstrInfo::expandPostRAPseudo(), llvm::HexagonBlockRanges::expandToSubRegs(), llvm::SITargetLowering::finalizeLowering(), llvm::TargetLoweringBase::finalizeLowering(), llvm::findPHICopyInsertPoint(), findScratchNonCalleeSaveRegister(), findSingleRegDef(), FindStartOfTree(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), foldPatchpoint(), forceReg(), llvm::AArch64InstrInfo::genAlternativeCodeSequence(), llvm::TargetInstrInfo::genAlternativeCodeSequence(), llvm::SIInstrInfo::getAddNoCarry(), getAllSGPRs(), llvm::PPCRegisterInfo::getCalleeSavedRegs(), llvm::FunctionLoweringInfo::getCatchPadExceptionPointerVReg(), GetCostForDef(), llvm::ARMTargetLowering::getExceptionSelectorRegister(), getFoldableImm(), getFPReg(), llvm::MipsFunctionInfo::getGlobalBaseReg(), llvm::LanaiMachineFunctionInfo::getGlobalBaseReg(), llvm::SparcInstrInfo::getGlobalBaseReg(), llvm::X86InstrInfo::getGlobalBaseReg(), llvm::R600InstrInfo::getIndirectIndexBegin(), llvm::AMDGPURegisterBankInfo::getInstrAlternativeMappings(), llvm::X86RegisterBankInfo::getInstrAlternativeMappings(), llvm::AArch64RegisterBankInfo::getInstrAlternativeMappings(), llvm::ARMRegisterBankInfo::getInstrMapping(), llvm::AMDGPURegisterBankInfo::getInstrMapping(), llvm::X86RegisterBankInfo::getInstrMapping(), llvm::AArch64RegisterBankInfo::getInstrMapping(), llvm::RegisterBankInfo::getInstrMappingImpl(), llvm::getLiveRegsAfter(), llvm::getLiveRegsBefore(), getLoadStoreOffsetAlign(), getMappedOp(), getNumExtraSGPRs(), getOModValue(), llvm::PPCInstrInfo::getOperandLatency(), llvm::SIInstrInfo::getOpRegClass(), llvm::FunctionLoweringInfo::getOrCreateSwiftErrorVReg(), llvm::FunctionLoweringInfo::getOrCreateSwiftErrorVRegDefAt(), getOrExecSource(), llvm::X86GenRegisterBankInfo::getPartialMappingIdx(), llvm::MachineFrameInfo::getPristineRegs(), getPrologueDeath(), getReassignedChan(), llvm::SystemZRegisterInfo::getRegAllocationHints(), llvm::ARMBaseRegisterInfo::getRegAllocationHints(), llvm::TargetRegisterInfo::getRegAllocationHints(), getRegClassFromGRPhysReg(), GetRegistersForValue(), getRegTy(), llvm::X86InstrInfo::getSerializableDirectMachineOperandTargetFlags(), getSmrdOpcode(), getStoreTarget(), getSubOpcode(), getTag(), getUnderlyingArgReg(), llvm::PerFunctionMIParsingState::getVRegInfo(), llvm::VirtRegMap::grow(), HandleVRSaveUpdate(), HasArgumentDef(), hasCopyImplyingStackAdjustment(), llvm::TargetInstrInfo::hasReassociableOperands(), llvm::TargetInstrInfo::hasReassociableSibling(), hasTrivialSuccessor(), hasVGPROperands(), hoistAndMergeSGPRInits(), INITIALIZE_PASS(), INITIALIZE_PASS_END(), llvm::TailDuplicator::initMF(), llvm::WebAssemblyFunctionInfo::initWARegs(), llvm::X86FrameLowering::inlineStackProbe(), llvm::SITargetLowering::insertCopiesSplitCSR(), llvm::AArch64TargetLowering::insertCopiesSplitCSR(), llvm::PPCTargetLowering::insertCopiesSplitCSR(), insertCopy(), insertDeleteInstructions(), llvm::SIInstrInfo::insertEQ(), llvm::SIInstrInfo::insertNE(), llvm::PPCInstrInfo::insertSelect(), llvm::SystemZInstrInfo::insertSelect(), llvm::SIInstrInfo::insertSelect(), llvm::AArch64InstrInfo::insertSelect(), llvm::X86InstrInfo::insertSelect(), llvm::SIInstrInfo::insertVectorSelect(), isACalleeSavedRegister(), isCrossCopy(), isDebug(), llvm::SITargetLowering::isEligibleForTailCallOptimization(), isFpMulInstruction(), isImplicitOperandIn(), isInstrUniform(), llvm::X86TargetLowering::isIntDivCheap(), isNonFoldablePartialRegisterLoad(), llvm::SIInstrInfo::isOperandLegal(), isPreISelGenericFloatingPointOpcode(), llvm::X86InstrInfo::isReallyTriviallyReMaterializable(), llvm::PPCInstrInfo::isSignOrZeroExtended(), isSimpleIf(), isSortedByValueNo(), isSourceDefinedByImplicitDef(), isSSA(), isSupportedType(), isTerminalReg(), llvm::SITargetLowering::isTypeDesirableForOp(), llvm::SIInstrInfo::isVGPRCopy(), isVirtualRegisterOperand(), isXor1OfSetCC(), llvm::SIInstrInfo::legalizeOperands(), llvm::SIInstrInfo::legalizeOpWithMove(), llvm::SITargetLowering::legalizeTargetIndependentNode(), llvm::MipsSEInstrInfo::loadImmediate(), loadM0FromVGPR(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), llvm::SIInstrInfo::loadRegFromStackSlot(), llvm::AArch64InstrInfo::loadRegFromStackSlot(), LoopIsOuterMostWithPredecessor(), llvm::WebAssemblyMCInstLower::Lower(), llvm::X86CallLowering::lowerCall(), llvm::ARMCallLowering::lowerCall(), llvm::AArch64CallLowering::lowerCall(), lowerCallResult(), llvm::HexagonTargetLowering::LowerCallResult(), LowerCallResult(), llvm::PPCRegisterInfo::lowerCRBitRestore(), llvm::PPCRegisterInfo::lowerCRBitSpilling(), llvm::PPCRegisterInfo::lowerCRRestore(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), llvm::X86CallLowering::lowerFormalArguments(), llvm::ARMCallLowering::lowerFormalArguments(), llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::AArch64CallLowering::lowerFormalArguments(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), LowerFPToInt(), llvm::BPFTargetLowering::LowerOperation(), llvm::X86CallLowering::lowerReturn(), llvm::AMDGPUCallLowering::lowerReturn(), llvm::AArch64CallLowering::lowerReturn(), lowerVECTOR_SHUFFLE_VSHF(), llvm::PPCRegisterInfo::lowerVRSAVERestore(), llvm::PPCRegisterInfo::lowerVRSAVESpilling(), MatchingStackOffset(), llvm::AArch64RegisterInfo::materializeFrameBaseRegister(), llvm::SIRegisterInfo::materializeFrameBaseRegister(), llvm::PPCRegisterInfo::materializeFrameBaseRegister(), llvm::ARMBaseRegisterInfo::materializeFrameBaseRegister(), llvm::SIInstrInfo::materializeImmediate(), MaybeRewriteToFallthrough(), mayTailCallThisCC(), MoveAndTeeForMultiUse(), llvm::SIInstrInfo::moveToVALU(), MustSaveLR(), needToReserveScavengingSpillSlots(), normalizePBQPSpillWeight(), opcodeEmitsNoInsts(), optimizeCall(), llvm::AArch64InstrInfo::optimizeCondBranch(), llvm::BranchFolder::OptimizeFunction(), llvm::LanaiInstrInfo::optimizeSelect(), llvm::ARMBaseInstrInfo::optimizeSelect(), parseCond(), llvm::MIRParserImpl::parseRegisterInfo(), Passv64i1ArgInRegs(), PlaceMarkers(), populateCandidates(), llvm::SITargetLowering::PostISelFolding(), llvm::HexagonInstrInfo::PredicateInstruction(), llvm::MIRPrinter::print(), llvm::MIPrinter::print(), llvm::MachineInstr::print(), llvm::printMBBReference(), profitImm(), propagateSwiftErrorVRegs(), readsVCCZ(), llvm::TargetInstrInfo::reassociateOps(), llvm::recomputeLivenessFlags(), regOverlapsSet(), removePhis(), llvm::ARMTargetLowering::ReplaceNodeResults(), llvm::GCNUpwardRPTracker::reset(), llvm::GCNDownwardRPTracker::reset(), llvm::LiveRangeCalc::reset(), llvm::PPCRegisterInfo::resolveFrameIndex(), llvm::ARMFrameLowering::ResolveFrameIndexReference(), llvm::SIRegisterInfo::restoreSGPR(), llvm::UnreachableBlockElimPass::run(), runOnBasicBlock(), llvm::WebAssemblyAsmPrinter::runOnMachineFunction(), llvm::InstructionSelect::runOnMachineFunction(), llvm::Legalizer::runOnMachineFunction(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::RegisterClassInfo::runOnMachineFunction(), llvm::MachineTraceMetrics::runOnMachineFunction(), llvm::LiveVariables::runOnMachineFunction(), llvm::ExecutionDepsFix::runOnMachineFunction(), llvm::LiveIntervals::runOnMachineFunction(), llvm::IRTranslator::runOnMachineFunction(), llvm::AVRDynAllocaSR::runOnMachineFunction(), llvm::RegBankSelect::runOnMachineFunction(), llvm::scavengeFrameVirtualRegs(), llvm::AVRDAGToDAGISel::SelectInlineAsmMemoryOperand(), llvm::FunctionLoweringInfo::set(), llvm::MachineIRBuilder::setMF(), llvm::CoalescerPair::setRegisters(), llvm::RegScavenger::setRegUsed(), llvm::X86MachineFunctionInfo::setRestoreBasePointer(), llvm::MIRParserImpl::setupRegisterInfo(), llvm::SIInstrInfo::shouldClusterMemOps(), shrinkScalarCompare(), SortBlocks(), llvm::Thumb1FrameLowering::spillCalleeSavedRegisters(), llvm::AArch64FrameLowering::spillCalleeSavedRegisters(), llvm::X86FrameLowering::spillCalleeSavedRegisters(), llvm::SIRegisterInfo::spillSGPR(), llvm::MachineBasicBlock::SplitCriticalEdge(), llvm::CriticalAntiDepBreaker::StartBlock(), llvm::AggressiveAntiDepBreaker::StartBlock(), llvm::Thumb2InstrInfo::storeRegToStackSlot(), llvm::SIInstrInfo::storeRegToStackSlot(), llvm::AArch64InstrInfo::storeRegToStackSlot(), false::Chain::str(), subRangeLiveAt(), tryChangeVGPRtoSGPRinCopy(), llvm::tryFoldSPUpdateIntoPushPop(), tryToElideArgumentCopy(), UnpackFromArgumentSlot(), unpackFromRegLoc(), updateLiveness(), UpdateOperandRegClass(), llvm::ARMBaseRegisterInfo::updateRegAllocHint(), usedAsAddr(), verify(), llvm::SIInstrInfo::verifyInstruction(), verifyLeafProcRegUse(), llvm::VirtRegAuxInfo::weightCalcHelper(), and writeSPToMemory().

◆ getRegInfo() [2/2]

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

Definition at line 408 of file MachineFunction.h.

◆ getSublistAccess()

static BasicBlockListType MachineFunction::* llvm::MachineFunction::getSublistAccess ( MachineBasicBlock )
inlinestatic

Support for MachineBasicBlock::getNextNode().

Definition at line 555 of file MachineFunction.h.

References addLiveIn().

◆ getSubtarget() [1/2]

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

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

Definition at line 396 of file MachineFunction.h.

Referenced by llvm::AArch64beTargetMachine::AArch64beTargetMachine(), llvm::DwarfCompileUnit::addAddress(), llvm::DwarfUnit::addBlockByrefAddress(), llvm::DwarfCompileUnit::addComplexAddress(), addExclusiveRegPair(), llvm::MachineBasicBlock::addLiveIn(), addLiveInRegs(), llvm::ScheduleDAGInstrs::addPhysRegDataDeps(), addRegsToSet(), addSavedGPR(), llvm::ScheduleDAGInstrs::addVRegDefDeps(), adjCycles(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), AdjustStackOffset(), llvm::SIMachineFunctionInfo::allocateSGPRSpillToVGPR(), llvm::CCState::analyzeMustTailForwardedRegisters(), llvm::A57ChainingConstraint::apply(), llvm::HexagonSubtarget::CallMutation::apply(), areCandidatesToMergeOrPair(), llvm::ARMBETargetMachine::ARMBETargetMachine(), llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), assignCalleeSavedSpillSlots(), AssignProtectedObjSet(), llvm::DebugHandlerBase::beginFunction(), branchMaxOffsets(), buildMUBUFOffsetLoadStore(), llvm::ScheduleDAGInstrs::buildSchedGraph(), llvm::calculateDbgValueHistory(), llvm::SIInstrInfo::calculateLDSSpillAddress(), llvm::LiveRangeEdit::calculateRegClassAndHint(), callHasRegMask(), canMoveInstsAcrossMemOp(), cannotCoexistAsymm(), llvm::HexagonPacketizerList::canPromoteToDotCur(), llvm::MipsRegisterInfo::canRealignStack(), llvm::ARMBaseRegisterInfo::canRealignStack(), llvm::MachineBasicBlock::canSplitCriticalEdge(), llvm::AArch64FrameLowering::canUseAsPrologue(), CC_Hexagon(), CC_HexagonVector(), CC_MipsO32(), llvm::CC_X86_VectorCallAssignRegister(), checkNumAlignedDPRCS2Regs(), checkRegOnlyPHIInputs(), llvm::rdf::DataFlowGraph::DefStack::clear_block(), llvm::computeBlockSize(), computeLiveOuts(), llvm::MachineFrameInfo::computeMaxCallFrameSize(), llvm::TargetSchedModel::computeOutputLatency(), llvm::DwarfCompileUnit::constructVariableDIE(), llvm::MIRPrinter::convert(), llvm::MIRPrinter::convertStackObjects(), llvm::Thumb1InstrInfo::copyPhysReg(), llvm::AVRInstrInfo::copyPhysReg(), llvm::createAArch64ConditionalCompares(), llvm::createBURRListDAGScheduler(), llvm::createDefaultScheduler(), llvm::MipsFunctionInfo::createEhDataRegsFI(), llvm::XCoreFunctionInfo::createEHSpillSlot(), llvm::ARM::createFastISel(), llvm::PPC::createFastISel(), llvm::XCoreFunctionInfo::createFPSpillSlot(), llvm::createHexagonHardwareLoops(), llvm::createHybridListDAGScheduler(), llvm::createILPListDAGScheduler(), llvm::MipsFunctionInfo::createISRRegFI(), llvm::createLibcall(), llvm::XCoreFunctionInfo::createLRSpillSlot(), llvm::createNVPTXPrologEpilogPass(), llvm::R600TargetMachine::createPassConfig(), createPHIsForCMOVsInSinkBB(), llvm::createR600ExpandSpecialInstrsPass(), llvm::createR600ISelDag(), llvm::FunctionLoweringInfo::CreateReg(), llvm::FunctionLoweringInfo::CreateRegs(), llvm::createRegUsageInfoCollector(), llvm::createSIDebuggerInsertNopsPass(), llvm::createSIFixWWMLivenessPass(), llvm::createSILowerI1CopiesPass(), llvm::createSIWholeQuadModePass(), llvm::createSourceListDAGScheduler(), llvm::createSparcDelaySlotFillerPass(), llvm::createSystemZLDCleanupPass(), llvm::PPCInstrInfo::CreateTargetPostRAHazardRecognizer(), llvm::createWebAssemblyFixIrreducibleControlFlow(), llvm::createWebAssemblyLowerBrUnless(), llvm::createWebAssemblyReplacePhysRegs(), llvm::createX86FixupBWInsts(), llvm::createX86FixupLEAs(), llvm::createX86FixupSetCC(), llvm::createX86GlobalBaseRegPass(), llvm::createX86OptimizeLEAs(), llvm::createX86PadShortFunctions(), llvm::createXCoreFrameToArgsOffsetEliminationPass(), llvm::SystemZFrameLowering::determineCalleeSaves(), llvm::MipsSEFrameLowering::determineCalleeSaves(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::HexagonFrameLowering::determineCalleeSaves(), llvm::TargetFrameLowering::determineCalleeSaves(), llvm::TargetOptions::DisableFramePointerElim(), doesNotGeneratecode(), llvm::AArch64FrameLowering::eliminateCallFramePseudoInstr(), llvm::MSP430FrameLowering::eliminateCallFramePseudoInstr(), llvm::WebAssemblyFrameLowering::eliminateCallFramePseudoInstr(), llvm::AVRFrameLowering::eliminateCallFramePseudoInstr(), llvm::XCoreFrameLowering::eliminateCallFramePseudoInstr(), llvm::SIFrameLowering::eliminateCallFramePseudoInstr(), llvm::ARCFrameLowering::eliminateCallFramePseudoInstr(), llvm::BPFRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::RISCVRegisterInfo::eliminateFrameIndex(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::WebAssemblyRegisterInfo::eliminateFrameIndex(), llvm::LanaiRegisterInfo::eliminateFrameIndex(), llvm::ARCRegisterInfo::eliminateFrameIndex(), llvm::HexagonRegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::SystemZRegisterInfo::eliminateFrameIndex(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), emitAlignedDPRCS2Restores(), emitAlignedDPRCS2Spills(), emitAligningInstructions(), llvm::AMDGPUAsmPrinter::EmitBasicBlockStart(), llvm::AArch64FrameLowering::emitCalleeSavedFrameMoves(), emitComments(), emitDebugLocValue(), emitDebugValueComment(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), llvm::AVRFrameLowering::emitEpilogue(), llvm::SparcFrameLowering::emitEpilogue(), llvm::MSP430FrameLowering::emitEpilogue(), llvm::XCoreFrameLowering::emitEpilogue(), llvm::ARMFrameLowering::emitEpilogue(), llvm::SIFrameLowering::emitEpilogue(), llvm::AArch64FrameLowering::emitEpilogue(), llvm::ARCFrameLowering::emitEpilogue(), llvm::WebAssemblyFrameLowering::emitEpilogue(), llvm::SystemZFrameLowering::emitEpilogue(), llvm::MipsAsmPrinter::emitFrameDirective(), llvm::AMDGPUAsmPrinter::EmitFunctionBodyStart(), llvm::HexagonDAGToDAGISel::EmitFunctionEntryCode(), llvm::AMDGPUAsmPrinter::EmitFunctionEntryLabel(), emitGPDisp(), llvm::AsmPrinter::emitImplicitDef(), llvm::SystemZAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::X86AsmPrinter::EmitInstruction(), llvm::RISCVTargetLowering::EmitInstrWithCustomInserter(), llvm::BPFTargetLowering::EmitInstrWithCustomInserter(), llvm::AVRTargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::AsmPrinter::EmitJumpTableInfo(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), emitKill(), llvm::ThumbRegisterInfo::emitLoadConstPool(), llvm::ARMBaseRegisterInfo::emitLoadConstPool(), llvm::AVRFrameLowering::emitPrologue(), llvm::NVPTXFrameLowering::emitPrologue(), llvm::SparcFrameLowering::emitPrologue(), llvm::XCoreFrameLowering::emitPrologue(), llvm::MSP430FrameLowering::emitPrologue(), llvm::SIFrameLowering::emitPrologue(), llvm::ARCFrameLowering::emitPrologue(), llvm::AArch64FrameLowering::emitPrologue(), llvm::HexagonFrameLowering::emitPrologue(), llvm::WebAssemblyFrameLowering::emitPrologue(), llvm::SystemZFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), emitRemovedIntrinsicError(), llvm::MSP430TargetLowering::EmitShiftInstr(), llvm::ARMSelectionDAGInfo::EmitSpecializedLibcall(), llvm::X86FrameLowering::emitStackProbe(), EmitTailCallStoreFPAndRetAddr(), llvm::HexagonSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), emitThumb1LoadConstPool(), emitThumb2LoadConstPool(), emitThumbRegPlusImmInReg(), llvm::AsmPrinter::emitXRayTable(), llvm::PPCFrameLowering::enableShrinkWrapping(), llvm::WinException::endFunclet(), eraseGPOpnd(), llvm::MachineFrameInfo::estimateStackSize(), expandXorFP(), llvm::finalizeBundle(), llvm::SITargetLowering::finalizeLowering(), findScratchNonCalleeSaveRegister(), findSingleRegDef(), FindStartOfTree(), llvm::fixStackStores(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), fuseInstructionPair(), llvm::AArch64InstrInfo::genAlternativeCodeSequence(), llvm::HexagonFrameLowering::getAlignaInstr(), llvm::IRTranslator::getAnalysisUsage(), llvm::PPCRegisterInfo::getBaseRegister(), llvm::HexagonRegisterInfo::getCalleeSavedRegs(), llvm::AArch64RegisterInfo::getCalleeSavedRegs(), llvm::MipsRegisterInfo::getCalleeSavedRegs(), llvm::SystemZRegisterInfo::getCalleeSavedRegs(), llvm::PPCRegisterInfo::getCalleeSavedRegs(), llvm::X86RegisterInfo::getCalleeSavedRegs(), llvm::ARMBaseRegisterInfo::getCalleeSavedRegs(), llvm::PPCRegisterInfo::getCalleeSavedRegsViaCopy(), llvm::AArch64RegisterInfo::getCallPreservedMask(), llvm::MipsRegisterInfo::getCallPreservedMask(), llvm::SystemZRegisterInfo::getCallPreservedMask(), llvm::PPCRegisterInfo::getCallPreservedMask(), llvm::X86RegisterInfo::getCallPreservedMask(), llvm::ARMBaseRegisterInfo::getCallPreservedMask(), getCmpForPseudo(), getDwarfRegNum(), getElementByteSizeValue(), getEquivalentCallShort(), llvm::MachineBasicBlock::getFallThrough(), getFPMode(), getFPReg(), llvm::R600FrameLowering::getFrameIndexReference(), llvm::RISCVFrameLowering::getFrameIndexReference(), llvm::SIFrameLowering::getFrameIndexReference(), llvm::SparcFrameLowering::getFrameIndexReference(), llvm::SystemZFrameLowering::getFrameIndexReference(), llvm::HexagonFrameLowering::getFrameIndexReference(), llvm::TargetFrameLowering::getFrameIndexReference(), llvm::X86FrameLowering::getFrameIndexReferencePreferSP(), llvm::AVRRegisterInfo::getFrameRegister(), llvm::MipsRegisterInfo::getFrameRegister(), llvm::ARMBaseRegisterInfo::getFrameRegister(), llvm::getFuncletMembership(), llvm::MipsFunctionInfo::getGlobalBaseReg(), llvm::ARMHazardRecognizer::getHazardType(), llvm::R600InstrInfo::getIndirectIndexEnd(), llvm::X86RegisterBankInfo::getInstrAlternativeMappings(), llvm::AArch64RegisterBankInfo::getInstrAlternativeMappings(), llvm::ARMRegisterBankInfo::getInstrMapping(), llvm::AArch64RegisterBankInfo::getInstrMapping(), llvm::RegisterBankInfo::getInstrMappingImpl(), getInstrVecReg(), llvm::MSP430InstrInfo::getInstSizeInBytes(), llvm::AVRInstrInfo::getInstSizeInBytes(), llvm::ThumbRegisterInfo::getLargestLegalSuperClass(), llvm::AVRRegisterInfo::getLargestLegalSuperClass(), llvm::PPCRegisterInfo::getLargestLegalSuperClass(), llvm::X86RegisterInfo::getLargestLegalSuperClass(), getLayoutSuccessorProbThreshold(), getLoadStoreOffsetAlign(), getLoadStoreOffsetSizeInBits(), getMappedOp(), getMaxWaves(), getMemcpyLoadsAndStores(), llvm::MipsFunctionInfo::getMoveF64ViaSpillFI(), getNewValueJumpOpcode(), getNextMachineInstr(), getNonDebugInstr(), getNumExtraSGPRs(), getOModValue(), getOpenCLAlignment(), getOrExecSource(), llvm::ThumbRegisterInfo::getPointerRegClass(), llvm::SparcRegisterInfo::getPointerRegClass(), llvm::WebAssemblyRegisterInfo::getPointerRegClass(), llvm::MipsRegisterInfo::getPointerRegClass(), llvm::X86RegisterInfo::getPointerRegClass(), llvm::MachineFrameInfo::getPristineRegs(), llvm::X86RegisterInfo::getPtrSizedFrameRegister(), getReassignedChan(), llvm::SystemZRegisterInfo::getRegAllocationHints(), GetRegistersForValue(), llvm::MipsRegisterInfo::getRegPressureLimit(), llvm::AArch64RegisterInfo::getRegPressureLimit(), llvm::ARMBaseRegisterInfo::getRegPressureLimit(), llvm::SIRegisterInfo::getRegPressureLimit(), getRegTy(), llvm::R600RegisterInfo::getReservedRegs(), llvm::SparcRegisterInfo::getReservedRegs(), llvm::MipsRegisterInfo::getReservedRegs(), llvm::AArch64RegisterInfo::getReservedRegs(), llvm::SIRegisterInfo::getReservedRegs(), llvm::PPCRegisterInfo::getReservedRegs(), llvm::X86RegisterInfo::getReservedRegs(), llvm::ARMBaseRegisterInfo::getReservedRegs(), getRsrcReg(), getSchedRegions(), llvm::X86InstrInfo::getSerializableDirectMachineOperandTargetFlags(), llvm::ARMBaseRegisterInfo::getSjLjDispatchPreservedMask(), getSmrdOpcode(), llvm::TargetInstrInfo::getSPAdjust(), llvm::X86InstrInfo::getSPAdjust(), llvm::TargetInstrInfo::getStackSlotRange(), getStoreTarget(), getSubOpcode(), llvm::SelectionDAG::getSubtarget(), llvm::AsmPrinter::getSubtargetInfo(), getTag(), getTargetIndexName(), llvm::MachineRegisterInfo::getTargetRegisterInfo(), llvm::ARMBaseRegisterInfo::getThisReturnPreservedMask(), llvm::ARMBaseRegisterInfo::getTLSCallPreservedMask(), getUnderlyingObjects(), llvm::ARMInstrInfo::getUnindexedOpcode(), llvm::CCState::HandleByVal(), HandleVRSaveUpdate(), HasArgumentDef(), llvm::SparcFrameLowering::hasFP(), llvm::ARMFrameLowering::hasFP(), llvm::ARCFrameLowering::hasFP(), llvm::AArch64FrameLowering::hasFP(), llvm::HexagonFrameLowering::hasFP(), llvm::PPCRegisterInfo::hasReservedSpillSlot(), hasTiedDef(), hasTrivialSuccessor(), hasUseAfterLoop(), llvm::HexagonAsmPrinter::HexagonProcessInstruction(), hoistAndMergeSGPRInits(), ImmInRange(), llvm::RegPressureTracker::init(), llvm::GCNMaxOccupancySchedStrategy::initialize(), llvm::PostGenericScheduler::initialize(), INITIALIZE_PASS(), INITIALIZE_PASS_END(), llvm::MIRParserImpl::initializeJumpTableInfo(), llvm::TailDuplicator::initMF(), llvm::GenericScheduler::initPolicy(), initSlots2Values(), llvm::X86FrameLowering::inlineStackProbe(), llvm::HexagonFrameLowering::insertCFIInstructions(), insertCopy(), insertCSRRestores(), insertCSRSaves(), insertDeleteInstructions(), InsertLDR_STR(), llvm::Mips16RegisterInfo::intRegClass(), isACalleeSavedRegister(), isCompareZero(), isCopy(), isDebug(), isFpMulInstruction(), isHardwareLoop(), isImplicitOperandIn(), isIrreducibleCFG(), isLEASimpleIncOrDec(), llvm::HexagonPacketizerList::isLegalToPacketizeTogether(), isLiveOut(), isMinSize(), isNonFoldablePartialRegisterLoad(), IsPseudoCallIndirect(), llvm::AArch64RegisterInfo::isReservedReg(), llvm::VLIWResourceModel::isResourceAvailable(), llvm::TargetInstrInfo::isSchedulingBoundary(), llvm::PPCInstrInfo::isSignOrZeroExtended(), isSimpleIf(), isSourceDefinedByImplicitDef(), isSupportedType(), isTerminalReg(), IsUnconditionalJump(), isVirtualRegisterOperand(), llvm::SIInstrInfo::legalizeOperands(), llvm::LiveRegMatrix::LiveRegMatrix(), llvm::X86InstrInfo::loadRegFromAddr(), lookupCandidateBaseReg(), LoopIsOuterMostWithPredecessor(), llvm::X86CallLowering::lowerCall(), llvm::ARMCallLowering::lowerCall(), llvm::AArch64CallLowering::lowerCall(), llvm::HexagonTargetLowering::LowerCall(), llvm::PPCRegisterInfo::lowerCRBitRestore(), llvm::PPCRegisterInfo::lowerCRBitSpilling(), llvm::PPCRegisterInfo::lowerCRRestore(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), llvm::PPCRegisterInfo::lowerDynamicAreaOffset(), llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::AArch64CallLowering::lowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::ARMCallLowering::lowerReturn(), llvm::PPCRegisterInfo::lowerVRSAVERestore(), llvm::PPCRegisterInfo::lowerVRSAVESpilling(), MachineFunction(), MakeM0Inst(), mapArchToCVCPUType(), llvm::AArch64RegisterInfo::materializeFrameBaseRegister(), llvm::SIRegisterInfo::materializeFrameBaseRegister(), llvm::PPCRegisterInfo::materializeFrameBaseRegister(), llvm::ARMBaseRegisterInfo::materializeFrameBaseRegister(), llvm::MachineInstr::mayAlias(), MaybeRewriteToFallthrough(), MoveAndTeeForMultiUse(), moveInstrOut(), needsReferenceType(), llvm::TargetRegisterInfo::needsStackRealignment(), nextIfDebug(), llvm::ARMFrameLowering::noFramePointerElim(), normalizePBQPSpillWeight(), opcodeEmitsNoInsts(), false::IntervalSorter::operator()(), optimizeCall(), parseCond(), PlaceMarkers(), llvm::MIRPrinter::print(), llvm::MIPrinter::print(), llvm::RegisterBankInfo::OperandsMapper::print(), print(), llvm::MachineFrameInfo::print(), llvm::MachineBasicBlock::print(), llvm::MachineInstr::print(), llvm::AVRAsmPrinter::PrintAsmOperand(), llvm::HexagonAsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::PrintAsmOperand(), llvm::AMDGPUAsmPrinter::PrintAsmOperand(), printConstant(), printExtendedName(), llvm::ARMAsmPrinter::printOperand(), llvm::GCNIterativeScheduler::printRegions(), llvm::MipsAsmPrinter::printSavedRegsBitmask(), llvm::GCNIterativeScheduler::printSchedRP(), llvm::MIPrinter::printTargetFlags(), llvm::SIFrameLowering::processFunctionBeforeFrameFinalized(), llvm::XCoreFrameLowering::processFunctionBeforeFrameFinalized(), llvm::ARCFrameLowering::processFunctionBeforeFrameFinalized(), produceCompactUnwindFrame(), profitImm(), propagateSwiftErrorVRegs(), readsVCCZ(), llvm::TargetInstrInfo::reassociateOps(), llvm::MachineRegisterInfo::recomputeRegClass(), regOverlapsSet(), removePhis(), RemoveUnusedGlue(), ReplaceDominatedUses(), replaceFI(), ReplaceFrameIndex(), llvm::SIRegisterInfo::requiresFrameIndexReplacementScavenging(), llvm::SIRegisterInfo::reservedPrivateSegmentBufferReg(), llvm::SIRegisterInfo::reservedPrivateSegmentWaveByteOffsetReg(), llvm::R600InstrInfo::reserveIndirectRegisters(), reservePrivateMemoryRegs(), llvm::ThumbRegisterInfo::resolveFrameIndex(), llvm::SIRegisterInfo::resolveFrameIndex(), llvm::PPCRegisterInfo::resolveFrameIndex(), llvm::ARMBaseRegisterInfo::resolveFrameIndex(), llvm::AArch64FrameLowering::resolveFrameIndexReference(), llvm::ARMFrameLowering::ResolveFrameIndexReference(), llvm::ResourcePriorityQueue::ResourcePriorityQueue(), llvm::AVRFrameLowering::restoreCalleeSavedRegisters(), llvm::Thumb1FrameLowering::restoreCalleeSavedRegisters(), llvm::SystemZFrameLowering::restoreCalleeSavedRegisters(), llvm::XCoreFrameLowering::restoreCalleeSavedRegisters(), llvm::MSP430FrameLowering::restoreCalleeSavedRegisters(), llvm::AArch64FrameLowering::restoreCalleeSavedRegisters(), restoreCRs(), llvm::SIRegisterInfo::restoreSGPR(), RetCC_Hexagon(), RetCC_HexagonVector(), llvm::ThumbRegisterInfo::rewriteFrameIndex(), llvm::UnreachableBlockElimPass::run(), llvm::AVRDAGToDAGISel::runOnMachineFunction(), llvm::HexagonAsmPrinter::runOnMachineFunction(), llvm::HexagonDAGToDAGISel::runOnMachineFunction(), llvm::MipsDAGToDAGISel::runOnMachineFunction(), llvm::WebAssemblyAsmPrinter::runOnMachineFunction(), llvm::NVPTXDAGToDAGISel::runOnMachineFunction(), llvm::InstructionSelect::runOnMachineFunction(), llvm::InsertNOPLoad::runOnMachineFunction(), llvm::DetectRoundChange::runOnMachineFunction(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::FixAllFDIVSQRT::runOnMachineFunction(), llvm::RegisterClassInfo::runOnMachineFunction(), llvm::ARMAsmPrinter::runOnMachineFunction(), llvm::LiveStacks::runOnMachineFunction(), llvm::MachineTraceMetrics::runOnMachineFunction(), llvm::MipsAsmPrinter::runOnMachineFunction(), llvm::X86AsmPrinter::runOnMachineFunction(), llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::ExecutionDepsFix::runOnMachineFunction(), llvm::LiveIntervals::runOnMachineFunction(), llvm::NVPTXAsmPrinter::runOnMachineFunction(), llvm::IRTranslator::runOnMachineFunction(), llvm::AVRDynAllocaSR::runOnMachineFunction(), llvm::RegBankSelect::runOnMachineFunction(), llvm::Mips16RegisterInfo::saveScavengerRegister(), llvm::ThumbRegisterInfo::saveScavengerRegister(), llvm::scavengeFrameVirtualRegs(), llvm::GCNIterativeScheduler::schedule(), llvm::ScheduleDAGInstrs::ScheduleDAGInstrs(), llvm::GCNIterativeScheduler::scheduleILP(), llvm::GCNIterativeScheduler::scheduleLegacyMaxOccupancy(), llvm::GCNIterativeScheduler::scheduleMinReg(), llvm::GCNIterativeScheduler::scheduleRegion(), llvm::AVRDAGToDAGISel::SelectInlineAsmMemoryOperand(), llvm::FunctionLoweringInfo::set(), setAliasRegs(), setCallTargetReg(), llvm::MachineIRBuilder::setMF(), llvm::RegScavenger::setRegUsed(), llvm::X86MachineFunctionInfo::setRestoreBasePointer(), llvm::AsmPrinter::SetupMachineFunction(), shrinkScalarCompare(), llvm::SIMachineFunctionInfo::SIMachineFunctionInfo(), llvm::MachineBasicBlock::SkipPHIsAndLabels(), llvm::MachineBasicBlock::SkipPHIsLabelsAndDebug(), llvm::GCNIterativeScheduler::sortRegionsByPressure(), llvm::SparcFrameLowering::SparcFrameLowering(), llvm::AVRFrameLowering::spillCalleeSavedRegisters(), llvm::Thumb1FrameLowering::spillCalleeSavedRegisters(), llvm::SystemZFrameLowering::spillCalleeSavedRegisters(), llvm::XCoreFrameLowering::spillCalleeSavedRegisters(), llvm::MSP430FrameLowering::spillCalleeSavedRegisters(), llvm::AArch64FrameLowering::spillCalleeSavedRegisters(), llvm::SIRegisterInfo::spillSGPR(), llvm::MachineBasicBlock::SplitCriticalEdge(), srcMgrDiagHandler(), llvm::X86InstrInfo::storeRegToAddr(), false::Chain::str(), subRangeLiveAt(), llvm::SystemZPostRASchedStrategy::SystemZPostRASchedStrategy(), tieOpsIfNeeded(), toString(), llvm::GCNIterativeScheduler::tryMaximizeOccupancy(), tryOptimizeLEAtoMOV(), trySequenceOfOnes(), llvm::X86InstrInfo::unfoldMemoryOperand(), UpdateCPSRUse(), UpdateOperandRegClass(), UpdatePredRedefs(), llvm::DwarfCompileUnit::updateSubprogramScopeDIE(), llvm::MachineBasicBlock::updateTerminator(), usedAsAddr(), llvm::HexagonRegisterInfo::useFPForScavengingIndex(), UseReg(), verify(), llvm::SIInstrInfo::verifyInstruction(), llvm::VLIWPacketizerList::VLIWPacketizerList(), llvm::VirtRegAuxInfo::weightCalcHelper(), llvm::LegalizerHelper::widenScalar(), writeSPToMemory(), and llvm::X86CallLowering::X86CallLowering().

◆ getSubtarget() [2/2]

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 402 of file MachineFunction.h.

◆ getTarget()

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

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

Definition at line 392 of file MachineFunction.h.

Referenced by llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::NVPTXTargetLowering::allowFMA(), llvm::NVPTXTargetLowering::allowUnsafeFPMath(), AssignProtectedObjSet(), CallingConvSupported(), llvm::AArch64RegisterInfo::cannotEliminateFrame(), llvm::ARMBaseRegisterInfo::cannotEliminateFrame(), llvm::MachineBasicBlock::canSplitCriticalEdge(), llvm::X86FrameLowering::canUseLEAForSPInEpilogue(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::MipsFunctionInfo::createEhDataRegsFI(), llvm::MipsTargetLowering::createFastISel(), createPHIsForCMOVsInSinkBB(), llvm::createRegUsageInfoCollector(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::determineCalleeSaves(), llvm::TargetFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::eliminateCallFramePseudoInstr(), llvm::X86FrameLowering::eliminateCallFramePseudoInstr(), llvm::AVRRegisterInfo::eliminateFrameIndex(), llvm::X86FrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitEpilogue(), emitGPDisp(), llvm::NVPTXAsmPrinter::emitLineNumberAsDotLoc(), llvm::NVPTXFrameLowering::emitPrologue(), llvm::ARMFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), llvm::AsmPrinter::emitStackSizeSection(), ExpandMOVImmSExti8(), llvm::AArch64InstrInfo::expandPostRAPseudo(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::HexagonFrameLowering::getAlignaInstr(), llvm::IRTranslator::getAnalysisUsage(), llvm::HexagonFrameLowering::getFrameIndexReference(), llvm::X86FrameLowering::getFrameIndexReference(), llvm::MipsRegisterInfo::getFrameRegister(), llvm::MipsFunctionInfo::getGlobalBaseReg(), llvm::AArch64InstrInfo::getInstSizeInBytes(), llvm::ARCInstrInfo::getInstSizeInBytes(), llvm::MSP430InstrInfo::getInstSizeInBytes(), llvm::AVRInstrInfo::getInstSizeInBytes(), llvm::MipsInstrInfo::getInstSizeInBytes(), llvm::ARMBaseInstrInfo::getInstSizeInBytes(), llvm::SystemZInstrInfo::getInstSizeInBytes(), llvm::PPCInstrInfo::getInstSizeInBytes(), llvm::SIInstrInfo::getInstSizeInBytes(), getLayoutSuccessorProbThreshold(), getLoadStoreOffsetAlign(), llvm::PPCInstrInfo::getMachineCombinerPatterns(), getMOVL(), getOpenCLAlignment(), llvm::X86InstrInfo::getSerializableDirectMachineOperandTargetFlags(), llvm::HexagonInstrInfo::getSize(), llvm::TargetFrameLowering::getStackAlignmentSkew(), llvm::ARMInstrInfo::getUnindexedOpcode(), llvm::MipsFrameLowering::hasFP(), llvm::SparcFrameLowering::hasFP(), llvm::SystemZFrameLowering::hasFP(), llvm::MSP430FrameLowering::hasFP(), llvm::ARMFrameLowering::hasFP(), llvm::XCoreFrameLowering::hasFP(), llvm::ARCFrameLowering::hasFP(), llvm::AArch64FrameLowering::hasFP(), llvm::HexagonFrameLowering::hasFP(), llvm::X86FrameLowering::hasFP(), hoistAndMergeSGPRInits(), llvm::X86FrameLowering::inlineStackProbe(), llvm::AArch64InstrInfo::isAssociativeAndCommutative(), llvm::X86InstrInfo::isAssociativeAndCommutative(), isCombineInstrCandidateFP(), isImplicitOperandIn(), isIrreducibleCFG(), isOptNone(), isSortedByValueNo(), llvm::MipsSEInstrInfo::loadImmediate(), llvm::Thumb1InstrInfo::loadRegFromStackSlot(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), llvm::SITargetLowering::LowerCall(), LowerINTRINSIC_W_CHAIN(), MatchingStackOffset(), mayTailCallThisCC(), llvm::PPCFrameLowering::needsFP(), opcodeEmitsNoInsts(), llvm::MIPrinter::print(), llvm::MachineInstr::print(), llvm::PPCFrameLowering::processFunctionBeforeFrameFinalized(), promoteToConstantPool(), regOverlapsSet(), llvm::ARMAsmPrinter::runOnMachineFunction(), shouldLowerMemFuncForSize(), llvm::ARMSubtarget::splitFramePushPop(), trySequenceOfOnes(), llvm::DwarfCompileUnit::updateSubprogramScopeDIE(), UseReg(), verify(), and X86ChooseCmpImmediateOpcode().

◆ getTypeIDFor()

unsigned MachineFunction::getTypeIDFor ( const GlobalValue TI)

Return the type id for the specified typeinfo. This is function wide.

Definition at line 757 of file MachineFunction.cpp.

References N.

Referenced by addCatchTypeInfo(), addFilterTypeInfo(), llvm::IRTranslator::getAnalysisUsage(), and getUnderlyingArgReg().

◆ getTypeInfos()

const std::vector<const GlobalValue *>& llvm::MachineFunction::getTypeInfos ( ) const
inline

Return a reference to the C++ typeinfo for the current function.

Definition at line 848 of file MachineFunction.h.

Referenced by llvm::EHStreamer::emitExceptionTable(), llvm::EHStreamer::emitTypeInfos(), and llvm::ARMException::endFunction().

◆ getVariableDbgInfo() [1/2]

VariableDbgInfoMapTy& llvm::MachineFunction::getVariableDbgInfo ( )
inline

◆ getVariableDbgInfo() [2/2]

const VariableDbgInfoMapTy& llvm::MachineFunction::getVariableDbgInfo ( ) const
inline

Definition at line 867 of file MachineFunction.h.

References llvm::addLandingPadInfo(), and I.

◆ getWinEHFuncInfo() [1/2]

const WinEHFuncInfo* llvm::MachineFunction::getWinEHFuncInfo ( ) const
inline

◆ getWinEHFuncInfo() [2/2]

WinEHFuncInfo* llvm::MachineFunction::getWinEHFuncInfo ( )
inline

Definition at line 436 of file MachineFunction.h.

◆ hasCallSiteBeginLabel()

bool llvm::MachineFunction::hasCallSiteBeginLabel ( MCSymbol BeginLabel) const
inline

Return true if the begin label has a call site number associated with it.

Definition at line 834 of file MachineFunction.h.

References llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::count().

◆ hasCallSiteLandingPad()

bool llvm::MachineFunction::hasCallSiteLandingPad ( MCSymbol Sym)
inline

Return true if the landing pad Eh symbol has an associated call site.

Definition at line 817 of file MachineFunction.h.

References llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::empty().

Referenced by llvm::ARMTargetLowering::ReplaceNodeResults().

◆ hasEHFunclets()

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

◆ hasInlineAsm()

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

Returns true if the function contains any inline assembly.

Definition at line 463 of file MachineFunction.h.

Referenced by emitBasicBlockLoopComments(), and llvm::PPCRegisterInfo::getReservedRegs().

◆ hasWinCFI()

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

◆ insert()

void llvm::MachineFunction::insert ( iterator  MBBI,
MachineBasicBlock MBB 
)
inline

Definition at line 585 of file MachineFunction.h.

References llvm::iplist_impl< IntrusiveListT, TraitsT >::insert().

Referenced by addExclusiveRegPair(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::analyzeArguments(), ComputeCommonTailLength(), createPHIsForCMOVsInSinkBB(), llvm::createWebAssemblyFixIrreducibleControlFlow(), llvm::PPCTargetLowering::EmitAtomicBinary(), emitBlockAfter(), emitClzero(), llvm::SparcTargetLowering::emitEHSjLjSetJmp(), llvm::PPCTargetLowering::emitEHSjLjSetJmp(), llvm::AArch64TargetLowering::EmitF128CSEL(), llvm::RISCVTargetLowering::EmitInstrWithCustomInserter(), llvm::BPFTargetLowering::EmitInstrWithCustomInserter(), llvm::AVRTargetLowering::EmitInstrWithCustomInserter(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitPartwordAtomicBinary(), emitPostSt(), llvm::MSP430TargetLowering::EmitShiftInstr(), emitXBegin(), llvm::SparcTargetLowering::expandSelectCC(), llvm::SelectionDAGBuilder::FindMergedConditions(), llvm::IRTranslator::getAnalysisUsage(), llvm::MipsTargetLowering::HandleByVal(), hasDataDependence(), hasOneExitNode(), INITIALIZE_PASS(), llvm::X86FrameLowering::inlineStackProbe(), isFunctionEntryBlock(), isImmValidForOpcode(), loadM0FromVGPR(), LowerFPToInt(), lowerVECTOR_SHUFFLE_VSHF(), makeImplicit(), opcodeEmitsNoInsts(), packCmovGroup(), removeExternalCFGEdges(), llvm::ARMTargetLowering::ReplaceNodeResults(), split(), llvm::MachineBasicBlock::SplitCriticalEdge(), llvm::SITargetLowering::splitKillBlock(), toString(), trySequenceOfOnes(), and tryToElideArgumentCopy().

◆ operator=()

MachineFunction& llvm::MachineFunction::operator= ( const MachineFunction )
delete

◆ print()

void MachineFunction::print ( raw_ostream OS,
const SlotIndexes Indexes = nullptr 
) const

◆ push_back()

void llvm::MachineFunction::push_back ( MachineBasicBlock MBB)
inline

◆ push_front()

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

◆ rbegin() [1/2]

reverse_iterator llvm::MachineFunction::rbegin ( )
inline

Definition at line 571 of file MachineFunction.h.

Referenced by INITIALIZE_PASS(), and MaySpeculate().

◆ rbegin() [2/2]

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

Definition at line 572 of file MachineFunction.h.

◆ remove() [1/2]

void llvm::MachineFunction::remove ( iterator  MBBI)
inline

◆ remove() [2/2]

void llvm::MachineFunction::remove ( MachineBasicBlock MBBI)
inline

◆ removeFromMBBNumbering()

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 621 of file MachineFunction.h.

References assert(), MI, N, llvm::NotAtomic, llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Size, and llvm::SyncScope::System.

Referenced by llvm::printMBBReference().

◆ rend() [1/2]

reverse_iterator llvm::MachineFunction::rend ( )
inline

Definition at line 573 of file MachineFunction.h.

Referenced by INITIALIZE_PASS().

◆ rend() [2/2]

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

Definition at line 574 of file MachineFunction.h.

◆ RenumberBlocks()

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 254 of file MachineFunction.cpp.

References assert(), begin(), E, empty(), end(), and llvm::ilist_node_impl< OptionsT >::getIterator().

Referenced by CompareMBBNumbers(), llvm::createWebAssemblyFixIrreducibleControlFlow(), INITIALIZE_PASS(), mergeOperations(), llvm::UnreachableBlockElimPass::run(), and SortBlocks().

◆ reset()

void llvm::MachineFunction::reset ( )
inline

Reset the instance as if it was just created.

Definition at line 369 of file MachineFunction.h.

References clear(), and llvm::cl::init().

◆ setAlignment()

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

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

Definition at line 442 of file MachineFunction.h.

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

◆ setCallsEHReturn()

void llvm::MachineFunction::setCallsEHReturn ( bool  b)
inline

Definition at line 756 of file MachineFunction.h.

Referenced by getUnderlyingArgReg().

◆ setCallSiteBeginLabel()

void llvm::MachineFunction::setCallSiteBeginLabel ( MCSymbol BeginLabel,
unsigned  Site 
)
inline

Map the begin label for a call site.

Definition at line 822 of file MachineFunction.h.

Referenced by llvm::SelectionDAGBuilder::lowerInvokable().

◆ setCallSiteLandingPad()

void MachineFunction::setCallSiteLandingPad ( MCSymbol Sym,
ArrayRef< unsigned Sites 
)

Map the landing pad's EH symbol to the call site indexes.

Definition at line 752 of file MachineFunction.cpp.

References llvm::ArrayRef< T >::begin(), and llvm::ArrayRef< T >::end().

Referenced by hasExceptionPointerOrCodeUser().

◆ setCallsUnwindInit()

void llvm::MachineFunction::setCallsUnwindInit ( bool  b)
inline

Definition at line 759 of file MachineFunction.h.

Referenced by getUnderlyingArgReg().

◆ setExposesReturnsTwice()

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 458 of file MachineFunction.h.

References B.

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

◆ setHasEHFunclets()

void llvm::MachineFunction::setHasEHFunclets ( bool  V)
inline

Definition at line 762 of file MachineFunction.h.

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

◆ setHasInlineAsm()

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

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

Definition at line 468 of file MachineFunction.h.

References B.

Referenced by llvm::SelectionDAGISel::runOnMachineFunction().

◆ setHasWinCFI()

void llvm::MachineFunction::setHasWinCFI ( bool  v)
inline

◆ setSubtarget()

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

Definition at line 397 of file MachineFunction.h.

References llvm::ARM_MB::ST.

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

◆ setVariableDbgInfo()

void llvm::MachineFunction::setVariableDbgInfo ( const DILocalVariable Var,
const DIExpression Expr,
unsigned  Slot,
const DILocation Loc 
)
inline

Collect information used to emit debugging information of a variable.

Definition at line 861 of file MachineFunction.h.

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

Referenced by llvm::IRTranslator::getAnalysisUsage(), llvm::MIRParserImpl::parseStackObjectsDebugInfo(), and processDbgDeclares().

◆ shouldSplitStack()

bool MachineFunction::shouldSplitStack ( ) const

◆ size()

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

◆ sort()

template<typename Comp >
void llvm::MachineFunction::sort ( Comp  comp)
inline

Definition at line 604 of file MachineFunction.h.

◆ splice() [1/3]

void llvm::MachineFunction::splice ( iterator  InsertPt,
iterator  MBBI 
)
inline

◆ splice() [2/3]

void llvm::MachineFunction::splice ( iterator  InsertPt,
MachineBasicBlock MBB 
)
inline

◆ splice() [3/3]

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

◆ tidyLandingPads()

void MachineFunction::tidyLandingPads ( DenseMap< MCSymbol *, uintptr_t > *  LPMap = nullptr)

◆ verify()

bool MachineFunction::verify ( Pass p = nullptr,
const char Banner = nullptr,
bool  AbortOnError = true 
) const

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

Returns
true if no problems were found.

Definition at line 321 of file MachineVerifier.cpp.

References llvm::LaneBitmask::any(), assert(), begin(), llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::clear(), llvm::BitVector::clear(), llvm::VNInfo::def, E, empty(), end(), llvm::errs(), front(), llvm::Pass::getAnalysisIfAvailable(), llvm::TargetSubtargetInfo::getInstrInfo(), llvm::SlotIndexes::getInstructionIndex(), llvm::SlotIndexes::getMBBEndIdx(), llvm::SlotIndexes::getMBBStartIdx(), llvm::MachineBasicBlock::getName(), getName(), llvm::MachineRegisterInfo::getNumVirtRegs(), llvm::MachineInstr::getOperand(), llvm::MachineInstr::getParent(), llvm::MachineBasicBlock::getParent(), llvm::MachineOperand::getParent(), getProperties(), getRegInfo(), llvm::TargetSubtargetInfo::getRegisterInfo(), llvm::TargetRegisterInfo::getReservedRegs(), llvm::MachineRegisterInfo::getReservedRegs(), getSubtarget(), getTarget(), llvm::SlotIndexes::hasIndex(), llvm::MachineFunctionProperties::hasProperty(), I, llvm::VNInfo::id, llvm::SlotIndex::isValid(), llvm::TargetRegisterInfo::isVirtualRegister(), llvm::SlotIndexes::MBBIndexBegin(), llvm::SlotIndexes::MBBIndexEnd(), MI, llvm::MachineFunctionProperties::NoVRegs, llvm::MachineBasicBlock::pred_begin(), llvm::MachineBasicBlock::pred_end(), llvm::MachineBasicBlock::pred_size(), llvm::MachineOperand::print(), llvm::LiveIntervals::print(), print(), llvm::MachineInstr::print(), llvm::PrintLaneMask(), llvm::printMBBReference(), llvm::printReg(), llvm::printRegUnit(), llvm::MachineFunctionProperties::RegBankSelected, llvm::report_fatal_error(), llvm::MachineRegisterInfo::reservedRegsFrozen(), llvm::MachineFunctionProperties::Selected, llvm::MachineBasicBlock::succ_begin(), llvm::MachineBasicBlock::succ_end(), llvm::MachineBasicBlock::succ_size(), verify, and llvm::MachineRegisterInfo::verifyUseLists().

Referenced by llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::LiveRangeCalc::calculateValues(), llvm::createGreedyRegisterAllocator(), llvm::RegScavenger::forward(), hasTiedDef(), llvm::MIRParserImpl::initializeMachineFunction(), isTerminalReg(), nextIfDebug(), regOverlapsSet(), and verifyLeafProcRegUse().

◆ viewCFG()

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 570 of file MachineFunction.cpp.

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

◆ viewCFGOnly()

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 580 of file MachineFunction.cpp.

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

Member Data Documentation

◆ VariableDbgInfos

VariableDbgInfoMapTy llvm::MachineFunction::VariableDbgInfos

Definition at line 360 of file MachineFunction.h.

Referenced by ~MachineFunction().


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