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

#include "llvm/CodeGen/MachineFunction.h"

Collaboration diagram for llvm::MachineFunction:
[legend]

Classes

struct  ArgRegPair
 Structure used to represent pair of argument number after call lowering and register used to transfer that argument. More...
 
class  Delegate
 
struct  VariableDbgInfo
 

Public Types

using CallSiteInfo = SmallVector< ArgRegPair, 1 >
 Vector of call argument and its forwarding register. More...
 
using CallSiteInfoImpl = SmallVectorImpl< ArgRegPair >
 
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 &F, const LLVMTargetMachine &Target, const TargetSubtargetInfo &STI, unsigned FunctionNum, MachineModuleInfo &MMI)
 
 MachineFunction (const MachineFunction &)=delete
 
MachineFunction & operator= (const MachineFunction &)=delete
 
 ~MachineFunction ()
 
void reset ()
 Reset the instance as if it was just created. More...
 
void resetDelegate (Delegate *delegate)
 Reset the currently registered delegate - otherwise assert. More...
 
void setDelegate (Delegate *delegate)
 Set the delegate. More...
 
MachineModuleInfo & getMMI () const
 
MCContext & getContext () const
 
PseudoSourceValueManager & getPSVManager () const
 
const DataLayout & getDataLayout () const
 Return the DataLayout attached to the Module associated to this MF. More...
 
const Function & getFunction () const
 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 LLVMTargetMachine & getTarget () const
 getTarget - Return the target machine this machine code is compiled with More...
 
const TargetSubtargetInfo & getSubtarget () const
 getSubtarget - Return the subtarget for which this machine code is being compiled. More...
 
template<typename STC >
const STC & getSubtarget () const
 getSubtarget - This method returns a pointer to the specified type of TargetSubtargetInfo. More...
 
MachineRegisterInfo & getRegInfo ()
 getRegInfo - Return information about the registers currently in use. More...
 
const MachineRegisterInfo & getRegInfo () const
 
MachineFrameInfo & getFrameInfo ()
 getFrameInfo - Return the frame info object for the current function. More...
 
const MachineFrameInfo & getFrameInfo () const
 
const MachineJumpTableInfo * getJumpTableInfo () const
 getJumpTableInfo - Return the jump table info object for the current function. More...
 
MachineJumpTableInfo * getJumpTableInfo ()
 
MachineJumpTableInfo * getOrCreateJumpTableInfo (unsigned JTEntryKind)
 getOrCreateJumpTableInfo - Get the JumpTableInfo for this function, if it does already exist, allocate one. More...
 
MachineConstantPool * getConstantPool ()
 getConstantPool - Return the constant pool object for the current function. More...
 
const MachineConstantPool * getConstantPool () const
 
const WasmEHFuncInfo * getWasmEHFuncInfo () const
 getWasmEHFuncInfo - Return information about how the current function uses Wasm exception handling. More...
 
WasmEHFuncInfo * getWasmEHFuncInfo ()
 
const WinEHFuncInfo * getWinEHFuncInfo () const
 getWinEHFuncInfo - Return information about how the current function uses Windows exception handling. More...
 
WinEHFuncInfo * getWinEHFuncInfo ()
 
Align getAlignment () const
 getAlignment - Return the alignment of the function. More...
 
void setAlignment (Align A)
 setAlignment - Set the alignment of the function. More...
 
void ensureAlignment (Align A)
 ensureAlignment - Make sure the function is at least 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)
 
bool needsFrameMoves () const
 True if this function needs frame moves for debug or exceptions. More...
 
const MachineFunctionProperties & getProperties () const
 Get the function properties. More...
 
MachineFunctionProperties & getProperties ()
 
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
 
DenormalMode getDenormalMode (const fltSemantics &FPType) const
 Returns the denormal handling type for the default rounding mode of the function. More...
 
MachineBasicBlock * getBlockNumbered (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 MachineBasicBlock & front () const
 
MachineBasicBlock & front ()
 
const MachineBasicBlock & back () const
 
MachineBasicBlock & back ()
 
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 getInstructionCount () const
 Return the number of MachineInstrs in this MachineFunction. More...
 
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...
 
MachineInstr * CreateMachineInstr (const MCInstrDesc &MCID, const DebugLoc &DL, bool NoImp=false)
 CreateMachineInstr - Allocate a new MachineInstr. More...
 
MachineInstr * 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. More...
 
MachineInstr & CloneMachineInstrBundle (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...
 
MachineBasicBlock * CreateMachineBasicBlock (const BasicBlock *bb=nullptr)
 CreateMachineBasicBlock - Allocate a new MachineBasicBlock. More...
 
void DeleteMachineBasicBlock (MachineBasicBlock *MBB)
 DeleteMachineBasicBlock - Delete the given MachineBasicBlock. More...
 
MachineMemOperand * 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. More...
 
MachineMemOperand * getMachineMemOperand (const MachineMemOperand *MMO, int64_t Offset, uint64_t Size)
 getMachineMemOperand - Allocate a new MachineMemOperand by copying an existing one, adjusting by an offset and using the given size. More...
 
MachineMemOperand * getMachineMemOperand (const MachineMemOperand *MMO, const AAMDNodes &AAInfo)
 Allocate a new MachineMemOperand by copying an existing one, replacing only AliasAnalysis information. More...
 
MachineMemOperand * getMachineMemOperand (const MachineMemOperand *MMO, MachineMemOperand::Flags Flags)
 Allocate a new MachineMemOperand by copying an existing one, replacing the flags. More...
 
MachineOperand * allocateOperandArray (OperandCapacity Cap)
 Allocate an array of MachineOperands. More...
 
void deallocateOperandArray (OperandCapacity Cap, MachineOperand *Array)
 Dellocate an array of MachineOperands and recycle the memory. More...
 
uint32_t * allocateRegMask ()
 Allocate and initialize a register mask with NumRegister bits. More...
 
ArrayRef< int > allocateShuffleMask (ArrayRef< int > Mask)
 
MachineInstr::ExtraInfo * createMIExtraInfo (ArrayRef< MachineMemOperand *> MMOs, MCSymbol *PreInstrSymbol=nullptr, MCSymbol *PostInstrSymbol=nullptr, MDNode *HeapAllocMarker=nullptr)
 Allocate and construct an extra info structure for a MachineInstr. More...
 
const char * createExternalSymbolName (StringRef Name)
 Allocate a string and populate it with the given external symbol name. More...
 
MCSymbol * getJTISymbol (unsigned JTI, MCContext &Ctx, bool isLinkerPrivate=false) const
 getJTISymbol - Return the MCSymbol for the specified non-empty jump table. More...
 
MCSymbol * getPICBaseSymbol () 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)
 
const std::vector< MCSymbol * > & getLongjmpTargets () const
 Returns a reference to a list of symbols immediately following calls to _setjmp in the function. More...
 
void addLongjmpTarget (MCSymbol *Target)
 Add the specified symbol to the list of valid longjmp targets for Windows Control Flow Guard. More...
 
void setVariableDbgInfo (const DILocalVariable *Var, const DIExpression *Expr, int Slot, const DILocation *Loc)
 Collect information used to emit debugging information of a variable. More...
 
VariableDbgInfoMapTy & getVariableDbgInfo ()
 
const VariableDbgInfoMapTy & getVariableDbgInfo () const
 
void addCallArgsForwardingRegs (const MachineInstr *CallI, CallSiteInfoImpl &&CallInfo)
 
const CallSiteInfoMap & getCallSitesInfo () const
 

Static Public Member Functions

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

Public Attributes

VariableDbgInfoMapTy VariableDbgInfos
 

Friends

struct ilist_traits< MachineInstr >
 

Exception Handling

bool callsEHReturn () const
 
void setCallsEHReturn (bool b)
 
bool callsUnwindInit () const
 
void setCallsUnwindInit (bool b)
 
bool hasEHScopes () const
 
void setHasEHScopes (bool V)
 
bool hasEHFunclets () const
 
void setHasEHFunclets (bool V)
 
LandingPadInfo & getOrCreateLandingPadInfo (MachineBasicBlock *LandingPad)
 Find or create an LandingPadInfo for the specified MachineBasicBlock. More...
 
void tidyLandingPads (DenseMap< MCSymbol *, uintptr_t > *LPMap=nullptr, bool TidyIfNoBeginLabels=true)
 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...
 
MCSymbol * addLandingPad (MachineBasicBlock *LandingPad)
 Add a new panding pad, and extract the exception handling information from the landingpad instruction. 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 *RecoverBA)
 
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...
 
void setWasmLandingPadIndex (const MachineBasicBlock *LPad, unsigned Index)
 Map the landing pad to its index. Used for Wasm exception handling. More...
 
bool hasWasmLandingPadIndex (const MachineBasicBlock *LPad) const
 Returns true if the landing pad has an associate index in wasm EH. More...
 
unsigned getWasmLandingPadIndex (const MachineBasicBlock *LPad) const
 Get the index in wasm EH for a given landing pad. 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...
 

Exception Handling

void moveCallSiteInfo (const MachineInstr *Old, const MachineInstr *New)
 Following functions update call site info. More...
 
void eraseCallSiteInfo (const MachineInstr *MI)
 Erase the call site info for MI. More...
 
void copyCallSiteInfo (const MachineInstr *Old, const MachineInstr *New)
 Copy the call site info from Old to \ New. More...
 

Detailed Description

Definition at line 223 of file MachineFunction.h.

Member Typedef Documentation

◆ CallSiteInfo

Vector of call argument and its forwarding register.

Definition at line 394 of file MachineFunction.h.

◆ CallSiteInfoImpl

Definition at line 395 of file MachineFunction.h.

◆ const_iterator

Definition at line 634 of file MachineFunction.h.

◆ const_reverse_iterator

Definition at line 635 of file MachineFunction.h.

◆ iterator

using llvm::MachineFunction::iterator = BasicBlockListType::iterator

Definition at line 633 of file MachineFunction.h.

◆ OperandCapacity

Definition at line 781 of file MachineFunction.h.

◆ reverse_iterator

Definition at line 636 of file MachineFunction.h.

◆ VariableDbgInfoMapTy

Definition at line 414 of file MachineFunction.h.

Constructor & Destructor Documentation

◆ MachineFunction() [1/2]

MachineFunction::MachineFunction ( const Function &  F,
const LLVMTargetMachine &  Target,
const TargetSubtargetInfo &  STI,
unsigned  FunctionNum,
MachineModuleInfo &  MMI 
)

◆ MachineFunction() [2/2]

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

◆ ~MachineFunction()

MachineFunction::~MachineFunction ( )

Member Function Documentation

◆ addCallArgsForwardingRegs()

void llvm::MachineFunction::addCallArgsForwardingRegs ( const MachineInstr *  CallI,
CallSiteInfoImpl &&  CallInfo 
)
inline

◆ addCatchTypeInfo()

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

Provide the catch typeinfo for a landing pad.

Definition at line 727 of file MachineFunction.cpp.

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

Referenced by addLandingPad().

◆ addCleanup()

void MachineFunction::addCleanup ( MachineBasicBlock *  LandingPad)

Add a cleanup action for a landing pad.

Definition at line 789 of file MachineFunction.cpp.

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

Referenced by addLandingPad().

◆ addCodeViewAnnotation()

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

Record annotations associated with a particular label.

Definition at line 954 of file MachineFunction.h.

Referenced by FixedPointIntrinsicToOpcode().

◆ addFilterTypeInfo()

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

Provide the filter typeinfo for a landing pad.

Definition at line 734 of file MachineFunction.cpp.

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

Referenced by addLandingPad().

◆ addFrameInst()

LLVM_NODISCARD unsigned MachineFunction::addFrameInst ( const MCCFIInstruction &  Inst)

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

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

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

◆ addLandingPad()

MCSymbol * MachineFunction::addLandingPad ( MachineBasicBlock *  LandingPad)

◆ addLiveIn()

unsigned MachineFunction::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.

Add the specified physical register as a live-in value and create a corresponding virtual register for it.

Definition at line 611 of file MachineFunction.cpp.

References llvm::MachineRegisterInfo::addLiveIn(), assert(), llvm::TargetRegisterClass::contains(), llvm::MachineRegisterInfo::createVirtualRegister(), llvm::MachineRegisterInfo::getLiveInVirtReg(), llvm::MachineRegisterInfo::getRegClass(), getRegInfo(), llvm::TargetRegisterClass::hasSubClassEq(), and MRI.

Referenced by allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateHSAUserSGPRs(), allocateSGPR32InputImpl(), llvm::SITargetLowering::allocateSpecialEntryInputVGPRs(), llvm::SITargetLowering::allocateSystemSGPRs(), allocateVGPR32Input(), llvm::analyzeArguments(), llvm::CCState::analyzeMustTailForwardedRegisters(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), EnsureStackAlignment(), getv64i1Argument(), handleMustTailForwardedRegisters(), llvm::ARMTargetLowering::isReadOnly(), isSortedByValueNo(), lowerFABS64(), llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::AMDGPUCallLowering::lowerReturn(), llvm::LanaiTargetLowering::LowerRETURNADDR(), llvm::HexagonTargetLowering::LowerRETURNADDR(), LowerRETURNADDR(), LowerVASTART(), LowerVectorINT_TO_FP(), llvm::SITargetLowering::shouldEmitPCReloc(), and truncateScalarIntegerArg().

◆ addLongjmpTarget()

void llvm::MachineFunction::addLongjmpTarget ( MCSymbol *  Target)
inline

Add the specified symbol to the list of valid longjmp targets for Windows Control Flow Guard.

Definition at line 843 of file MachineFunction.h.

◆ addSEHCatchHandler()

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

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

Referenced by llvm::printMBBReference().

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

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

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

◆ allocateRegMask()

uint32_t * MachineFunction::allocateRegMask ( )

◆ allocateShuffleMask()

ArrayRef< int > MachineFunction::allocateShuffleMask ( ArrayRef< int >  Mask)

◆ back() [1/2]

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

◆ back() [2/2]

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

Definition at line 666 of file MachineFunction.h.

◆ begin() [1/2]

iterator llvm::MachineFunction::begin ( )
inline

Definition at line 651 of file MachineFunction.h.

Referenced by llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::DwarfCFIException::beginFunction(), callWaitsOnFunctionReturn(), collectRegDefs(), containsNewBackedge(), llvm::SwiftErrorValueTracking::createEntriesInEntryBlock(), llvm::createR600ExpandSpecialInstrsPass(), llvm::createSIAddIMGInitPass(), llvm::createSIWholeQuadModePass(), llvm::createX86RetpolineThunksPass(), llvm::createXCoreFrameToArgsOffsetEliminationPass(), doesNotGeneratecode(), llvm::AVRTargetLowering::EmitInstrWithCustomInserter(), llvm::AVRFrameLowering::emitPrologue(), llvm::MSP430FrameLowering::emitPrologue(), llvm::SystemZFrameLowering::emitPrologue(), llvm::ScheduleDAGSDNodes::EmitSchedule(), llvm::finalizeBundles(), findStartOfTree(), llvm::HexagonInstrInfo::genAllInsnTimingClasses(), getBBFallenThrough(), getCondFromFCMOV(), GetInitialOffset(), getLayoutSuccessorProbThreshold(), getNewValueJumpOpcode(), getReassignedChan(), llvm::MachineLoop::getTopBlock(), getTryAncestor(), giveUpWithRemarks(), HandleVRSaveUpdate(), hasArgumentDef(), hasVulnerableLoad(), hoistAndMergeSGPRInits(), INITIALIZE_PASS(), llvm::MIRParserImpl::initializeCallSiteInfo(), insertCopy(), InsertLDR_STR(), IsCallReturnTwice(), isFunctionEntryBlock(), IsMovepDestinationRegPair(), isTerminalReg(), IsUnconditionalJump(), matchPair(), matchSwap(), llvm::GraphTraits< MachineBlockFrequencyInfo * >::nodes_begin(), llvm::GraphTraits< MachineFunction * >::nodes_begin(), llvm::GraphTraits< const MachineFunction * >::nodes_begin(), false::IntervalSorter::operator()(), ProfitableToMerge(), removeExternalCFGEdges(), RemoveVRSaveCode(), RenumberBlocks(), llvm::PPCFrameLowering::replaceFPWithRealFP(), llvm::ARMTargetLowering::ReplaceNodeResults(), llvm::UnreachableBlockElimPass::run(), llvm::InsertNOPLoad::runOnMachineFunction(), llvm::DetectRoundChange::runOnMachineFunction(), llvm::FixAllFDIVSQRT::runOnMachineFunction(), salvageDebugInfoFromEmptyBlock(), stashEntryDbgValues(), llvm::TailDuplicator::tailDuplicateBlocks(), llvm::LoopTraversal::traverse(), verify(), verifyCTRBranch(), verifyLeafProcRegUse(), VerifyPHIs(), and ~MachineFunction().

◆ begin() [2/2]

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

Definition at line 652 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 351 of file MachineFunction.cpp.

Referenced by llvm::SwingSchedulerDAG::applyInstrChange(), llvm::WebAssemblyDebugValueManager::clone(), CloneMachineInstrBundle(), llvm::TargetInstrInfo::commuteInstructionImpl(), llvm::SystemZInstrInfo::commuteInstructionImpl(), llvm::X86InstrInfo::commuteInstructionImpl(), llvm::SwingSchedulerDAG::fixupRegisterOverlaps(), for(), llvm::Localizer::getAnalysisUsage(), llvm::RegBankSelect::getAnalysisUsage(), INITIALIZE_PASS(), isIdentityValue(), isIntersect(), llvm::PeelSingleBlockLoop(), performSink(), llvm::X86InstrInfo::reMaterialize(), llvm::ARMBaseInstrInfo::reMaterialize(), llvm::TargetInstrInfo::reMaterialize(), 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 356 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().

◆ copyCallSiteInfo()

void MachineFunction::copyCallSiteInfo ( const MachineInstr *  Old,
const MachineInstr *  New 
)

Copy the call site info from Old to \ New.

Its usage is when we are making a copy of the instruction that will be inserted at different point of the instruction stream.

Definition at line 883 of file MachineFunction.cpp.

References assert(), and llvm::MachineInstr::isCall().

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

Referenced by addExclusiveRegPair(), llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::analyzeArguments(), llvm::SwitchCG::SwitchLowering::buildJumpTable(), ComputeCommonTailLength(), createPHIsForCMOVsInSinkBB(), llvm::createX86RetpolineThunksPass(), llvm::PPCTargetLowering::EmitAtomicBinary(), emitBlockAfter(), llvm::PPCTargetLowering::emitEHSjLjSetJmp(), llvm::AArch64TargetLowering::EmitF128CSEL(), llvm::BPFTargetLowering::EmitInstrWithCustomInserter(), llvm::AVRTargetLowering::EmitInstrWithCustomInserter(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitPartwordAtomicBinary(), emitPostSt(), emitSelectPseudo(), llvm::MSP430TargetLowering::EmitShiftInstr(), emitXBegin(), llvm::AMDGPURegisterBankInfo::executeInWaterfallLoop(), llvm::VEInstrInfo::expandExtendStackPseudo(), llvm::SparcTargetLowering::expandSelectCC(), for(), getRetpolineSymbol(), llvm::MipsTargetLowering::HandleByVal(), hasOneExitNode(), INITIALIZE_PASS(), llvm::X86FrameLowering::inlineStackProbe(), loadSRsrcFromVGPR(), LowerFPToInt(), makeImplicit(), packCmovGroup(), llvm::PeelSingleBlockLoop(), removeExternalCFGEdges(), llvm::ARMTargetLowering::ReplaceNodeResults(), llvm::FunctionLoweringInfo::set(), split(), splitBlock(), splitBlockForLoop(), llvm::MachineBasicBlock::SplitCriticalEdge(), llvm::SITargetLowering::splitKillBlock(), splitMBB(), toString(), tryToElideArgumentCopy(), and unstackifyVRegsUsedInSplitBB().

◆ CreateMachineInstr()

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

◆ createMIExtraInfo()

MachineInstr::ExtraInfo * MachineFunction::createMIExtraInfo ( ArrayRef< MachineMemOperand *>  MMOs,
MCSymbol *  PreInstrSymbol = nullptr,
MCSymbol *  PostInstrSymbol = nullptr,
MDNode *  HeapAllocMarker = nullptr 
)

Allocate and construct an extra info structure for a MachineInstr.

This is allocated on the function's allocator and so lives the life of the function.

Definition at line 465 of file MachineFunction.cpp.

Referenced by llvm::MachineInstr::RemoveOperand().

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

References llvm::ArrayRecycler< T, Align >::deallocate(), llvm::BitmaskEnumDetail::Mask(), and Name.

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

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

Referenced by llvm::MachineFunctionProperties::print().

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

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

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

◆ empty()

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

◆ end() [1/2]

iterator llvm::MachineFunction::end ( )
inline

Definition at line 653 of file MachineFunction.h.

Referenced by llvm::analyzeArguments(), BBHasFallthrough(), callWaitsOnFunctionReturn(), canFallThroughTo(), llvm::createR600ExpandSpecialInstrsPass(), llvm::createSIAddIMGInitPass(), llvm::createX86RetpolineThunksPass(), llvm::createXCoreFrameToArgsOffsetEliminationPass(), llvm::AVRTargetLowering::EmitInstrWithCustomInserter(), llvm::AVRFrameLowering::emitPrologue(), llvm::MSP430FrameLowering::emitPrologue(), llvm::SystemZFrameLowering::emitPrologue(), llvm::finalizeBundles(), findNextInsertLocation(), getCondFromFCMOV(), GetInitialOffset(), getLayoutSuccessorProbThreshold(), getNewValueJumpOpcode(), getNextBlock(), getReassignedChan(), llvm::guessSuccessors(), HandleVRSaveUpdate(), hasOneExitNode(), hasVulnerableLoad(), hoistAndMergeSGPRInits(), INITIALIZE_PASS(), insertCopy(), InsertLDR_STR(), llvm::SlotIndexes::insertMBBInMaps(), IsMovepDestinationRegPair(), isTerminalReg(), IsUnconditionalJump(), jumpTableFollowsTB(), matchSwap(), llvm::GraphTraits< MachineBlockFrequencyInfo * >::nodes_end(), llvm::GraphTraits< MachineFunction * >::nodes_end(), llvm::GraphTraits< const MachineFunction * >::nodes_end(), false::IntervalSorter::operator()(), RemoveVRSaveCode(), RenumberBlocks(), llvm::PPCFrameLowering::replaceFPWithRealFP(), llvm::ARMTargetLowering::ReplaceNodeResults(), llvm::UnreachableBlockElimPass::run(), llvm::InsertNOPLoad::runOnMachineFunction(), llvm::DetectRoundChange::runOnMachineFunction(), llvm::FixAllFDIVSQRT::runOnMachineFunction(), salvageDebugInfoFromEmptyBlock(), stashEntryDbgValues(), llvm::TailDuplicator::tailDuplicateBlocks(), toString(), verify(), verifyCTRBranch(), verifyLeafProcRegUse(), VerifyPHIs(), and ~MachineFunction().

◆ end() [2/2]

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

Definition at line 654 of file MachineFunction.h.

◆ ensureAlignment()

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

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

Definition at line 523 of file MachineFunction.h.

References A.

Referenced by doesNotGeneratecode(), and llvm::R600AsmPrinter::runOnMachineFunction().

◆ erase() [1/2]

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

◆ erase() [2/2]

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

◆ eraseCallSiteInfo()

void MachineFunction::eraseCallSiteInfo ( const MachineInstr *  MI)

Erase the call site info for MI.

It is used to remove a call instruction from the instruction stream.

Definition at line 876 of file MachineFunction.cpp.

Referenced by llvm::BranchFolder::BranchFolder(), INITIALIZE_PASS(), and llvm::TargetInstrInfo::ReplaceTailWithBranchTo().

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

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

◆ front() [1/2]

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

Definition at line 663 of file MachineFunction.h.

Referenced by llvm::WinException::beginFunction(), llvm::SIInstrInfo::calculateLDSSpillAddress(), callWaitsOnFunctionReturn(), createBBSelectReg(), llvm::createSIWholeQuadModePass(), llvm::createX86PadShortFunctions(), llvm::createX86RetpolineThunksPass(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), llvm::HexagonDAGToDAGISel::EmitFunctionEntryCode(), emitGPDisp(), llvm::X86AsmPrinter::EmitInstruction(), llvm::NVPTXFrameLowering::emitPrologue(), llvm::SparcFrameLowering::emitPrologue(), llvm::VEFrameLowering::emitPrologue(), llvm::XCoreFrameLowering::emitPrologue(), llvm::MSP430FrameLowering::emitPrologue(), llvm::HexagonFrameLowering::emitPrologue(), llvm::LanaiFrameLowering::emitPrologue(), llvm::SystemZFrameLowering::emitPrologue(), enableAllocFrameElim(), llvm::SITargetLowering::finalizeLowering(), findScratchNonCalleeSaveRegister(), llvm::Localizer::getAnalysisUsage(), llvm::getEHScopeMembership(), llvm::GraphTraits< MachineBlockFrequencyInfo * >::getEntryNode(), llvm::GraphTraits< MachineFunction * >::getEntryNode(), llvm::GraphTraits< const MachineFunction * >::getEntryNode(), getFPReg(), llvm::SparcInstrInfo::getGlobalBaseReg(), getMatchingEHPad(), llvm::X86InstrInfo::getSerializableDirectMachineOperandTargetFlags(), getTryAncestor(), giveUpWithRemarks(), llvm::MipsFunctionInfo::initGlobalBaseReg(), INITIALIZE_PASS(), insertCSRRestores(), llvm::AMDGPULegalizerInfo::loadInputValue(), PrevCrossBBInst(), llvm::AArch64FrameLowering::processFunctionBeforeFrameFinalized(), llvm::X86FrameLowering::processFunctionBeforeFrameFinalized(), llvm::PPCFrameLowering::replaceFPWithRealFP(), llvm::rdf::CopyPropagation::run(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::AVRDynAllocaSR::runOnMachineFunction(), llvm::SIRegisterInfo::spillSGPR(), stashEntryDbgValues(), updateLiveness(), and verify().

◆ front() [2/2]

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

Definition at line 664 of file MachineFunction.h.

◆ getAlignment()

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

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

References assert(), and N.

Referenced by llvm::ARMBasicBlockUtils::adjustBBOffsetsAfter(), llvm::LiveRangeCalc::calculateValues(), enableAllocFrameElim(), llvm::SplitAnalysis::getFirstSplitPoint(), GetInitialOffset(), llvm::SplitAnalysis::getLastSplitPoint(), llvm::LiveRangeCalc::isJointlyDominated(), 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 925 of file MachineFunction.h.

References assert().

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

◆ getCallSitesInfo()

const CallSiteInfoMap& llvm::MachineFunction::getCallSitesInfo ( ) const
inline

◆ getCodeViewAnnotations()

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

Definition at line 958 of file MachineFunction.h.

◆ getConstantPool() [1/2]

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

◆ getConstantPool() [2/2]

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

Definition at line 502 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 258 of file MachineFunction.cpp.

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

Referenced by buildCallOperands(), llvm::X86TargetLowering::BuildFILD(), llvm::ScheduleDAGInstrs::buildSchedGraph(), callingConvSupported(), canLowerToLDG(), canTurnIntoCOPY(), CC_ARM_AAPCS_Custom_Aggregate(), CC_RISCV(), CC_RISCV_FastCC(), llvm::FunctionLoweringInfo::ComputePHILiveOutRegInfo(), llvm::SwiftErrorValueTracking::createEntriesInEntryBlock(), createPHIsForCMOVsInSinkBB(), llvm::FunctionLoweringInfo::CreateRegs(), llvm::PPCTargetLowering::emitEHSjLjLongJmp(), llvm::PPCTargetLowering::emitEHSjLjSetJmp(), llvm::MipsAsmPrinter::EmitInstruction(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::AsmPrinter::EmitJumpTableInfo(), llvm::TargetLoweringBase::emitPatchPoint(), emitPostSt(), EnsureStackAlignment(), llvm::InstructionSelector::executeMatchTable(), finishStackBlock(), llvm::AsmPrinter::GetCPISymbol(), llvm::SelectionDAG::getDataLayout(), getDwarfRegNum(), llvm::PPCFunctionInfo::getGlobalEPSymbol(), getJTISymbol(), getLaneCopyOpcode(), llvm::PPCFunctionInfo::getLocalEPSymbol(), llvm::SwiftErrorValueTracking::getOrCreateVReg(), llvm::SwiftErrorValueTracking::getOrCreateVRegDefAt(), getPICBaseSymbol(), llvm::PPCFunctionInfo::getPICOffsetSymbol(), getRetpolineSymbol(), llvm::MSP430TargetLowering::getReturnAddressFrameIndex(), llvm::AsmPrinter::GetSizeOfEncodedValue(), llvm::TargetInstrInfo::getStackSlotRange(), llvm::PPCFunctionInfo::getTOCOffsetSymbol(), getUnderlyingObjects(), llvm::MachinePointerInfo::getUnknownStack(), hasSingleUsesFromRoot(), llvm::PPCTargetLowering::isLegalAddressingMode(), isSupportedType(), llvm::ARMCallLowering::lowerCall(), llvm::MipsCallLowering::lowerCall(), llvm::HexagonTargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), lowerFABS64(), llvm::X86CallLowering::lowerFormalArguments(), llvm::ARMCallLowering::lowerFormalArguments(), llvm::MipsCallLowering::lowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_64(), lowerINT_TO_FP_vXi64(), llvm::BPFTargetLowering::LowerOperation(), llvm::X86CallLowering::lowerReturn(), llvm::MipsCallLowering::lowerReturn(), MachineFunction(), llvm::X86TargetLowering::markLibCallAttributes(), mayTailCallThisCC(), llvm::CallLowering::packRegs(), Passv64i1ArgInRegs(), llvm::PPCTargetLowering::PerformDAGCombine(), llvm::AsmPrinter::PrintSpecial(), processDbgDeclares(), llvm::SwiftErrorValueTracking::propagateVRegs(), llvm::ARMTargetLowering::ReplaceNodeResults(), llvm::SITargetLowering::requiresUniformRegister(), llvm::FunctionLoweringInfo::set(), truncateScalarIntegerArg(), tryToElideArgumentCopy(), llvm::CallLowering::unpackRegs(), and llvm::X86CallLowering::X86CallLowering().

◆ getDenormalMode()

DenormalMode MachineFunction::getDenormalMode ( const fltSemantics &  FPType) const

Returns the denormal handling type for the default rounding mode of the function.

Definition at line 273 of file MachineFunction.cpp.

References llvm::StringRef::empty(), llvm::Function::getFnAttribute(), llvm::Attribute::getValueAsString(), llvm::Invalid, and llvm::parseDenormalFPAttribute().

Referenced by llvm::SelectionDAG::getDenormalMode().

◆ getFilterIDFor()

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

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

Definition at line 826 of file MachineFunction.cpp.

References assert(), E, I, and llvm::MachineInstr::isCall().

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

Referenced by llvm::AArch64CallLowering::AArch64CallLowering(), addCalleeSavedRegs(), addExclusiveRegPair(), llvm::addFrameReference(), llvm::RegsForValue::AddInlineAsmOperands(), llvm::LiveRegUnits::addLiveOuts(), llvm::LivePhysRegs::addLiveOutsNoPristines(), llvm::PPCFrameLowering::addScavengingSpillSlot(), llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::X86FrameLowering::adjustForSegmentedStacks(), AdjustStackOffset(), llvm::SIMachineFunctionInfo::allocateSGPRSpillToVGPR(), llvm::StatepointLoweringState::allocateStackSlot(), llvm::SIMachineFunctionInfo::allocateVGPRSpillToAGPR(), llvm::analyzeArguments(), AnalyzeReturnValues(), llvm::SystemZFrameLowering::assignCalleeSavedSpillSlots(), llvm::ARCFrameLowering::assignCalleeSavedSpillSlots(), llvm::X86FrameLowering::assignCalleeSavedSpillSlots(), llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), llvm::PPCFrameLowering::assignCalleeSavedSpillSlots(), assignCalleeSavedSpillSlots(), AssignProtectedObjSet(), llvm::VirtRegMap::assignVirt2Phys(), llvm::VirtRegMap::assignVirt2StackSlot(), llvm::CodeViewDebug::beginFunctionImpl(), buildCallOperands(), buildEpilogReload(), llvm::X86TargetLowering::BuildFILD(), buildMUBUFOffsetLoadStore(), buildPrologSpill(), calculateSetFPREG(), CalculateTailCallArgDest(), callingConvSupported(), llvm::AArch64RegisterInfo::cannotEliminateFrame(), llvm::ARMBaseRegisterInfo::cannotEliminateFrame(), llvm::X86RegisterInfo::canRealignStack(), llvm::ARMFrameLowering::canSimplifyCallFramePseudos(), llvm::Thumb1FrameLowering::canUseAsEpilogue(), llvm::PPCFrameLowering::canUseAsEpilogue(), llvm::AArch64FrameLowering::canUseRedZone(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), llvm::BaseIndexOffset::computeAliasing(), computeCalleeSaveRegisterPairs(), llvm::MIRPrinter::convertStackObjects(), llvm::MipsFunctionInfo::createEhDataRegsFI(), llvm::XCoreFunctionInfo::createEHSpillSlot(), llvm::XCoreFunctionInfo::createFPSpillSlot(), llvm::MipsFunctionInfo::createISRRegFI(), llvm::XCoreFunctionInfo::createLRSpillSlot(), llvm::SelectionDAG::CreateStackTemporary(), llvm::createXCoreFrameToArgsOffsetEliminationPass(), llvm::TargetInstrInfo::describeLoadedValue(), llvm::HexagonDAGToDAGISel::DetectUseSxtw(), llvm::SystemZFrameLowering::determineCalleeSaves(), llvm::RISCVFrameLowering::determineCalleeSaves(), llvm::SIFrameLowering::determineCalleeSaves(), llvm::ARCFrameLowering::determineCalleeSaves(), llvm::MipsSEFrameLowering::determineCalleeSaves(), llvm::XCoreFrameLowering::determineCalleeSaves(), llvm::LanaiFrameLowering::determineCalleeSaves(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::HexagonFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::determineFrameLayout(), llvm::PPCFrameLowering::determineFrameLayoutAndUpdate(), llvm::TargetOptions::DisableFramePointerElim(), llvm::BPFRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::WebAssemblyRegisterInfo::eliminateFrameIndex(), llvm::LanaiRegisterInfo::eliminateFrameIndex(), llvm::AVRRegisterInfo::eliminateFrameIndex(), llvm::NVPTXRegisterInfo::eliminateFrameIndex(), llvm::ARCRegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::MipsRegisterInfo::eliminateFrameIndex(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), emitAlignedDPRCS2Spills(), llvm::AArch64FrameLowering::emitCalleeSavedFrameMoves(), llvm::X86FrameLowering::emitCalleeSavedFrameMoves(), llvm::AVRFrameLowering::emitEpilogue(), llvm::Thumb1FrameLowering::emitEpilogue(), llvm::Mips16FrameLowering::emitEpilogue(), llvm::MipsSEFrameLowering::emitEpilogue(), llvm::SparcFrameLowering::emitEpilogue(), llvm::VEFrameLowering::emitEpilogue(), llvm::RISCVFrameLowering::emitEpilogue(), llvm::XCoreFrameLowering::emitEpilogue(), llvm::MSP430FrameLowering::emitEpilogue(), llvm::ARMFrameLowering::emitEpilogue(), llvm::SIFrameLowering::emitEpilogue(), llvm::ARCFrameLowering::emitEpilogue(), llvm::AArch64FrameLowering::emitEpilogue(), llvm::WebAssemblyFrameLowering::emitEpilogue(), llvm::SystemZFrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitEpilogue(), llvm::MipsAsmPrinter::emitFrameDirective(), llvm::HexagonDAGToDAGISel::EmitFunctionEntryCode(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::TargetLoweringBase::emitPatchPoint(), llvm::AVRFrameLowering::emitPrologue(), llvm::NVPTXFrameLowering::emitPrologue(), llvm::Thumb1FrameLowering::emitPrologue(), llvm::Mips16FrameLowering::emitPrologue(), llvm::MipsSEFrameLowering::emitPrologue(), llvm::SparcFrameLowering::emitPrologue(), llvm::VEFrameLowering::emitPrologue(), llvm::RISCVFrameLowering::emitPrologue(), llvm::XCoreFrameLowering::emitPrologue(), llvm::SIFrameLowering::emitPrologue(), llvm::MSP430FrameLowering::emitPrologue(), llvm::ARMFrameLowering::emitPrologue(), llvm::ARCFrameLowering::emitPrologue(), llvm::AArch64FrameLowering::emitPrologue(), llvm::HexagonFrameLowering::emitPrologue(), llvm::LanaiFrameLowering::emitPrologue(), llvm::WebAssemblyFrameLowering::emitPrologue(), llvm::SystemZFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), llvm::PPCFrameLowering::emitPrologue(), llvm::AsmPrinter::emitStackSizeSection(), EmitTailCallStoreFPAndRetAddr(), EmitTailCallStoreRetAddr(), enableAllocFrameElim(), llvm::CCState::ensureMaxAlignment(), EnsureStackAlignment(), llvm::BaseIndexOffset::equalBaseIndex(), llvm::MipsFrameLowering::estimateStackSize(), llvm::ARMTargetLowering::finalizeLowering(), findCalledFunction(), FixedPointIntrinsicToOpcode(), fixupFuncForFI(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::TargetInstrInfo::genAlternativeCodeSequence(), getAddressForMemoryInput(), llvm::HexagonFrameLowering::getAlignaInstr(), llvm::TargetFrameLowering::getCalleeSaves(), getCallOpcode(), getDwarfRegNum(), llvm::HexagonTargetLowering::GetDynamicTLSAddr(), llvm::RISCVFrameLowering::getFirstSPAdjustAmount(), llvm::MachineInstr::getFoldedRestoreSize(), llvm::MachineInstr::getFoldedSpillSize(), getFPOffset(), getFRAMEADDR(), getFrameIndexMMO(), getFrameIndexOperandNum(), llvm::NVPTXFrameLowering::getFrameIndexReference(), llvm::R600FrameLowering::getFrameIndexReference(), llvm::MipsSEFrameLowering::getFrameIndexReference(), llvm::RISCVFrameLowering::getFrameIndexReference(), llvm::SIFrameLowering::getFrameIndexReference(), llvm::SparcFrameLowering::getFrameIndexReference(), llvm::VEFrameLowering::getFrameIndexReference(), llvm::HexagonFrameLowering::getFrameIndexReference(), llvm::X86FrameLowering::getFrameIndexReference(), llvm::TargetFrameLowering::getFrameIndexReference(), llvm::AArch64FrameLowering::getFrameIndexReferencePreferSP(), llvm::X86FrameLowering::getFrameIndexReferencePreferSP(), llvm::X86FrameLowering::getFrameIndexReferenceSP(), llvm::R600InstrInfo::getIndirectIndexBegin(), llvm::R600InstrInfo::getIndirectIndexEnd(), llvm::ARMTargetLowering::getJumpTableEncoding(), getLoadStoreOffsetAlign(), llvm::AArch64RegisterInfo::getLocalAddressRegister(), getMachineMemOperand(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), llvm::MipsInstrInfo::GetMemOperand(), getMemsetStores(), llvm::RISCVMachineFunctionInfo::getMoveF64FrameIndex(), llvm::MipsFunctionInfo::getMoveF64ViaSpillFI(), getMOVL(), getNextIntArgReg(), getNormalLoadInput(), getOpenCLAlignment(), llvm::SystemZFrameLowering::getOrCreateFramePointerSaveIndex(), llvm::AArch64InstrInfo::getOutliningType(), llvm::ARMBaseRegisterInfo::getRegPressureLimit(), llvm::MipsRegisterInfo::getReservedRegs(), llvm::MachineInstr::getRestoreSize(), getRetpolineSymbol(), llvm::MSP430TargetLowering::getReturnAddressFrameIndex(), llvm::X86TargetLowering::getReturnAddressFrameIndex(), llvm::AArch64FrameLowering::getSEHFrameIndexOffset(), llvm::MachineInstr::getSpillSize(), getStackOffset(), GetTLSADDR(), llvm::AArch64TargetLowering::getVaListSizeInBits(), getVectorCompareInfo(), getVectorSHLImm(), llvm::X86FrameLowering::getWin64EHFrameIndexRef(), llvm::AArch64FrameLowering::getWinEHFuncletFrameSize(), llvm::MipsCallLowering::MipsHandler::handle(), handleMustTailForwardedRegisters(), hasAnyNonFlatUseOfReg(), llvm::LanaiRegisterInfo::hasBasePointer(), llvm::AArch64RegisterInfo::hasBasePointer(), llvm::X86RegisterInfo::hasBasePointer(), llvm::ARMBaseRegisterInfo::hasBasePointer(), llvm::MipsFrameLowering::hasBP(), llvm::RISCVFrameLowering::hasBP(), llvm::MipsFrameLowering::hasFP(), llvm::SparcFrameLowering::hasFP(), llvm::RISCVFrameLowering::hasFP(), llvm::VEFrameLowering::hasFP(), llvm::WebAssemblyFrameLowering::hasFP(), llvm::SystemZFrameLowering::hasFP(), llvm::MSP430FrameLowering::hasFP(), llvm::XCoreFrameLowering::hasFP(), llvm::ARMFrameLowering::hasFP(), llvm::ARCFrameLowering::hasFP(), llvm::AArch64FrameLowering::hasFP(), llvm::SIFrameLowering::hasFP(), llvm::HexagonFrameLowering::hasFP(), llvm::X86FrameLowering::hasFP(), llvm::PPCFrameLowering::hasFP(), llvm::AVRFrameLowering::hasReservedCallFrame(), llvm::SparcFrameLowering::hasReservedCallFrame(), llvm::Thumb1FrameLowering::hasReservedCallFrame(), llvm::Mips16FrameLowering::hasReservedCallFrame(), llvm::MipsSEFrameLowering::hasReservedCallFrame(), llvm::VEFrameLowering::hasReservedCallFrame(), llvm::RISCVFrameLowering::hasReservedCallFrame(), llvm::WebAssemblyFrameLowering::hasReservedCallFrame(), llvm::MSP430FrameLowering::hasReservedCallFrame(), llvm::ARMFrameLowering::hasReservedCallFrame(), llvm::AArch64FrameLowering::hasReservedCallFrame(), llvm::X86FrameLowering::hasReservedCallFrame(), llvm::GISelKnownBits::inferAlignmentForFrameIdx(), INITIALIZE_PASS(), llvm::MIRParserImpl::initializeFrameInfo(), llvm::HexagonFrameLowering::insertCFIInstructions(), insertCSRRestores(), InsertLDR_STR(), llvm::Mips16RegisterInfo::intRegClass(), llvm::PPCRegisterInfo::isCallerPreservedPhysReg(), isCoalescable(), isConsecutiveLSLoc(), llvm::MachineInstr::isDereferenceableInvariantLoad(), isFuncletReturnInstr(), llvm::XCoreFunctionInfo::isLargeFrame(), llvm::ARCTargetLowering::isLegalAddressingMode(), llvm::PPCTargetLowering::isLegalAddressingMode(), llvm::SelectionDAGISel::isOrEquivalentToAdd(), isSortedByValueNo(), llvm::SystemZInstrInfo::isStackSlotCopy(), llvm::SITargetLowering::isTypeDesirableForOp(), llvm::MSP430InstrInfo::loadRegFromStackSlot(), llvm::Thumb1InstrInfo::loadRegFromStackSlot(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), llvm::XCoreInstrInfo::loadRegFromStackSlot(), llvm::ARCInstrInfo::loadRegFromStackSlot(), llvm::AVRInstrInfo::loadRegFromStackSlot(), llvm::SparcInstrInfo::loadRegFromStackSlot(), llvm::AArch64InstrInfo::loadRegFromStackSlot(), llvm::HexagonInstrInfo::loadRegFromStackSlot(), llvm::ARMBaseInstrInfo::loadRegFromStackSlot(), llvm::SIInstrInfo::loadRegFromStackSlot(), llvm::PPCInstrInfo::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(), lowerFABS64(), llvm::AArch64CallLowering::lowerFormalArguments(), llvm::MipsCallLowering::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(), lowerINT_TO_FP_vXi64(), LowerINTRINSIC_W_CHAIN(), llvm::X86CallLowering::lowerReturn(), llvm::ARMCallLowering::lowerReturn(), llvm::LanaiTargetLowering::LowerRETURNADDR(), llvm::MSP430TargetLowering::LowerRETURNADDR(), llvm::HexagonTargetLowering::LowerRETURNADDR(), LowerRETURNADDR(), llvm::MipsTargetLowering::lowerSTORE(), LowerToTLSExecModel(), lowerUINT_TO_FP_vec(), LowerVASTART(), LowerVectorINT_TO_FP(), llvm::SparcTargetLowering::makeAddress(), llvm::Mips16InstrInfo::makeFrame(), MatchingStackOffset(), llvm::MachineInstr::mayAlias(), mayTailCallThisCC(), llvm::AArch64Subtarget::mirFileLoaded(), llvm::HexagonFrameLowering::needsAligna(), llvm::PPCFrameLowering::needsFP(), llvm::AArch64RegisterInfo::needsFrameBaseReg(), llvm::ARMBaseRegisterInfo::needsFrameBaseReg(), llvm::X86FrameLowering::needsFrameIndexResolution(), llvm::TargetFrameLowering::needsFrameIndexResolution(), llvm::WebAssemblyFrameLowering::needsPrologForEH(), llvm::TargetRegisterInfo::needsStackRealignment(), false::IntervalSorter::operator()(), llvm::X86FrameLowering::orderFrameObjects(), llvm::MIRPrinter::print(), llvm::MIPrinter::print(), llvm::MachineInstr::print(), printMemOperand(), llvm::MipsAsmPrinter::printSavedRegsBitmask(), llvm::RISCVFrameLowering::processFunctionBeforeFrameFinalized(), llvm::SystemZFrameLowering::processFunctionBeforeFrameFinalized(), llvm::MSP430FrameLowering::processFunctionBeforeFrameFinalized(), llvm::SIFrameLowering::processFunctionBeforeFrameFinalized(), llvm::XCoreFrameLowering::processFunctionBeforeFrameFinalized(), llvm::ARCFrameLowering::processFunctionBeforeFrameFinalized(), llvm::HexagonFrameLowering::processFunctionBeforeFrameFinalized(), llvm::AArch64FrameLowering::processFunctionBeforeFrameFinalized(), llvm::PPCFrameLowering::processFunctionBeforeFrameFinalized(), llvm::X86FrameLowering::processFunctionBeforeFrameFinalized(), llvm::PPCFrameLowering::replaceFPWithRealFP(), llvm::ARMTargetLowering::ReplaceNodeResults(), llvm::SIRegisterInfo::requiresFrameIndexReplacementScavenging(), llvm::PPCRegisterInfo::requiresFrameIndexScavenging(), llvm::SIRegisterInfo::requiresRegisterScavenging(), reservePrivateMemoryRegs(), llvm::AArch64FrameLowering::resolveFrameIndexReference(), llvm::ARMFrameLowering::ResolveFrameIndexReference(), llvm::AArch64FrameLowering::resolveFrameOffsetReference(), llvm::Mips16InstrInfo::restoreFrame(), llvm::SIRegisterInfo::restoreSGPR(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::AVRFrameAnalyzer::runOnMachineFunction(), llvm::AVRDynAllocaSR::runOnMachineFunction(), llvm::HexagonDAGToDAGISel::SelectAddrFI(), llvm::HexagonDAGToDAGISel::SelectFrameIndex(), llvm::FastISel::selectStackmap(), llvm::FunctionLoweringInfo::set(), llvm::AArch64InstrInfo::shouldClusterMemOps(), llvm::SITargetLowering::shouldEmitPCReloc(), ShouldSignReturnAddress(), llvm::SIMachineFunctionInfo::SIMachineFunctionInfo(), llvm::Mips16FrameLowering::spillCalleeSavedRegisters(), llvm::MipsSEFrameLowering::spillCalleeSavedRegisters(), llvm::AArch64FrameLowering::spillCalleeSavedRegisters(), spillIncomingStatepointValue(), llvm::SIRegisterInfo::spillSGPR(), llvm::CriticalAntiDepBreaker::StartBlock(), llvm::AggressiveAntiDepBreaker::StartBlock(), stashEntryDbgValues(), llvm::MSP430InstrInfo::storeRegToStackSlot(), llvm::Thumb1InstrInfo::storeRegToStackSlot(), llvm::Thumb2InstrInfo::storeRegToStackSlot(), llvm::XCoreInstrInfo::storeRegToStackSlot(), llvm::ARCInstrInfo::storeRegToStackSlot(), llvm::AVRInstrInfo::storeRegToStackSlot(), llvm::SparcInstrInfo::storeRegToStackSlot(), llvm::AArch64InstrInfo::storeRegToStackSlot(), llvm::HexagonInstrInfo::storeRegToStackSlot(), llvm::ARMBaseInstrInfo::storeRegToStackSlot(), llvm::SIInstrInfo::storeRegToStackSlot(), llvm::PPCInstrInfo::storeRegToStackSlot(), llvm::X86InstrInfo::storeRegToStackSlot(), llvm::SystemZInstrInfo::SystemZInstrInfo(), truncateScalarIntegerArg(), tryToElideArgumentCopy(), UnpackFromArgumentSlot(), unpackFromMemLoc(), updateLiveness(), llvm::HexagonPacketizerList::useCalleesSP(), llvm::HexagonPacketizerList::useCallersSP(), usePackedStack(), verifyLeafProcRegUse(), llvm::SelectionDAGBuilder::visitSPDescriptorParent(), WindowsRequiresStackProbe(), and windowsRequiresStackProbe().

◆ getFrameInfo() [2/2]

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

Definition at line 486 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 828 of file MachineFunction.h.

References LLVM_NODISCARD.

Referenced by llvm::AsmPrinter::emitCFIInstruction().

◆ getFunction()

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

Return the LLVM function that this machine code represents.

Definition at line 456 of file MachineFunction.h.

References F(), and getName().

Referenced by llvm::AArch64FunctionInfo::AArch64FunctionInfo(), addExclusiveRegPair(), adjCycles(), llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::SIMachineFunctionInfo::allocateVGPRSpillToAGPR(), llvm::NVPTXTargetLowering::allowUnsafeFPMath(), llvm::AMDGPUMachineFunction::AMDGPUMachineFunction(), llvm::analyzeArguments(), llvm::AMDGPUTargetLowering::analyzeFormalArgumentsCompute(), AnalyzeReturnValues(), appendEndToFunction(), areCallingConvEligibleForTCO_64SVR4(), llvm::SystemZFrameLowering::assignCalleeSavedSpillSlots(), AssignProtectedObjSet(), atomicReadDroppedOnZero(), llvm::DwarfCFIException::beginFragment(), llvm::WinException::beginFunclet(), llvm::DwarfCFIException::beginFunction(), llvm::WinException::beginFunction(), llvm::DebugHandlerBase::beginFunction(), llvm::BTFDebug::beginFunctionImpl(), llvm::CodeViewDebug::beginFunctionImpl(), llvm::DwarfDebug::beginFunctionImpl(), llvm::BTFDebug::beginInstruction(), llvm::DwarfDebug::beginInstruction(), buildCallOperands(), llvm::MachineIRBuilder::buildFConstant(), llvm::TargetLowering::BuildSDIVPow2(), llvm::SIInstrInfo::calculateLDSSpillAddress(), calculateSetFPREG(), callHasRegMask(), callingConvSupported(), canLowerToLDG(), llvm::AArch64TargetLowering::canMergeStoresTo(), llvm::X86TargetLowering::canMergeStoresTo(), CanMovePastDMB(), llvm::TargetRegisterInfo::canRealignStack(), llvm::AArch64FrameLowering::canUseRedZone(), CC_Lanai32_VarArg(), CC_RISCV(), CC_RISCV_FastCC(), CC_X86_Intr(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), NoAutoPaddingScope::changeAndComment(), checkNumAlignedDPRCS2Regs(), llvm::rdf::DataFlowGraph::DefStack::clear_block(), collectRegDefs(), combineADDToADDZE(), CombineCVTAToLocal(), combineFMA(), combineFMADDSUB(), combineFMinNumFMaxNum(), combineMul(), combineReductionToHorizontal(), combineStore(), llvm::X86InstrInfo::commuteInstructionImpl(), computeBranchTargetAndInversion(), computeCalleeSaveRegisterPairs(), llvm::GCNSubtarget::computeOccupancy(), ConvertDoubleToBytes(), convertImplicitDefToConstZero(), llvm::createBreakFalseDeps(), llvm::createHexagonHardwareLoops(), llvm::XCoreFunctionInfo::createLRSpillSlot(), llvm::createMemLibcall(), createPHIsForCMOVsInSinkBB(), llvm::createR600ISelDag(), llvm::createSIWholeQuadModePass(), llvm::createSystemZLDCleanupPass(), llvm::createX86FixupBWInsts(), llvm::createX86GlobalBaseRegPass(), llvm::createX86PadShortFunctions(), llvm::X86InstrInfo::describeLoadedValue(), llvm::TargetInstrInfo::describeLoadedValue(), describeMOVrrLoadedValue(), describeORRLoadedValue(), llvm::SystemZFrameLowering::determineCalleeSaves(), llvm::RISCVFrameLowering::determineCalleeSaves(), llvm::XCoreFrameLowering::determineCalleeSaves(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::TargetFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::determineFrameLayout(), llvm::TargetOptions::DisableFramePointerElim(), doesNotGeneratecode(), duplicateCPV(), llvm::X86FrameLowering::eliminateCallFramePseudoInstr(), llvm::PPCRegisterInfo::eliminateFrameIndex(), EmitCmp(), emitConstantSizeRepmov(), llvm::AsmPrinter::EmitDebugValue(), 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::SystemZFrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitEpilogue(), llvm::AMDGPUAsmPrinter::EmitFunctionBodyEnd(), llvm::WebAssemblyAsmPrinter::EmitFunctionBodyStart(), llvm::AMDGPUAsmPrinter::EmitFunctionBodyStart(), llvm::MipsAsmPrinter::EmitFunctionBodyStart(), llvm::AMDGPUAsmPrinter::EmitFunctionEntryLabel(), llvm::DwarfDebug::emitInitialLocDirective(), llvm::AsmPrinter::EmitJumpTableInfo(), llvm::AMDGPU::HSAMD::MetadataStreamerV3::emitKernel(), llvm::AMDGPU::HSAMD::MetadataStreamerV2::emitKernel(), llvm::ARMBaseRegisterInfo::emitLoadConstPool(), llvm::AArch64TargetLowering::EmitLoweredCatchRet(), emitNonHSAIntrinsicError(), EmitNop(), llvm::AsmPrinter::emitPatchableFunctionEntries(), emitPostSt(), llvm::AVRFrameLowering::emitPrologue(), llvm::MipsSEFrameLowering::emitPrologue(), llvm::RISCVFrameLowering::emitPrologue(), llvm::XCoreFrameLowering::emitPrologue(), llvm::ARMFrameLowering::emitPrologue(), llvm::ARCFrameLowering::emitPrologue(), llvm::AArch64FrameLowering::emitPrologue(), llvm::SystemZFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), emitRemovedIntrinsicError(), llvm::AArch64RegisterInfo::emitReservedArgRegCallError(), emitThumb1LoadConstPool(), emitThumb2LoadConstPool(), emitXBegin(), llvm::AsmPrinter::emitXRayTable(), enableAllocFrameElim(), llvm::HexagonFrameLowering::enableCalleeSaveSkip(), llvm::ARMFrameLowering::enableCalleeSaveSkip(), llvm::TargetFrameLowering::enableCalleeSaveSkip(), llvm::X86FrameLowering::enableShrinkWrapping(), llvm::WinException::endFunclet(), llvm::ARMException::endFunction(), llvm::WinException::endFunction(), llvm::CodeViewDebug::endFunctionImpl(), llvm::DwarfDebug::endFunctionImpl(), EnsureStackAlignment(), eraseDeadBBsAndChildren(), errorUnsupported(), fail(), findCalledFunction(), llvm::LexicalScopes::findLexicalScope(), findUnwindDestinations(), findVCMPToFoldIntoVPST(), FixedPointIntrinsicToOpcode(), fixupGlobalSaddr(), foldFPToIntToFP(), llvm::X86InstrInfo::foldMemoryOperandImpl(), get64BitArgumentXMMs(), getAssignFnsForCC(), getBufferFormatWithCompCount(), getBufferOffsetForMMO(), llvm::MSP430RegisterInfo::getCalleeSavedRegs(), llvm::AVRRegisterInfo::getCalleeSavedRegs(), llvm::RISCVRegisterInfo::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(), getCallOpcode(), llvm::AArch64RegisterInfo::getCallPreservedMask(), llvm::SystemZRegisterInfo::getCallPreservedMask(), llvm::X86RegisterInfo::getCallPreservedMask(), llvm::ARMBaseRegisterInfo::getCallPreservedMask(), getDSShaderTypeValue(), llvm::getEHScopeMembership(), getElementByteSizeValue(), llvm::ARMTargetLowering::getExceptionSelectorRegister(), getFPOffset(), getFPReg(), llvm::AArch64FrameLowering::getFrameIndexReference(), llvm::X86FrameLowering::getFrameIndexReference(), getFunctionReturns(), llvm::ARMSubtarget::getGPRAllocationOrder(), llvm::X86RegisterInfo::getGPRsForTailCall(), getImmedFromMO(), llvm::AMDGPUTargetLowering::getImplicitParameterOffset(), getInsertVecEltOpInfo(), llvm::PerFunctionMIParsingState::getIRValue(), llvm::ARMTargetLowering::getJumpTableEncoding(), getLayoutSuccessorProbThreshold(), getLoadStackGuard(), llvm::GCNSubtarget::getMaxNumSGPRs(), llvm::GCNSubtarget::getMaxNumVGPRs(), llvm::X86TargetLowering::getMaxSupportedInterleaveFactor(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), getMemsetStores(), getMopState(), getMOVL(), getName(), getNewValueJumpOpcode(), llvm::AMDGPUSubtarget::getOccupancyWithLocalMemSize(), getOModValue(), getOpenCLAlignment(), llvm::ARMBaseInstrInfo::getOperandLatency(), llvm::AArch64InstrInfo::getOutliningCandidateInfo(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), getReassignedChan(), getRecipEstimateForFunc(), llvm::SIRegisterInfo::getRegPressureLimit(), getRegUnits(), llvm::MipsRegisterInfo::getReservedRegs(), llvm::AArch64RegisterInfo::getReservedRegs(), llvm::X86RegisterInfo::getReservedRegs(), getRsrcReg(), GetScratchRegister(), llvm::MipsCCState::getSpecialCallingConvForCallee(), llvm::TargetFrameLowering::getStackAlignmentSkew(), llvm::X86TargetLowering::getStackProbeSize(), llvm::X86TargetLowering::getStackProbeSymbolName(), getStartOrEndSlot(), getSubOpcode(), GetSymbolRef(), getTag(), getUnderlyingObjects(), getVariantKind(), getVectorSHLImm(), giveUpWithRemarks(), llvm::CallLowering::handleAssignments(), handleMustTailForwardedRegisters(), handleNormalInst(), llvm::X86FrameLowering::has128ByteRedZone(), hasAnyNonFlatUseOfReg(), hasDebugInfo(), llvm::HexagonFrameLowering::hasFP(), HasNestArgument(), hasReturnsTwiceAttr(), llvm::ARMTargetLowering::hasStandaloneRem(), hasVulnerableLoad(), llvm::HexagonEvaluator::HexagonEvaluator(), llvm::ARMSubtarget::ignoreCSRForAllocationOrder(), llvm::SelectionDAG::init(), llvm::MipsFunctionInfo::initGlobalBaseReg(), llvm::LexicalScopes::initialize(), INITIALIZE_PASS(), llvm::MIRParserImpl::initializeConstantPool(), llvm::MIRParserImpl::initializeFrameInfo(), InsertBitToMaskVector(), llvm::AArch64TargetLowering::insertCopiesSplitCSR(), llvm::PPCTargetLowering::insertCopiesSplitCSR(), insertCopy(), insertCSRRestores(), insertDeleteInstructions(), InsertLDR_STR(), isBackwardPropagatableCopy(), isCallableFunction(), isCalleeLoad(), llvm::TargetRegisterInfo::isCalleeSavedPhysReg(), IsCallReturnTwice(), llvm::AArch64InstrInfo::isCandidateToMergeOrPair(), isCompareZero(), llvm::AArch64CallLowering::isEligibleForTailCallOptimization(), llvm::HexagonTargetLowering::IsEligibleForTailCallOptimization(), llvm::SITargetLowering::isEligibleForTailCallOptimization(), isFpMulInstruction(), isFuncletReturnInstr(), machine_size_opts_detail::isFunctionColdInCallGraph(), machine_size_opts_detail::isFunctionHotInCallGraphNthPercentile(), llvm::RISCVInstrInfo::isFunctionSafeToOutlineFrom(), llvm::AArch64InstrInfo::isFunctionSafeToOutlineFrom(), llvm::X86InstrInfo::isFunctionSafeToOutlineFrom(), isHardwareLoop(), isIdentityValue(), llvm::X86TargetLowering::isIntDivCheap(), isLEA(), llvm::PPCTargetLowering::isLegalAddressingMode(), isLibCallInTailPosition(), isLiveOut(), isMinSize(), isNoReturnDef(), isOptNone(), isOptSize(), llvm::ARMBaseInstrInfo::isProfitableToIfCvt(), llvm::ARMTargetLowering::isReadOnly(), llvm::PPCInstrInfo::isSignOrZeroExtended(), isSortedByValueNo(), isSubBorrowChain(), isSupportedType(), isTargetConstant(), IsUnconditionalJump(), isVirtualRegisterOperand(), llvm::ARMLegalizerInfo::legalizeCustom(), llvm::AMDGPULegalizerInfo::legalizeGlobalValue(), llvm::SIInstrInfo::legalizeOperands(), llvm::LegalizerHelper::libcall(), llvm::SIMachineFunctionInfo::limitOccupancy(), llvm::XCoreInstrInfo::loadImmediate(), llvm::MipsSEInstrInfo::loadRegFromStack(), llvm::Localizer::Localizer(), LoopIsOuterMostWithPredecessor(), llvm::LegalizerHelper::lower(), llvm::X86CallLowering::lowerCall(), llvm::AArch64CallLowering::lowerCall(), llvm::MipsCallLowering::lowerCall(), llvm::HexagonTargetLowering::LowerCall(), llvm::SITargetLowering::LowerCall(), llvm::CallLowering::lowerCall(), llvm::AsmPrinter::lowerConstant(), llvm::AMDGPUTargetLowering::LowerDYNAMIC_STACKALLOC(), LowerEXTRACT_SUBVECTOR(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), LowerFPToInt(), llvm::AMDGPUTargetLowering::LowerGlobalAddress(), LowerInterruptReturn(), llvm::BPFTargetLowering::LowerOperation(), llvm::X86CallLowering::lowerReturn(), llvm::AArch64CallLowering::lowerReturn(), llvm::AMDGPUCallLowering::lowerReturn(), llvm::MipsCallLowering::lowerReturn(), llvm::NVPTXTargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::AMDGPUTargetLowering::lowerUnhandledCall(), LowerVACOPY(), LowerVASTART(), llvm::SparcTargetLowering::makeAddress(), llvm::X86TargetLowering::markLibCallAttributes(), MatchingStackOffset(), matchPair(), matchSwap(), mayTailCallThisCC(), mayUseP9Setb(), memOpsHaveSameBasePtr(), moveInstrOut(), needFuncLabelsForEHOrDebugInfo(), llvm::AsmPrinter::needsCFIMoves(), llvm::PPCFrameLowering::needsFP(), llvm::WebAssemblyFrameLowering::needsPrologForEH(), llvm::AsmPrinter::needsSEHMoves(), llvm::TargetRegisterInfo::needsStackRealignment(), needsWinCFI(), normalizePBQPSpillWeight(), false::IntervalSorter::operator()(), operator<<(), optimizeCall(), optimizeVcndVcmpPair(), llvm::OptLevelChanger::OptLevelChanger(), outliningCandidatesSigningKeyConsensus(), outliningCandidatesSigningScopeConsensus(), parseGlobalValue(), parseIRValue(), parseTexFail(), Passv64i1ArgInRegs(), performBRCONDCombine(), performSink(), performXorCombine(), llvm::MIRPrinter::print(), llvm::MIPrinter::print(), print(), llvm::MachineBasicBlock::print(), llvm::MachineInstr::print(), printMemOperand(), llvm::X86FrameLowering::processFunctionBeforeFrameFinalized(), produceCompactUnwindFrame(), ProfitableToMerge(), promoteToConstantPool(), llvm::AsmPrinter::recordSled(), reduceVMULWidth(), removeDebugValues(), removeRedundantBlockingStores(), llvm::ARMTargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), reportIllegalCopy(), reservePrivateMemoryRegs(), llvm::AArch64FrameLowering::resolveFrameOffsetReference(), llvm::X86FrameLowering::restoreCalleeSavedRegisters(), llvm::CallLowering::resultsCompatible(), llvm::BreakFalseDeps::runOnMachineFunction(), llvm::Legalizer::runOnMachineFunction(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::ARMAsmPrinter::runOnMachineFunction(), llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::ExecutionDomainFix::runOnMachineFunction(), llvm::X86AsmPrinter::runOnMachineFunction(), llvm::MachineOptimizationRemarkEmitterPass::runOnMachineFunction(), llvm::NVPTXAsmPrinter::runOnMachineFunction(), llvm::RegBankSelect::runOnMachineFunction(), salvageDebugInfoFromEmptyBlock(), scaleCaseProbality(), llvm::SwiftErrorValueTracking::setFunction(), llvm::AsmPrinter::SetupMachineFunction(), llvm::SITargetLowering::shouldEmitPCReloc(), llvm::RISCVTargetLowering::shouldExpandShift(), llvm::AArch64TargetLowering::shouldExpandShift(), llvm::X86TargetLowering::shouldExpandShift(), shouldLowerMemFuncForSize(), llvm::FastISel::shouldOptForSize(), llvm::SelectionDAG::shouldOptForSize(), llvm::AArch64InstrInfo::shouldOutlineFromFunctionByDefault(), ShouldSignReturnAddress(), ShouldSignWithAKey(), shouldSplitStack(), llvm::TailDuplicator::shouldTailDuplicate(), ShrinkLoadReplaceStoreWithStore(), llvm::SIMachineFunctionInfo::SIMachineFunctionInfo(), simplifyDivRem(), llvm::SystemZFrameLowering::spillCalleeSavedRegisters(), llvm::MipsSEFrameLowering::spillCalleeSavedRegisters(), llvm::AArch64FrameLowering::spillCalleeSavedRegisters(), llvm::X86FrameLowering::spillCalleeSavedRegisters(), splitStores(), stashEntryDbgValues(), llvm::MipsSEInstrInfo::storeRegToStack(), false::Chain::str(), llvm::AArch64TargetLowering::supportSplitCSR(), llvm::PPCTargetLowering::supportSplitCSR(), tieOpsIfNeeded(), toString(), transformCallee(), tryToFindRegisterToRename(), UnpackFromArgumentSlot(), UpdateCPSRUse(), usedAsAddr(), llvm::NVPTXTargetLowering::useF32FTZ(), usePackedStack(), llvm::R600InstrInfo::usesTextureCache(), llvm::R600InstrInfo::usesVertexCache(), VisitGlobalVariableForEmission(), llvm::SelectionDAGBuilder::visitSPDescriptorParent(), WarnSize(), llvm::LegalizerHelper::widenScalar(), WindowsRequiresStackProbe(), 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 567 of file MachineFunction.h.

References Allocator.

Referenced by addExclusiveRegPair(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::analyzeArguments(), AnalyzeReturnValues(), appendEndToFunction(), llvm::ARMBasicBlockUtils::ARMBasicBlockUtils(), llvm::SystemZFrameLowering::assignCalleeSavedSpillSlots(), llvm::SIFrameLowering::assignCalleeSavedSpillSlots(), llvm::X86FrameLowering::assignCalleeSavedSpillSlots(), buildCallOperands(), buildEpilogReload(), llvm::SIInstrInfo::calculateLDSSpillAddress(), CalculateTailCallSPDiff(), callingConvSupported(), callWaitsOnFunctionReturn(), llvm::X86InstrInfo::canMakeTailCallConditional(), llvm::SIRegisterInfo::canRealignStack(), llvm::PPCFrameLowering::canUseAsEpilogue(), llvm::AArch64FrameLowering::canUseRedZone(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), checkNumAlignedDPRCS2Regs(), llvm::WebAssemblyInstrInfo::commuteInstructionImpl(), computeCalleeSaveRegisterPairs(), computeWeight(), llvm::WebAssemblyTargetMachine::convertFuncInfoToYAML(), llvm::GCNTargetMachine::convertFuncInfoToYAML(), llvm::createR600ISelDag(), llvm::createSystemZLDCleanupPass(), 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::PPCFrameLowering::determineCalleeSaves(), llvm::SIFrameLowering::determineCalleeSavesSGPR(), llvm::PPCFrameLowering::determineFrameLayout(), llvm::AMDGPUAsmPrinter::doFinalization(), duplicateCPV(), llvm::SIFrameLowering::eliminateCallFramePseudoInstr(), llvm::ARCFrameLowering::eliminateCallFramePseudoInstr(), llvm::X86FrameLowering::eliminateCallFramePseudoInstr(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::AArch64RegisterInfo::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::RISCVFrameLowering::emitEpilogue(), llvm::XCoreFrameLowering::emitEpilogue(), llvm::MSP430FrameLowering::emitEpilogue(), llvm::ARMFrameLowering::emitEpilogue(), llvm::SIFrameLowering::emitEpilogue(), llvm::ARCFrameLowering::emitEpilogue(), llvm::AArch64FrameLowering::emitEpilogue(), llvm::WebAssemblyFrameLowering::emitEpilogue(), llvm::SystemZFrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitEpilogue(), llvm::AMDGPUAsmPrinter::EmitFunctionBodyEnd(), llvm::AMDGPUAsmPrinter::EmitFunctionBodyStart(), llvm::X86AsmPrinter::EmitFunctionBodyStart(), llvm::HexagonDAGToDAGISel::EmitFunctionEntryCode(), llvm::AMDGPUAsmPrinter::EmitFunctionEntryLabel(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::AVRFrameLowering::emitPrologue(), llvm::Thumb1FrameLowering::emitPrologue(), llvm::MipsSEFrameLowering::emitPrologue(), llvm::SparcFrameLowering::emitPrologue(), llvm::XCoreFrameLowering::emitPrologue(), llvm::RISCVFrameLowering::emitPrologue(), llvm::SIFrameLowering::emitPrologue(), llvm::MSP430FrameLowering::emitPrologue(), llvm::ARMFrameLowering::emitPrologue(), llvm::ARCFrameLowering::emitPrologue(), llvm::AArch64FrameLowering::emitPrologue(), llvm::WebAssemblyFrameLowering::emitPrologue(), llvm::SystemZFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), llvm::PPCFrameLowering::emitPrologue(), llvm::PPCFrameLowering::enableShrinkWrapping(), llvm::AArch64FrameLowering::enableStackSlotScavenging(), EnsureStackAlignment(), estimateRSStackSizeLimit(), ExpandMOVImmSExti8(), llvm::SITargetLowering::finalizeLowering(), findMemSDNode(), findStartOfTree(), findTemporariesForLR(), fixupFuncForFI(), for(), llvm::HexagonFrameLowering::getAlignaInstr(), getAssignFnsForCC(), 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(), llvm::ARMFrameLowering::getCalleeSaves(), getCallOpcode(), getDepth(), getElementByteSizeValue(), llvm::ARMTargetLowering::getExceptionSelectorRegister(), getFPOffset(), llvm::RISCVFrameLowering::getFrameIndexReference(), llvm::SparcFrameLowering::getFrameIndexReference(), llvm::HexagonFrameLowering::getFrameIndexReference(), llvm::X86FrameLowering::getFrameIndexReference(), llvm::X86FrameLowering::getFrameIndexReferencePreferSP(), llvm::SIRegisterInfo::getFrameRegister(), llvm::MipsDAGToDAGISel::getGlobalBaseReg(), llvm::SparcInstrInfo::getGlobalBaseReg(), llvm::X86InstrInfo::getGlobalBaseReg(), llvm::MipsTargetLowering::getGlobalReg(), llvm::AMDGPUTargetLowering::getImplicitParameterOffset(), llvm::ARMBaseInstrInfo::getInstSizeInBytes(), llvm::ARMTargetLowering::getJumpTableEncoding(), getLoadExtOrTrunc(), llvm::PPCInstrInfo::getLoadOpcodeForSpill(), getLoadStoreOffsetAlign(), llvm::GCNSubtarget::getMaxNumSGPRs(), llvm::GCNSubtarget::getMaxNumVGPRs(), llvm::SIInstrInfo::getMemOperandWithOffset(), getMopState(), getMOVL(), llvm::AMDGPUSubtarget::getOccupancyWithLocalMemSize(), getOModValue(), llvm::SystemZFrameLowering::getOrCreateFramePointerSaveIndex(), llvm::AArch64InstrInfo::getOutliningType(), llvm::R600AsmPrinter::getPassName(), llvm::SIRegisterInfo::getRegPressureLimit(), llvm::GCNSubtarget::getReservedNumSGPRs(), llvm::MipsRegisterInfo::getReservedRegs(), llvm::SIRegisterInfo::getReservedRegs(), llvm::PPCRegisterInfo::getReservedRegs(), getRetpolineSymbol(), llvm::MSP430TargetLowering::getReturnAddressFrameIndex(), llvm::X86TargetLowering::getReturnAddressFrameIndex(), getRsrcReg(), llvm::AMDGPULegalizerInfo::getSegmentAperture(), llvm::X86InstrInfo::getSerializableDirectMachineOperandTargetFlags(), getSPDenormModeValue(), getSplatConstantFP(), getSubOpcode(), getSVEStackSize(), llvm::SITargetLowering::getTgtMemIntrinsic(), getVectorSHLImm(), llvm::X86FrameLowering::getWin64EHFrameIndexRef(), llvm::AArch64FrameLowering::getWinEHFuncletFrameSize(), llvm::X86FrameLowering::getWinEHParentFrameOffset(), handleMustTailForwardedRegisters(), handleNormalInst(), hasAnyNonFlatUseOfReg(), llvm::ARMBaseRegisterInfo::hasBasePointer(), llvm::AVRFrameLowering::hasFP(), llvm::SystemZFrameLowering::hasFP(), llvm::SIFrameLowering::hasFP(), llvm::HexagonFrameLowering::hasFP(), llvm::X86FrameLowering::hasFP(), hasFP32Denormals(), hasFP64FP16Denormals(), hasNonRISpills(), llvm::X86FrameLowering::hasReservedCallFrame(), llvm::PPCRegisterInfo::hasReservedSpillSlot(), hasSpills(), INITIALIZE_PASS(), llvm::AArch64TargetLowering::initializeSplitCSR(), llvm::PPCTargetLowering::initializeSplitCSR(), llvm::X86FrameLowering::inlineStackProbe(), insertCSRRestores(), InsertLDR_STR(), llvm::intCCToAVRCC(), isClampZeroToOne(), isCopy(), llvm::SITargetLowering::isEligibleForTailCallOptimization(), isFuncletReturnInstr(), llvm::AArch64InstrInfo::isFunctionSafeToOutlineFrom(), llvm::X86InstrInfo::isFunctionSafeToOutlineFrom(), llvm::X86TargetLowering::isIntDivCheap(), llvm::SITargetLowering::isKnownNeverNaNForTargetNode(), llvm::PPCTargetLowering::isLegalAddressingMode(), llvm::ARMBaseInstrInfo::isPredicable(), llvm::ARMTargetLowering::isReadOnly(), llvm::PPCInstrInfo::isSignOrZeroExtended(), isSortedByValueNo(), isStackPtrRelative(), isSubBorrowChain(), llvm::SITargetLowering::isTypeDesirableForOp(), llvm::AMDGPULegalizerInfo::legalizeAddrSpaceCast(), llvm::AMDGPULegalizerInfo::legalizeFastUnsafeFDIV(), llvm::AMDGPULegalizerInfo::legalizeFDIV32(), llvm::AMDGPULegalizerInfo::legalizeGlobalValue(), llvm::AMDGPULegalizerInfo::legalizeImplicitArgPtr(), llvm::AMDGPULegalizerInfo::legalizeMinNumMaxNum(), llvm::AMDGPULegalizerInfo::legalizePreloadedArgIntrin(), llvm::SIInstrInfo::loadRegFromStackSlot(), llvm::PPCInstrInfo::loadRegFromStackSlot(), llvm::WebAssemblyMCInstLower::lower(), llvm::LowerARMMachineInstrToMCInst(), llvm::SITargetLowering::LowerCall(), lowerCallResult(), LowerCallResult(), llvm::AMDGPUTargetLowering::LowerDIVREM24(), llvm::HexagonTargetLowering::LowerEH_RETURN(), lowerFABS64(), llvm::AArch64CallLowering::lowerFormalArguments(), llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::MipsCallLowering::lowerFormalArguments(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::AMDGPUCallLowering::lowerFormalArgumentsKernel(), 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::AMDGPUTargetLowering::LowerUDIVREM64(), llvm::LanaiTargetLowering::LowerVASTART(), llvm::MSP430TargetLowering::LowerVASTART(), llvm::HexagonTargetLowering::LowerVASTART(), LowerVASTART(), LowerWRITE_REGISTER(), MatchingStackOffset(), llvm::ARMBaseRegisterInfo::materializeFrameBaseRegister(), mayTailCallThisCC(), moveAndTeeForMultiUse(), MustSaveLR(), llvm::PPCFrameLowering::needsFP(), llvm::ARMBaseRegisterInfo::needsFrameBaseReg(), llvm::X86FrameLowering::needsFrameIndexResolution(), llvm::WebAssemblyTargetMachine::parseMachineFunctionInfo(), llvm::GCNTargetMachine::parseMachineFunctionInfo(), parseTexFail(), Passv64i1ArgInRegs(), llvm::SIFrameLowering::processFunctionBeforeFrameFinalized(), llvm::XCoreFrameLowering::processFunctionBeforeFrameFinalized(), llvm::HexagonFrameLowering::processFunctionBeforeFrameFinalized(), llvm::AArch64FrameLowering::processFunctionBeforeFrameFinalized(), llvm::PPCFrameLowering::processFunctionBeforeFrameFinalized(), promoteToConstantPool(), llvm::ARMTargetLowering::ReplaceNodeResults(), llvm::Thumb2InstrInfo::ReplaceTailWithBranchTo(), llvm::SIRegisterInfo::requiresRegisterScavenging(), llvm::SIRegisterInfo::resolveFrameIndex(), llvm::ARMBaseRegisterInfo::resolveFrameIndex(), llvm::ARMFrameLowering::ResolveFrameIndexReference(), llvm::AArch64FrameLowering::resolveFrameOffsetReference(), llvm::Thumb1FrameLowering::restoreCalleeSavedRegisters(), llvm::SystemZFrameLowering::restoreCalleeSavedRegisters(), llvm::ARMFrameLowering::restoreCalleeSavedRegisters(), llvm::PPCFrameLowering::restoreCalleeSavedRegisters(), llvm::SIRegisterInfo::restoreSGPR(), llvm::R600AsmPrinter::runOnMachineFunction(), llvm::WebAssemblyAsmPrinter::runOnMachineFunction(), llvm::ARMAsmPrinter::runOnMachineFunction(), llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::MipsAsmPrinter::runOnMachineFunction(), llvm::AVRFrameAnalyzer::runOnMachineFunction(), llvm::GCNIterativeScheduler::scheduleILP(), llvm::GCNIterativeScheduler::scheduleLegacyMaxOccupancy(), llvm::GCNIterativeScheduler::scheduleMinReg(), llvm::HexagonDAGToDAGISel::SelectFrameIndex(), setUsesTOCBasePtr(), llvm::SITargetLowering::shouldEmitPCReloc(), llvm::AVRFrameLowering::spillCalleeSavedRegisters(), llvm::SystemZFrameLowering::spillCalleeSavedRegisters(), llvm::XCoreFrameLowering::spillCalleeSavedRegisters(), llvm::ARMFrameLowering::spillCalleeSavedRegisters(), llvm::MSP430FrameLowering::spillCalleeSavedRegisters(), llvm::PPCFrameLowering::spillCalleeSavedRegisters(), spillsCR(), llvm::SIRegisterInfo::spillSGPR(), spillsVRSAVE(), spillVGPRtoAGPR(), llvm::AVRInstrInfo::storeRegToStackSlot(), llvm::SIInstrInfo::storeRegToStackSlot(), llvm::PPCInstrInfo::storeRegToStackSlot(), llvm::SITargetLowering::supportSplitCSR(), truncateScalarIntegerArg(), llvm::GCNIterativeScheduler::tryMaximizeOccupancy(), UnpackFromArgumentSlot(), unstackifyVRegsUsedInSplitBB(), VisitGlobalVariableForEmission(), and windowsRequiresStackProbe().

◆ getInfo() [2/2]

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

Definition at line 574 of file MachineFunction.h.

◆ getInstructionCount()

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

Return the number of MachineInstrs in this MachineFunction.

Definition at line 694 of file MachineFunction.h.

References InstrCount.

Referenced by INITIALIZE_PASS().

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

References assert(), getDataLayout(), getFunctionNumber(), llvm::DataLayout::getLinkerPrivateGlobalPrefix(), llvm::MCContext::getOrCreateSymbol(), llvm::DataLayout::getPrivateGlobalPrefix(), Name, 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 492 of file MachineFunction.h.

Referenced by callingConvSupported(), llvm::MipsAsmPrinter::EmitDebugValue(), llvm::ARMAsmPrinter::EmitJumpTableAddrs(), llvm::AsmPrinter::EmitJumpTableInfo(), llvm::ARMAsmPrinter::EmitJumpTableInsts(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), llvm::XCoreTargetLowering::getJumpTableEncoding(), INITIALIZE_PASS(), llvm::MIRPrinter::print(), and salvageDebugInfoFromEmptyBlock().

◆ getJumpTableInfo() [2/2]

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

Definition at line 493 of file MachineFunction.h.

◆ getLandingPads()

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

◆ getLongjmpTargets()

const std::vector<MCSymbol *>& llvm::MachineFunction::getLongjmpTargets ( ) const
inline

Returns a reference to a list of symbols immediately following calls to _setjmp in the function.

Used to construct the longjmp target table used by Windows Control Flow Guard.

Definition at line 837 of file MachineFunction.h.

Referenced by llvm::WinCFGuard::endFunction().

◆ getMachineMemOperand() [1/4]

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

Referenced by llvm::AArch64CallLowering::AArch64CallLowering(), llvm::addFrameReference(), buildEpilogReload(), llvm::X86TargetLowering::BuildFILD(), buildMUBUFOffsetLoadStore(), buildPrologSpill(), canTurnIntoCOPY(), combineKnownAdjacentMMOs(), llvm::FastISel::createMachineMemOperandFor(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), llvm::TargetLoweringBase::emitPatchPoint(), emitPostSt(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForSetTag(), EmitUnrolledSetTag(), emitXBegin(), enableAllocFrameElim(), expandLoadStackGuard(), llvm::HexagonInstrInfo::expandPostRAPseudo(), extractLoadMMOs(), extractStoreMMOs(), findPotentialBlockers(), llvm::TargetInstrInfo::foldMemoryOperand(), getBufferOffsetForMMO(), getBufferStoreFormatOpcode(), getContiguousRangeOfSetBits(), getFrameIndexMMO(), llvm::SelectionDAG::getLoad(), getMachineMemOperand(), llvm::SelectionDAG::getMemIntrinsicNode(), llvm::MipsInstrInfo::GetMemOperand(), llvm::AMDGPULegalizerInfo::getSegmentAperture(), llvm::SelectionDAG::getStore(), llvm::SelectionDAG::getTruncStore(), getUniformBase(), llvm::ARMInstrInfo::getUnindexedOpcode(), llvm::MipsCallLowering::MipsHandler::handle(), isSupportedType(), llvm::AMDGPULegalizerInfo::legalizeGlobalValue(), llvm::MipsLegalizerInfo::legalizeIntrinsic(), llvm::AArch64LegalizerInfo::legalizeIntrinsic(), llvm::MSP430InstrInfo::loadRegFromStackSlot(), llvm::Thumb1InstrInfo::loadRegFromStackSlot(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), llvm::XCoreInstrInfo::loadRegFromStackSlot(), llvm::ARCInstrInfo::loadRegFromStackSlot(), llvm::AVRInstrInfo::loadRegFromStackSlot(), llvm::SparcInstrInfo::loadRegFromStackSlot(), llvm::AArch64InstrInfo::loadRegFromStackSlot(), llvm::HexagonInstrInfo::loadRegFromStackSlot(), llvm::ARMBaseInstrInfo::loadRegFromStackSlot(), llvm::SIInstrInfo::loadRegFromStackSlot(), llvm::PPCInstrInfo::loadRegFromStackSlot(), llvm::LegalizerHelper::lower(), LowerADJUST_TRAMPOLINE(), llvm::MipsCallLowering::lowerFormalArguments(), llvm::X86CallLowering::lowerReturn(), llvm::ARMCallLowering::lowerReturn(), llvm::AMDGPUCallLowering::lowerReturn(), lowerShuffleAsBroadcast(), lowerUINT_TO_FP_vec(), llvm::HexagonTargetLowering::LowerUnalignedLoad(), narrowExtractedVectorLoad(), parseTexFail(), llvm::PPCTargetLowering::PerformDAGCombine(), llvm::LegalizerHelper::reduceLoadStoreWidth(), llvm::ARMTargetLowering::ReplaceNodeResults(), llvm::AArch64FrameLowering::restoreCalleeSavedRegisters(), llvm::SIRegisterInfo::restoreSGPR(), llvm::AArch64FrameLowering::spillCalleeSavedRegisters(), llvm::SIRegisterInfo::spillSGPR(), llvm::MSP430InstrInfo::storeRegToStackSlot(), llvm::Thumb1InstrInfo::storeRegToStackSlot(), llvm::Thumb2InstrInfo::storeRegToStackSlot(), llvm::XCoreInstrInfo::storeRegToStackSlot(), llvm::ARCInstrInfo::storeRegToStackSlot(), llvm::AVRInstrInfo::storeRegToStackSlot(), llvm::SparcInstrInfo::storeRegToStackSlot(), llvm::AArch64InstrInfo::storeRegToStackSlot(), llvm::HexagonInstrInfo::storeRegToStackSlot(), llvm::ARMBaseInstrInfo::storeRegToStackSlot(), llvm::SIInstrInfo::storeRegToStackSlot(), llvm::PPCInstrInfo::storeRegToStackSlot(), truncateScalarIntegerArg(), and llvm::X86CallLowering::X86CallLowering().

◆ getMachineMemOperand() [2/4]

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

◆ getMachineMemOperand() [3/4]

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

◆ getMachineMemOperand() [4/4]

MachineMemOperand * MachineFunction::getMachineMemOperand ( const MachineMemOperand *  MMO,
MachineMemOperand::Flags  Flags 
)

◆ getMMI()

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

◆ getName()

StringRef MachineFunction::getName ( ) const

getName - Return the name of the corresponding LLVM function.

Definition at line 499 of file MachineFunction.cpp.

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

Referenced by addExclusiveRegPair(), adjCycles(), llvm::ARMBasicBlockUtils::adjustBBOffsetsAfter(), appendEndToFunction(), llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), buildCallOperands(), llvm::MachineBlockFrequencyInfo::calculate(), llvm::calculateSpillWeightsAndHints(), llvm::Combiner::combineMachineInstrs(), computeWeight(), llvm::createSIPreAllocateWWMRegsPass(), llvm::createX86RetpolineThunksPass(), llvm::ARCFrameLowering::determineCalleeSaves(), llvm::ARCFrameLowering::eliminateCallFramePseudoInstr(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::ARCRegisterInfo::eliminateFrameIndex(), llvm::MipsRegisterInfo::eliminateFrameIndex(), llvm::ARCFrameLowering::emitEpilogue(), llvm::AMDGPUAsmPrinter::EmitFunctionEntryLabel(), llvm::VEFrameLowering::emitPrologue(), llvm::SparcFrameLowering::emitPrologue(), llvm::ARCFrameLowering::emitPrologue(), eraseDeadBBsAndChildren(), llvm::GCNScheduleDAGMILive::finalizeSchedule(), findCalledFunction(), findStartOfTree(), findVCMPToFoldIntoVPST(), FixedPointIntrinsicToOpcode(), getCmpForPseudo(), getCondFromFCMOV(), llvm::MachineBasicBlock::getFullName(), llvm::DOTGraphTraits< ScheduleDAG * >::getGraphName(), llvm::DOTGraphTraits< SelectionDAG * >::getGraphName(), llvm::DOTGraphTraits< const MachineFunction * >::getGraphName(), llvm::DOTGraphTraits< ScheduleDAGMI * >::getGraphName(), llvm::MipsRegisterBankInfo::getInstrMapping(), getNewValueJumpOpcode(), getStartOrEndSlot(), giveUpWithRemarks(), handleNormalInst(), hasArgumentDef(), hasVulnerableLoad(), INITIALIZE_PASS(), llvm::MIRParserImpl::initializeCallSiteInfo(), insertDeleteInstructions(), llvm::RISCVInstrInfo::insertOutlinedCall(), llvm::AArch64InstrInfo::insertOutlinedCall(), llvm::X86InstrInfo::insertOutlinedCall(), isCallableFunction(), isCoalescable(), llvm::SelectionDAGISel::isOrEquivalentToAdd(), isPseudoCallIndirect(), isTerminalReg(), isVirtualRegisterOperand(), LoopIsOuterMostWithPredecessor(), LowerDYNAMIC_STACKALLOC(), moveAndTeeForMultiUse(), normalizePBQPSpillWeight(), false::IntervalSorter::operator()(), optimizeCall(), llvm::MIRPrinter::print(), print(), llvm::ARCFrameLowering::processFunctionBeforeFrameFinalized(), reportFastISelFailure(), llvm::reportGISelFailure(), llvm::ARCFrameLowering::restoreCalleeSavedRegisters(), rewriteP2Align(), runOnBasicBlock(), llvm::InstructionSelect::runOnMachineFunction(), llvm::Legalizer::runOnMachineFunction(), llvm::Localizer::runOnMachineFunction(), llvm::RegBankSelect::runOnMachineFunction(), llvm::MIRParserImpl::setupRegisterInfo(), sortBlocks(), llvm::ARCFrameLowering::spillCalleeSavedRegisters(), subRangeLiveAt(), toString(), verify(), 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 265 of file MachineFunction.cpp.

Referenced by llvm::SwitchCG::SwitchLowering::buildJumpTable(), getDataLayout(), llvm::MIRParserImpl::initializeJumpTableInfo(), and llvm::ARMTargetLowering::ReplaceNodeResults().

◆ getOrCreateLandingPadInfo()

LandingPadInfo & MachineFunction::getOrCreateLandingPadInfo ( MachineBasicBlock *  LandingPad)

◆ getPICBaseSymbol()

MCSymbol * MachineFunction::getPICBaseSymbol ( ) const

◆ getProperties() [1/2]

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

◆ getProperties() [2/2]

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

Definition at line 561 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 479 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(), allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateHSAUserSGPRs(), llvm::SIMachineFunctionInfo::allocateSGPRSpillToVGPR(), llvm::SITargetLowering::allocateSpecialEntryInputVGPRs(), allocateVGPR32Input(), llvm::SIMachineFunctionInfo::allocateVGPRSpillToAGPR(), llvm::AllocationOrder::AllocationOrder(), allPhiOperandsUndefined(), llvm::analyzeArguments(), AnalyzeReturnValues(), appendEndToFunction(), llvm::MipsRegisterBankInfo::applyMappingImpl(), llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), llvm::PPCFrameLowering::assignCalleeSavedSpillSlots(), assignCalleeSavedSpillSlots(), llvm::VirtRegMap::assignVirt2StackSlot(), atomicReadDroppedOnZero(), attemptDebugCopyProp(), buildEpilogReload(), buildMUBUFOffsetLoadStore(), buildPrologSpill(), llvm::SIInstrInfo::calculateLDSSpillAddress(), llvm::calculateSpillWeightsAndHints(), callHasRegMask(), callingConvSupported(), callWaitsOnFunctionReturn(), canCombine(), canCompareBeNewValueJump(), canFoldCopy(), llvm::AArch64InstrInfo::canInsertSelect(), llvm::SystemZInstrInfo::canInsertSelect(), llvm::SIInstrInfo::canInsertSelect(), llvm::X86InstrInfo::canInsertSelect(), llvm::MipsRegisterInfo::canRealignStack(), llvm::X86RegisterInfo::canRealignStack(), llvm::ARMBaseRegisterInfo::canRealignStack(), canRenameUpToDef(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), checkRegOnlyPHIInputs(), llvm::X86InstrInfo::classifyLEAReg(), llvm::SplitAnalysis::clear(), llvm::Combiner::combineMachineInstrs(), llvm::HexagonBlockRanges::computeDeadMap(), llvm::computeLiveIns(), computeLiveOuts(), computeWeight(), llvm::InstructionSelector::constrainOperandRegToRegClass(), llvm::constrainSelectedInstRegOperands(), llvm::SIInstrInfo::convertNonUniformIfRegion(), llvm::SIInstrInfo::convertNonUniformLoopRegion(), llvm::PPCInstrInfo::convertToImmediateForm(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::WebAssemblyInstrInfo::copyPhysReg(), llvm::NVPTXInstrInfo::copyPhysReg(), llvm::SwiftErrorValueTracking::createEntriesInEntryBlock(), llvm::createHexagonHardwareLoops(), createLaneMaskReg(), llvm::AMDGPUTargetLowering::CreateLiveInRegister(), createPHIsForCMOVsInSinkBB(), createPHIsForSelects(), llvm::createSIAddIMGInitPass(), llvm::createSIPreAllocateWWMRegsPass(), llvm::createSIWholeQuadModePass(), llvm::HexagonInstrInfo::createVR(), llvm::createX86FixupSetCC(), llvm::RISCVFrameLowering::determineCalleeSaves(), llvm::SIFrameLowering::determineCalleeSaves(), llvm::XCoreFrameLowering::determineCalleeSaves(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::HexagonFrameLowering::determineCalleeSaves(), llvm::TargetFrameLowering::determineCalleeSaves(), llvm::WebAssemblyRegisterInfo::eliminateFrameIndex(), llvm::RISCVRegisterInfo::eliminateFrameIndex(), llvm::HexagonRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::SystemZRegisterInfo::eliminateFrameIndex(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::PPCTargetLowering::EmitAtomicBinary(), llvm::PPCTargetLowering::emitEHSjLjLongJmp(), llvm::PPCTargetLowering::emitEHSjLjSetJmp(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), llvm::SIFrameLowering::emitEpilogue(), llvm::WebAssemblyFrameLowering::emitEpilogue(), llvm::SITargetLowering::emitGWSMemViolTestLoop(), emitIndirectDst(), emitIndirectSrc(), llvm::R600TargetLowering::EmitInstrWithCustomInserter(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), llvm::PPCTargetLowering::EmitPartwordAtomicBinary(), emitPostSt(), llvm::NVPTXFrameLowering::emitPrologue(), llvm::MipsSEFrameLowering::emitPrologue(), llvm::RISCVFrameLowering::emitPrologue(), llvm::SIFrameLowering::emitPrologue(), llvm::WebAssemblyFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), llvm::MSP430TargetLowering::EmitShiftInstr(), emitThumbRegPlusImmInReg(), emitXBegin(), EnsureStackAlignment(), eraseDeadBBsAndChildren(), llvm::MachineInstr::eraseFromParentAndMarkDBGValuesForRemoval(), llvm::SIInstrInfo::expandMovDPP64(), llvm::HexagonInstrInfo::expandPostRAPseudo(), llvm::HexagonBlockRanges::expandToSubRegs(), extractRsrcPtr(), llvm::SITargetLowering::finalizeLowering(), llvm::TargetLoweringBase::finalizeLowering(), findMatchingInlineAsmOperand(), llvm::findPHICopyInsertPoint(), findScratchNonCalleeSaveRegister(), findStartOfTree(), fixupGlobalSaddr(), llvm::PPCInstrInfo::fixupIsDeadOrKill(), llvm::PPCInstrInfo::foldFrameOffset(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), llvm::SIInstrInfo::foldMemoryOperandImpl(), foldPatchpoint(), forceReg(), llvm::GCNHazardRecognizer::GCNHazardRecognizer(), llvm::AArch64InstrInfo::genAlternativeCodeSequence(), llvm::TargetInstrInfo::genAlternativeCodeSequence(), llvm::SIInstrInfo::getAddNoCarry(), getAssignFnsForCC(), getBufferFormatWithCompCount(), llvm::PPCRegisterInfo::getCalleeSavedRegs(), getCallOpcode(), llvm::FunctionLoweringInfo::getCatchPadExceptionPointerVReg(), getCondFromFCMOV(), llvm::AMDGPURegisterBankInfo::getDefaultMappingAllVGPR(), llvm::AMDGPURegisterBankInfo::getDefaultMappingSOP(), llvm::AMDGPURegisterBankInfo::getDefaultMappingVOP(), llvm::PPCInstrInfo::getDefMIPostRA(), llvm::ARMTargetLowering::getExceptionSelectorRegister(), getFoldableImm(), getFPReg(), llvm::VEFrameLowering::getFrameIndexReference(), llvm::MipsFunctionInfo::getGlobalBaseReg(), llvm::LanaiMachineFunctionInfo::getGlobalBaseReg(), llvm::SparcInstrInfo::getGlobalBaseReg(), llvm::X86InstrInfo::getGlobalBaseReg(), getImmedFromMO(), llvm::R600InstrInfo::getIndirectIndexBegin(), GetInitialOffset(), getInsertVecEltOpInfo(), llvm::X86RegisterBankInfo::getInstrAlternativeMappings(), llvm::AArch64RegisterBankInfo::getInstrAlternativeMappings(), llvm::AMDGPURegisterBankInfo::getInstrAlternativeMappings(), llvm::MipsRegisterBankInfo::getInstrMapping(), llvm::ARMRegisterBankInfo::getInstrMapping(), llvm::X86RegisterBankInfo::getInstrMapping(), llvm::AArch64RegisterBankInfo::getInstrMapping(), llvm::AMDGPURegisterBankInfo::getInstrMapping(), llvm::AMDGPURegisterBankInfo::getInstrMappingForLoad(), llvm::RegisterBankInfo::getInstrMappingImpl(), llvm::getLiveRegsAfter(), llvm::getLiveRegsBefore(), getLoadStoreOffsetAlign(), getMappedOp(), getMopState(), getOModValue(), llvm::PPCInstrInfo::getOperandLatency(), llvm::SIInstrInfo::getOpRegClass(), llvm::SIInstrInfo::getOpSize(), llvm::SwiftErrorValueTracking::getOrCreateVReg(), llvm::SwiftErrorValueTracking::getOrCreateVRegDefAt(), llvm::X86GenRegisterBankInfo::getPartialMappingIdx(), llvm::MachineFrameInfo::getPristineRegs(), getPrologueDeath(), getReassignedChan(), llvm::SystemZRegisterInfo::getRegAllocationHints(), llvm::ARMBaseRegisterInfo::getRegAllocationHints(), llvm::TargetRegisterInfo::getRegAllocationHints(), getRegClassFromGRPhysReg(), GetRegistersForValue(), getRegTy(), getRetpolineSymbol(), llvm::X86InstrInfo::getSerializableDirectMachineOperandTargetFlags(), getShiftTypeForInst(), getSubOpcode(), getTag(), llvm::BPFTargetLowering::getTargetNodeName(), getUnderlyingArgRegs(), llvm::SIInstrInfo::getVALUOp(), getVectorSHLImm(), llvm::PerFunctionMIParsingState::getVRegInfo(), llvm::PerFunctionMIParsingState::getVRegInfoNamed(), llvm::VirtRegMap::grow(), HandleVRSaveUpdate(), hasAnyNonFlatUseOfReg(), hasArgumentDef(), llvm::RISCVFrameLowering::hasBP(), llvm::TargetInstrInfo::hasReassociableOperands(), llvm::TargetInstrInfo::hasReassociableSibling(), hasVectorOperands(), llvm::SIInstrInfo::hasVGPRUses(), hasVulnerableLoad(), hoistAndMergeSGPRInits(), llvm::MipsFunctionInfo::initGlobalBaseReg(), INITIALIZE_PASS(), INITIALIZE_PASS_END(), llvm::MIRParserImpl::initializeMachineFunction(), llvm::outliner::Candidate::initLRU(), llvm::TailDuplicator::initMF(), llvm::WebAssemblyFunctionInfo::initWARegs(), llvm::X86FrameLowering::inlineStackProbe(), llvm::SITargetLowering::insertCopiesSplitCSR(), llvm::AArch64TargetLowering::insertCopiesSplitCSR(), llvm::PPCTargetLowering::insertCopiesSplitCSR(), insertCopy(), insertCSRRestores(), insertDeleteInstructions(), llvm::SIInstrInfo::insertEQ(), llvm::SIInstrInfo::insertNE(), llvm::AArch64InstrInfo::insertSelect(), llvm::SystemZInstrInfo::insertSelect(), llvm::SIInstrInfo::insertSelect(), llvm::X86InstrInfo::insertSelect(), insertUndefLaneMask(), isACalleeSavedRegister(), isAmbiguous(), isBackwardPropagatableCopy(), isCallableFunction(), isCallerPreservedOrConstPhysReg(), isCoalescable(), isCrossCopy(), llvm::SITargetLowering::isEligibleForTailCallOptimization(), isFpMulInstruction(), isIdentityValue(), isImplicitOperandIn(), llvm::X86TargetLowering::isIntDivCheap(), isIntersect(), llvm::AArch64InstrInfo::isMBBSafeToOutlineFrom(), isNonFoldablePartialRegisterLoad(), llvm::SIInstrInfo::isOperandLegal(), isPreISelGenericFloatingPointOpcode(), llvm::X86InstrInfo::isReallyTriviallyReMaterializable(), llvm::AMDGPURegisterBankInfo::isSALUMapping(), llvm::PPCInstrInfo::isSignOrZeroExtended(), isSortedByValueNo(), isSSA(), isSupportedType(), isTerminalReg(), llvm::SITargetLowering::isTypeDesirableForOp(), llvm::SIInstrInfo::isVGPRCopy(), isVirtualRegisterOperand(), llvm::Legalizer::legalizeMachineFunction(), llvm::SIInstrInfo::legalizeOperands(), llvm::SIInstrInfo::legalizeOpWithMove(), llvm::SITargetLowering::legalizeTargetIndependentNode(), llvm::MipsSEInstrInfo::loadImmediate(), loadM0FromVGPR(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), llvm::AArch64InstrInfo::loadRegFromStackSlot(), llvm::SIInstrInfo::loadRegFromStackSlot(), loadSRsrcFromVGPR(), llvm::Localizer::Localizer(), LoopIsOuterMostWithPredecessor(), llvm::WebAssemblyMCInstLower::lower(), llvm::X86CallLowering::lowerCall(), llvm::ARMCallLowering::lowerCall(), llvm::AArch64CallLowering::lowerCall(), llvm::MipsCallLowering::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::AArch64CallLowering::lowerFormalArguments(), llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::MipsCallLowering::lowerFormalArguments(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::AMDGPUCallLowering::lowerFormalArgumentsKernel(), LowerFPToInt(), llvm::BPFTargetLowering::LowerOperation(), llvm::X86CallLowering::lowerReturn(), llvm::AArch64CallLowering::lowerReturn(), llvm::AMDGPUCallLowering::lowerReturn(), llvm::MipsCallLowering::lowerReturn(), llvm::SITargetLowering::LowerReturn(), llvm::PPCRegisterInfo::lowerVRSAVERestore(), llvm::PPCRegisterInfo::lowerVRSAVESpilling(), llvm::machineFunctionIsIllegal(), MatchingStackOffset(), matchSwap(), llvm::SIRegisterInfo::materializeFrameBaseRegister(), llvm::AArch64RegisterInfo::materializeFrameBaseRegister(), llvm::PPCRegisterInfo::materializeFrameBaseRegister(), llvm::ARMBaseRegisterInfo::materializeFrameBaseRegister(), llvm::SIInstrInfo::materializeImmediate(), mayTailCallThisCC(), moveAndTeeForMultiUse(), llvm::SIInstrInfo::moveToVALU(), llvm::RISCVInstrInfo::movImm(), MustSaveLR(), needToReserveScavengingSpillSlots(), normalizePBQPSpillWeight(), operator<<(), optimizeCall(), llvm::AArch64InstrInfo::optimizeCondBranch(), llvm::BranchFolder::OptimizeFunction(), llvm::LanaiInstrInfo::optimizeSelect(), llvm::ARMBaseInstrInfo::optimizeSelect(), optimizeVcndVcmpPair(), llvm::MIRParserImpl::parseRegisterInfo(), Passv64i1ArgInRegs(), performSink(), llvm::MIRPrinter::print(), llvm::MIPrinter::print(), llvm::MachineBasicBlock::print(), llvm::printMBBReference(), propagateLocalCopies(), llvm::SwiftErrorValueTracking::propagateVRegs(), llvm::TargetInstrInfo::reassociateOps(), llvm::recomputeLivenessFlags(), removeRedundantBlockingStores(), llvm::ARMTargetLowering::ReplaceNodeResults(), llvm::SITargetLowering::requiresUniformRegister(), reservePrivateMemoryRegs(), llvm::GCNRPTracker::reset(), llvm::GCNDownwardRPTracker::reset(), llvm::LiveRangeCalc::reset(), llvm::PPCRegisterInfo::resolveFrameIndex(), llvm::ARMFrameLowering::ResolveFrameIndexReference(), llvm::rewriteT2FrameIndex(), llvm::UnreachableBlockElimPass::run(), runOnBasicBlock(), llvm::InstructionSelect::runOnMachineFunction(), llvm::WebAssemblyAsmPrinter::runOnMachineFunction(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::RegisterClassInfo::runOnMachineFunction(), llvm::MachinePipeliner::runOnMachineFunction(), llvm::MachineTraceMetrics::runOnMachineFunction(), llvm::ExecutionDomainFix::runOnMachineFunction(), llvm::LiveVariables::runOnMachineFunction(), llvm::LiveIntervals::runOnMachineFunction(), llvm::AVRDynAllocaSR::runOnMachineFunction(), llvm::scavengeFrameVirtualRegs(), llvm::AVRDAGToDAGISel::SelectInlineAsmMemoryOperand(), llvm::FunctionLoweringInfo::set(), llvm::GISelCSEInfo::setMF(), llvm::MachineIRBuilder::setMF(), llvm::CoalescerPair::setRegisters(), llvm::RegScavenger::setRegUsed(), llvm::X86MachineFunctionInfo::setRestoreBasePointer(), llvm::AMDGPUInstructionSelector::setupMF(), llvm::MIRParserImpl::setupRegisterInfo(), llvm::SIInstrInfo::shouldClusterMemOps(), shouldPreventUndefRegUpdateMemFold(), sortBlocks(), llvm::Thumb1FrameLowering::spillCalleeSavedRegisters(), llvm::AArch64FrameLowering::spillCalleeSavedRegisters(), llvm::X86FrameLowering::spillCalleeSavedRegisters(), llvm::PPCFrameLowering::spillCalleeSavedRegisters(), spillVGPRtoAGPR(), splitMBB(), llvm::LiveDebugVariables::splitRegister(), llvm::CriticalAntiDepBreaker::StartBlock(), llvm::AggressiveAntiDepBreaker::StartBlock(), llvm::Thumb2InstrInfo::storeRegToStackSlot(), llvm::AArch64InstrInfo::storeRegToStackSlot(), llvm::SIInstrInfo::storeRegToStackSlot(), false::Chain::str(), subRangeLiveAt(), swapMIOperands(), tryAddToFoldList(), tryChangeVGPRtoSGPRinCopy(), llvm::tryFoldSPUpdateIntoPushPop(), tryToFindRegisterToRename(), tryToFoldACImm(), UnpackFromArgumentSlot(), unpackFromRegLoc(), unstackifyVRegsUsedInSplitBB(), llvm::AArch64RegisterInfo::UpdateCustomCalleeSavedRegs(), updateOperand(), UpdateOperandRegClass(), updateOperandRegConstraints(), llvm::ARMBaseRegisterInfo::updateRegAllocHint(), usedAsAddr(), verify(), llvm::SIInstrInfo::verifyInstruction(), verifyLeafProcRegUse(), VisitGlobalVariableForEmission(), and llvm::VirtRegAuxInfo::weightCalcHelper().

◆ getRegInfo() [2/2]

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

Definition at line 480 of file MachineFunction.h.

◆ getSublistAccess()

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

Support for MachineBasicBlock::getNextNode().

Definition at line 640 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 469 of file MachineFunction.h.

Referenced by llvm::AArch64beTargetMachine::AArch64beTargetMachine(), llvm::DwarfCompileUnit::addAddress(), llvm::DwarfCompileUnit::addComplexAddress(), addExclusiveRegPair(), llvm::MachineBasicBlock::addLiveIn(), addLiveInRegs(), llvm::ScheduleDAGInstrs::addPhysRegDataDeps(), addSavedGPR(), llvm::ScheduleDAGInstrs::addVRegDefDeps(), adjCycles(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::GCNSubtarget::adjustSchedDependency(), AdjustStackOffset(), allocateRegMask(), llvm::SIMachineFunctionInfo::allocateSGPRSpillToVGPR(), llvm::SIMachineFunctionInfo::allocateVGPRSpillToAGPR(), allPhiOperandsUndefined(), llvm::CCState::analyzeMustTailForwardedRegisters(), appendEndToFunction(), llvm::A57ChainingConstraint::apply(), llvm::HexagonSubtarget::CallMutation::apply(), llvm::MipsRegisterBankInfo::applyMappingImpl(), llvm::ARMBasicBlockUtils::ARMBasicBlockUtils(), llvm::ARMBETargetMachine::ARMBETargetMachine(), llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), assignCalleeSavedSpillSlots(), AssignProtectedObjSet(), atomicReadDroppedOnZero(), attemptDebugCopyProp(), llvm::DebugHandlerBase::beginFunction(), llvm::CodeViewDebug::beginFunctionImpl(), branchMaxOffsets(), llvm::AArch64InstrInfo::buildOutlinedFrame(), llvm::ScheduleDAGInstrs::buildSchedGraph(), llvm::calculateDbgEntityHistory(), llvm::SIInstrInfo::calculateLDSSpillAddress(), llvm::LiveRangeEdit::calculateRegClassAndHint(), callHasRegMask(), callWaitsOnFunctionReturn(), llvm::HexagonTargetLowering::CanLowerReturn(), cannotCoexistAsymm(), llvm::HexagonPacketizerList::canPromoteToDotCur(), llvm::MipsRegisterInfo::canRealignStack(), llvm::ARMBaseRegisterInfo::canRealignStack(), llvm::MachineBasicBlock::canSplitCriticalEdge(), llvm::AArch64FrameLowering::canUseAsPrologue(), CC_AArch64_Custom_Block(), CC_AIX(), CC_MipsO32(), CC_RISCV(), CC_RISCV_FastCC(), CC_X86_64_VectorCall(), CC_X86_Intr(), CC_X86_VectorCallAssignRegister(), checkNumAlignedDPRCS2Regs(), checkRegOnlyPHIInputs(), llvm::rdf::DataFlowGraph::DefStack::clear_block(), collectCallSiteParameters(), collectRegDefs(), computeBranchTargetAndInversion(), computeCalleeSaveRegisterPairs(), llvm::AMDGPUTargetLowering::computeKnownBitsForTargetNode(), computeLiveOuts(), llvm::MachineFrameInfo::computeMaxCallFrameSize(), llvm::TargetSchedModel::computeOutputLatency(), llvm::DwarfCompileUnit::constructLabelDIE(), llvm::MIRPrinter::convertCallSiteObjects(), llvm::GCNTargetMachine::convertFuncInfoToYAML(), llvm::MIRPrinter::convertStackObjects(), llvm::Thumb1InstrInfo::copyPhysReg(), llvm::AVRInstrInfo::copyPhysReg(), llvm::SystemZInstrInfo::copyPhysReg(), 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(), createLaneMaskReg(), llvm::createLibcall(), llvm::XCoreFunctionInfo::createLRSpillSlot(), llvm::createMemLibcall(), llvm::createNVPTXPrologEpilogPass(), llvm::ARMBaseTargetMachine::createPassConfig(), llvm::R600TargetMachine::createPassConfig(), createPHIsForCMOVsInSinkBB(), createPHIsForSelects(), createPPCMachineScheduler(), createPPCPostMachineScheduler(), llvm::createR600ExpandSpecialInstrsPass(), llvm::createR600ISelDag(), llvm::FunctionLoweringInfo::CreateReg(), llvm::FunctionLoweringInfo::CreateRegs(), llvm::createSIAddIMGInitPass(), llvm::createSIModeRegisterPass(), llvm::createSIPreAllocateWWMRegsPass(), llvm::createSIWholeQuadModePass(), llvm::createSourceListDAGScheduler(), llvm::createSparcDelaySlotFillerPass(), llvm::createSystemZLDCleanupPass(), llvm::PPCInstrInfo::CreateTargetPostRAHazardRecognizer(), llvm::createX86FixupBWInsts(), llvm::createX86FixupSetCC(), llvm::createX86PadShortFunctions(), llvm::createX86RetpolineThunksPass(), llvm::createXCoreFrameToArgsOffsetEliminationPass(), llvm::AArch64InstrInfo::describeLoadedValue(), llvm::TargetInstrInfo::describeLoadedValue(), llvm::SystemZFrameLowering::determineCalleeSaves(), llvm::RISCVFrameLowering::determineCalleeSaves(), llvm::SIFrameLowering::determineCalleeSaves(), llvm::MipsSEFrameLowering::determineCalleeSaves(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::HexagonFrameLowering::determineCalleeSaves(), llvm::TargetFrameLowering::determineCalleeSaves(), llvm::SIFrameLowering::determineCalleeSavesSGPR(), llvm::TargetOptions::DisableFramePointerElim(), doesNotGeneratecode(), llvm::AMDGPUAsmPrinter::doFinalization(), llvm::CombinerHelper::dominates(), 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::SparcRegisterInfo::eliminateFrameIndex(), llvm::WebAssemblyRegisterInfo::eliminateFrameIndex(), llvm::LanaiRegisterInfo::eliminateFrameIndex(), llvm::RISCVRegisterInfo::eliminateFrameIndex(), llvm::ARCRegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::HexagonRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::SystemZRegisterInfo::eliminateFrameIndex(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), emitAlignedDPRCS2Restores(), emitAlignedDPRCS2Spills(), emitAligningInstructions(), llvm::AArch64FrameLowering::emitCalleeSavedFrameMoves(), emitComments(), llvm::DwarfDebug::emitDebugLocValue(), emitDebugValueComment(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), llvm::AVRFrameLowering::emitEpilogue(), llvm::SparcFrameLowering::emitEpilogue(), llvm::XCoreFrameLowering::emitEpilogue(), llvm::MSP430FrameLowering::emitEpilogue(), llvm::SIFrameLowering::emitEpilogue(), llvm::ARMFrameLowering::emitEpilogue(), llvm::ARCFrameLowering::emitEpilogue(), llvm::AArch64FrameLowering::emitEpilogue(), llvm::WebAssemblyFrameLowering::emitEpilogue(), llvm::SystemZFrameLowering::emitEpilogue(), llvm::VEFrameLowering::emitEpilogueInsns(), llvm::MipsAsmPrinter::emitFrameDirective(), llvm::AMDGPUAsmPrinter::EmitFunctionBodyEnd(), llvm::AMDGPUAsmPrinter::EmitFunctionBodyStart(), llvm::HexagonDAGToDAGISel::EmitFunctionEntryCode(), llvm::AMDGPUAsmPrinter::EmitFunctionEntryLabel(), EmitGCCInlineAsmStr(), llvm::AsmPrinter::emitImplicitDef(), llvm::R600AsmPrinter::EmitInstruction(), llvm::SystemZAsmPrinter::EmitInstruction(), llvm::HexagonAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::AMDGPUAsmPrinter::EmitInstruction(), llvm::X86AsmPrinter::EmitInstruction(), llvm::BPFTargetLowering::EmitInstrWithCustomInserter(), llvm::AVRTargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::AsmPrinter::EmitJumpTableInfo(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), emitKill(), llvm::ThumbRegisterInfo::emitLoadConstPool(), llvm::ARMBaseRegisterInfo::emitLoadConstPool(), emitLoadM0FromVGPRLoop(), emitLoadSRsrcFromVGPRLoop(), EmitNop(), llvm::AsmPrinter::emitNops(), llvm::AVRFrameLowering::emitPrologue(), llvm::NVPTXFrameLowering::emitPrologue(), llvm::SparcFrameLowering::emitPrologue(), llvm::VEFrameLowering::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(), emitPrologueEpilogueSPUpdate(), llvm::VEFrameLowering::emitPrologueInsns(), emitSelectPseudo(), llvm::MSP430TargetLowering::EmitShiftInstr(), llvm::ARMSelectionDAGInfo::EmitSpecializedLibcall(), llvm::X86FrameLowering::emitStackProbe(), EmitTailCallStoreFPAndRetAddr(), llvm::WebAssemblySelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::WebAssemblySelectionDAGInfo::EmitTargetCodeForMemset(), emitThumb1LoadConstPool(), emitThumb2LoadConstPool(), emitThumbRegPlusImmInReg(), llvm::AsmPrinter::emitXRayTable(), enableAllocFrameElim(), llvm::HexagonFrameLowering::enableCalleeSaveSkip(), llvm::PPCFrameLowering::enableShrinkWrapping(), llvm::WinException::endFunclet(), eraseDeadBBsAndChildren(), estimateRSStackSizeLimit(), llvm::MachineFrameInfo::estimateStackSize(), llvm::VEInstrInfo::expandExtendStackPseudo(), llvm::AArch64InstrInfo::expandPostRAPseudo(), expandXorFP(), llvm::finalizeBundle(), llvm::SITargetLowering::finalizeLowering(), findScratchNonCalleeSaveRegister(), findStartOfTree(), findUncondBrI(), findVCMPToFoldIntoVPST(), llvm::SIInstrInfo::fixImplicitOperands(), llvm::fixStackStores(), fixupGlobalSaddr(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), for(), fuseInstructionPair(), llvm::AArch64InstrInfo::genAlternativeCodeSequence(), llvm::AMDGPUSubtarget::get(), llvm::HexagonFrameLowering::getAlignaInstr(), getAssignFnsForCC(), llvm::PPCRegisterInfo::getBaseRegister(), llvm::MachineIRBuilder::getBoolExtOp(), getBufferFormatWithCompCount(), getBufferOffsetForMMO(), llvm::RISCVRegisterInfo::getCalleeSavedRegs(), llvm::AArch64RegisterInfo::getCalleeSavedRegs(), llvm::MipsRegisterInfo::getCalleeSavedRegs(), llvm::SystemZRegisterInfo::getCalleeSavedRegs(), llvm::PPCRegisterInfo::getCalleeSavedRegs(), llvm::X86RegisterInfo::getCalleeSavedRegs(), llvm::ARMBaseRegisterInfo::getCalleeSavedRegs(), llvm::PPCRegisterInfo::getCalleeSavedRegsViaCopy(), llvm::ARMFrameLowering::getCalleeSaves(), llvm::TargetFrameLowering::getCalleeSaves(), getCallOpcode(), llvm::RISCVRegisterInfo::getCallPreservedMask(), llvm::AArch64RegisterInfo::getCallPreservedMask(), llvm::MipsRegisterInfo::getCallPreservedMask(), llvm::SystemZRegisterInfo::getCallPreservedMask(), llvm::PPCRegisterInfo::getCallPreservedMask(), llvm::X86RegisterInfo::getCallPreservedMask(), llvm::ARMBaseRegisterInfo::getCallPreservedMask(), getCmpForPseudo(), getCondFromFCMOV(), getDwarfRegNum(), llvm::getEHScopeMembership(), getElementByteSizeValue(), getEquivalentCallShort(), getFPOffset(), getFPReg(), llvm::R600FrameLowering::getFrameIndexReference(), llvm::RISCVFrameLowering::getFrameIndexReference(), llvm::SIFrameLowering::getFrameIndexReference(), llvm::SparcFrameLowering::getFrameIndexReference(), llvm::HexagonFrameLowering::getFrameIndexReference(), llvm::TargetFrameLowering::getFrameIndexReference(), llvm::AVRRegisterInfo::getFrameRegister(), llvm::SIRegisterInfo::getFrameRegister(), llvm::MipsRegisterInfo::getFrameRegister(), llvm::ARMBaseRegisterInfo::getFrameRegister(), llvm::NVPTXAsmPrinter::getFunctionFrameSymbol(), getGlobalBaseRegClass(), llvm::ARMHazardRecognizer::getHazardType(), llvm::R600InstrInfo::getIndirectIndexEnd(), GetInitialOffset(), llvm::X86RegisterBankInfo::getInstrAlternativeMappings(), llvm::AArch64RegisterBankInfo::getInstrAlternativeMappings(), llvm::ARMRegisterBankInfo::getInstrMapping(), llvm::AArch64RegisterBankInfo::getInstrMapping(), llvm::RegisterBankInfo::getInstrMappingImpl(), getInstrVecReg(), llvm::MSP430InstrInfo::getInstSizeInBytes(), llvm::AVRInstrInfo::getInstSizeInBytes(), llvm::SIInstrInfo::getInstSizeInBytes(), llvm::ThumbRegisterInfo::getLargestLegalSuperClass(), llvm::AVRRegisterInfo::getLargestLegalSuperClass(), llvm::X86RegisterInfo::getLargestLegalSuperClass(), llvm::PPCRegisterInfo::getLargestLegalSuperClass(), llvm::ARMBaseRegisterInfo::getLargestLegalSuperClass(), getLoadStoreOffsetAlign(), getLoadStoreOffsetSizeInBits(), getMappedOp(), getMemcpyLoadsAndStores(), getMemsetValue(), getMopState(), llvm::MipsFunctionInfo::getMoveF64ViaSpillFI(), getMSAMapping(), getNewValueJumpOpcode(), getOModValue(), getOpenCLAlignment(), llvm::RISCVInstrInfo::getOutliningType(), llvm::R600AsmPrinter::getPassName(), llvm::HexagonEvaluator::getPhysRegBitWidth(), llvm::SparcRegisterInfo::getPointerRegClass(), llvm::ThumbRegisterInfo::getPointerRegClass(), llvm::WebAssemblyRegisterInfo::getPointerRegClass(), llvm::MipsRegisterInfo::getPointerRegClass(), llvm::X86RegisterInfo::getPointerRegClass(), llvm::MachineFrameInfo::getPristineRegs(), llvm::X86RegisterInfo::getPtrSizedFrameRegister(), llvm::X86RegisterInfo::getPtrSizedStackRegister(), getReassignedChan(), llvm::SystemZRegisterInfo::getRegAllocationHints(), GetRegistersForValue(), llvm::MipsRegisterInfo::getRegPressureLimit(), llvm::AArch64RegisterInfo::getRegPressureLimit(), llvm::ARMBaseRegisterInfo::getRegPressureLimit(), getRegTy(), getRegUnits(), llvm::R600RegisterInfo::getReservedRegs(), llvm::RISCVRegisterInfo::getReservedRegs(), llvm::SparcRegisterInfo::getReservedRegs(), llvm::HexagonRegisterInfo::getReservedRegs(), llvm::MipsRegisterInfo::getReservedRegs(), llvm::AArch64RegisterInfo::getReservedRegs(), llvm::PPCRegisterInfo::getReservedRegs(), llvm::X86RegisterInfo::getReservedRegs(), llvm::ARMBaseRegisterInfo::getReservedRegs(), getRsrcReg(), getSchedRegions(), llvm::AMDGPULegalizerInfo::getSegmentAperture(), llvm::AArch64FrameLowering::getSEHFrameIndexOffset(), llvm::X86InstrInfo::getSerializableDirectMachineOperandTargetFlags(), llvm::ARMBaseRegisterInfo::getSjLjDispatchPreservedMask(), llvm::X86InstrInfo::getSPAdjust(), llvm::TargetInstrInfo::getSPAdjust(), llvm::TargetInstrInfo::getStackSlotRange(), getSubOpcode(), llvm::SelectionDAG::getSubtarget(), llvm::AsmPrinter::getSubtargetInfo(), GetSymbolRef(), getTag(), getTargetIndexName(), llvm::BPFTargetLowering::getTargetNodeName(), llvm::MachineRegisterInfo::getTargetRegisterInfo(), llvm::SITargetLowering::getTgtMemIntrinsic(), llvm::ARMBaseRegisterInfo::getThisReturnPreservedMask(), llvm::ARMBaseRegisterInfo::getTLSCallPreservedMask(), getUnderlyingObjects(), llvm::ARMInstrInfo::getUnindexedOpcode(), giveUpWithRemarks(), llvm::MipsCallLowering::MipsHandler::handle(), llvm::CCState::HandleByVal(), HandleVRSaveUpdate(), llvm::X86FrameLowering::has128ByteRedZone(), hasAnyNonFlatUseOfReg(), hasArgumentDef(), llvm::SparcFrameLowering::hasFP(), llvm::RISCVFrameLowering::hasFP(), llvm::VEFrameLowering::hasFP(), llvm::ARMFrameLowering::hasFP(), llvm::ARCFrameLowering::hasFP(), llvm::AArch64FrameLowering::hasFP(), llvm::SIFrameLowering::hasFP(), llvm::HexagonFrameLowering::hasFP(), llvm::PPCRegisterInfo::hasReservedSpillSlot(), hasVulnerableLoad(), llvm::SIMachineFunctionInfo::haveFreeLanesForSGPRSpill(), llvm::HexagonAsmPrinter::HexagonProcessInstruction(), hoistAndMergeSGPRInits(), llvm::MipsFunctionInfo::initGlobalBaseReg(), llvm::GCNMaxOccupancySchedStrategy::initialize(), llvm::PostGenericScheduler::initialize(), INITIALIZE_PASS(), INITIALIZE_PASS_END(), llvm::MIRParserImpl::initializeFrameInfo(), llvm::MIRParserImpl::initializeMachineFunction(), llvm::TailDuplicator::initMF(), llvm::X86FrameLowering::inlineStackProbe(), llvm::HexagonFrameLowering::insertCFIInstructions(), insertCopy(), insertCSRRestores(), insertCSRSaves(), insertDeleteInstructions(), InsertLDR_STR(), InsertReturnAddressAuth(), InsertSEH(), insertUndefLaneMask(), llvm::Mips16RegisterInfo::intRegClass(), isACalleeSavedRegister(), isAmbiguous(), llvm::RISCVRegisterInfo::isAsmClobberable(), isBackwardPropagatableCopy(), llvm::PPCInstrInfo::isBDNZ(), isCallableFunction(), llvm::PPCRegisterInfo::isCallerPreservedPhysReg(), isCallInstruction(), IsCallReturnTwice(), isCoalescable(), isCompareZero(), isCopy(), isFpMulInstruction(), isHardwareLoop(), isIdentityValue(), llvm::SIInstrInfo::isImmOperandLegal(), isImplicitOperandIn(), isIntersect(), isLEA(), llvm::HexagonPacketizerList::isLegalToPacketizeTogether(), isLibCallInTailPosition(), isLiveOut(), llvm::SwingSchedulerDAG::isLoopCarriedDep(), llvm::AArch64InstrInfo::isMBBSafeToOutlineFrom(), isMinSize(), IsMovepDestinationRegPair(), isNonFoldablePartialRegisterLoad(), llvm::SIInstrInfo::isOperandLegal(), isPseudoCallIndirect(), isRegOtherThanSPAndFP(), llvm::VLIWResourceModel::isResourceAvailable(), llvm::TargetInstrInfo::isSchedulingBoundary(), llvm::PPCInstrInfo::isSignOrZeroExtended(), isSupportedType(), isTargetDarwin(), isTargetWindows(), isTerminalReg(), IsUnconditionalJump(), isVirtualRegisterOperand(), llvm::ARMFrameLowering::keepFramePointer(), llvm::AMDGPULegalizerInfo::legalizeAddrSpaceCast(), llvm::MipsLegalizerInfo::legalizeCustom(), llvm::MipsLegalizerInfo::legalizeIntrinsic(), llvm::SIInstrInfo::legalizeOperands(), llvm::SIMachineFunctionInfo::limitOccupancy(), llvm::LiveRegMatrix::LiveRegMatrix(), loadM0FromVGPR(), loadSRsrcFromVGPR(), lookupCandidateBaseReg(), LoopIsOuterMostWithPredecessor(), llvm::LegalizerHelper::lowerBitCount(), llvm::X86CallLowering::lowerCall(), llvm::ARMCallLowering::lowerCall(), llvm::AArch64CallLowering::lowerCall(), llvm::MipsCallLowering::lowerCall(), llvm::HexagonTargetLowering::LowerCall(), llvm::PPCRegisterInfo::lowerCRBitRestore(), llvm::PPCRegisterInfo::lowerCRBitSpilling(), llvm::PPCRegisterInfo::lowerCRRestore(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), llvm::PPCRegisterInfo::lowerDynamicAreaOffset(), llvm::LegalizerHelper::lowerDynStackAlloc(), llvm::AArch64CallLowering::lowerFormalArguments(), llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::AMDGPUCallLowering::lowerFormalArgumentsKernel(), llvm::AMDGPUAsmPrinter::lowerOperand(), llvm::ARMCallLowering::lowerReturn(), llvm::AMDGPUCallLowering::lowerReturn(), llvm::PPCRegisterInfo::lowerVRSAVERestore(), llvm::PPCRegisterInfo::lowerVRSAVESpilling(), MachineFunction(), llvm::machineFunctionIsIllegal(), MakeM0Inst(), matchSwap(), llvm::AArch64RegisterInfo::materializeFrameBaseRegister(), llvm::PPCRegisterInfo::materializeFrameBaseRegister(), llvm::ARMBaseRegisterInfo::materializeFrameBaseRegister(), llvm::MachineInstr::mayAlias(), moveAndTeeForMultiUse(), moveInstrOut(), llvm::RISCVInstrInfo::movImm(), needsReferenceType(), llvm::TargetRegisterInfo::needsStackRealignment(), normalizePBQPSpillWeight(), false::IntervalSorter::operator()(), operator<<(), optimizeCall(), optimizeVcndVcmpPair(), outliningCandidatesV8_3OpsConsensus(), parseTexFail(), llvm::MIRPrinter::print(), llvm::MIPrinter::print(), llvm::RegisterBankInfo::OperandsMapper::print(), print(), llvm::MachineBasicBlock::print(), llvm::MachineFrameInfo::print(), llvm::MachineInstr::print(), llvm::AVRAsmPrinter::PrintAsmOperand(), llvm::HexagonAsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::PrintAsmOperand(), llvm::AMDGPUAsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::GCNIterativeScheduler::printRegions(), llvm::MipsAsmPrinter::printSavedRegsBitmask(), llvm::GCNIterativeScheduler::printSchedRP(), llvm::MachineOperand::printTargetFlags(), llvm::RISCVFrameLowering::processFunctionBeforeFrameFinalized(), llvm::SIFrameLowering::processFunctionBeforeFrameFinalized(), llvm::XCoreFrameLowering::processFunctionBeforeFrameFinalized(), llvm::ARCFrameLowering::processFunctionBeforeFrameFinalized(), llvm::AArch64FrameLowering::processFunctionBeforeFrameFinalized(), produceCompactUnwindFrame(), llvm::SwiftErrorValueTracking::propagateVRegs(), llvm::TargetInstrInfo::reassociateOps(), llvm::MachineRegisterInfo::recomputeRegClass(), removeRedundantBlockingStores(), replaceDominatedUses(), replaceFI(), ReplaceFrameIndex(), llvm::PPCRegisterInfo::requiresFrameIndexScavenging(), llvm::R600InstrInfo::reserveIndirectRegisters(), reservePrivateMemoryRegs(), llvm::MipsTargetMachine::resetSubtarget(), llvm::ThumbRegisterInfo::resolveFrameIndex(), llvm::PPCRegisterInfo::resolveFrameIndex(), llvm::ARMBaseRegisterInfo::resolveFrameIndex(), llvm::ARMFrameLowering::ResolveFrameIndexReference(), llvm::AArch64FrameLowering::resolveFrameOffsetReference(), llvm::ResourcePriorityQueue::ResourcePriorityQueue(), llvm::AVRFrameLowering::restoreCalleeSavedRegisters(), llvm::Thumb1FrameLowering::restoreCalleeSavedRegisters(), llvm::SystemZFrameLowering::restoreCalleeSavedRegisters(), llvm::XCoreFrameLowering::restoreCalleeSavedRegisters(), llvm::MSP430FrameLowering::restoreCalleeSavedRegisters(), llvm::AArch64FrameLowering::restoreCalleeSavedRegisters(), restoreCRs(), llvm::ThumbRegisterInfo::rewriteFrameIndex(), llvm::UnreachableBlockElimPass::run(), llvm::AVRDAGToDAGISel::runOnMachineFunction(), llvm::HexagonAsmPrinter::runOnMachineFunction(), llvm::HexagonDAGToDAGISel::runOnMachineFunction(), llvm::MipsDAGToDAGISel::runOnMachineFunction(), llvm::InstructionSelect::runOnMachineFunction(), llvm::NVPTXDAGToDAGISel::runOnMachineFunction(), llvm::WebAssemblyAsmPrinter::runOnMachineFunction(), llvm::InsertNOPLoad::runOnMachineFunction(), llvm::BreakFalseDeps::runOnMachineFunction(), llvm::DetectRoundChange::runOnMachineFunction(), llvm::Legalizer::runOnMachineFunction(), llvm::FixAllFDIVSQRT::runOnMachineFunction(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::RegisterClassInfo::runOnMachineFunction(), llvm::ReachingDefAnalysis::runOnMachineFunction(), llvm::ARMAsmPrinter::runOnMachineFunction(), llvm::LiveStacks::runOnMachineFunction(), llvm::MachineTraceMetrics::runOnMachineFunction(), llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::MipsAsmPrinter::runOnMachineFunction(), llvm::ExecutionDomainFix::runOnMachineFunction(), llvm::X86AsmPrinter::runOnMachineFunction(), llvm::LiveIntervals::runOnMachineFunction(), llvm::AVRDynAllocaSR::runOnMachineFunction(), llvm::Mips16RegisterInfo::saveScavengerRegister(), llvm::scavengeFrameVirtualRegs(), llvm::GCNIterativeScheduler::schedule(), llvm::ScheduleDAGInstrs::ScheduleDAGInstrs(), llvm::GCNIterativeScheduler::scheduleILP(), llvm::GCNIterativeScheduler::scheduleLegacyMaxOccupancy(), llvm::ScheduleDAGMILive::scheduleMI(), llvm::GCNIterativeScheduler::scheduleMinReg(), llvm::GCNIterativeScheduler::scheduleRegion(), llvm::AVRDAGToDAGISel::SelectInlineAsmMemoryOperand(), llvm::FunctionLoweringInfo::set(), setAliasRegs(), setCallTargetReg(), llvm::SwiftErrorValueTracking::setFunction(), llvm::MachineIRBuilder::setMF(), llvm::RegScavenger::setRegUsed(), llvm::X86MachineFunctionInfo::setRestoreBasePointer(), llvm::HexagonRegisterInfo::shouldCoalesce(), shrinkScalarCompare(), signOutlinedFunction(), 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(), splitMBB(), stashEntryDbgValues(), false::Chain::str(), subRangeLiveAt(), llvm::SwingSchedulerDAG::SwingSchedulerDAG(), llvm::SystemZPostRASchedStrategy::SystemZPostRASchedStrategy(), tieOpsIfNeeded(), llvm::GCNIterativeScheduler::tryMaximizeOccupancy(), tryOptimizeLEAtoMOV(), tryToFindRegisterToRename(), llvm::X86InstrInfo::unfoldMemoryOperand(), unstackifyVRegsUsedInSplitBB(), UpdateCPSRUse(), llvm::AArch64RegisterInfo::UpdateCustomCalleeSavedRegs(), llvm::AArch64RegisterInfo::UpdateCustomCallPreservedMask(), updateLiveIn(), UpdateOperandRegClass(), UpdatePredRedefs(), llvm::DwarfCompileUnit::updateSubprogramScopeDIE(), llvm::MachineBasicBlock::updateTerminator(), usedAsAddr(), llvm::ThumbRegisterInfo::useFPForScavengingIndex(), llvm::HexagonRegisterInfo::useFPForScavengingIndex(), verify(), llvm::SIInstrInfo::verifyInstruction(), VisitGlobalVariableForEmission(), llvm::VLIWPacketizerList::VLIWPacketizerList(), llvm::VirtRegAuxInfo::weightCalcHelper(), llvm::LegalizerHelper::widenScalar(), windowsRequiresStackProbe(), llvm::WebAssemblyFrameLowering::writeSPToGlobal(), 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 474 of file MachineFunction.h.

◆ getTarget()

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

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

Definition at line 465 of file MachineFunction.h.

Referenced by llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::NVPTXTargetLowering::allowFMA(), llvm::NVPTXTargetLowering::allowUnsafeFPMath(), appendEndToFunction(), AssignProtectedObjSet(), llvm::AArch64RegisterInfo::cannotEliminateFrame(), llvm::ARMBaseRegisterInfo::cannotEliminateFrame(), llvm::MachineBasicBlock::canSplitCriticalEdge(), llvm::X86FrameLowering::canUseLEAForSPInEpilogue(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::MipsFunctionInfo::createEhDataRegsFI(), llvm::MipsTargetLowering::createFastISel(), llvm::createX86RetpolineThunksPass(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::determineCalleeSaves(), llvm::TargetFrameLowering::determineCalleeSaves(), llvm::X86FrameLowering::eliminateCallFramePseudoInstr(), llvm::PPCFrameLowering::eliminateCallFramePseudoInstr(), llvm::AVRRegisterInfo::eliminateFrameIndex(), llvm::X86FrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitEpilogue(), llvm::NVPTXFrameLowering::emitPrologue(), llvm::ARMFrameLowering::emitPrologue(), llvm::AArch64FrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), llvm::AsmPrinter::emitStackSizeSection(), eraseDeadBBsAndChildren(), ExpandMOVImmSExti8(), llvm::AArch64InstrInfo::expandPostRAPseudo(), llvm::X86InstrInfo::foldMemoryOperandImpl(), for(), llvm::AMDGPUSubtarget::get(), llvm::HexagonFrameLowering::getAlignaInstr(), getCallOpcode(), llvm::HexagonFrameLowering::getFrameIndexReference(), llvm::X86FrameLowering::getFrameIndexReference(), llvm::MipsRegisterInfo::getFrameRegister(), getFunctionReturns(), llvm::X86InstrInfo::getGlobalBaseReg(), getGlobalBaseRegClass(), llvm::AArch64InstrInfo::getInstSizeInBytes(), llvm::ARCInstrInfo::getInstSizeInBytes(), llvm::MSP430InstrInfo::getInstSizeInBytes(), llvm::RISCVInstrInfo::getInstSizeInBytes(), llvm::AVRInstrInfo::getInstSizeInBytes(), llvm::MipsInstrInfo::getInstSizeInBytes(), llvm::ARMBaseInstrInfo::getInstSizeInBytes(), llvm::SystemZInstrInfo::getInstSizeInBytes(), llvm::PPCInstrInfo::getInstSizeInBytes(), llvm::SIInstrInfo::getInstSizeInBytes(), getLoadStoreOffsetAlign(), llvm::PPCInstrInfo::getMachineCombinerPatterns(), getMOVL(), getOpenCLAlignment(), getRetpolineSymbol(), llvm::X86InstrInfo::getSerializableDirectMachineOperandTargetFlags(), llvm::HexagonInstrInfo::getSize(), llvm::TargetFrameLowering::getStackAlignmentSkew(), llvm::ARMInstrInfo::getUnindexedOpcode(), giveUpWithRemarks(), llvm::MipsFrameLowering::hasFP(), llvm::SparcFrameLowering::hasFP(), llvm::RISCVFrameLowering::hasFP(), llvm::VEFrameLowering::hasFP(), llvm::MSP430FrameLowering::hasFP(), llvm::SystemZFrameLowering::hasFP(), llvm::XCoreFrameLowering::hasFP(), llvm::ARMFrameLowering::hasFP(), llvm::ARCFrameLowering::hasFP(), llvm::AArch64FrameLowering::hasFP(), llvm::SIFrameLowering::hasFP(), llvm::HexagonFrameLowering::hasFP(), llvm::X86FrameLowering::hasFP(), hoistAndMergeSGPRInits(), llvm::MipsFunctionInfo::initGlobalBaseReg(), llvm::MIRParserImpl::initializeCallSiteInfo(), llvm::MIRParserImpl::initializeMachineFunction(), llvm::X86FrameLowering::inlineStackProbe(), llvm::AArch64InstrInfo::isAssociativeAndCommutative(), llvm::X86InstrInfo::isAssociativeAndCommutative(), isCallableFunction(), llvm::AArch64InstrInfo::isCandidateToMergeOrPair(), isCombineInstrCandidateFP(), isEFLAGSLive(), llvm::AArch64CallLowering::isEligibleForTailCallOptimization(), isOptNone(), isSortedByValueNo(), llvm::AMDGPULegalizerInfo::legalizeAddrSpaceCast(), llvm::AMDGPULegalizerInfo::legalizeFastUnsafeFDIV(), llvm::MipsSEInstrInfo::loadImmediate(), llvm::Thumb1InstrInfo::loadRegFromStackSlot(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), llvm::AArch64CallLowering::lowerCall(), llvm::MipsCallLowering::lowerCall(), llvm::SITargetLowering::LowerCall(), llvm::CallLowering::lowerCall(), llvm::AArch64CallLowering::lowerFormalArguments(), llvm::MipsCallLowering::lowerFormalArguments(), LowerINTRINSIC_W_CHAIN(), MatchingStackOffset(), mayTailCallThisCC(), llvm::AsmPrinter::needsCFIMoves(), llvm::PPCFrameLowering::needsFP(), needsFrameMoves(), llvm::WebAssemblyFrameLowering::needsPrologForEH(), needsWinCFI(), llvm::MIRPrinter::print(), llvm::MIPrinter::print(), llvm::PPCFrameLowering::processFunctionBeforeFrameFinalized(), promoteToConstantPool(), llvm::ARMAsmPrinter::runOnMachineFunction(), llvm::AsmPrinter::SetupMachineFunction(), shouldLowerMemFuncForSize(), llvm::ARMSubtarget::splitFramePushPop(), stashEntryDbgValues(), llvm::DwarfCompileUnit::updateSubprogramScopeDIE(), verify(), and VisitGlobalVariableForEmission().

◆ getTypeIDFor()

unsigned MachineFunction::getTypeIDFor ( const GlobalValue *  TI)

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

Definition at line 818 of file MachineFunction.cpp.

References N.

Referenced by addCatchTypeInfo(), addFilterTypeInfo(), and FixedPointIntrinsicToOpcode().

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

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

◆ getVariableDbgInfo() [1/2]

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

Definition at line 981 of file MachineFunction.h.

Referenced by llvm::MIRPrinter::convertStackObjects(), and getStartOrEndSlot().

◆ getVariableDbgInfo() [2/2]

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

Definition at line 982 of file MachineFunction.h.

◆ getWasmEHFuncInfo() [1/2]

const WasmEHFuncInfo* llvm::MachineFunction::getWasmEHFuncInfo ( ) const
inline

getWasmEHFuncInfo - Return information about how the current function uses Wasm exception handling.

Returns null for functions that don't use wasm exception handling.

Definition at line 507 of file MachineFunction.h.

Referenced by eraseDeadBBsAndChildren(), and llvm::FunctionLoweringInfo::set().

◆ getWasmEHFuncInfo() [2/2]

WasmEHFuncInfo* llvm::MachineFunction::getWasmEHFuncInfo ( )
inline

Definition at line 508 of file MachineFunction.h.

◆ getWasmLandingPadIndex()

unsigned llvm::MachineFunction::getWasmLandingPadIndex ( const MachineBasicBlock *  LPad) const
inline

◆ getWinEHFuncInfo() [1/2]

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

◆ getWinEHFuncInfo() [2/2]

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

Definition at line 514 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 949 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 932 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

◆ hasEHScopes()

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

Definition at line 854 of file MachineFunction.h.

Referenced by llvm::getEHScopeMembership().

◆ hasInlineAsm()

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

Returns true if the function contains any inline assembly.

Definition at line 542 of file MachineFunction.h.

Referenced by llvm::CodeViewDebug::beginFunctionImpl(), and llvm::PPCRegisterInfo::getReservedRegs().

◆ hasWasmLandingPadIndex()

bool llvm::MachineFunction::hasWasmLandingPadIndex ( const MachineBasicBlock *  LPad) const
inline

◆ hasWinCFI()

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

◆ insert()

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

Definition at line 670 of file MachineFunction.h.

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

Referenced by addExclusiveRegPair(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::analyzeArguments(), ComputeCommonTailLength(), createPHIsForCMOVsInSinkBB(), llvm::createX86RetpolineThunksPass(), llvm::PPCTargetLowering::EmitAtomicBinary(), emitBlockAfter(), llvm::PPCTargetLowering::emitEHSjLjSetJmp(), llvm::AArch64TargetLowering::EmitF128CSEL(), llvm::BPFTargetLowering::EmitInstrWithCustomInserter(), llvm::AVRTargetLowering::EmitInstrWithCustomInserter(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitPartwordAtomicBinary(), emitPostSt(), emitSelectPseudo(), llvm::MSP430TargetLowering::EmitShiftInstr(), emitXBegin(), llvm::AMDGPURegisterBankInfo::executeInWaterfallLoop(), llvm::VEInstrInfo::expandExtendStackPseudo(), llvm::SparcTargetLowering::expandSelectCC(), for(), getRetpolineSymbol(), llvm::MipsTargetLowering::HandleByVal(), hasOneExitNode(), INITIALIZE_PASS(), llvm::X86FrameLowering::inlineStackProbe(), loadSRsrcFromVGPR(), LowerFPToInt(), makeImplicit(), packCmovGroup(), llvm::PeelSingleBlockLoop(), removeExternalCFGEdges(), llvm::ARMTargetLowering::ReplaceNodeResults(), split(), splitBlock(), splitBlockForLoop(), llvm::MachineBasicBlock::SplitCriticalEdge(), llvm::SITargetLowering::splitKillBlock(), splitMBB(), toString(), tryToElideArgumentCopy(), and unstackifyVRegsUsedInSplitBB().

◆ moveCallSiteInfo()

void MachineFunction::moveCallSiteInfo ( const MachineInstr *  Old,
const MachineInstr *  New 
)

Following functions update call site info.

They should be called before removing, replacing or copying call instruction. Move the call site info from Old to call site info. This function is used when we are replacing one call instruction with another one to the same callee.

Definition at line 863 of file MachineFunction.cpp.

References assert(), and llvm::MachineInstr::isCall().

Referenced by addExclusiveRegPair(), dumpMachineInstrRangeWithSlotIndex(), llvm::LiveRangeEdit::eraseVirtReg(), INITIALIZE_PASS(), and isVirtualRegisterOperand().

◆ needsFrameMoves()

bool MachineFunction::needsFrameMoves ( ) const

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

Referenced by INITIALIZE_PASS().

◆ rbegin() [2/2]

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

Definition at line 657 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 714 of file MachineFunction.h.

References assert(), getMachineMemOperand(), MI, N, llvm::NotAtomic, Size, and llvm::SyncScope::System.

Referenced by llvm::printMBBReference().

◆ rend() [1/2]

reverse_iterator llvm::MachineFunction::rend ( )
inline

Definition at line 658 of file MachineFunction.h.

Referenced by INITIALIZE_PASS().

◆ rend() [2/2]

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

Definition at line 659 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 303 of file MachineFunction.cpp.

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

Referenced by CompareMBBNumbers(), GetInitialOffset(), llvm::UnreachableBlockElimPass::run(), and sortBlocks().

◆ reset()

void llvm::MachineFunction::reset ( )
inline

Reset the instance as if it was just created.

Definition at line 425 of file MachineFunction.h.

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

◆ resetDelegate()

void llvm::MachineFunction::resetDelegate ( Delegate *  delegate)
inline

Reset the currently registered delegate - otherwise assert.

Definition at line 431 of file MachineFunction.h.

References assert().

Referenced by llvm::RAIIDelegateInstaller::~RAIIDelegateInstaller().

◆ setAlignment()

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

setAlignment - Set the alignment of the function.

Definition at line 520 of file MachineFunction.h.

References A.

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

◆ setCallsEHReturn()

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

Definition at line 849 of file MachineFunction.h.

Referenced by FixedPointIntrinsicToOpcode().

◆ setCallSiteBeginLabel()

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

Map the begin label for a call site.

Definition at line 937 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 813 of file MachineFunction.cpp.

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

Referenced by mapWasmLandingPadIndex().

◆ setCallsUnwindInit()

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

Definition at line 852 of file MachineFunction.h.

Referenced by FixedPointIntrinsicToOpcode().

◆ setDelegate()

void llvm::MachineFunction::setDelegate ( Delegate *  delegate)
inline

Set the delegate.

resetDelegate must be called before attempting to set.

Definition at line 439 of file MachineFunction.h.

References assert().

Referenced by llvm::RAIIDelegateInstaller::RAIIDelegateInstaller().

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

References B.

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

◆ setHasEHFunclets()

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

Definition at line 858 of file MachineFunction.h.

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

◆ setHasEHScopes()

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

Definition at line 855 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 547 of file MachineFunction.h.

References B.

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

◆ setHasWinCFI()

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

◆ setVariableDbgInfo()

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

Collect information used to emit debugging information of a variable.

Definition at line 976 of file MachineFunction.h.

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

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

◆ setWasmLandingPadIndex()

void llvm::MachineFunction::setWasmLandingPadIndex ( const MachineBasicBlock *  LPad,
unsigned  Index 
)
inline

Map the landing pad to its index. Used for Wasm exception handling.

Definition at line 909 of file MachineFunction.h.

Referenced by mapWasmLandingPadIndex().

◆ 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 689 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,
bool  TidyIfNoBeginLabels = true 
)

◆ 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 329 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(), llvm::MachineFunctionProperties::FailedISel, 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::MachineBasicBlock::getParent(), llvm::MachineOperand::getParent(), llvm::MachineInstr::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::Register::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::RegScavenger::forward(), hasVulnerableLoad(), llvm::MIRParserImpl::initializeMachineFunction(), isTerminalReg(), 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 589 of file MachineFunction.cpp.

References llvm::errs(), getName(), and 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 599 of file MachineFunction.cpp.

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

Friends And Related Function Documentation

◆ ilist_traits< MachineInstr >

friend struct ilist_traits< MachineInstr >
friend

Definition at line 411 of file MachineFunction.h.

Member Data Documentation

◆ VariableDbgInfos

VariableDbgInfoMapTy llvm::MachineFunction::VariableDbgInfos

Definition at line 415 of file MachineFunction.h.

Referenced by ~MachineFunction().


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