|
LLVM 23.0.0git
|
#include "llvm/CodeGen/MachineFunction.h"
Classes | |
| struct | ArgRegPair |
| Structure used to represent pair of argument number after call lowering and register used to transfer that argument. More... | |
| struct | CalledGlobalInfo |
| struct | CallSiteInfo |
| class | DebugPHIRegallocPos |
| Location of a PHI instruction that is also a debug-info variable value, for the duration of register allocation. More... | |
| class | DebugSubstitution |
| Replacement definition for a debug instruction reference. More... | |
| class | Delegate |
| class | VariableDbgInfo |
| Description of the location of a variable whose Address is valid and unchanging during function execution. More... | |
Public Types | |
| using | CallSiteInfoMap = DenseMap<const MachineInstr *, CallSiteInfo> |
| using | VariableDbgInfoMapTy = SmallVector<VariableDbgInfo, 4> |
| using | DebugInstrOperandPair = std::pair<unsigned, unsigned> |
| Pair of instruction number and operand number. | |
| 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 | |
| void | handleChangeDesc (MachineInstr &MI, const MCInstrDesc &TID) |
| MachineFunction (Function &F, const TargetMachine &Target, const TargetSubtargetInfo &STI, MCContext &Ctx, unsigned FunctionNum) | |
| MachineFunction (const MachineFunction &)=delete | |
| MachineFunction & | operator= (const MachineFunction &)=delete |
| ~MachineFunction () | |
| void | reset () |
| Reset the instance as if it was just created. | |
| void | resetDelegate (Delegate *delegate) |
| Reset the currently registered delegate - otherwise assert. | |
| void | setDelegate (Delegate *delegate) |
| Set the delegate. | |
| void | setObserver (GISelChangeObserver *O) |
| GISelChangeObserver * | getObserver () const |
| MCContext & | getContext () const |
| MCSection * | getSection () const |
| Returns the Section this function belongs to. | |
| void | setSection (MCSection *S) |
| Indicates the Section this function belongs to. | |
| PseudoSourceValueManager & | getPSVManager () const |
| const DataLayout & | getDataLayout () const |
| Return the DataLayout attached to the Module associated to this MF. | |
| Function & | getFunction () |
| Return the LLVM function that this machine code represents. | |
| const Function & | getFunction () const |
| Return the LLVM function that this machine code represents. | |
| StringRef | getName () const |
| getName - Return the name of the corresponding LLVM function. | |
| unsigned | getFunctionNumber () const |
| getFunctionNumber - Return a unique ID for the current function. | |
| bool | hasBBSections () const |
| Returns true if this function has basic block sections enabled. | |
| void | setBBSectionsType (BasicBlockSection V) |
| void | setPrefetchTargets (const DenseMap< UniqueBBID, SmallVector< unsigned > > &V) |
| const DenseMap< UniqueBBID, SmallVector< unsigned > > & | getPrefetchTargets () const |
| void | assignBeginEndSections () |
| Assign IsBeginSection IsEndSection fields for basic blocks in this function. | |
| const TargetMachine & | getTarget () const |
| getTarget - Return the target machine this machine code is compiled with | |
| const TargetSubtargetInfo & | getSubtarget () const |
| getSubtarget - Return the subtarget for which this machine code is being compiled. | |
| template<typename STC> | |
| const STC & | getSubtarget () const |
| getSubtarget - This method returns a pointer to the specified type of TargetSubtargetInfo. | |
| MachineRegisterInfo & | getRegInfo () |
| getRegInfo - Return information about the registers currently in use. | |
| const MachineRegisterInfo & | getRegInfo () const |
| MachineFrameInfo & | getFrameInfo () |
| getFrameInfo - Return the frame info object for the current function. | |
| const MachineFrameInfo & | getFrameInfo () const |
| const MachineJumpTableInfo * | getJumpTableInfo () const |
| getJumpTableInfo - Return the jump table info object for the current function. | |
| MachineJumpTableInfo * | getJumpTableInfo () |
| MachineJumpTableInfo * | getOrCreateJumpTableInfo (unsigned JTEntryKind) |
| getOrCreateJumpTableInfo - Get the JumpTableInfo for this function, if it does already exist, allocate one. | |
| MachineConstantPool * | getConstantPool () |
| getConstantPool - Return the constant pool object for the current function. | |
| const MachineConstantPool * | getConstantPool () const |
| const WasmEHFuncInfo * | getWasmEHFuncInfo () const |
| getWasmEHFuncInfo - Return information about how the current function uses Wasm exception handling. | |
| WasmEHFuncInfo * | getWasmEHFuncInfo () |
| const WinEHFuncInfo * | getWinEHFuncInfo () const |
| getWinEHFuncInfo - Return information about how the current function uses Windows exception handling. | |
| WinEHFuncInfo * | getWinEHFuncInfo () |
| Align | getAlignment () const |
| getAlignment - Return the alignment of the function. | |
| void | setAlignment (Align A) |
| setAlignment - Set the alignment of the function. | |
| void | ensureAlignment (Align A) |
| ensureAlignment - Make sure the function is at least A bytes aligned. | |
| Align | getPreferredAlignment () const |
| Returns the preferred alignment which comes from the function attributes (optsize, minsize, prefalign) and TargetLowering. | |
| 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. | |
| void | setExposesReturnsTwice (bool B) |
| setCallsSetJmp - Set a flag that indicates if there's a call to a "returns twice" function. | |
| bool | hasInlineAsm () const |
| Returns true if the function contains any inline assembly. | |
| void | setHasInlineAsm (bool B) |
| Set a flag that indicates that the function contains inline assembly. | |
| bool | hasWinCFI () const |
| void | setHasWinCFI (bool v) |
| bool | needsFrameMoves () const |
| True if this function needs frame moves for debug or exceptions. | |
| const MachineFunctionProperties & | getProperties () const |
| Get the function properties. | |
| 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. | |
| template<typename Ty> | |
| const Ty * | getInfo () const |
| template<typename Ty> | |
| Ty * | cloneInfo (const Ty &Old) |
| void | initTargetMachineFunctionInfo (const TargetSubtargetInfo &STI) |
| Initialize the target specific MachineFunctionInfo. | |
| MachineFunctionInfo * | cloneInfoFrom (const MachineFunction &OrigMF, const DenseMap< MachineBasicBlock *, MachineBasicBlock * > &Src2DstMBB) |
| DenormalMode | getDenormalMode (const fltSemantics &FPType) const |
| Returns the denormal handling type for the default rounding mode of the function. | |
| MachineBasicBlock * | getBlockNumbered (unsigned N) const |
| getBlockNumbered - MachineBasicBlocks are automatically numbered when they are inserted into the machine function. | |
| bool | shouldSplitStack () const |
| Should we be emitting segmented stack stuff for the function. | |
| unsigned | getNumBlockIDs () const |
| getNumBlockIDs - Return the number of MBB ID's allocated. | |
| unsigned | getBlockNumberEpoch () const |
| Return the numbering "epoch" of block numbers, incremented after each numbering. | |
| void | RenumberBlocks (MachineBasicBlock *MBBFrom=nullptr) |
| RenumberBlocks - This discards all of the MachineBasicBlock numbers and recomputes them. | |
| int64_t | estimateFunctionSizeInBytes () |
| Return an estimate of the function's code size, taking into account block and function alignment. | |
| void | print (raw_ostream &OS, const SlotIndexes *=nullptr) const |
| print - Print out the MachineFunction in a format suitable for debugging to the specified stream. | |
| void | viewCFG () const |
| viewCFG - This function is meant for use from the debugger. | |
| void | viewCFGOnly () const |
| viewCFGOnly - This function is meant for use from the debugger. | |
| void | dump () const |
| dump - Print the current MachineFunction to cerr, useful for debugger use. | |
| bool | verify (Pass *p=nullptr, const char *Banner=nullptr, raw_ostream *OS=nullptr, bool AbortOnError=true) const |
| Run the current MachineFunction through the machine code verifier, useful for debugger use. | |
| bool | verify (MachineFunctionAnalysisManager &MFAM, const char *Banner=nullptr, raw_ostream *OS=nullptr, bool AbortOnError=true) const |
| For New Pass Manager: Run the current MachineFunction through the machine code verifier, useful for debugger use. | |
| bool | verify (LiveIntervals *LiveInts, SlotIndexes *Indexes, const char *Banner=nullptr, raw_ostream *OS=nullptr, bool AbortOnError=true) const |
| Run the current MachineFunction through the machine code verifier, useful for debugger use. | |
| Register | addLiveIn (MCRegister PReg, const TargetRegisterClass *RC) |
| addLiveIn - Add the specified physical register as a live-in value and create a corresponding virtual register for it. | |
| 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. | |
| unsigned | addToMBBNumbering (MachineBasicBlock *MBB) |
| Adds the MBB to the internal numbering. | |
| 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. | |
| MachineBasicBlock * | CreateMachineBasicBlock (const BasicBlock *BB=nullptr, std::optional< UniqueBBID > BBID=std::nullopt) |
| CreateMachineInstr - Allocate a new MachineInstr. | |
| void | deleteMachineBasicBlock (MachineBasicBlock *MBB) |
| DeleteMachineBasicBlock - Delete the given MachineBasicBlock. | |
| MachineMemOperand * | getMachineMemOperand (MachinePointerInfo PtrInfo, MachineMemOperand::Flags f, LLT MemTy, Align 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. | |
| MachineMemOperand * | getMachineMemOperand (MachinePointerInfo PtrInfo, MachineMemOperand::Flags F, LocationSize Size, Align BaseAlignment, const AAMDNodes &AAInfo=AAMDNodes(), const MDNode *Ranges=nullptr, SyncScope::ID SSID=SyncScope::System, AtomicOrdering Ordering=AtomicOrdering::NotAtomic, AtomicOrdering FailureOrdering=AtomicOrdering::NotAtomic) |
| MachineMemOperand * | getMachineMemOperand (MachinePointerInfo PtrInfo, MachineMemOperand::Flags F, uint64_t Size, Align BaseAlignment, const AAMDNodes &AAInfo=AAMDNodes(), const MDNode *Ranges=nullptr, SyncScope::ID SSID=SyncScope::System, AtomicOrdering Ordering=AtomicOrdering::NotAtomic, AtomicOrdering FailureOrdering=AtomicOrdering::NotAtomic) |
| MachineMemOperand * | getMachineMemOperand (MachinePointerInfo PtrInfo, MachineMemOperand::Flags F, TypeSize Size, Align BaseAlignment, const AAMDNodes &AAInfo=AAMDNodes(), const MDNode *Ranges=nullptr, SyncScope::ID SSID=SyncScope::System, AtomicOrdering Ordering=AtomicOrdering::NotAtomic, AtomicOrdering FailureOrdering=AtomicOrdering::NotAtomic) |
| MachineMemOperand * | getMachineMemOperand (const MachineMemOperand *MMO, int64_t Offset, LLT Ty) |
| getMachineMemOperand - Allocate a new MachineMemOperand by copying an existing one, adjusting by an offset and using the given size. | |
| MachineMemOperand * | getMachineMemOperand (const MachineMemOperand *MMO, int64_t Offset, LocationSize Size) |
| MachineMemOperand * | getMachineMemOperand (const MachineMemOperand *MMO, int64_t Offset, uint64_t Size) |
| MachineMemOperand * | getMachineMemOperand (const MachineMemOperand *MMO, int64_t Offset, TypeSize Size) |
| MachineMemOperand * | getMachineMemOperand (const MachineMemOperand *MMO, const MachinePointerInfo &PtrInfo, LocationSize Size) |
| getMachineMemOperand - Allocate a new MachineMemOperand by copying an existing one, replacing only the MachinePointerInfo and size. | |
| MachineMemOperand * | getMachineMemOperand (const MachineMemOperand *MMO, const MachinePointerInfo &PtrInfo, LLT Ty) |
| MachineMemOperand * | getMachineMemOperand (const MachineMemOperand *MMO, const MachinePointerInfo &PtrInfo, uint64_t Size) |
| MachineMemOperand * | getMachineMemOperand (const MachineMemOperand *MMO, const MachinePointerInfo &PtrInfo, TypeSize Size) |
| MachineMemOperand * | getMachineMemOperand (const MachineMemOperand *MMO, const AAMDNodes &AAInfo) |
| Allocate a new MachineMemOperand by copying an existing one, replacing only AliasAnalysis information. | |
| MachineMemOperand * | getMachineMemOperand (const MachineMemOperand *MMO, MachineMemOperand::Flags Flags) |
| Allocate a new MachineMemOperand by copying an existing one, replacing the flags. | |
| MachineOperand * | allocateOperandArray (OperandCapacity Cap) |
| Allocate an array of MachineOperands. | |
| void | deallocateOperandArray (OperandCapacity Cap, MachineOperand *Array) |
| Dellocate an array of MachineOperands and recycle the memory. | |
| uint32_t * | allocateRegMask () |
Allocate and initialize a register mask with NumRegister bits. | |
| ArrayRef< int > | allocateShuffleMask (ArrayRef< int > Mask) |
| MachineInstr::ExtraInfo * | createMIExtraInfo (ArrayRef< MachineMemOperand * > MMOs, MCSymbol *PreInstrSymbol=nullptr, MCSymbol *PostInstrSymbol=nullptr, MDNode *HeapAllocMarker=nullptr, MDNode *PCSections=nullptr, uint32_t CFIType=0, MDNode *MMRAs=nullptr, Value *DS=nullptr) |
| Allocate and construct an extra info structure for a MachineInstr. | |
| const char * | createExternalSymbolName (StringRef Name) |
| Allocate a string and populate it with the given external symbol name. | |
| MCSymbol * | getJTISymbol (unsigned JTI, MCContext &Ctx, bool isLinkerPrivate=false) const |
| getJTISymbol - Return the MCSymbol for the specified non-empty jump table. | |
| MCSymbol * | getPICBaseSymbol () const |
| getPICBaseSymbol - Return a function-local symbol to represent the PIC base. | |
| const std::vector< MCCFIInstruction > & | getFrameInstructions () const |
| Returns a reference to a list of cfi instructions in the function's prologue. | |
| 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. | |
| void | addLongjmpTarget (MCSymbol *Target) |
| Add the specified symbol to the list of valid longjmp targets for Windows Control Flow Guard. | |
| const std::vector< MCSymbol * > & | getEHContTargets () const |
| Returns a reference to a list of symbols that are targets for Windows EH Continuation Guard. | |
| void | addEHContTarget (MCSymbol *Target) |
| Add the specified symbol to the list of targets for Windows EH Continuation Guard. | |
| CalledGlobalInfo | tryGetCalledGlobal (const MachineInstr *MI) const |
| Tries to get the global and target flags for a call site, if the instruction is a call to a global. | |
| void | addCalledGlobal (const MachineInstr *MI, CalledGlobalInfo Details) |
| Notes the global and target flags for a call site. | |
| auto | getCalledGlobals () const |
| Iterates over the full set of call sites and their associated globals. | |
| void | setVariableDbgInfo (const DILocalVariable *Var, const DIExpression *Expr, int Slot, const DILocation *Loc) |
| Collect information used to emit debugging information of a variable in a stack slot. | |
| void | setVariableDbgInfo (const DILocalVariable *Var, const DIExpression *Expr, MCRegister Reg, const DILocation *Loc) |
| Collect information used to emit debugging information of a variable in the entry value of a register. | |
| VariableDbgInfoMapTy & | getVariableDbgInfo () |
| const VariableDbgInfoMapTy & | getVariableDbgInfo () const |
| auto | getInStackSlotVariableDbgInfo () |
| Returns the collection of variables for which we have debug info and that have been assigned a stack slot. | |
| auto | getInStackSlotVariableDbgInfo () const |
| Returns the collection of variables for which we have debug info and that have been assigned a stack slot. | |
| auto | getEntryValueVariableDbgInfo () const |
| Returns the collection of variables for which we have debug info and that have been assigned an entry value register. | |
| void | addCallSiteInfo (const MachineInstr *CallI, CallSiteInfo &&CallInfo) |
Start tracking the arguments passed to the call CallI. | |
| const CallSiteInfoMap & | getCallSitesInfo () const |
| unsigned | getNewDebugInstrNum () |
Static Public Member Functions | |
| static BasicBlockListType MachineFunction::* | getSublistAccess (MachineBasicBlock *) |
| Support for MachineBasicBlock::getNextNode(). | |
Public Attributes | |
| VariableDbgInfoMapTy | VariableDbgInfos |
| unsigned | DebugInstrNumberingCount = 0 |
| A count of how many instructions in the function have had numbers assigned to them. | |
| SmallVector< DebugSubstitution, 8 > | DebugValueSubstitutions |
| Debug value substitutions: a collection of DebugSubstitution objects, recording changes in where a value is defined. | |
| DenseMap< unsigned, DebugPHIRegallocPos > | DebugPHIPositions |
| Map of debug instruction numbers to the position of their PHI instructions during register allocation. | |
| bool | UseDebugInstrRef = false |
| Flag for whether this function contains DBG_VALUEs (false) or DBG_INSTR_REF (true). | |
Friends | |
| struct | ilist_traits< MachineInstr > |
Exception Handling | |
| bool | callsEHReturn () const |
| void | setCallsEHReturn (bool b) |
| bool | callsUnwindInit () const |
| void | setCallsUnwindInit (bool b) |
| bool | hasEHContTarget () const |
| void | setHasEHContTarget (bool V) |
| bool | hasEHScopes () const |
| void | setHasEHScopes (bool V) |
| bool | hasEHFunclets () const |
| void | setHasEHFunclets (bool V) |
| bool | hasFakeUses () const |
| void | setHasFakeUses (bool V) |
| bool | isOutlined () const |
| void | setIsOutlined (bool V) |
| LandingPadInfo & | getOrCreateLandingPadInfo (MachineBasicBlock *LandingPad) |
| Find or create an LandingPadInfo for the specified MachineBasicBlock. | |
| const std::vector< LandingPadInfo > & | getLandingPads () const |
| Return a reference to the landing pad info for the current function. | |
| 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. | |
| MCSymbol * | addLandingPad (MachineBasicBlock *LandingPad) |
| Add a new panding pad, and extract the exception handling information from the landingpad instruction. | |
| unsigned | getTypeIDFor (const GlobalValue *TI) |
| Return the type id for the specified typeinfo. This is function wide. | |
| int | getFilterIDFor (ArrayRef< unsigned > TyIds) |
| Return the id of the filter encoded by TyIds. This is function wide. | |
| void | setCallSiteLandingPad (MCSymbol *Sym, ArrayRef< unsigned > Sites) |
| Map the landing pad's EH symbol to the call site indexes. | |
| bool | hasAnyWasmLandingPadIndex () const |
| Return if there is any wasm exception handling. | |
| void | setWasmLandingPadIndex (const MachineBasicBlock *LPad, unsigned Index) |
| Map the landing pad to its index. Used for Wasm exception handling. | |
| bool | hasWasmLandingPadIndex (const MachineBasicBlock *LPad) const |
| Returns true if the landing pad has an associate index in wasm EH. | |
| unsigned | getWasmLandingPadIndex (const MachineBasicBlock *LPad) const |
| Get the index in wasm EH for a given landing pad. | |
| bool | hasAnyCallSiteLandingPad () const |
| SmallVectorImpl< unsigned > & | getCallSiteLandingPad (MCSymbol *Sym) |
| Get the call site indexes for a landing pad EH symbol. | |
| bool | hasCallSiteLandingPad (MCSymbol *Sym) |
| Return true if the landing pad Eh symbol has an associated call site. | |
| bool | hasAnyCallSiteLabel () const |
| void | setCallSiteBeginLabel (MCSymbol *BeginLabel, unsigned Site) |
| Map the begin label for a call site. | |
| unsigned | getCallSiteBeginLabel (MCSymbol *BeginLabel) const |
| Get the call site number for a begin label. | |
| bool | hasCallSiteBeginLabel (MCSymbol *BeginLabel) const |
| Return true if the begin label has a call site number associated with it. | |
| void | addCodeViewAnnotation (MCSymbol *Label, MDNode *MD) |
| Record annotations associated with a particular label. | |
| 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. | |
| const std::vector< unsigned > & | getFilterIds () const |
| Return a reference to the typeids encoding filters used in the current function. | |
Exception Handling | |
| static const unsigned int | DebugOperandMemNumber = 1000000 |
| A reserved operand number representing the instructions memory operand, for instructions that have a stack spill fused into them. | |
| void | setDebugInstrNumberingCount (unsigned Num) |
| Set value of DebugInstrNumberingCount field. | |
| void | makeDebugValueSubstitution (DebugInstrOperandPair, DebugInstrOperandPair, unsigned SubReg=0) |
| Create a substitution between one <instr,operand> value to a different, new value. | |
| void | substituteDebugValuesForInst (const MachineInstr &Old, MachineInstr &New, unsigned MaxOperand=UINT_MAX) |
Create substitutions for any tracked values in Old, to point at New. | |
| DebugInstrOperandPair | salvageCopySSA (MachineInstr &MI, DenseMap< Register, DebugInstrOperandPair > &DbgPHICache) |
| Find the underlying defining instruction / operand for a COPY instruction while in SSA form. | |
| DebugInstrOperandPair | salvageCopySSAImpl (MachineInstr &MI) |
| void | finalizeDebugInstrRefs () |
| Finalise any partially emitted debug instructions. | |
| bool | shouldUseDebugInstrRef () const |
| Determine whether, in the current machine configuration, we should use instruction referencing or not. | |
| bool | useDebugInstrRef () const |
| Returns true if the function's variable locations are tracked with instruction referencing. | |
| void | setUseDebugInstrRef (bool UseInstrRef) |
| Set whether this function will use instruction referencing or not. | |
| void | eraseAdditionalCallInfo (const MachineInstr *MI) |
| Following functions update call site info. | |
| void | copyAdditionalCallInfo (const MachineInstr *Old, const MachineInstr *New) |
Copy the call site info from Old to \ New. | |
| void | moveAdditionalCallInfo (const MachineInstr *Old, const MachineInstr *New) |
Move the call site info from Old to \New call site info. | |
Definition at line 295 of file MachineFunction.h.
Definition at line 553 of file MachineFunction.h.
Definition at line 1000 of file MachineFunction.h.
Definition at line 1001 of file MachineFunction.h.
| using llvm::MachineFunction::DebugInstrOperandPair = std::pair<unsigned, unsigned> |
Pair of instruction number and operand number.
Definition at line 593 of file MachineFunction.h.
| using llvm::MachineFunction::iterator = BasicBlockListType::iterator |
Definition at line 999 of file MachineFunction.h.
| using llvm::MachineFunction::OperandCapacity = ArrayRecycler<MachineOperand>::Capacity |
Definition at line 1215 of file MachineFunction.h.
Definition at line 1002 of file MachineFunction.h.
Definition at line 580 of file MachineFunction.h.
| MachineFunction::MachineFunction | ( | Function & | F, |
| const TargetMachine & | Target, | ||
| const TargetSubtargetInfo & | STI, | ||
| MCContext & | Ctx, | ||
| unsigned | FunctionNum ) |
Definition at line 164 of file MachineFunction.cpp.
Referenced by cloneInfoFrom(), MachineFunction(), and operator=().
|
delete |
References MachineFunction().
| MachineFunction::~MachineFunction | ( | ) |
Definition at line 250 of file MachineFunction.cpp.
|
inline |
Notes the global and target flags for a call site.
Definition at line 1298 of file MachineFunction.h.
References assert(), llvm::MachineFunction::CalledGlobalInfo::Callee, and MI.
Referenced by llvm::MIRParserImpl::parseCalledGlobals().
|
inline |
Start tracking the arguments passed to the call CallI.
Definition at line 1486 of file MachineFunction.h.
References assert(), and llvm::MachineInstr::isCandidateForAdditionalCallInfo().
Referenced by llvm::MIRParserImpl::initializeCallSiteInfo().
Record annotations associated with a particular label.
Definition at line 1421 of file MachineFunction.h.
|
inline |
Add the specified symbol to the list of targets for Windows EH Continuation Guard.
Definition at line 1289 of file MachineFunction.h.
|
nodiscard |
Definition at line 342 of file MachineFunction.cpp.
Referenced by llvm::MSP430FrameLowering::BuildCFI(), llvm::X86FrameLowering::BuildCFI(), buildDefCFAReg(), EmitCfiOffset(), EmitDefCfaOffset(), EmitDefCfaRegister(), emitFrameOffsetAdj(), llvm::ARCFrameLowering::emitPrologue(), llvm::CSKYFrameLowering::emitPrologue(), llvm::LoongArchFrameLowering::emitPrologue(), llvm::PPCFrameLowering::emitPrologue(), llvm::SystemZELFFrameLowering::emitPrologue(), llvm::XtensaFrameLowering::emitPrologue(), llvm::PPCFrameLowering::inlineStackProbe(), and insertRememberRestorePair().
| 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 853 of file MachineFunction.cpp.
References llvm::LandingPadInfo::BeginLabels, llvm::LandingPadInfo::EndLabels, and getOrCreateLandingPadInfo().
| MCSymbol * MachineFunction::addLandingPad | ( | MachineBasicBlock * | LandingPad | ) |
Add a new panding pad, and extract the exception handling information from the landingpad instruction.
Returns the label ID for the landing pad entry.
Definition at line 860 of file MachineFunction.cpp.
References assert(), llvm::cast(), llvm::dyn_cast(), llvm::MachineBasicBlock::getBasicBlock(), getFilterIDFor(), llvm::BasicBlock::getFirstNonPHIIt(), getOrCreateLandingPadInfo(), getTypeIDFor(), I, llvm::isa(), llvm::LandingPadInfo::LandingPadLabel, llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::Value::stripPointerCasts(), and llvm::LandingPadInfo::TypeIds.
| Register MachineFunction::addLiveIn | ( | MCRegister | 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 791 of file MachineFunction.cpp.
References llvm::MachineRegisterInfo::addLiveIn(), assert(), llvm::TargetRegisterClass::contains(), llvm::MachineRegisterInfo::createVirtualRegister(), llvm::MachineRegisterInfo::getLiveInVirtReg(), llvm::MachineRegisterInfo::getRegClass(), getRegInfo(), and llvm::TargetRegisterClass::hasSubClassEq().
Referenced by allocateFixedSGPRInputImpl(), allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateLDSKernelId(), llvm::SITargetLowering::allocatePreloadKernArgSGPRs(), allocateSGPR32InputImpl(), llvm::SITargetLowering::allocateSpecialEntryInputVGPRs(), llvm::SITargetLowering::allocateSystemSGPRs(), allocateVGPR32Input(), llvm::getFunctionLiveInPhysReg(), getv64i1Argument(), handleMustTailForwardedRegisters(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::VETargetLowering::LowerFormalArguments(), llvm::XtensaTargetLowering::LowerFormalArguments(), llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::HexagonTargetLowering::LowerRETURNADDR(), llvm::LanaiTargetLowering::LowerRETURNADDR(), and LowerRETURNADDR().
|
inline |
Add the specified symbol to the list of valid longjmp targets for Windows Control Flow Guard.
Definition at line 1279 of file MachineFunction.h.
|
inline |
Adds the MBB to the internal numbering.
Returns the unique number assigned to the MBB.
Definition at line 1072 of file MachineFunction.h.
References MBB.
|
inline |
Allocate an array of MachineOperands.
This is only intended for use by internal MachineInstr functions.
Definition at line 1219 of file MachineFunction.h.
Referenced by llvm::MachineInstr::addOperand().
| uint32_t * MachineFunction::allocateRegMask | ( | ) |
Allocate and initialize a register mask with NumRegister bits.
Definition at line 633 of file MachineFunction.cpp.
References llvm::MCRegisterInfo::getNumRegs(), llvm::TargetSubtargetInfo::getRegisterInfo(), llvm::MachineOperand::getRegMaskSize(), getSubtarget(), and Size.
Referenced by regMaskFromTemplate(), and llvm::AArch64RegisterInfo::UpdateCustomCallPreservedMask().
Definition at line 641 of file MachineFunction.cpp.
References llvm::copy().
Referenced by llvm::MachineIRBuilder::buildShuffleVector().
| void MachineFunction::assignBeginEndSections | ( | ) |
Assign IsBeginSection IsEndSection fields for basic blocks in this function.
This method iterates over the basic blocks and assigns their IsBeginSection and IsEndSection fields.
This must be called after MBB layout is finalized and the SectionID's are assigned to MBBs.
Definition at line 423 of file MachineFunction.cpp.
References back(), begin(), end(), front(), llvm::MachineBasicBlock::getSectionID(), MBBI, llvm::MachineBasicBlock::setIsBeginSection(), and llvm::MachineBasicBlock::setIsEndSection().
Referenced by llvm::MIRParserImpl::initializeMachineFunction(), and llvm::sortBasicBlocksAndUpdateBranches().
|
inline |
Definition at line 1032 of file MachineFunction.h.
References llvm::MachineBasicBlock::back().
|
inline |
Definition at line 1031 of file MachineFunction.h.
References llvm::MachineBasicBlock::back().
Referenced by appendEndToFunction(), assignBeginEndSections(), llvm::calculateDbgEntityHistory(), maybeRewriteToFallthrough(), and removeEmptyBlocks().
|
inline |
Definition at line 1017 of file MachineFunction.h.
Referenced by addImplicitDefs(), llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::X86FrameLowering::adjustForSegmentedStacks(), assignBeginEndSections(), cloneCfiPrologue(), collectCallSiteParameters(), computeBlockInfo(), createFrameHelperMachineFunction(), llvm::SIFrameLowering::determineCalleeSaves(), llvm::AVRTargetLowering::EmitInstrWithCustomInserter(), estimateFunctionSizeInBytes(), llvm::SPIRVTargetLowering::finalizeLowering(), findPrologueEndLoc(), forwardDeviceParams(), llvm::HexagonInstrInfo::genAllInsnTimingClasses(), llvm::HexagonLiveVariables::getDistanceBetween(), getOrCreateFrameHelper(), llvm::MachineLoop::getTopBlock(), llvm::SIInstrInfo::getWholeWaveFunctionSetup(), llvm::MachineBasicBlock::isEntryBlock(), llvm::GraphTraits< DOTMachineFuncInfo * >::nodes_begin(), ProfitableToMerge(), removeEmptyBlocks(), RenumberBlocks(), runImpl(), runIndirectBranchTracking(), llvm::Legalizer::runOnMachineFunction(), runX86WinEHUnwindV2(), llvm::XtensaFrameLowering::spillCalleeSavedRegisters(), and llvm::LoopTraversal::traverse().
|
inline |
Definition at line 1018 of file MachineFunction.h.
|
inline |
Definition at line 1314 of file MachineFunction.h.
Referenced by llvm::XCoreFrameLowering::determineCalleeSaves(), findDeadCallerSavedReg(), llvm::X86RegisterInfo::findDeadCallerSavedReg(), llvm::X86RegisterInfo::getCalleeSavedRegs(), llvm::X86FrameLowering::hasFPImpl(), and printMF().
|
inline |
Definition at line 1317 of file MachineFunction.h.
Referenced by llvm::TargetFrameLowering::determineCalleeSaves(), llvm::XCoreFrameLowering::determineCalleeSaves(), llvm::X86FrameLowering::hasFPImpl(), and printMF().
|
inline |
Definition at line 902 of file MachineFunction.h.
References assert().
Referenced by llvm::AArch64FunctionInfo::clone(), llvm::ARCFunctionInfo::clone(), llvm::ARMFunctionInfo::clone(), llvm::AVRMachineFunctionInfo::clone(), llvm::CSKYMachineFunctionInfo::clone(), llvm::HexagonMachineFunctionInfo::clone(), llvm::LanaiMachineFunctionInfo::clone(), llvm::LoongArchMachineFunctionInfo::clone(), llvm::M68kMachineFunctionInfo::clone(), llvm::MipsFunctionInfo::clone(), llvm::MSP430MachineFunctionInfo::clone(), llvm::NVPTXMachineFunctionInfo::clone(), llvm::PPCFunctionInfo::clone(), llvm::RISCVMachineFunctionInfo::clone(), llvm::SIMachineFunctionInfo::clone(), llvm::SparcMachineFunctionInfo::clone(), llvm::SystemZMachineFunctionInfo::clone(), llvm::VEMachineFunctionInfo::clone(), llvm::WebAssemblyFunctionInfo::clone(), llvm::X86MachineFunctionInfo::clone(), and llvm::XCoreFunctionInfo::clone().
|
inline |
Definition at line 911 of file MachineFunction.h.
References assert(), llvm::MachineFunctionInfo::clone(), and MachineFunction().
| void MachineFunction::copyAdditionalCallInfo | ( | 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 984 of file MachineFunction.cpp.
References assert(), eraseAdditionalCallInfo(), getCallInstr(), and llvm::MachineInstr::shouldUpdateAdditionalCallInfo().
Allocate a string and populate it with the given external symbol name.
Definition at line 626 of file MachineFunction.cpp.
References llvm::copy().
Referenced by addAsmInstr(), llvm::WebAssemblyFrameLowering::emitPrologue(), llvm::HexagonInstrInfo::expandPostRAPseudo(), and llvm::WebAssemblyFrameLowering::writeSPToGlobal().
| MachineBasicBlock * MachineFunction::CreateMachineBasicBlock | ( | const BasicBlock * | BB = nullptr, |
| std::optional< UniqueBBID > | BBID = std::nullopt ) |
CreateMachineInstr - Allocate a new MachineInstr.
Allocate a new MachineBasicBlock. Use this instead of ‘new MachineBasicBlock’.
Use this instead of ‘new MachineInstr’. MachineInstr *CreateMachineInstr(const MCInstrDesc &MCID, DebugLoc DL, bool NoImplicit = false);
/ Create a new MachineInstr which is a copy of Orig, 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. MachineInstr *CloneMachineInstr(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() instead. MachineInstr & cloneMachineInstrBundle(MachineBasicBlock &MBB,
MachineBasicBlock::iterator InsertBefore,
const MachineInstr &Orig);
/ DeleteMachineInstr - Delete the given MachineInstr. void deleteMachineInstr(MachineInstr *MI);
/ CreateMachineBasicBlock - Allocate a new MachineBasicBlock. Use this / instead of ‘new MachineBasicBlock’. Sets MachineBasicBlock::BBID if basic-block-sections is enabled for the function.
Definition at line 507 of file MachineFunction.cpp.
References llvm::List, and MBB.
Referenced by addUnreachableAfterTryTables(), llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::SwitchCG::SwitchLowering::buildJumpTable(), createDedicatedExit(), createFrameHelperMachineFunction(), llvm::SystemZ::emitBlockAfter(), llvm::AArch64TargetLowering::EmitCheckMatchingVL(), llvm::RISCVTargetLowering::emitDynamicProbedAlloc(), llvm::PPCTargetLowering::emitEHSjLjSetJmp(), llvm::SystemZTargetLowering::emitEHSjLjSetJmp(), llvm::VETargetLowering::emitEHSjLjSetJmp(), llvm::AArch64TargetLowering::EmitF128CSEL(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::AVRTargetLowering::EmitInstrWithCustomInserter(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::emitProbedAlloca(), emitReadCounterWidePseudo(), llvm::VETargetLowering::emitSjLjDispatchBlock(), emitStackProbeInline(), emitXBegin(), llvm::AMDGPURegisterBankInfo::executeInWaterfallLoop(), llvm::VEInstrInfo::expandExtendStackPseudo(), llvm::SelectionDAGBuilder::FindMergedConditions(), INITIALIZE_PASS(), llvm::PPCFrameLowering::inlineStackProbe(), llvm::SystemZXPLINKFrameLowering::inlineStackProbe(), insertDivByZeroTrap(), llvm::SIInstrInfo::insertSimulatedTrap(), llvm::AMDGPULegalizerInfo::legalizeTrapEndpgm(), loadM0FromVGPR(), loadScalarOperandsFromVGPR(), llvm::PeelSingleBlockLoop(), llvm::AArch64InstrInfo::probedStackAlloc(), llvm::ARMBlockPlacement::revertWhileToDoLoop(), llvm::FunctionLoweringInfo::set(), llvm::MachineBasicBlock::splitAt(), splitBlockForLoop(), llvm::MachineBasicBlock::SplitCriticalEdge(), splitEdge(), splitEndLoopBB(), splitMBB(), and tryToSplitRestore().
| MachineInstr::ExtraInfo * MachineFunction::createMIExtraInfo | ( | ArrayRef< MachineMemOperand * > | MMOs, |
| MCSymbol * | PreInstrSymbol = nullptr, | ||
| MCSymbol * | PostInstrSymbol = nullptr, | ||
| MDNode * | HeapAllocMarker = nullptr, | ||
| MDNode * | PCSections = nullptr, | ||
| uint32_t | CFIType = 0, | ||
| MDNode * | MMRAs = nullptr, | ||
| Value * | DS = 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 617 of file MachineFunction.cpp.
|
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 1226 of file MachineFunction.h.
Referenced by llvm::MachineInstr::addOperand().
| void MachineFunction::deleteMachineBasicBlock | ( | MachineBasicBlock * | MBB | ) |
DeleteMachineBasicBlock - Delete the given MachineBasicBlock.
Delete the given MachineBasicBlock.
Definition at line 521 of file MachineFunction.cpp.
| LLVM_DUMP_METHOD void MachineFunction::dump | ( | ) | const |
dump - Print the current MachineFunction to cerr, useful for debugger use.
Definition at line 648 of file MachineFunction.cpp.
References llvm::dbgs(), LLVM_DUMP_METHOD, and print().
Referenced by llvm::A57ChainingConstraint::apply(), and llvm::X86SpeculativeLoadHardeningPass::run().
|
inline |
Definition at line 1028 of file MachineFunction.h.
Referenced by llvm::SITargetLowering::finalizeLowering(), RenumberBlocks(), llvm::ShrinkWrapPass::run(), and llvm::BasicBlockMatchingAndInference::runOnMachineFunction().
|
inline |
Definition at line 1019 of file MachineFunction.h.
Referenced by assignBeginEndSections(), canPredictSuccessors(), llvm::AVRTargetLowering::EmitInstrWithCustomInserter(), estimateFunctionSizeInBytes(), llvm::SPIRVTargetLowering::finalizeLowering(), findPrologueEndLoc(), FixTail(), llvm::MachineLoop::getBottomBlock(), llvm::HexagonLiveVariables::getDistanceBetween(), jumpTableFollowsTB(), llvm::GraphTraits< DOTMachineFuncInfo * >::nodes_end(), llvm::PeelSingleBlockLoop(), RenumberBlocks(), runAnalysisOnFuncOrFunclet(), runImpl(), llvm::CFIFixup::runOnMachineFunction(), runX86WinEHUnwindV2(), llvm::MachineBasicBlock::SplitCriticalEdge(), tryToSplitRestore(), UpdateCFG(), updatePredecessors(), and verifyCFIntrinsic().
|
inline |
Definition at line 1020 of file MachineFunction.h.
|
inline |
ensureAlignment - Make sure the function is at least A bytes aligned.
Definition at line 845 of file MachineFunction.h.
References A().
|
inline |
Definition at line 1051 of file MachineFunction.h.
References MBBI.
Referenced by llvm::MachineModuleInfo::deleteMachineFunctionFor(), and llvm::MachineBasicBlock::eraseFromParent().
|
inline |
Definition at line 1052 of file MachineFunction.h.
References MBBI.
| void MachineFunction::eraseAdditionalCallInfo | ( | const MachineInstr * | MI | ) |
Following functions update call site info.
They should be called before removing, replacing or copying call instruction. Erase the call site info for MI. It is used to remove a call instruction from the instruction stream.
Definition at line 970 of file MachineFunction.cpp.
References assert(), getCallInstr(), and MI.
Referenced by copyAdditionalCallInfo(), and moveAdditionalCallInfo().
| int64_t MachineFunction::estimateFunctionSizeInBytes | ( | ) |
Return an estimate of the function's code size, taking into account block and function alignment.
Offset - Distance from the beginning of the function to the end of the basic block.
Definition at line 389 of file MachineFunction.cpp.
References llvm::alignTo(), begin(), BlockSize, end(), getAlignment(), llvm::TargetSubtargetInfo::getInstrInfo(), getSubtarget(), MBBI, MI, llvm::Offset, TII, and llvm::Align::value().
Referenced by llvm::XtensaFrameLowering::processFunctionBeforeFrameFinalized().
|
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 857 of file MachineFunction.h.
Referenced by llvm::CodeViewDebug::beginFunctionImpl(), llvm::PPCFrameLowering::emitEpilogue(), llvm::PPCFrameLowering::needsFP(), and printMF().
| void MachineFunction::finalizeDebugInstrRefs | ( | ) |
Finalise any partially emitted debug instructions.
These are DBG_INSTR_REF instructions where we only knew the vreg of the value they use, not the instruction that defines that vreg. Once isel finishes, we should have enough information for every DBG_INSTR_REF to point at an instruction (or DBG_PHI).
Definition at line 1245 of file MachineFunction.cpp.
References assert(), DefMI, llvm::TargetSubtargetInfo::getInstrInfo(), getSubtarget(), MBB, MI, salvageCopySSA(), and TII.
|
inline |
Definition at line 1030 of file MachineFunction.h.
References llvm::MachineBasicBlock::front().
|
inline |
Definition at line 1029 of file MachineFunction.h.
References llvm::MachineBasicBlock::front().
Referenced by addConstantsToTrack(), argumentStackSlotRebase(), assignBeginEndSections(), llvm::WinException::beginFunction(), llvm::rdf::Liveness::computeLiveIns(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), llvm::AArch64FrameLowering::emitPacRetPlusLeafHardening(), llvm::HexagonFrameLowering::emitPrologue(), llvm::LanaiFrameLowering::emitPrologue(), llvm::MSP430FrameLowering::emitPrologue(), llvm::NVPTXFrameLowering::emitPrologue(), llvm::SparcFrameLowering::emitPrologue(), llvm::SystemZELFFrameLowering::emitPrologue(), llvm::SystemZXPLINKFrameLowering::emitPrologue(), llvm::VEFrameLowering::emitPrologue(), llvm::XCoreFrameLowering::emitPrologue(), llvm::XtensaFrameLowering::emitPrologue(), ensureEntrySetPrio(), gatherBlocksDF(), llvm::getEHScopeMembership(), llvm::rdf::FuncNode::getEntryBlock(), llvm::getFunctionLiveInPhysReg(), llvm::CSKYInstrInfo::getGlobalBaseReg(), llvm::SparcInstrInfo::getGlobalBaseReg(), llvm::VEInstrInfo::getGlobalBaseReg(), llvm::getOpVariableMBBIt(), initGlobalBaseReg(), llvm::MipsFunctionInfo::initGlobalBaseReg(), llvm::SlotIndexes::insertMBBInMaps(), isSignExtendedW(), isSignExtendedW(), llvm::AArch64FrameLowering::processFunctionBeforeFrameFinalized(), llvm::SystemZELFFrameLowering::processFunctionBeforeFrameFinalized(), llvm::ARMBlockPlacement::runOnMachineFunction(), llvm::ErrataWorkaround::runOnMachineFunction(), runX86WinEHUnwindV2(), llvm::sortBasicBlocksAndUpdateBranches(), sortBlocks(), updateLiveness(), and updateLiveness().
|
inline |
getAlignment - Return the alignment of the function.
Definition at line 839 of file MachineFunction.h.
Referenced by estimateFunctionSizeInBytes(), getPreferredAlignment(), and printMF().
|
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 928 of file MachineFunction.h.
Referenced by llvm::WebAssemblyFunctionInfo::initializeBaseYamlFields(), llvm::SPIRVCallLowering::lowerCall(), and maybeUpdateTerminator().
|
inline |
Return the numbering "epoch" of block numbers, incremented after each numbering.
Intended for asserting that no renumbering was performed when used by, e.g., preserved analyses.
Definition at line 943 of file MachineFunction.h.
|
inline |
Iterates over the full set of call sites and their associated globals.
Definition at line 1307 of file MachineFunction.h.
References llvm::make_range().
Referenced by convertCalledGlobals().
Get the call site number for a begin label.
Definition at line 1409 of file MachineFunction.h.
References assert(), and hasCallSiteBeginLabel().
|
inline |
Get the call site indexes for a landing pad EH symbol.
Definition at line 1388 of file MachineFunction.h.
References assert(), and hasCallSiteLandingPad().
Referenced by llvm::VETargetLowering::emitSjLjDispatchBlock().
|
inline |
Definition at line 1494 of file MachineFunction.h.
Referenced by collectCallSiteParameters(), and convertCallSiteObjects().
|
inline |
Definition at line 1425 of file MachineFunction.h.
Referenced by llvm::CodeViewDebug::endFunctionImpl().
|
inline |
getConstantPool - Return the constant pool object for the current function.
Definition at line 823 of file MachineFunction.h.
Referenced by llvm::ARMFrameLowering::adjustForSegmentedStacks(), duplicateCPV(), llvm::ARMBaseRegisterInfo::emitLoadConstPool(), emitLoadFromConstantPool(), emitThumb1LoadConstPool(), emitThumb2LoadConstPool(), EstimateFunctionSizeInBytes(), EstimateFunctionSizeInBytes(), llvm::PPCInstrInfo::finalizeInsInstrs(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::PPCInstrInfo::getConstantFromConstantPool(), llvm::CSKYInstrInfo::getGlobalBaseReg(), llvm::MIRParserImpl::initializeMachineFunction(), llvm::XtensaInstrInfo::insertIndirectBranch(), printMF(), and llvm::ARMBaseInstrInfo::produceSameValue().
|
inline |
Definition at line 824 of file MachineFunction.h.
|
inline |
Definition at line 738 of file MachineFunction.h.
Referenced by llvm::MipsTargetLowering::AdjustInstrPostInstrSelection(), llvm::DwarfCFIException::beginFunction(), buildDefCFAReg(), llvm::MSP430FrameLowering::emitCalleeSavedFrameMoves(), llvm::X86FrameLowering::emitCalleeSavedFrameMoves(), llvm::X86FrameLowering::emitCalleeSavedFrameMovesFullCFA(), llvm::ARCFrameLowering::emitPrologue(), llvm::PPCFrameLowering::emitPrologue(), llvm::SystemZELFFrameLowering::emitPrologue(), llvm::XCoreFrameLowering::emitPrologue(), llvm::XtensaFrameLowering::emitPrologue(), llvm::X86FrameLowering::enableShrinkWrapping(), llvm::MachineBasicBlock::getEHContSymbol(), llvm::TargetLoweringObjectFileXCOFF::getEHInfoTableSymbol(), llvm::MachineBasicBlock::getEndSymbol(), llvm::PPCFunctionInfo::getGlobalEPSymbol(), llvm::PPCFunctionInfo::getLocalEPSymbol(), getMCSymbolForMBB(), llvm::PPCFunctionInfo::getPICOffsetSymbol(), llvm::MipsTargetLowering::getRegisterByName(), llvm::X86RegisterInfo::getReservedRegs(), llvm::MachineBasicBlock::getSymbol(), llvm::PPCFunctionInfo::getTOCOffsetSymbol(), llvm::PPCFrameLowering::inlineStackProbe(), llvm::LoongArchInstrInfo::insertIndirectBranch(), llvm::SIInstrInfo::insertIndirectBranch(), LowerCallResults(), recoverFramePointer(), llvm::SIProgramInfo::reset(), and transformCallee().
| const DataLayout & MachineFunction::getDataLayout | ( | ) | const |
Return the DataLayout attached to the Module associated to this MF.
Definition at line 304 of file MachineFunction.cpp.
Referenced by llvm::X86TargetLowering::BuildFILD(), llvm::LoongArchTargetLowering::CanLowerReturn(), CC_ARM_AAPCS_Custom_Aggregate(), llvm::CC_RISCV(), llvm::CallLowering::checkReturnTypeForCallConv(), llvm::CallLowering::determineAssignments(), llvm::PPCTargetLowering::emitEHSjLjLongJmp(), llvm::SystemZTargetLowering::emitEHSjLjLongJmp(), llvm::PPCTargetLowering::emitEHSjLjSetJmp(), llvm::SystemZTargetLowering::emitEHSjLjSetJmp(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::TargetLoweringBase::emitPatchPoint(), llvm::PPCInstrInfo::finalizeInsInstrs(), llvm::CombinerHelper::getDataLayout(), getFoldedOpcode(), llvm::PPCFunctionInfo::getGlobalEPSymbol(), getJTISymbol(), llvm::PPCFunctionInfo::getLocalEPSymbol(), llvm::WebAssemblyFrameLowering::getLocalForStackObject(), getPICBaseSymbol(), llvm::PPCFunctionInfo::getPICOffsetSymbol(), llvm::MSP430TargetLowering::getReturnAddressFrameIndex(), llvm::TargetInstrInfo::getStackSlotRange(), llvm::SITargetLowering::getTgtMemIntrinsic(), llvm::PPCFunctionInfo::getTOCOffsetSymbol(), llvm::MachinePointerInfo::getUnknownStack(), llvm::CallLowering::handleAssignments(), llvm::CallLowering::insertSRetLoads(), llvm::CallLowering::insertSRetStores(), llvm::WebAssemblyMCInstLower::lower(), llvm::HexagonTargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::ARMCallLowering::lowerCall(), llvm::MipsCallLowering::lowerCall(), llvm::RISCVCallLowering::lowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::VETargetLowering::LowerFormalArguments(), llvm::ARMCallLowering::lowerFormalArguments(), llvm::MipsCallLowering::lowerFormalArguments(), llvm::RISCVCallLowering::lowerFormalArguments(), llvm::X86CallLowering::lowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_64(), lowerFRAMEADDR(), llvm::MipsCallLowering::lowerReturn(), llvm::RISCVCallLowering::lowerReturn(), llvm::X86CallLowering::lowerReturn(), llvm::X86TargetLowering::markLibCallAttributes(), llvm::CombinerHelper::matchCombineExtractedVectorLoad(), llvm::CombinerHelper::matchLoadOrCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), processDbgDeclare(), llvm::SITargetLowering::requiresUniformRegister(), llvm::LegalizerHelper::scalarizeVectorBooleanStore(), and llvm::FunctionLoweringInfo::set().
| DenormalMode MachineFunction::getDenormalMode | ( | const fltSemantics & | FPType | ) | const |
Returns the denormal handling type for the default rounding mode of the function.
Definition at line 319 of file MachineFunction.cpp.
Referenced by llvm::SITargetLowering::isCanonicalized(), llvm::SITargetLowering::isCanonicalized(), isFCmpEqualZero(), llvm::AMDGPUTargetLowering::needsDenormHandlingF32(), needsDenormHandlingF32(), outputDenormalIsIEEEOrPosZero(), and llvm::NVPTXTargetLowering::useF32FTZ().
Returns a reference to a list of symbols that are targets for Windows EH Continuation Guard.
Definition at line 1283 of file MachineFunction.h.
Referenced by llvm::WinException::endFunction().
|
inline |
Returns the collection of variables for which we have debug info and that have been assigned an entry value register.
Definition at line 1479 of file MachineFunction.h.
References getVariableDbgInfo(), and llvm::make_filter_range().
Referenced by convertEntryValueObjects().
Return the id of the filter encoded by TyIds. This is function wide.
Definition at line 920 of file MachineFunction.cpp.
References llvm::append_range(), and llvm::ArrayRef< T >::size().
Referenced by addLandingPad().
Return a reference to the typeids encoding filters used in the current function.
Definition at line 1436 of file MachineFunction.h.
Referenced by llvm::EHStreamer::emitExceptionTable(), and llvm::EHStreamer::emitTypeInfos().
|
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 807 of file MachineFunction.h.
Referenced by addCalleeSavedRegs(), addFrameReference(), llvm::addFrameReference(), llvm::addFrameReference(), llvm::M68k::addFrameReference(), llvm::RegsForValue::AddInlineAsmOperands(), llvm::LiveRegUnits::addLiveOuts(), llvm::LivePhysRegs::addLiveOutsNoPristines(), llvm::M68k::addMemOperand(), llvm::PPCFrameLowering::addScavengingSpillSlot(), llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::SIFrameLowering::allocateScavengingFrameIndexesNearIncomingSP(), llvm::SIMachineFunctionInfo::allocateSGPRSpillToVGPRLane(), llvm::SIMachineFunctionInfo::allocateVGPRSpillToAGPR(), llvm::SIMachineFunctionInfo::allocateWWMSpill(), allSGPRSpillsAreDead(), llvm::AMDGPUResourceUsageAnalysisImpl::analyzeResourceUsage(), argumentStackSlotRebase(), llvm::AArch64FrameLowering::assignCalleeSavedSpillSlots(), llvm::ARCFrameLowering::assignCalleeSavedSpillSlots(), llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), llvm::M68kFrameLowering::assignCalleeSavedSpillSlots(), llvm::PPCFrameLowering::assignCalleeSavedSpillSlots(), llvm::RISCVFrameLowering::assignCalleeSavedSpillSlots(), llvm::SystemZELFFrameLowering::assignCalleeSavedSpillSlots(), llvm::SystemZXPLINKFrameLowering::assignCalleeSavedSpillSlots(), llvm::X86FrameLowering::assignCalleeSavedSpillSlots(), assignSlotsUsingVGPRBlocks(), llvm::CodeViewDebug::beginFunctionImpl(), buildEpilogRestore(), llvm::X86TargetLowering::BuildFILD(), buildPrologSpill(), llvm::SIRegisterInfo::buildSpillLoadStore(), llvm::SIRegisterInfo::buildVGPRSpillLoadStore(), CalculateTailCallArgDest(), llvm::AArch64RegisterInfo::cannotEliminateFrame(), llvm::ARMBaseRegisterInfo::cannotEliminateFrame(), llvm::M68kRegisterInfo::canRealignStack(), llvm::TargetRegisterInfo::canRealignStack(), llvm::X86RegisterInfo::canRealignStack(), llvm::ARMFrameLowering::canSimplifyCallFramePseudos(), llvm::AArch64FrameLowering::canUseRedZone(), llvm::BaseIndexOffset::computeAliasing(), computeCalleeSaveRegisterPairs(), llvm::TargetLowering::computeKnownBitsForFrameIndex(), convertStackObjects(), llvm::MipsFunctionInfo::createEhDataRegsFI(), llvm::XCoreFunctionInfo::createEHSpillSlot(), llvm::XCoreFunctionInfo::createFPSpillSlot(), llvm::MipsFunctionInfo::createISRRegFI(), llvm::XCoreFunctionInfo::createLRSpillSlot(), createSiFivePreemptibleInterruptFrameEntries(), llvm::LegalizerHelper::createStackTemporary(), llvm::TargetInstrInfo::describeLoadedValue(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::CSKYFrameLowering::determineCalleeSaves(), llvm::HexagonFrameLowering::determineCalleeSaves(), llvm::LanaiFrameLowering::determineCalleeSaves(), llvm::M68kFrameLowering::determineCalleeSaves(), llvm::MipsSEFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::determineCalleeSaves(), llvm::SIFrameLowering::determineCalleeSaves(), llvm::SystemZELFFrameLowering::determineCalleeSaves(), llvm::XCoreFrameLowering::determineCalleeSaves(), llvm::SIFrameLowering::determineCalleeSavesSGPR(), llvm::PPCFrameLowering::determineFrameLayout(), llvm::SystemZXPLINKFrameLowering::determineFrameLayout(), llvm::PPCFrameLowering::determineFrameLayoutAndUpdate(), llvm::SIFrameLowering::determinePrologEpilogSGPRSaves(), determineSVEStackSizes(), llvm::TargetOptions::DisableFramePointerElim(), llvm::AArch64FrameLowering::eliminateCallFramePseudoInstr(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::ARCRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::AVRRegisterInfo::eliminateFrameIndex(), llvm::BPFRegisterInfo::eliminateFrameIndex(), llvm::LanaiRegisterInfo::eliminateFrameIndex(), llvm::M68kRegisterInfo::eliminateFrameIndex(), llvm::MipsRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::NVPTXRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::WebAssemblyRegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::XtensaRegisterInfo::eliminateFrameIndex(), emitAlignedDPRCS2Spills(), llvm::AArch64TargetLowering::EmitAllocateSMESaveBuffer(), llvm::AArch64TargetLowering::EmitAllocateZABuffer(), llvm::MSP430FrameLowering::emitCalleeSavedFrameMoves(), llvm::X86FrameLowering::emitCalleeSavedFrameMoves(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), llvm::ARCFrameLowering::emitEpilogue(), llvm::ARMFrameLowering::emitEpilogue(), llvm::AVRFrameLowering::emitEpilogue(), llvm::CSKYFrameLowering::emitEpilogue(), llvm::LoongArchFrameLowering::emitEpilogue(), llvm::M68kFrameLowering::emitEpilogue(), llvm::Mips16FrameLowering::emitEpilogue(), llvm::MipsSEFrameLowering::emitEpilogue(), llvm::MSP430FrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitEpilogue(), llvm::RISCVFrameLowering::emitEpilogue(), llvm::SIFrameLowering::emitEpilogue(), llvm::SparcFrameLowering::emitEpilogue(), llvm::SystemZELFFrameLowering::emitEpilogue(), llvm::SystemZXPLINKFrameLowering::emitEpilogue(), llvm::Thumb1FrameLowering::emitEpilogue(), llvm::VEFrameLowering::emitEpilogue(), llvm::WebAssemblyFrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitEpilogue(), llvm::XCoreFrameLowering::emitEpilogue(), llvm::XtensaFrameLowering::emitEpilogue(), llvm::AArch64TargetLowering::EmitInitTPIDR2Object(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::TargetLoweringBase::emitPatchPoint(), llvm::ARCFrameLowering::emitPrologue(), llvm::ARMFrameLowering::emitPrologue(), llvm::AVRFrameLowering::emitPrologue(), llvm::CSKYFrameLowering::emitPrologue(), llvm::HexagonFrameLowering::emitPrologue(), llvm::LanaiFrameLowering::emitPrologue(), llvm::LoongArchFrameLowering::emitPrologue(), llvm::M68kFrameLowering::emitPrologue(), llvm::Mips16FrameLowering::emitPrologue(), llvm::MipsSEFrameLowering::emitPrologue(), llvm::MSP430FrameLowering::emitPrologue(), llvm::NVPTXFrameLowering::emitPrologue(), llvm::PPCFrameLowering::emitPrologue(), llvm::RISCVFrameLowering::emitPrologue(), llvm::SIFrameLowering::emitPrologue(), llvm::SparcFrameLowering::emitPrologue(), llvm::SystemZELFFrameLowering::emitPrologue(), llvm::SystemZXPLINKFrameLowering::emitPrologue(), llvm::Thumb1FrameLowering::emitPrologue(), llvm::VEFrameLowering::emitPrologue(), llvm::WebAssemblyFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), llvm::XCoreFrameLowering::emitPrologue(), llvm::XtensaFrameLowering::emitPrologue(), emitSCSEpilogue(), emitSCSPrologue(), llvm::VETargetLowering::emitSjLjDispatchBlock(), EmitTailCallStoreFPAndRetAddr(), EmitTailCallStoreRetAddr(), enableAllocFrameElim(), llvm::BaseIndexOffset::equalBaseIndex(), llvm::MipsFrameLowering::estimateStackSize(), llvm::VEInstrInfo::expandGetStackTopPseudo(), llvm::ARMTargetLowering::finalizeLowering(), llvm::RISCVTargetLowering::finalizeLowering(), fixupFuncForFI(), foldInlineAsmMemOperand(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::TargetOptions::FramePointerIsReserved(), getAddressForMemoryInput(), llvm::TargetFrameLowering::getCalleeSaves(), llvm::X86FrameLowering::getDwarfFrameBase(), llvm::HexagonTargetLowering::GetDynamicTLSAddr(), llvm::LoongArchFrameLowering::getFirstSPAdjustAmount(), llvm::RISCVFrameLowering::getFirstSPAdjustAmount(), getFRAMEADDR(), getFrameIndexMMO(), llvm::CSKYFrameLowering::getFrameIndexReference(), llvm::HexagonFrameLowering::getFrameIndexReference(), llvm::LoongArchFrameLowering::getFrameIndexReference(), llvm::M68kFrameLowering::getFrameIndexReference(), llvm::MipsSEFrameLowering::getFrameIndexReference(), llvm::NVPTXFrameLowering::getFrameIndexReference(), llvm::R600FrameLowering::getFrameIndexReference(), llvm::RISCVFrameLowering::getFrameIndexReference(), llvm::SIFrameLowering::getFrameIndexReference(), llvm::SparcFrameLowering::getFrameIndexReference(), llvm::TargetFrameLowering::getFrameIndexReference(), llvm::VEFrameLowering::getFrameIndexReference(), llvm::X86FrameLowering::getFrameIndexReference(), llvm::AArch64FrameLowering::getFrameIndexReferenceFromSP(), llvm::TargetFrameLowering::getFrameIndexReferenceFromSP(), llvm::AArch64FrameLowering::getFrameIndexReferencePreferSP(), llvm::X86FrameLowering::getFrameIndexReferencePreferSP(), llvm::X86FrameLowering::getFrameIndexReferenceSP(), llvm::R600InstrInfo::getIndirectIndexBegin(), llvm::R600InstrInfo::getIndirectIndexEnd(), llvm::AArch64RegisterInfo::getLocalAddressRegister(), llvm::WebAssemblyFrameLowering::getLocalForStackObject(), getMachineMemOperand(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), llvm::MipsInstrInfo::GetMemOperand(), getMemsetStores(), llvm::RISCVMachineFunctionInfo::getMoveF64FrameIndex(), llvm::MipsFunctionInfo::getMoveF64ViaSpillFI(), llvm::SystemZELFFrameLowering::getOrCreateFramePointerSaveIndex(), llvm::SystemZXPLINKFrameLowering::getOrCreateFramePointerSaveIndex(), llvm::ARMBaseInstrInfo::getOutliningTypeImpl(), llvm::ARMSubtarget::getPushPopSplitVariation(), llvm::ARMBaseRegisterInfo::getRegPressureLimit(), llvm::MipsRegisterInfo::getReservedRegs(), llvm::MachineInstr::getRestoreSize(), llvm::MSP430TargetLowering::getReturnAddressFrameIndex(), llvm::X86TargetLowering::getReturnAddressFrameIndex(), getRVVCalleeSavedInfo(), getScavSlotsNumForRVV(), llvm::AArch64FrameLowering::getSEHFrameIndexOffset(), llvm::MachineInstr::getSpillSize(), getStackAlignedMMO(), llvm::RISCVFrameLowering::getStackSizeWithRVVPadding(), GetTLSADDR(), getUnmanagedCSI(), getVGPRSpillLaneOrTempRegister(), llvm::X86FrameLowering::getWin64EHFrameIndexRef(), llvm::AArch64FrameLowering::getWinEHFuncletFrameSize(), llvm::CallLowering::handleAssignments(), handleMustTailForwardedRegisters(), llvm::AArch64RegisterInfo::hasBasePointer(), llvm::ARMBaseRegisterInfo::hasBasePointer(), llvm::LanaiRegisterInfo::hasBasePointer(), llvm::M68kRegisterInfo::hasBasePointer(), llvm::X86RegisterInfo::hasBasePointer(), llvm::CSKYFrameLowering::hasBP(), llvm::LoongArchFrameLowering::hasBP(), llvm::MipsFrameLowering::hasBP(), llvm::RISCVFrameLowering::hasBP(), llvm::VEFrameLowering::hasBP(), llvm::AArch64FrameLowering::hasFPImpl(), llvm::ARCFrameLowering::hasFPImpl(), llvm::ARMFrameLowering::hasFPImpl(), llvm::AVRFrameLowering::hasFPImpl(), llvm::CSKYFrameLowering::hasFPImpl(), llvm::HexagonFrameLowering::hasFPImpl(), llvm::LoongArchFrameLowering::hasFPImpl(), llvm::M68kFrameLowering::hasFPImpl(), llvm::MipsFrameLowering::hasFPImpl(), llvm::MSP430FrameLowering::hasFPImpl(), llvm::PPCFrameLowering::hasFPImpl(), llvm::RISCVFrameLowering::hasFPImpl(), llvm::SIFrameLowering::hasFPImpl(), llvm::SparcFrameLowering::hasFPImpl(), llvm::SystemZELFFrameLowering::hasFPImpl(), llvm::SystemZXPLINKFrameLowering::hasFPImpl(), llvm::VEFrameLowering::hasFPImpl(), llvm::WebAssemblyFrameLowering::hasFPImpl(), llvm::X86FrameLowering::hasFPImpl(), llvm::XCoreFrameLowering::hasFPImpl(), llvm::XtensaFrameLowering::hasFPImpl(), llvm::AArch64FrameLowering::hasReservedCallFrame(), llvm::ARMFrameLowering::hasReservedCallFrame(), llvm::AVRFrameLowering::hasReservedCallFrame(), llvm::CSKYFrameLowering::hasReservedCallFrame(), llvm::LoongArchFrameLowering::hasReservedCallFrame(), llvm::M68kFrameLowering::hasReservedCallFrame(), llvm::Mips16FrameLowering::hasReservedCallFrame(), llvm::MipsSEFrameLowering::hasReservedCallFrame(), llvm::MSP430FrameLowering::hasReservedCallFrame(), llvm::RISCVFrameLowering::hasReservedCallFrame(), llvm::SparcFrameLowering::hasReservedCallFrame(), llvm::Thumb1FrameLowering::hasReservedCallFrame(), llvm::WebAssemblyFrameLowering::hasReservedCallFrame(), llvm::X86FrameLowering::hasReservedCallFrame(), llvm::inferAlignFromPtrInfo(), llvm::SelectionDAG::InferPtrAlign(), llvm::SIMachineFunctionInfo::initializeBaseYamlFields(), llvm::MIRParserImpl::initializeFrameInfo(), llvm::PPCFrameLowering::inlineStackProbe(), llvm::CallLowering::insertSRetOutgoingArgument(), llvm::PPCRegisterInfo::isCallerPreservedPhysReg(), isConsecutiveLSLoc(), llvm::MachineInstr::isDereferenceableInvariantLoad(), llvm::XCoreFunctionInfo::isLargeFrame(), isLikelyToHaveSVEStack(), isLRSpilled(), llvm::TargetInstrInfo::isReMaterializableImpl(), isXPLeafCandidate(), llvm::AArch64InstrInfo::loadRegFromStackSlot(), llvm::ARCInstrInfo::loadRegFromStackSlot(), llvm::ARMBaseInstrInfo::loadRegFromStackSlot(), llvm::AVRInstrInfo::loadRegFromStackSlot(), llvm::CSKYInstrInfo::loadRegFromStackSlot(), llvm::HexagonInstrInfo::loadRegFromStackSlot(), llvm::LoongArchInstrInfo::loadRegFromStackSlot(), llvm::MSP430InstrInfo::loadRegFromStackSlot(), llvm::RISCVInstrInfo::loadRegFromStackSlot(), llvm::SIInstrInfo::loadRegFromStackSlot(), llvm::SparcInstrInfo::loadRegFromStackSlot(), llvm::Thumb1InstrInfo::loadRegFromStackSlot(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), llvm::VEInstrInfo::loadRegFromStackSlot(), llvm::X86InstrInfo::loadRegFromStackSlot(), llvm::XCoreInstrInfo::loadRegFromStackSlot(), llvm::PPCInstrInfo::loadRegFromStackSlotNoUpd(), llvm::AMDGPUTargetLowering::loadStackInputValue(), LowerAsSplatVectorLoad(), llvm::HexagonTargetLowering::LowerCall(), llvm::LoongArchTargetLowering::LowerCall(), llvm::RISCVTargetLowering::LowerCall(), llvm::SITargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), llvm::TargetLowering::LowerCallTo(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), llvm::PPCRegisterInfo::lowerDynamicAreaOffset(), llvm::SparcTargetLowering::LowerF128_LibCallArg(), llvm::SparcTargetLowering::LowerF128Op(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::LoongArchTargetLowering::LowerFormalArguments(), llvm::RISCVTargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::VETargetLowering::LowerFormalArguments(), llvm::XtensaTargetLowering::LowerFormalArguments(), llvm::AArch64CallLowering::lowerFormalArguments(), llvm::MipsCallLowering::lowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::HexagonTargetLowering::LowerFRAMEADDR(), llvm::LanaiTargetLowering::LowerFRAMEADDR(), llvm::MSP430TargetLowering::LowerFRAMEADDR(), lowerFRAMEADDR(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), llvm::InlineAsmLowering::lowerInlineAsm(), LowerINTRINSIC_W_CHAIN(), llvm::HexagonTargetLowering::LowerRETURNADDR(), llvm::LanaiTargetLowering::LowerRETURNADDR(), llvm::MSP430TargetLowering::LowerRETURNADDR(), LowerRETURNADDR(), lowerRETURNADDR(), llvm::AMDGPUCallLowering::lowerTailCall(), lowerTileCopy(), llvm::TargetLowering::LowerToTLSEmulatedModel(), llvm::VETargetLowering::lowerToTLSGeneralDynamicModel(), LowerVASTART(), llvm::VETargetLowering::lowerVASTART(), llvm::SparcTargetLowering::makeAddress(), llvm::Mips16InstrInfo::makeFrame(), llvm::MachineInstr::mayAlias(), llvm::AArch64Subtarget::mirFileLoaded(), llvm::RISCVSubtarget::mirFileLoaded(), llvm::HexagonFrameLowering::needsAligna(), llvm::PPCFrameLowering::needsFP(), llvm::AArch64RegisterInfo::needsFrameBaseReg(), llvm::ARMBaseRegisterInfo::needsFrameBaseReg(), llvm::RISCVRegisterInfo::needsFrameBaseReg(), llvm::M68kFrameLowering::needsFrameIndexResolution(), llvm::TargetFrameLowering::needsFrameIndexResolution(), llvm::X86FrameLowering::needsFrameIndexResolution(), llvm::WebAssemblyFrameLowering::needsPrologForEH(), llvm::AArch64FrameLowering::orderFrameObjects(), llvm::HexagonFrameLowering::orderFrameObjects(), llvm::SystemZELFFrameLowering::orderFrameObjects(), llvm::X86FrameLowering::orderFrameObjects(), llvm::PPCRegisterInfo::prepareDynamicAlloca(), llvm::MachineInstr::print(), printMemOperand(), printMF(), llvm::AArch64FrameLowering::processFunctionBeforeFrameFinalized(), llvm::ARCFrameLowering::processFunctionBeforeFrameFinalized(), llvm::HexagonFrameLowering::processFunctionBeforeFrameFinalized(), llvm::LoongArchFrameLowering::processFunctionBeforeFrameFinalized(), llvm::MSP430FrameLowering::processFunctionBeforeFrameFinalized(), llvm::PPCFrameLowering::processFunctionBeforeFrameFinalized(), llvm::RISCVFrameLowering::processFunctionBeforeFrameFinalized(), llvm::SIFrameLowering::processFunctionBeforeFrameFinalized(), llvm::SystemZELFFrameLowering::processFunctionBeforeFrameFinalized(), llvm::SystemZXPLINKFrameLowering::processFunctionBeforeFrameFinalized(), llvm::X86FrameLowering::processFunctionBeforeFrameFinalized(), llvm::XCoreFrameLowering::processFunctionBeforeFrameFinalized(), llvm::XtensaFrameLowering::processFunctionBeforeFrameFinalized(), llvm::recomputeLivenessFlags(), llvm::PPCFrameLowering::replaceFPWithRealFP(), llvm::SIRegisterInfo::requiresFrameIndexReplacementScavenging(), llvm::PPCRegisterInfo::requiresFrameIndexScavenging(), llvm::SIRegisterInfo::requiresRegisterScavenging(), llvm::SIFrameLowering::requiresStackPointerReference(), reservePrivateMemoryRegs(), llvm::AArch64FrameLowering::resetCFIToInitialState(), llvm::ARMFrameLowering::ResolveFrameIndexReference(), llvm::AArch64FrameLowering::resolveFrameIndexReference(), llvm::AArch64FrameLowering::resolveFrameOffsetReference(), llvm::SIFrameLowering::restoreCalleeSavedRegisters(), llvm::Mips16InstrInfo::restoreFrame(), llvm::X86FrameLowering::restoreWin32EHStackPointers(), runImpl(), llvm::AVRFrameAnalyzer::runOnMachineFunction(), llvm::InstructionSelect::selectMachineFunction(), setAlignFlagsForFI(), llvm::AArch64InstrInfo::shouldClusterMemOps(), shouldLowerTailCallStackArg(), llvm::TargetRegisterInfo::shouldRealignStack(), llvm::yaml::SIMachineFunctionInfo::SIMachineFunctionInfo(), llvm::AArch64FrameLowering::spillCalleeSavedRegisters(), llvm::LoongArchFrameLowering::spillCalleeSavedRegisters(), llvm::Mips16FrameLowering::spillCalleeSavedRegisters(), llvm::MipsSEFrameLowering::spillCalleeSavedRegisters(), llvm::SIFrameLowering::spillCalleeSavedRegisters(), llvm::XtensaFrameLowering::spillCalleeSavedRegisters(), llvm::AArch64InstrInfo::storeRegToStackSlot(), llvm::ARCInstrInfo::storeRegToStackSlot(), llvm::ARMBaseInstrInfo::storeRegToStackSlot(), llvm::AVRInstrInfo::storeRegToStackSlot(), llvm::CSKYInstrInfo::storeRegToStackSlot(), llvm::HexagonInstrInfo::storeRegToStackSlot(), llvm::LoongArchInstrInfo::storeRegToStackSlot(), llvm::MSP430InstrInfo::storeRegToStackSlot(), llvm::RISCVInstrInfo::storeRegToStackSlot(), llvm::SIInstrInfo::storeRegToStackSlot(), llvm::SparcInstrInfo::storeRegToStackSlot(), llvm::Thumb1InstrInfo::storeRegToStackSlot(), llvm::Thumb2InstrInfo::storeRegToStackSlot(), llvm::VEInstrInfo::storeRegToStackSlot(), llvm::X86InstrInfo::storeRegToStackSlot(), llvm::XCoreInstrInfo::storeRegToStackSlot(), llvm::PPCInstrInfo::storeRegToStackSlotNoUpd(), tryToElideArgumentCopy(), unpack64(), unpackF64OnLA32DSoftABI(), unpackF64OnRV32DSoftABI(), unpackFromMemLoc(), unpackFromMemLoc(), unpackFromMemLoc(), updateLiveness(), llvm::ARMFrameLowering::updateLRRestored(), llvm::RISCVMachineFunctionInfo::useSaveRestoreLibCalls(), llvm::SelectionDAGBuilder::visitSPDescriptorFailure(), llvm::SelectionDAGBuilder::visitSPDescriptorParent(), and WindowsRequiresStackProbe().
|
inline |
Definition at line 808 of file MachineFunction.h.
|
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 1264 of file MachineFunction.h.
Referenced by maybeMoveCFI().
|
inline |
Return the LLVM function that this machine code represents.
Definition at line 752 of file MachineFunction.h.
Referenced by llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::X86FrameLowering::adjustForSegmentedStacks(), AlignBlocks(), llvm::SITargetLowering::allocatePreloadKernArgSGPRs(), llvm::SIMachineFunctionInfo::allocateVGPRSpillToAGPR(), allowPGOOutlining(), llvm::LiveDebugVariables::analyze(), llvm::AMDGPUTargetLowering::analyzeFormalArgumentsCompute(), llvm::AMDGPUResourceUsageAnalysisImpl::analyzeResourceUsage(), llvm::AMDGPUCallLowering::areCalleeOutgoingArgsTailCallable(), argumentStackSlotRebase(), llvm::SystemZELFFrameLowering::assignCalleeSavedSpillSlots(), llvm::DebugHandlerBase::beginFunction(), llvm::DwarfCFIException::beginFunction(), llvm::WinException::beginFunction(), llvm::BTFDebug::beginFunctionImpl(), llvm::CodeViewDebug::beginFunctionImpl(), llvm::DwarfDebug::beginFunctionImpl(), llvm::DwarfDebug::beginInstruction(), llvm::MachineIRBuilder::buildFConstant(), llvm::MachineIRBuilder::buildFConstant(), llvm::SPIRVGlobalRegistry::buildGlobalVariable(), llvm::buildNDRange(), llvm::TargetLowering::BuildSDIVPow2(), llvm::TargetLowering::BuildSREMPow2(), llvm::AArch64InstrInfo::canFoldIntoAddrMode(), llvm::AArch64CallLowering::canLowerReturn(), llvm::RISCVCallLowering::canLowerReturn(), llvm::X86CallLowering::canLowerReturn(), llvm::AArch64TargetLowering::canMergeStoresTo(), llvm::X86TargetLowering::canMergeStoresTo(), llvm::AArch64FrameLowering::canUseRedZone(), llvm::CC_RISCV(), CC_X86_Intr(), checkNumAlignedDPRCS2Regs(), llvm::CallLowering::checkReturnTypeForCallConv(), collectCallSiteParameters(), combineFMA(), combineFMADDSUB(), combineFMinNumFMaxNum(), combineFneg(), combineMul(), combineStore(), combineVectorSizedSetCCEquality(), combineVectorSizedSetCCEquality(), combineVectorSizedSetCCEquality(), computeCalleeSaveRegisterPairs(), llvm::SITargetLowering::computeKnownAlignForTargetInstr(), llvm::SelectionDAG::computeKnownBits(), llvm::AMDGPUTargetLowering::computeKnownBitsForTargetNode(), convertImplicitDefToConstZero(), convertMachineMetadataNodes(), llvm::XCoreFunctionInfo::createLRSpillSlot(), llvm::MCResourceInfo::createTotalNumSGPRs(), llvm::MCResourceInfo::createTotalNumVGPRs(), llvm::TargetInstrInfo::describeLoadedValue(), llvm::CallLowering::determineAndHandleAssignments(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::CSKYFrameLowering::determineCalleeSaves(), llvm::SystemZELFFrameLowering::determineCalleeSaves(), llvm::TargetFrameLowering::determineCalleeSaves(), llvm::XCoreFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::determineFrameLayout(), llvm::TargetOptions::DisableFramePointerElim(), llvm::AMDGPUCallLowering::doCallerAndCalleePassArgsTheSameWay(), duplicateCPV(), llvm::X86FrameLowering::eliminateCallFramePseudoInstr(), llvm::PPCRegisterInfo::eliminateFrameIndex(), EmitCmp(), emitConstantSizeRepmov(), emitConstantSizeRepstos(), llvm::PPCTargetLowering::emitEHSjLjSetJmp(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), llvm::ARCFrameLowering::emitEpilogue(), llvm::ARMFrameLowering::emitEpilogue(), llvm::LoongArchFrameLowering::emitEpilogue(), llvm::MipsSEFrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitEpilogue(), llvm::RISCVFrameLowering::emitEpilogue(), llvm::SystemZELFFrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitEpilogue(), llvm::XCoreFrameLowering::emitEpilogue(), emitErrorMsg(), llvm::EHStreamer::emitExceptionTable(), llvm::MachineInstr::emitGenericError(), llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV4::emitHiddenKernelArgs(), llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV5::emitHiddenKernelArgs(), llvm::DwarfDebug::emitInitialLocDirective(), llvm::MachineInstr::emitInlineAsmError(), llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV4::emitKernel(), llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV4::emitKernelArgs(), llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV4::emitKernelAttrs(), llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV5::emitKernelAttrs(), llvm::ARMBaseRegisterInfo::emitLoadConstPool(), llvm::AArch64TargetLowering::EmitLoweredCatchRet(), emitNonHSAIntrinsicError(), llvm::ARCFrameLowering::emitPrologue(), llvm::ARMFrameLowering::emitPrologue(), llvm::CSKYFrameLowering::emitPrologue(), llvm::LoongArchFrameLowering::emitPrologue(), llvm::MipsSEFrameLowering::emitPrologue(), llvm::RISCVFrameLowering::emitPrologue(), llvm::SystemZELFFrameLowering::emitPrologue(), llvm::SystemZXPLINKFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), llvm::XCoreFrameLowering::emitPrologue(), emitRemovedIntrinsicError(), emitReservedArgRegCallError(), llvm::AArch64RegisterInfo::emitReservedArgRegCallError(), emitSCSEpilogue(), emitSCSPrologue(), enableAllocFrameElim(), llvm::ARMFrameLowering::enableCalleeSaveSkip(), llvm::HexagonFrameLowering::enableCalleeSaveSkip(), llvm::TargetFrameLowering::enableCalleeSaveSkip(), llvm::LoongArchFrameLowering::enableShrinkWrapping(), llvm::RISCVFrameLowering::enableShrinkWrapping(), llvm::X86FrameLowering::enableShrinkWrapping(), llvm::AIXException::endFunction(), llvm::ARMException::endFunction(), llvm::WinException::endFunction(), llvm::CodeViewDebug::endFunctionImpl(), llvm::DwarfDebug::endFunctionImpl(), errorUnsupported(), llvm::X86TargetLowering::expandIndirectJTBranch(), expandMul(), llvm::TargetLowering::expandVectorFindLastActive(), fail(), llvm::AArch64CallLowering::fallBackToDAGISel(), findPrologueEndLoc(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::TargetOptions::FramePointerIsReserved(), llvm::MCResourceInfo::gatherResourceInfo(), llvm::ReleaseModePriorityAdvisorProvider::getAdvisor(), getArgBaseReg(), llvm::AArch64Subtarget::getAuthenticatedLRCheckMethod(), getBBAddrMapFeature(), llvm::AArch64RegisterInfo::getCalleeSavedRegs(), llvm::ARMBaseRegisterInfo::getCalleeSavedRegs(), llvm::CSKYRegisterInfo::getCalleeSavedRegs(), llvm::LoongArchRegisterInfo::getCalleeSavedRegs(), llvm::MipsRegisterInfo::getCalleeSavedRegs(), llvm::MSP430RegisterInfo::getCalleeSavedRegs(), llvm::PPCRegisterInfo::getCalleeSavedRegs(), llvm::RISCVRegisterInfo::getCalleeSavedRegs(), llvm::SIRegisterInfo::getCalleeSavedRegs(), llvm::SystemZELFRegisters::getCalleeSavedRegs(), llvm::VERegisterInfo::getCalleeSavedRegs(), llvm::X86RegisterInfo::getCalleeSavedRegs(), llvm::AArch64RegisterInfo::getCalleeSavedRegsViaCopy(), llvm::ARMBaseRegisterInfo::getCalleeSavedRegsViaCopy(), llvm::X86RegisterInfo::getCalleeSavedRegsViaCopy(), getCallOpcode(), llvm::AArch64RegisterInfo::getCallPreservedMask(), llvm::ARMBaseRegisterInfo::getCallPreservedMask(), llvm::SystemZELFRegisters::getCallPreservedMask(), llvm::X86RegisterInfo::getCallPreservedMask(), getCopyFromParts(), llvm::AArch64RegisterInfo::getDarwinCallPreservedMask(), llvm::SIInstrInfo::getDSShaderTypeValue(), llvm::getEHScopeMembership(), llvm::RegAllocBase::getErrorAssignment(), llvm::AArch64FrameLowering::getFrameIndexReference(), llvm::X86FrameLowering::getFrameIndexReference(), llvm::MachineBlockFrequencyInfo::getFunction(), getGatherLanePattern(), llvm::SIMachineFunctionInfo::getGITPtrLoReg(), llvm::CSKYInstrInfo::getGlobalBaseReg(), llvm::ARMSubtarget::getGPRAllocationOrder(), llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV4::getHSAKernelProps(), llvm::AArch64InstrInfo::getInstSizeInBytes(), llvm::PPCInstrInfo::getInstSizeInBytes(), llvm::RISCVInstrInfo::getInstSizeInBytes(), llvm::RISCVMachineFunctionInfo::getInterruptStackKind(), getLayoutSuccessorProbThreshold(), getLoadStackGuard(), llvm::GCNSubtarget::getMaxNumSGPRs(), llvm::GCNSubtarget::getMaxNumVGPRs(), getMCSymbolForMBB(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), getMemsetStores(), getName(), llvm::GCNSubtarget::getNSAThreshold(), llvm::AMDGPUSubtarget::getOccupancyWithWorkGroupSizes(), llvm::SPIRVGlobalRegistry::getOrCreateSPIRVBoolType(), llvm::getOrCreateSPIRVDeviceEventPointer(), llvm::SPIRVGlobalRegistry::getOrCreateSPIRVIntegerType(), llvm::SPIRVGlobalRegistry::getOrCreateSPIRVTypeByName(), llvm::VETargetLowering::getPICJumpTableRelocBase(), llvm::ARMSubtarget::getPushPopSplitVariation(), getRecipEstimateForFunc(), llvm::SITargetLowering::getRegisterByName(), getRegistersForValue(), llvm::SystemZELFFrameLowering::getRegSpillOffset(), llvm::M68kRegisterInfo::getReservedRegs(), llvm::MipsRegisterInfo::getReservedRegs(), llvm::RISCVRegisterInfo::getReservedRegs(), llvm::SIRegisterInfo::getReservedRegs(), llvm::X86RegisterInfo::getReservedRegs(), GetScratchRegister(), llvm::AMDGPULegalizerInfo::getSegmentAperture(), llvm::PPCTargetLowering::getStackProbeSize(), llvm::RISCVTargetLowering::getStackProbeSize(), llvm::SystemZTargetLowering::getStackProbeSize(), llvm::X86TargetLowering::getStackProbeSize(), llvm::X86TargetLowering::getStackProbeSymbolName(), llvm::AArch64RegisterInfo::getStrictlyReservedRegs(), GetSymbolRef(), llvm::CallLowering::handleAssignments(), handleMustTailForwardedRegisters(), llvm::X86FrameLowering::has128ByteRedZone(), hasDebugInfo(), llvm::TargetFrameLowering::hasFP(), llvm::PPCTargetLowering::hasInlineStackProbe(), llvm::RISCVTargetLowering::hasInlineStackProbe(), llvm::SystemZTargetLowering::hasInlineStackProbe(), llvm::X86TargetLowering::hasInlineStackProbe(), llvm::hasInstrProfHashMismatch(), HasNestArgument(), hasReturnsTwiceAttr(), llvm::AArch64FunctionInfo::hasSVE_AAPCS(), llvm::ARMSubtarget::ignoreCSRForAllocationOrder(), llvm::inferAlignFromPtrInfo(), llvm::MipsFunctionInfo::initGlobalBaseReg(), INITIALIZE_PASS(), llvm::MIRParserImpl::initializeConstantPool(), llvm::MIRParserImpl::initializeFrameInfo(), llvm::XtensaInstrInfo::insertIndirectBranch(), insertInlineAsmProcess(), insertWaitInstruction(), interpretValues(), llvm::AArch64RegisterInfo::isArgumentRegister(), llvm::X86RegisterInfo::isArgumentRegister(), llvm::AArch64RegisterInfo::isAsmClobberable(), isCallableFunction(), llvm::TargetRegisterInfo::isCalleeSavedPhysReg(), isCandidatePatchable(), llvm::HexagonTargetLowering::IsEligibleForTailCallOptimization(), llvm::SparcTargetLowering::IsEligibleForTailCallOptimization(), llvm::AArch64CallLowering::isEligibleForTailCallOptimization(), llvm::AMDGPUCallLowering::isEligibleForTailCallOptimization(), llvm::SITargetLowering::isEligibleForTailCallOptimization(), llvm::PPCTargetLowering::isFMAFasterThanFMulAndFAdd(), llvm::ARMBaseInstrInfo::isFunctionSafeToOutlineFrom(), llvm::RISCVInstrInfo::isFunctionSafeToOutlineFrom(), llvm::X86InstrInfo::isFunctionSafeToOutlineFrom(), llvm::TargetInstrInfo::isFunctionSafeToSplit(), llvm::TargetLowering::isInTailCallPosition(), llvm::SelectionDAG::isKnownNeverZero(), isMinSize(), isNoReturnDef(), isOptNone(), isOptSize(), llvm::PPCInstrInfo::isSignOrZeroExtended(), knownBitsForWorkitemID(), llvm::ARMLegalizerInfo::legalizeCustom(), llvm::RISCVLegalizerInfo::legalizeCustom(), llvm::AMDGPULegalizerInfo::legalizeGlobalValue(), llvm::RISCVLegalizerInfo::legalizeIntrinsic(), llvm::SIInstrInfo::legalizeOperands(), llvm::AMDGPULegalizerInfo::legalizeSBufferLoad(), llvm::AMDGPULegalizerInfo::legalizeTrapHsaQueuePtr(), llvm::MachineBasicBlock::liveout_begin(), LowerATOMIC_STORE(), llvm::HexagonTargetLowering::LowerCall(), llvm::RISCVTargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::AArch64CallLowering::lowerCall(), llvm::AMDGPUCallLowering::lowerCall(), llvm::CallLowering::lowerCall(), llvm::M68kCallLowering::lowerCall(), llvm::MipsCallLowering::lowerCall(), llvm::SPIRVCallLowering::lowerCall(), llvm::X86CallLowering::lowerCall(), llvm::AMDGPUCallLowering::lowerChainCall(), LowerCLMUL(), llvm::AMDGPUTargetLowering::LowerDYNAMIC_STACKALLOC(), llvm::NVPTXTargetLowering::LowerDYNAMIC_STACKALLOC(), llvm::HexagonTargetLowering::LowerFDIV(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::RISCVTargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), LowerFPToInt(), llvm::AMDGPUTargetLowering::LowerGlobalAddress(), llvm::InlineAsmLowering::lowerInlineAsm(), LowerInterruptReturn(), llvm::LegalizerHelper::lowerLoad(), llvm::LegalizerHelper::lowerReadWriteRegister(), llvm::NVPTXTargetLowering::LowerReturn(), llvm::RISCVTargetLowering::LowerReturn(), llvm::SystemZTargetLowering::LowerReturn(), llvm::AArch64CallLowering::lowerReturn(), llvm::M68kCallLowering::lowerReturn(), llvm::MipsCallLowering::lowerReturn(), llvm::PPCCallLowering::lowerReturn(), llvm::RISCVCallLowering::lowerReturn(), llvm::SPIRVCallLowering::lowerReturn(), llvm::X86CallLowering::lowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::NVPTXTargetLowering::LowerSTACKRESTORE(), llvm::NVPTXTargetLowering::LowerSTACKSAVE(), llvm::LegalizerHelper::lowerStore(), llvm::AMDGPUCallLowering::lowerTailCall(), llvm::AMDGPUTargetLowering::lowerUnhandledCall(), llvm::LegalizerHelper::lowerVAArg(), LowerVACOPY(), llvm::SparcTargetLowering::makeAddress(), llvm::X86TargetLowering::markLibCallAttributes(), llvm::CombinerHelper::matchCombineExtractedVectorLoad(), llvm::CombinerHelper::matchHoistLogicOpWithSameOpcodeHands(), llvm::CombinerHelper::matchLoadOrCombine(), llvm::SIFrameLowering::mayReserveScratchForCWSR(), llvm::TargetInstrInfo::mergeOutliningCandidateAttributes(), needFuncLabels(), llvm::AArch64FunctionInfo::needsAsyncDwarfUnwindInfo(), llvm::PPCFrameLowering::needsFP(), llvm::WebAssemblyFrameLowering::needsPrologForEH(), needsPrologueENDBR(), llvm::AArch64FunctionInfo::needsShadowCallStackPrologueEpilogue(), llvm::AArch64FrameLowering::needsWinCFI(), needsWinCFI(), needsWinCFI(), llvm::MIRParserImpl::parseCalledGlobals(), parseGlobalValue(), parseIRConstant(), parseIRValue(), llvm::AMDGPUCallLowering::passSpecialInputs(), llvm::SITargetLowering::passSpecialInputs(), performBRCONDCombine(), llvm::AArch64TargetLowering::preferredShiftLegalizationStrategy(), llvm::RISCVTargetLowering::preferredShiftLegalizationStrategy(), llvm::X86TargetLowering::preferredShiftLegalizationStrategy(), llvm::MachineBasicBlock::print(), print(), llvm::MachineInstr::print(), llvm::MachineInstr::print(), printMemOperand(), printMemOperand(), printMF(), processBlockAddr(), llvm::X86FrameLowering::processFunctionBeforeFrameFinalized(), llvm::AArch64FrameLowering::processFunctionBeforeFrameIndicesReplaced(), produceCompactUnwindFrame(), promoteToConstantPool(), llvm::NVPTXDwarfDebug::recordTargetSourceLine(), reduceVMULWidth(), llvm::VerifyInstrumentation::registerCallbacks(), replaceAtomicSwap128(), llvm::RISCVTargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), reportIllegalCopy(), reportInvalidTensormapReplaceUsage(), reservePrivateMemoryRegs(), llvm::AArch64FrameLowering::resolveFrameOffsetReference(), llvm::PPCFrameLowering::restoreCalleeSavedRegisters(), llvm::X86FrameLowering::restoreWinEHStackPointersInParent(), llvm::CallLowering::resultsCompatible(), llvm::AArch64LoadStoreOptPass::run(), llvm::AMDGPUISelDAGToDAGPass::run(), llvm::AMDGPUResourceUsageAnalysis::run(), llvm::ARMPreAllocLoadStoreOptPass::run(), llvm::GCNDPPCombinePass::run(), llvm::GISelValueTrackingPrinterPass::run(), llvm::LiveStacksPrinterPass::run(), llvm::MachineBlockPlacementPass::run(), llvm::MachineOptimizationRemarkEmitterAnalysis::run(), llvm::MachineSchedulerPass::run(), llvm::MachineSinkingPass::run(), llvm::MachineUniformityAnalysis::run(), llvm::MachineUniformityPrinterPass::run(), llvm::PostMachineSchedulerPass::run(), llvm::PostRASchedulerPass::run(), llvm::RegAllocEvictionAdvisorAnalysis::run(), llvm::RegAllocPriorityAdvisorAnalysis::run(), llvm::RegUsageInfoCollectorPass::run(), llvm::RegUsageInfoPropagationPass::run(), llvm::RemoveRedundantDebugValuesPass::run(), llvm::SelectionDAGISelPass::run(), llvm::SIInsertWaitcntsPass::run(), llvm::SILoadStoreOptimizerPass::run(), llvm::SIMemoryLegalizerPass::run(), llvm::SIPeepholeSDWAPass::run(), llvm::SIShrinkInstructionsPass::run(), llvm::TailDuplicatePassBase< DerivedT, PreRegAlloc >::run(), llvm::TwoAddressInstructionPass::run(), llvm::X86AvoidStoreForwardingBlocksPass::run(), llvm::X86FixupBWInstsPass::run(), llvm::X86FixupLEAsPass::run(), llvm::X86OptimizeLEAsPass::run(), llvm::XRayInstrumentationPass::run(), runIndirectBranchTracking(), llvm::MIRProfileLoader::runOnFunction(), llvm::AMDGPUResourceUsageAnalysisWrapperPass::runOnMachineFunction(), llvm::ARMBlockPlacement::runOnMachineFunction(), llvm::ExecutionDomainFix::runOnMachineFunction(), llvm::InstructionSelect::runOnMachineFunction(), llvm::Legalizer::runOnMachineFunction(), llvm::MachineOptimizationRemarkEmitterPass::runOnMachineFunction(), llvm::MachinePipeliner::runOnMachineFunction(), llvm::RegBankSelect::runOnMachineFunction(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::SelectionDAGISelLegacy::runOnMachineFunction(), StaticDataSplitter::runOnMachineFunction(), runX86ReturnThunks(), runX86WinEHUnwindV2(), llvm::LexicalScopes::scanFunction(), llvm::InstructionSelect::selectMachineFunction(), llvm::SwiftErrorValueTracking::setFunction(), llvm::setupMachineFunctionAsmPrinter(), llvm::TargetLoweringObjectFileXCOFF::ShouldEmitEHBlock(), shouldGenerateInlineTPLoop(), shouldLowerMemFuncForSize(), shouldLowerMemFuncForSize(), llvm::shouldOptimizeForSize(), llvm::ARMBaseInstrInfo::shouldOutlineFromFunctionByDefault(), llvm::RISCVInstrInfo::shouldOutlineFromFunctionByDefault(), llvm::X86RegisterInfo::shouldRealignStack(), llvm::TargetLoweringObjectFileXCOFF::ShouldSetSSPCanaryBitInTB(), shouldSplitStack(), llvm::TargetLowering::SimplifySetCC(), llvm::PPCFrameLowering::spillCalleeSavedRegisters(), llvm::SystemZELFFrameLowering::spillCalleeSavedRegisters(), splitStores(), llvm::AArch64TargetLowering::supportSplitCSR(), llvm::ARMTargetLowering::supportSplitCSR(), transformCallee(), unpackFromRegLoc(), unpackFromRegLoc(), updateForAIXShLibTLSModelOpt(), llvm::SystemZELFFrameLowering::usePackedStack(), llvm::RISCVMachineFunctionInfo::useSaveRestoreLibCalls(), llvm::R600InstrInfo::usesTextureCache(), llvm::R600InstrInfo::usesVertexCache(), validateGroupWaitEventsPtr(), validateLifetimeStart(), llvm::SelectionDAGBuilder::visitSPDescriptorFailure(), llvm::SelectionDAGBuilder::visitSPDescriptorParent(), WarnSize(), and WindowsRequiresStackProbe().
Return the LLVM function that this machine code represents.
Definition at line 755 of file MachineFunction.h.
|
inline |
getFunctionNumber - Return a unique ID for the current function.
Definition at line 761 of file MachineFunction.h.
Referenced by llvm::NVPTXFrameLowering::emitPrologue(), llvm::MachineBasicBlock::getEHContSymbol(), llvm::TargetLoweringObjectFileXCOFF::getEHInfoTableSymbol(), llvm::MachineBasicBlock::getEndSymbol(), llvm::PPCFunctionInfo::getGlobalEPSymbol(), getJTISymbol(), llvm::PPCFunctionInfo::getLocalEPSymbol(), getPICBaseSymbol(), llvm::PPCFunctionInfo::getPICOffsetSymbol(), llvm::MachineBasicBlock::getSymbol(), llvm::PPCFunctionInfo::getTOCOffsetSymbol(), and llvm::VETargetLowering::lowerINTRINSIC_WO_CHAIN().
|
inline |
getInfo - Keep track of various per-function pieces of information for backends that would like to do so.
Definition at line 893 of file MachineFunction.h.
Referenced by llvm::SIRegisterInfo::addImplicitUsesForBlockCSRLoad(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::X86FrameLowering::adjustForSegmentedStacks(), allSGPRSpillsAreDead(), llvm::AMDGPUResourceUsageAnalysisImpl::analyzeResourceUsage(), llvm::AMDGPURegisterBankInfo::applyMappingDynStackAlloc(), llvm::AMDGPUCallLowering::areCalleeOutgoingArgsTailCallable(), argumentStackSlotRebase(), llvm::AArch64FrameLowering::assignCalleeSavedSpillSlots(), llvm::ARMFrameLowering::assignCalleeSavedSpillSlots(), llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), llvm::M68kFrameLowering::assignCalleeSavedSpillSlots(), llvm::RISCVFrameLowering::assignCalleeSavedSpillSlots(), llvm::SystemZELFFrameLowering::assignCalleeSavedSpillSlots(), llvm::SystemZXPLINKFrameLowering::assignCalleeSavedSpillSlots(), llvm::X86FrameLowering::assignCalleeSavedSpillSlots(), llvm::SIFrameLowering::assignCalleeSavedSpillSlotsImpl(), assignSlotsUsingVGPRBlocks(), llvm::X86FrameLowering::BuildCFI(), buildGitPtr(), llvm::ARMBaseInstrInfo::buildOutlinedFrame(), buildScratchExecCopy(), llvm::SIRegisterInfo::buildSpillLoadStore(), CalculateTailCallSPDiff(), llvm::SIInstrInfo::canAddToBBProlog(), llvm::X86InstrInfo::canMakeTailCallConditional(), llvm::X86FrameLowering::canSimplifyCallFramePseudos(), canSpillOnFrameIndexAccess(), llvm::RISCVFrameLowering::canUseAsEpilogue(), llvm::X86FrameLowering::canUseAsEpilogue(), llvm::AArch64FrameLowering::canUseAsPrologue(), llvm::RISCVFrameLowering::canUseAsPrologue(), llvm::X86FrameLowering::canUseAsPrologue(), llvm::AArch64FrameLowering::canUseRedZone(), llvm::AArch64TargetLowering::changeStreamingMode(), checkNumAlignedDPRCS2Regs(), computeCalleeSaveRegisterPairs(), llvm::AArch64TargetMachine::convertFuncInfoToYAML(), llvm::ARMBaseTargetMachine::convertFuncInfoToYAML(), llvm::GCNTargetMachine::convertFuncInfoToYAML(), llvm::RISCVTargetMachine::convertFuncInfoToYAML(), llvm::WebAssemblyTargetMachine::convertFuncInfoToYAML(), llvm::X86TargetMachine::convertFuncInfoToYAML(), llvm::AArch64::createFastISel(), denormalModeIsFlushAllF32(), denormalModeIsFlushAllF64F16(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::CSKYFrameLowering::determineCalleeSaves(), llvm::HexagonFrameLowering::determineCalleeSaves(), llvm::M68kFrameLowering::determineCalleeSaves(), llvm::MipsSEFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::determineCalleeSaves(), llvm::RISCVFrameLowering::determineCalleeSaves(), llvm::SIFrameLowering::determineCalleeSaves(), llvm::SparcFrameLowering::determineCalleeSaves(), llvm::SystemZELFFrameLowering::determineCalleeSaves(), llvm::VEFrameLowering::determineCalleeSaves(), llvm::XCoreFrameLowering::determineCalleeSaves(), llvm::SIFrameLowering::determineCalleeSavesSGPR(), llvm::PPCFrameLowering::determineFrameLayout(), llvm::SIFrameLowering::determinePrologEpilogSGPRSaves(), determineSVEStackSizes(), duplicateCPV(), llvm::ARCFrameLowering::eliminateCallFramePseudoInstr(), llvm::M68kFrameLowering::eliminateCallFramePseudoInstr(), llvm::RISCVFrameLowering::eliminateCallFramePseudoInstr(), llvm::SIFrameLowering::eliminateCallFramePseudoInstr(), llvm::X86FrameLowering::eliminateCallFramePseudoInstr(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), emitAlignedDPRCS2Restores(), emitAlignedDPRCS2Spills(), llvm::AArch64TargetLowering::EmitAllocateSMESaveBuffer(), llvm::AArch64TargetLowering::EmitAllocateZABuffer(), emitBuildPairF64Pseudo(), llvm::X86FrameLowering::emitCalleeSavedFrameMoves(), llvm::SIFrameLowering::emitCSRSpillRestores(), llvm::SIFrameLowering::emitCSRSpillStores(), llvm::RISCVTargetLowering::emitDynamicProbedAlloc(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), llvm::ARCFrameLowering::emitEpilogue(), llvm::ARMFrameLowering::emitEpilogue(), llvm::AVRFrameLowering::emitEpilogue(), llvm::CSKYFrameLowering::emitEpilogue(), llvm::LoongArchFrameLowering::emitEpilogue(), llvm::M68kFrameLowering::emitEpilogue(), llvm::MipsSEFrameLowering::emitEpilogue(), llvm::MSP430FrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitEpilogue(), llvm::RISCVFrameLowering::emitEpilogue(), llvm::SIFrameLowering::emitEpilogue(), llvm::SparcFrameLowering::emitEpilogue(), llvm::SystemZELFFrameLowering::emitEpilogue(), llvm::SystemZXPLINKFrameLowering::emitEpilogue(), llvm::Thumb1FrameLowering::emitEpilogue(), llvm::VEFrameLowering::emitEpilogue(), llvm::WebAssemblyFrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitEpilogue(), llvm::XCoreFrameLowering::emitEpilogue(), llvm::VEFrameLowering::emitEpilogueInsns(), llvm::AArch64TargetLowering::EmitGetSMESaveSize(), llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV5::emitHiddenKernelArgs(), llvm::AArch64TargetLowering::EmitInitTPIDR2Object(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV6::emitKernelAttrs(), llvm::ARCFrameLowering::emitPrologue(), llvm::ARMFrameLowering::emitPrologue(), llvm::AVRFrameLowering::emitPrologue(), llvm::CSKYFrameLowering::emitPrologue(), llvm::LoongArchFrameLowering::emitPrologue(), llvm::M68kFrameLowering::emitPrologue(), llvm::MipsSEFrameLowering::emitPrologue(), llvm::MSP430FrameLowering::emitPrologue(), llvm::PPCFrameLowering::emitPrologue(), llvm::RISCVFrameLowering::emitPrologue(), llvm::SIFrameLowering::emitPrologue(), llvm::SparcFrameLowering::emitPrologue(), llvm::SystemZELFFrameLowering::emitPrologue(), llvm::SystemZXPLINKFrameLowering::emitPrologue(), llvm::Thumb1FrameLowering::emitPrologue(), llvm::VEFrameLowering::emitPrologue(), llvm::WebAssemblyFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), llvm::XCoreFrameLowering::emitPrologue(), llvm::XtensaFrameLowering::emitPrologue(), llvm::VEFrameLowering::emitPrologueInsns(), emitSiFiveCLICPreemptibleRestores(), emitSiFiveCLICPreemptibleSaves(), emitSiFiveCLICStackSwap(), emitSMEStateSaveRestore(), emitSplitF64Pseudo(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemchr(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemmove(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::AArch64FrameLowering::enableCFIFixup(), llvm::AArch64FrameLowering::enableFullCFIFixup(), enableMultiVectorSpillFill(), llvm::ARMFrameLowering::enableShrinkWrapping(), llvm::PPCFrameLowering::enableShrinkWrapping(), llvm::AArch64FrameLowering::enableStackSlotScavenging(), estimateRSStackSizeLimit(), llvm::AArch64CallLowering::fallBackToDAGISel(), llvm::SITargetLowering::finalizeLowering(), fixupFuncForFI(), getADAEntry(), getArgumentStackToRestore(), llvm::AArch64RegisterInfo::getCalleeSavedRegs(), llvm::ARMBaseRegisterInfo::getCalleeSavedRegs(), llvm::AVRRegisterInfo::getCalleeSavedRegs(), llvm::HexagonRegisterInfo::getCalleeSavedRegs(), llvm::X86RegisterInfo::getCalleeSavedRegs(), llvm::AArch64RegisterInfo::getCalleeSavedRegsViaCopy(), llvm::ARMBaseRegisterInfo::getCalleeSavedRegsViaCopy(), llvm::X86RegisterInfo::getCalleeSavedRegsViaCopy(), llvm::ARMFrameLowering::getCalleeSaves(), getCallOpcode(), llvm::WebAssemblyFrameLowering::getDwarfFrameBase(), llvm::X86FrameLowering::getDwarfFrameBase(), llvm::RISCVFrameLowering::getFirstSPAdjustAmount(), llvm::CSKYFrameLowering::getFrameIndexReference(), llvm::HexagonFrameLowering::getFrameIndexReference(), llvm::LoongArchFrameLowering::getFrameIndexReference(), llvm::M68kFrameLowering::getFrameIndexReference(), llvm::RISCVFrameLowering::getFrameIndexReference(), llvm::SparcFrameLowering::getFrameIndexReference(), llvm::X86FrameLowering::getFrameIndexReference(), llvm::AArch64FrameLowering::getFrameIndexReferenceFromSP(), llvm::AArch64FrameLowering::getFrameIndexReferencePreferSP(), llvm::X86FrameLowering::getFrameIndexReferencePreferSP(), llvm::SIRegisterInfo::getFrameRegister(), llvm::WebAssemblyRegisterInfo::getFrameRegister(), llvm::CSKYInstrInfo::getGlobalBaseReg(), llvm::M68kInstrInfo::getGlobalBaseReg(), llvm::SparcInstrInfo::getGlobalBaseReg(), llvm::VEInstrInfo::getGlobalBaseReg(), llvm::X86InstrInfo::getGlobalBaseReg(), llvm::MipsTargetLowering::getGlobalReg(), llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV4::getHSAKernelProps(), llvm::AMDGPUTargetLowering::getImplicitParameterOffset(), llvm::AMDGPURegisterBankInfo::getInstrMapping(), llvm::AArch64InstrInfo::getInstSizeInBytes(), llvm::ARMBaseInstrInfo::getInstSizeInBytes(), getLibCallID(), llvm::SIInstrInfo::getLiveRangeSplitOpcode(), llvm::WebAssemblyFrameLowering::getLocalForStackObject(), llvm::GCNSubtarget::getMaxNumSGPRs(), llvm::AMDGPUSubtarget::getOccupancyWithWorkGroupSizes(), llvm::SystemZELFFrameLowering::getOrCreateFramePointerSaveIndex(), llvm::SystemZXPLINKFrameLowering::getOrCreateFramePointerSaveIndex(), llvm::AArch64FrameLowering::getPPRStackSize(), getPushOrLibCallsSavedInfo(), llvm::ARMSubtarget::getPushPopSplitVariation(), getQCISavedInfo(), llvm::SIRegisterInfo::getRegPressureLimit(), llvm::GCNSubtarget::getReservedNumSGPRs(), llvm::HexagonRegisterInfo::getReservedRegs(), llvm::MipsRegisterInfo::getReservedRegs(), llvm::PPCRegisterInfo::getReservedRegs(), llvm::SIRegisterInfo::getReservedRegs(), llvm::X86RegisterInfo::getReservedRegs(), llvm::MSP430TargetLowering::getReturnAddressFrameIndex(), llvm::X86TargetLowering::getReturnAddressFrameIndex(), llvm::RISCVFrameLowering::getStackSizeWithRVVPadding(), GetSymbolRef(), llvm::SITargetLowering::getTgtMemIntrinsic(), getVGPRSpillLaneOrTempRegister(), llvm::SIRegisterInfo::getVRegFlagsOfReg(), llvm::SIInstrInfo::getWholeWaveFunctionSetup(), llvm::X86FrameLowering::getWin64EHFrameIndexRef(), llvm::AArch64FrameLowering::getWinEHFuncletFrameSize(), llvm::X86FrameLowering::getWinEHParentFrameOffset(), getzOSCalleeAndADA(), llvm::AArch64FrameLowering::getZPRStackSize(), handleMustTailForwardedRegisters(), llvm::AArch64RegisterInfo::hasBasePointer(), llvm::ARMBaseRegisterInfo::hasBasePointer(), llvm::X86RegisterInfo::hasBasePointer(), llvm::AArch64FrameLowering::hasFPImpl(), llvm::AVRFrameLowering::hasFPImpl(), llvm::HexagonFrameLowering::hasFPImpl(), llvm::SIFrameLowering::hasFPImpl(), llvm::X86FrameLowering::hasFPImpl(), llvm::VEFrameLowering::hasGOT(), llvm::AArch64TargetLowering::hasInlineStackProbe(), hasNonRISpills(), llvm::M68kFrameLowering::hasReservedCallFrame(), llvm::X86FrameLowering::hasReservedCallFrame(), llvm::PPCRegisterInfo::hasReservedSpillSlot(), hasSpills(), llvm::AArch64FrameLowering::hasSVECalleeSavesAboveFrameRecord(), initGlobalBaseReg(), llvm::LoongArchInstrInfo::insertIndirectBranch(), llvm::RISCVInstrInfo::insertIndirectBranch(), llvm::SIInstrInfo::insertIndirectBranch(), llvm::XtensaInstrInfo::insertIndirectBranch(), llvm::SITargetLowering::isEligibleForTailCallOptimization(), llvm::ARMBaseInstrInfo::isFunctionSafeToOutlineFrom(), llvm::X86InstrInfo::isFunctionSafeToOutlineFrom(), isInStreamingCallSiteRegion(), llvm::SITargetLowering::isKnownNeverNaNForTargetNode(), isLikelyToHaveSVEStack(), llvm::ARMBaseInstrInfo::isPredicable(), isSignExtendedW(), isSignExtendedW(), llvm::PPCInstrInfo::isSignOrZeroExtended(), llvm::AMDGPULegalizerInfo::legalizeAddrSpaceCast(), llvm::AMDGPULegalizerInfo::legalizeFMad(), llvm::AMDGPULegalizerInfo::legalizeGlobalValue(), llvm::AMDGPULegalizerInfo::legalizeMinNumMaxNum(), llvm::GCNRegPressure::less(), llvm::CSKYInstrInfo::loadRegFromStackSlot(), llvm::SIInstrInfo::loadRegFromStackSlot(), llvm::LoongArchTargetLowering::LowerCall(), llvm::RISCVTargetLowering::LowerCall(), llvm::SITargetLowering::LowerCall(), llvm::XtensaTargetLowering::LowerCall(), llvm::AArch64CallLowering::lowerCall(), llvm::AMDGPUCallLowering::lowerCall(), llvm::MipsCallLowering::lowerCall(), llvm::AMDGPUTargetLowering::LowerDIVREM24(), llvm::SITargetLowering::LowerDYNAMIC_STACKALLOC(), llvm::HexagonTargetLowering::LowerEH_RETURN(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::LoongArchTargetLowering::LowerFormalArguments(), llvm::RISCVTargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::VETargetLowering::LowerFormalArguments(), llvm::XtensaTargetLowering::LowerFormalArguments(), llvm::AArch64CallLowering::lowerFormalArguments(), llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::MipsCallLowering::lowerFormalArguments(), llvm::X86CallLowering::lowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::AMDGPUCallLowering::lowerFormalArgumentsKernel(), llvm::HexagonTargetLowering::LowerINLINEASM(), LowerINTRINSIC_W_CHAIN(), llvm::R600TargetLowering::LowerOperation(), llvm::SITargetLowering::LowerOperation(), llvm::RISCVTargetLowering::LowerReturn(), llvm::SITargetLowering::LowerReturn(), llvm::AMDGPUCallLowering::lowerReturn(), llvm::X86CallLowering::lowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), llvm::AMDGPUCallLowering::lowerTailCall(), lowerTileCopy(), LowerToTLSLocalDynamicModel(), llvm::AMDGPUTargetLowering::LowerUDIVREM64(), llvm::HexagonTargetLowering::LowerVASTART(), llvm::LanaiTargetLowering::LowerVASTART(), llvm::MSP430TargetLowering::LowerVASTART(), LowerVASTART(), LowerVASTART(), LowerVASTART(), llvm::VETargetLowering::lowerVASTART(), llvm::SIFrameLowering::mayReserveScratchForCWSR(), MustSaveLR(), llvm::AArch64FunctionInfo::needsAsyncDwarfUnwindInfo(), llvm::PPCFrameLowering::needsFP(), llvm::ARMBaseRegisterInfo::needsFrameBaseReg(), llvm::M68kFrameLowering::needsFrameIndexResolution(), llvm::X86FrameLowering::needsFrameIndexResolution(), llvm::AArch64FrameLowering::orderFrameObjects(), outliningCandidatesSigningKeyConsensus(), outliningCandidatesSigningScopeConsensus(), llvm::AMDGPUMIRFormatter::parseCustomPseudoSourceValue(), llvm::AArch64TargetMachine::parseMachineFunctionInfo(), llvm::ARMBaseTargetMachine::parseMachineFunctionInfo(), llvm::GCNTargetMachine::parseMachineFunctionInfo(), llvm::RISCVTargetMachine::parseMachineFunctionInfo(), llvm::WebAssemblyTargetMachine::parseMachineFunctionInfo(), llvm::X86TargetMachine::parseMachineFunctionInfo(), llvm::AMDGPUCallLowering::passSpecialInputs(), popRegsFromStack(), llvm::AArch64InstrInfo::probedStackAlloc(), llvm::AArch64FrameLowering::processFunctionBeforeFrameFinalized(), llvm::HexagonFrameLowering::processFunctionBeforeFrameFinalized(), llvm::LoongArchFrameLowering::processFunctionBeforeFrameFinalized(), llvm::PPCFrameLowering::processFunctionBeforeFrameFinalized(), llvm::RISCVFrameLowering::processFunctionBeforeFrameFinalized(), llvm::SIFrameLowering::processFunctionBeforeFrameFinalized(), llvm::SystemZELFFrameLowering::processFunctionBeforeFrameFinalized(), llvm::XCoreFrameLowering::processFunctionBeforeFrameFinalized(), llvm::XtensaFrameLowering::processFunctionBeforeFrameFinalized(), llvm::SIFrameLowering::processFunctionBeforeFrameIndicesReplaced(), llvm::X86FrameLowering::processFunctionBeforeFrameIndicesReplaced(), produceCompactUnwindFrame(), llvm::GCNTargetMachine::registerMachineRegisterInfoCallback(), llvm::SIRegisterInfo::requiresRegisterScavenging(), llvm::AArch64FrameLowering::requiresSaveVG(), llvm::SIFrameLowering::requiresStackPointerReference(), llvm::AArch64FrameLowering::resetCFIToInitialState(), llvm::ARMBaseRegisterInfo::resolveFrameIndex(), llvm::ARMFrameLowering::ResolveFrameIndexReference(), llvm::AArch64FrameLowering::resolveFrameOffsetReference(), llvm::AArch64FrameLowering::restoreCalleeSavedRegisters(), llvm::ARMFrameLowering::restoreCalleeSavedRegisters(), llvm::PPCFrameLowering::restoreCalleeSavedRegisters(), llvm::RISCVFrameLowering::restoreCalleeSavedRegisters(), llvm::SIFrameLowering::restoreCalleeSavedRegisters(), llvm::SystemZELFFrameLowering::restoreCalleeSavedRegisters(), llvm::SystemZXPLINKFrameLowering::restoreCalleeSavedRegisters(), llvm::Thumb1FrameLowering::restoreCalleeSavedRegisters(), llvm::X86FrameLowering::restoreCalleeSavedRegisters(), llvm::restoreStatusRegister(), llvm::X86FrameLowering::restoreWin32EHStackPointers(), llvm::AVRFrameAnalyzer::runOnMachineFunction(), setUsesTOCBasePtr(), llvm::SIInstrInfo::shouldClusterMemOps(), llvm::SIRegisterInfo::shouldRealignStack(), shouldSkipLocalDynamicTLS(), llvm::AArch64FrameLowering::spillCalleeSavedRegisters(), llvm::ARMFrameLowering::spillCalleeSavedRegisters(), llvm::AVRFrameLowering::spillCalleeSavedRegisters(), llvm::MSP430FrameLowering::spillCalleeSavedRegisters(), llvm::PPCFrameLowering::spillCalleeSavedRegisters(), llvm::RISCVFrameLowering::spillCalleeSavedRegisters(), llvm::SIFrameLowering::spillCalleeSavedRegisters(), llvm::SystemZELFFrameLowering::spillCalleeSavedRegisters(), llvm::SystemZXPLINKFrameLowering::spillCalleeSavedRegisters(), llvm::X86FrameLowering::spillCalleeSavedRegisters(), llvm::XCoreFrameLowering::spillCalleeSavedRegisters(), llvm::X86FrameLowering::spillFPBP(), spillsCR(), spillVGPRtoAGPR(), llvm::AVRInstrInfo::storeRegToStackSlot(), llvm::CSKYInstrInfo::storeRegToStackSlot(), llvm::SIInstrInfo::storeRegToStackSlot(), llvm::AMDGPUTargetLowering::storeStackInputValue(), llvm::SITargetLowering::supportSplitCSR(), unpackFromRegLoc(), unpackFromRegLoc(), unstackifyVRegsUsedInSplitBB(), updateForAIXShLibTLSModelOpt(), and llvm::AArch64RegisterInfo::useFPForScavengingIndex().
|
inline |
Definition at line 898 of file MachineFunction.h.
|
inline |
Returns the collection of variables for which we have debug info and that have been assigned a stack slot.
Definition at line 1463 of file MachineFunction.h.
References getVariableDbgInfo(), and llvm::make_filter_range().
Referenced by convertStackObjects().
|
inline |
Returns the collection of variables for which we have debug info and that have been assigned a stack slot.
Definition at line 1471 of file MachineFunction.h.
References getVariableDbgInfo(), and llvm::make_filter_range().
|
inline |
Return the number of MachineInstrs in this MachineFunction.
Definition at line 1060 of file MachineFunction.h.
References InstrCount, and MBB.
| 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 816 of file MachineFunction.cpp.
References assert(), DL, getDataLayout(), getFunctionNumber(), and size().
Referenced by llvm::M68kTargetLowering::getPICJumpTableRelocBaseExpr(), and llvm::TargetLowering::getPICJumpTableRelocBaseExpr().
|
inline |
Definition at line 815 of file MachineFunction.h.
|
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 814 of file MachineFunction.h.
Referenced by EstimateFunctionSizeInBytes(), forEachJumpTableBranch(), jumpTableHasOtherUses(), llvm::BranchFolder::OptimizeFunction(), printMF(), removeEmptyBlocks(), and llvm::MachineBasicBlock::SplitCriticalEdge().
|
inline |
Return a reference to the landing pad info for the current function.
Definition at line 1339 of file MachineFunction.h.
Referenced by llvm::SystemZXPLINKFrameLowering::assignCalleeSavedSpillSlots(), llvm::DwarfCFIException::beginFunction(), llvm::WinException::beginFunction(), llvm::SystemZELFFrameLowering::determineCalleeSaves(), llvm::M68kFrameLowering::eliminateCallFramePseudoInstr(), llvm::X86FrameLowering::eliminateCallFramePseudoInstr(), llvm::EHStreamer::emitExceptionTable(), llvm::ARMException::endFunction(), llvm::WasmException::endFunction(), needFuncLabels(), and llvm::TargetLoweringObjectFileXCOFF::ShouldEmitEHBlock().
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 1273 of file MachineFunction.h.
Referenced by llvm::WinCFGuard::endFunction().
| MachineMemOperand * MachineFunction::getMachineMemOperand | ( | const MachineMemOperand * | MMO, |
| const AAMDNodes & | AAInfo ) |
Allocate a new MachineMemOperand by copying an existing one, replacing only AliasAnalysis information.
MachineMemOperands are owned by the MachineFunction and need not be explicitly deallocated.
Definition at line 596 of file MachineFunction.cpp.
References llvm::MachineMemOperand::getBaseAlign(), llvm::MachineMemOperand::getFailureOrdering(), llvm::MachineMemOperand::getFlags(), llvm::MachineMemOperand::getOffset(), llvm::MachineMemOperand::getPseudoValue(), llvm::MachineMemOperand::getRanges(), llvm::MachineMemOperand::getSize(), llvm::MachineMemOperand::getSuccessOrdering(), llvm::MachineMemOperand::getSyncScopeID(), and llvm::MachineMemOperand::getValue().
| MachineMemOperand * MachineFunction::getMachineMemOperand | ( | const MachineMemOperand * | MMO, |
| const MachinePointerInfo & | PtrInfo, | ||
| LLT | Ty ) |
| MachineMemOperand * MachineFunction::getMachineMemOperand | ( | const MachineMemOperand * | MMO, |
| const MachinePointerInfo & | PtrInfo, | ||
| LocationSize | Size ) |
getMachineMemOperand - Allocate a new MachineMemOperand by copying an existing one, replacing only the MachinePointerInfo and size.
MachineMemOperands are owned by the MachineFunction and need not be explicitly deallocated.
Definition at line 555 of file MachineFunction.cpp.
References assert(), llvm::MachineMemOperand::getBaseAlign(), llvm::MachineMemOperand::getFailureOrdering(), llvm::MachineMemOperand::getFlags(), llvm::MachineMemOperand::getSuccessOrdering(), llvm::MachineMemOperand::getSyncScopeID(), and Size.
|
inline |
Definition at line 1197 of file MachineFunction.h.
References getMachineMemOperand(), llvm::LocationSize::precise(), and Size.
|
inline |
Definition at line 1192 of file MachineFunction.h.
References getMachineMemOperand(), llvm::LocationSize::precise(), and Size.
| MachineMemOperand * MachineFunction::getMachineMemOperand | ( | const MachineMemOperand * | MMO, |
| int64_t | Offset, | ||
| LLT | Ty ) |
getMachineMemOperand - Allocate a new MachineMemOperand by copying an existing one, adjusting by an offset and using the given size.
MachineMemOperands are owned by the MachineFunction and need not be explicitly deallocated.
Definition at line 577 of file MachineFunction.cpp.
References llvm::commonAlignment(), llvm::MachineMemOperand::getAAInfo(), llvm::MachineMemOperand::getBaseAlign(), llvm::MachineMemOperand::getFailureOrdering(), llvm::MachineMemOperand::getFlags(), llvm::MachineMemOperand::getPointerInfo(), llvm::MachineMemOperand::getSuccessOrdering(), llvm::MachineMemOperand::getSyncScopeID(), llvm::MachinePointerInfo::getWithOffset(), llvm::PointerUnion< PTs >::isNull(), llvm::Offset, and llvm::MachinePointerInfo::V.
|
inline |
Definition at line 1164 of file MachineFunction.h.
References getMachineMemOperand(), llvm::Offset, llvm::LLT::scalable_vector(), llvm::LLT::scalar(), and Size.
|
inline |
Definition at line 1177 of file MachineFunction.h.
References getMachineMemOperand(), llvm::Offset, llvm::LocationSize::precise(), and Size.
|
inline |
Definition at line 1173 of file MachineFunction.h.
References getMachineMemOperand(), llvm::Offset, llvm::LocationSize::precise(), and Size.
| MachineMemOperand * MachineFunction::getMachineMemOperand | ( | const MachineMemOperand * | MMO, |
| MachineMemOperand::Flags | Flags ) |
Allocate a new MachineMemOperand by copying an existing one, replacing the flags.
MachineMemOperands are owned by the MachineFunction and need not be explicitly deallocated.
Definition at line 609 of file MachineFunction.cpp.
References llvm::MachineMemOperand::getAAInfo(), llvm::MachineMemOperand::getBaseAlign(), llvm::MachineMemOperand::getFailureOrdering(), llvm::MachineMemOperand::getPointerInfo(), llvm::MachineMemOperand::getRanges(), llvm::MachineMemOperand::getSize(), llvm::MachineMemOperand::getSuccessOrdering(), and llvm::MachineMemOperand::getSyncScopeID().
| MachineMemOperand * MachineFunction::getMachineMemOperand | ( | MachinePointerInfo | PtrInfo, |
| MachineMemOperand::Flags | f, | ||
| LLT | MemTy, | ||
| Align | 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 544 of file MachineFunction.cpp.
Referenced by addFrameReference(), llvm::addFrameReference(), llvm::addFrameReference(), llvm::M68k::addFrameReference(), llvm::M68k::addMemOperand(), llvm::AMDGPURegisterBankInfo::applyMappingSBufferLoad(), M68kOutgoingArgHandler::assignValueToAddress(), llvm::buildAPFixedPointInst(), buildEpilogRestore(), llvm::X86TargetLowering::BuildFILD(), llvm::MachineIRBuilder::buildLoad(), llvm::MachineIRBuilder::buildLoadFromOffset(), buildPrologSpill(), llvm::SIRegisterInfo::buildSpillLoadStore(), llvm::MachineIRBuilder::buildStore(), llvm::SIRegisterInfo::buildVGPRSpillLoadStore(), llvm::CallLowering::ValueHandler::copyArgumentMemory(), emitBuildPairF64Pseudo(), emitLoadFromConstantPool(), llvm::AArch64SelectionDAGInfo::EmitMOPS(), llvm::TargetLoweringBase::emitPatchPoint(), llvm::X86FrameLowering::emitPrologue(), emitSplitF64Pseudo(), llvm::RISCVSelectionDAGInfo::EmitTargetCodeForMemset(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForSetTag(), EmitUnrolledSetTag(), llvm::HexagonInstrInfo::expandPostRAPseudo(), extractLoadMMOs(), extractStoreMMOs(), foldInlineAsmMemOperand(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::generateAFPInst(), getBROADCAST_LOAD(), getFrameIndexMMO(), llvm::CSKYInstrInfo::getGlobalBaseReg(), getLoadStackGuard(), getMachineMemOperand(), llvm::MipsInstrInfo::GetMemOperand(), llvm::AMDGPULegalizerInfo::getSegmentAperture(), getStackAlignedMMO(), llvm::SystemZELFFrameLowering::inlineStackProbe(), llvm::CallLowering::insertSRetLoads(), llvm::CallLowering::insertSRetStores(), llvm::MipsLegalizerInfo::legalizeCustom(), llvm::AMDGPULegalizerInfo::legalizeGlobalValue(), llvm::AArch64LegalizerInfo::legalizeIntrinsic(), llvm::RISCVLegalizerInfo::legalizeIntrinsic(), llvm::AMDGPULegalizerInfo::legalizeLoad(), llvm::AMDGPULegalizerInfo::legalizeSBufferLoad(), llvm::AMDGPULegalizerInfo::legalizeTrapHsaQueuePtr(), llvm::AArch64InstrInfo::loadRegFromStackSlot(), llvm::ARCInstrInfo::loadRegFromStackSlot(), llvm::ARMBaseInstrInfo::loadRegFromStackSlot(), llvm::AVRInstrInfo::loadRegFromStackSlot(), llvm::CSKYInstrInfo::loadRegFromStackSlot(), llvm::HexagonInstrInfo::loadRegFromStackSlot(), llvm::LoongArchInstrInfo::loadRegFromStackSlot(), llvm::MSP430InstrInfo::loadRegFromStackSlot(), llvm::RISCVInstrInfo::loadRegFromStackSlot(), llvm::SIInstrInfo::loadRegFromStackSlot(), llvm::SparcInstrInfo::loadRegFromStackSlot(), llvm::Thumb1InstrInfo::loadRegFromStackSlot(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), llvm::VEInstrInfo::loadRegFromStackSlot(), llvm::XCoreInstrInfo::loadRegFromStackSlot(), llvm::PPCInstrInfo::loadRegFromStackSlotNoUpd(), llvm::MipsCallLowering::lowerFormalArguments(), llvm::LegalizerHelper::lowerLoad(), llvm::RISCVRegisterInfo::lowerSegmentSpillReload(), lowerShuffleAsBroadcast(), llvm::LegalizerHelper::lowerStore(), llvm::HexagonTargetLowering::LowerUnalignedLoad(), llvm::LegalizerHelper::lowerVAArg(), lowerVECTOR_SHUFFLE(), llvm::CombinerHelper::matchCombineExtractedVectorLoad(), llvm::CombinerHelper::matchLoadOrCombine(), narrowExtractedVectorLoad(), performCONCAT_VECTORSCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), llvm::RISCVTargetLowering::PerformDAGCombine(), performVP_REVERSECombine(), performVP_STORECombine(), llvm::AArch64InstrInfo::probedStackAlloc(), llvm::LegalizerHelper::reduceLoadStoreWidth(), llvm::SIInstrInfo::reMaterialize(), llvm::SITargetLowering::ReplaceNodeResults(), llvm::AArch64FrameLowering::restoreCalleeSavedRegisters(), llvm::SIFrameLowering::restoreCalleeSavedRegisters(), llvm::LegalizerHelper::scalarizeVectorBooleanStore(), llvm::AArch64FrameLowering::spillCalleeSavedRegisters(), llvm::SIFrameLowering::spillCalleeSavedRegisters(), llvm::AArch64InstrInfo::storeRegToStackSlot(), llvm::ARCInstrInfo::storeRegToStackSlot(), llvm::ARMBaseInstrInfo::storeRegToStackSlot(), llvm::AVRInstrInfo::storeRegToStackSlot(), llvm::CSKYInstrInfo::storeRegToStackSlot(), llvm::HexagonInstrInfo::storeRegToStackSlot(), llvm::LoongArchInstrInfo::storeRegToStackSlot(), llvm::MSP430InstrInfo::storeRegToStackSlot(), llvm::RISCVInstrInfo::storeRegToStackSlot(), llvm::SIInstrInfo::storeRegToStackSlot(), llvm::SparcInstrInfo::storeRegToStackSlot(), llvm::Thumb1InstrInfo::storeRegToStackSlot(), llvm::Thumb2InstrInfo::storeRegToStackSlot(), llvm::VEInstrInfo::storeRegToStackSlot(), llvm::XCoreInstrInfo::storeRegToStackSlot(), llvm::PPCInstrInfo::storeRegToStackSlotNoUpd(), tryMemPairCombine(), and llvm::LegalizerHelper::widenScalar().
| MachineMemOperand * MachineFunction::getMachineMemOperand | ( | MachinePointerInfo | PtrInfo, |
| MachineMemOperand::Flags | F, | ||
| LocationSize | Size, | ||
| Align | BaseAlignment, | ||
| const AAMDNodes & | AAInfo = AAMDNodes(), | ||
| const MDNode * | Ranges = nullptr, | ||
| SyncScope::ID | SSID = SyncScope::System, | ||
| AtomicOrdering | Ordering = AtomicOrdering::NotAtomic, | ||
| AtomicOrdering | FailureOrdering = AtomicOrdering::NotAtomic ) |
Definition at line 530 of file MachineFunction.cpp.
|
inline |
Definition at line 1147 of file MachineFunction.h.
References getMachineMemOperand(), llvm::NotAtomic, llvm::LocationSize::precise(), Size, and llvm::SyncScope::System.
|
inline |
Definition at line 1137 of file MachineFunction.h.
References getMachineMemOperand(), llvm::NotAtomic, llvm::LocationSize::precise(), Size, and llvm::SyncScope::System.
| StringRef MachineFunction::getName | ( | ) | const |
getName - Return the name of the corresponding LLVM function.
Definition at line 653 of file MachineFunction.cpp.
References getFunction(), and llvm::Value::getName().
Referenced by llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), llvm::DebugHandlerBase::beginFunction(), createBBClusterInfoForFunction(), llvm::ARCFrameLowering::determineCalleeSaves(), llvm::dumpMaxRegPressure(), llvm::ARCFrameLowering::eliminateCallFramePseudoInstr(), llvm::ARCRegisterInfo::eliminateFrameIndex(), llvm::MipsRegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::ARCFrameLowering::emitEpilogue(), llvm::ARMFrameLowering::emitEpilogue(), emitErrorMsg(), llvm::ARCFrameLowering::emitPrologue(), llvm::ARMFrameLowering::emitPrologue(), llvm::VEFrameLowering::emitPrologue(), llvm::VETargetLowering::emitSjLjDispatchBlock(), ensureAssignTypeForTypeFolding(), EstimateFunctionSizeInBytes(), llvm::MachineBasicBlock::getFullName(), llvm::DOTGraphTraits< DOTMachineFuncInfo * >::getGraphName(), llvm::MachineBasicBlock::getSymbol(), INITIALIZE_PASS(), llvm::MIRParserImpl::initializeCallSiteInfo(), llvm::ARMBaseInstrInfo::insertOutlinedCall(), llvm::RISCVInstrInfo::insertOutlinedCall(), llvm::X86InstrInfo::insertOutlinedCall(), llvm::MLPriorityAdvisor::MLPriorityAdvisor(), llvm::MIRParserImpl::parseCalledGlobals(), print(), printMF(), llvm::ARCFrameLowering::processFunctionBeforeFrameFinalized(), llvm::VerifyInstrumentation::registerCallbacks(), removeEmptyBlocks(), reportFastISelFailure(), reportGISelDiagnostic(), llvm::PPCRegisterInfo::requiresFrameIndexScavenging(), llvm::LiveIntervalsPrinterPass::run(), llvm::LiveVariablesPrinterPass::run(), llvm::MachineBlockFrequencyPrinterPass::run(), llvm::MachineBranchProbabilityPrinterPass::run(), llvm::MachineDominatorTreePrinterPass::run(), llvm::MachineLoopPrinterPass::run(), llvm::MachinePostDominatorTreePrinterPass::run(), llvm::RAGreedy::run(), llvm::ReachingDefPrinterPass::run(), llvm::SlotIndexesPrinterPass::run(), llvm::ThunkInserter< Derived, InsertedThunksTy >::run(), llvm::DroppedVariableStatsMIR::runAfterPass(), llvm::ARMBlockPlacement::runOnMachineFunction(), llvm::GCNRegPressurePrinter::runOnMachineFunction(), llvm::Legalizer::runOnMachineFunction(), llvm::LiveDebugVariables::LDVImpl::runOnMachineFunction(), llvm::Localizer::runOnMachineFunction(), llvm::RABasic::runOnMachineFunction(), llvm::RegBankSelect::runOnMachineFunction(), runX86LoadValueInjectionRetHardening(), runX86SpeculativeExecutionSideEffectSuppression(), llvm::InstructionSelect::selectMachineFunction(), llvm::MIRParserImpl::setupRegisterInfo(), shouldGenerateData(), llvm::DbgValueHistoryMap::trimLocationRanges(), updateForAIXShLibTLSModelOpt(), viewCFG(), viewCFGOnly(), writeGadgetGraph(), writeIRFileDisplayName(), and writeMCFGToDotFile().
|
inline |
Definition at line 1514 of file MachineFunction.h.
References DebugInstrNumberingCount.
Referenced by llvm::MachineInstr::getDebugInstrNum(), llvm::MachineInstr::getDebugInstrNum(), and salvageCopySSAImpl().
|
inline |
getNumBlockIDs - Return the number of MBB ID's allocated.
Definition at line 938 of file MachineFunction.h.
Referenced by computeBlockInfo(), llvm::HexagonFrameLowering::emitPrologue(), maybeUpdateTerminator(), llvm::CFIFixup::runOnMachineFunction(), llvm::ExecutionDomainFix::runOnMachineFunction(), llvm::sortBasicBlocksAndUpdateBranches(), sortBlocks(), and llvm::LoopTraversal::traverse().
|
inline |
Definition at line 736 of file MachineFunction.h.
Referenced by llvm::constrainOperandRegClass().
| 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 310 of file MachineFunction.cpp.
Referenced by llvm::SwitchCG::SwitchLowering::buildJumpTable(), llvm::VETargetLowering::emitSjLjDispatchBlock(), and llvm::MIRParserImpl::initializeJumpTableInfo().
| LandingPadInfo & MachineFunction::getOrCreateLandingPadInfo | ( | MachineBasicBlock * | LandingPad | ) |
Find or create an LandingPadInfo for the specified MachineBasicBlock.
Definition at line 841 of file MachineFunction.cpp.
References llvm::LandingPadInfo::LandingPadBlock, and N.
Referenced by addInvoke(), and addLandingPad().
| MCSymbol * MachineFunction::getPICBaseSymbol | ( | ) | const |
getPICBaseSymbol - Return a function-local symbol to represent the PIC base.
Return a function-local symbol to represent the PIC base.
Definition at line 831 of file MachineFunction.cpp.
References DL, getDataLayout(), and getFunctionNumber().
Referenced by llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), llvm::X86TargetLowering::getPICJumpTableRelocBaseExpr(), GetSymbolRef(), and initGlobalBaseReg().
| Align MachineFunction::getPreferredAlignment | ( | ) | const |
Returns the preferred alignment which comes from the function attributes (optsize, minsize, prefalign) and TargetLowering.
Definition at line 328 of file MachineFunction.cpp.
References A(), and getAlignment().
|
inline |
Definition at line 778 of file MachineFunction.h.
Referenced by convertPrefetchTargets().
|
inline |
Definition at line 887 of file MachineFunction.h.
|
inline |
Get the function properties.
Definition at line 886 of file MachineFunction.h.
Referenced by createFrameHelperMachineFunction(), createPHIsForSelects(), llvm::ThunkInserter< Derived, InsertedThunksTy >::createThunkFunction(), llvm::TargetInstrInfo::describeLoadedValue(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::Thumb1FrameLowering::emitPrologue(), llvm::RegAllocBase::getErrorAssignment(), llvm::AArch64RegisterInfo::getReservedRegs(), llvm::AArch64RegisterInfo::getStrictlyReservedRegs(), llvm::MIRParserImpl::initializeMachineFunction(), print(), printMF(), llvm::reportGISelFailure(), llvm::MachineVerifierPass::run(), llvm::SelectionDAGISelPass::run(), runFixI1Copies(), llvm::InstructionSelect::runOnMachineFunction(), llvm::Legalizer::runOnMachineFunction(), llvm::Localizer::runOnMachineFunction(), llvm::RegBankSelect::runOnMachineFunction(), llvm::SelectionDAGISelLegacy::runOnMachineFunction(), llvm::scavengeFrameVirtualRegs(), and llvm::InstructionSelect::selectMachineFunction().
|
inline |
Definition at line 746 of file MachineFunction.h.
Referenced by llvm::MipsFunctionInfo::callPtrInfo(), llvm::MipsFunctionInfo::callPtrInfo(), llvm::MachinePointerInfo::getConstantPool(), llvm::MachinePointerInfo::getFixedStack(), llvm::MachinePointerInfo::getGOT(), llvm::MachinePointerInfo::getJumpTable(), llvm::AMDGPULegalizerInfo::getKernargSegmentPtrInfo(), llvm::SITargetLowering::getKernargSegmentPtrInfo(), and llvm::MachinePointerInfo::getStack().
|
inline |
getRegInfo - Return information about the registers currently in use.
Definition at line 801 of file MachineFunction.h.
Referenced by addCalleeSavedRegs(), addCalleeSavedRegs(), addConstantsToTrack(), addImplicitDefs(), llvm::RegsForValue::AddInlineAsmOperands(), addLiveIn(), llvm::MachineBasicBlock::addLiveIn(), addLiveIn(), llvm::addLiveIns(), AdjustBaseAndOffset(), llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::SITargetLowering::AdjustInstrPostInstrSelection(), llvm::RISCVRegisterInfo::adjustReg(), allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateSpecialEntryInputVGPRs(), allocateVGPR32Input(), llvm::SIMachineFunctionInfo::allocateVGPRSpillToAGPR(), llvm::ARMBaseInstrInfo::analyzeLoopForPipelining(), llvm::PPCInstrInfo::analyzeLoopForPipelining(), llvm::RISCVInstrInfo::analyzeLoopForPipelining(), llvm::AMDGPUResourceUsageAnalysisImpl::analyzeResourceUsage(), llvm::MipsRegisterBankInfo::applyMappingImpl(), llvm::AMDGPUCallLowering::areCalleeOutgoingArgsTailCallable(), llvm::PPCFrameLowering::assignCalleeSavedSpillSlots(), attachMEMCPYScratchRegs(), attemptDebugCopyProp(), llvm::buildAtomicRMWInst(), buildGitPtr(), buildScratchExecCopy(), llvm::SIRegisterInfo::buildSpillLoadStore(), llvm::SIInstrInfo::canAddToBBProlog(), llvm::ModuloScheduleExpanderMVE::canApply(), canCombineFPFusedMultiply(), canCompareBeNewValueJump(), llvm::AArch64InstrInfo::canFoldIntoAddrMode(), llvm::ARMBaseRegisterInfo::canRealignStack(), llvm::LoongArchRegisterInfo::canRealignStack(), llvm::M68kRegisterInfo::canRealignStack(), llvm::MipsRegisterInfo::canRealignStack(), llvm::X86RegisterInfo::canRealignStack(), llvm::AArch64FrameLowering::canUseAsPrologue(), llvm::checkVOPDRegConstraints(), llvm::X86InstrInfo::classifyLEAReg(), combineFPFusedMultiply(), llvm::computeLiveIns(), computeLiveOuts(), llvm::constrainSelectedInstRegOperands(), llvm::PPCInstrInfo::convertToImmediateForm(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::AllocationOrder::create(), createFrameHelperMachineFunction(), llvm::AMDGPUTargetLowering::CreateLiveInRegister(), createPostIncLoadStore(), createTypeVReg(), llvm::HexagonInstrInfo::createVR(), deduceAndAssignSpirvType(), deduceAndAssignTypeForGUnmerge(), deduceTypeFromUses(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::CSKYFrameLowering::determineCalleeSaves(), llvm::HexagonFrameLowering::determineCalleeSaves(), llvm::RISCVFrameLowering::determineCalleeSaves(), llvm::SIFrameLowering::determineCalleeSaves(), llvm::TargetFrameLowering::determineCalleeSaves(), llvm::XCoreFrameLowering::determineCalleeSaves(), llvm::SIFrameLowering::determineCalleeSavesSGPR(), llvm::SIFrameLowering::determinePrologEpilogSGPRSaves(), llvm::dumpMaxRegPressure(), llvm::AArch64FrameLowering::eliminateCallFramePseudoInstr(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::CSKYRegisterInfo::eliminateFrameIndex(), llvm::HexagonRegisterInfo::eliminateFrameIndex(), llvm::LoongArchRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::RISCVRegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::SystemZRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::WebAssemblyRegisterInfo::eliminateFrameIndex(), llvm::AArch64TargetLowering::EmitAllocateZABuffer(), emitBuildPairF64Pseudo(), llvm::AArch64TargetLowering::EmitCheckMatchingVL(), llvm::SIFrameLowering::emitCSRSpillStores(), llvm::RISCVTargetLowering::emitDynamicProbedAlloc(), llvm::PPCTargetLowering::emitEHSjLjLongJmp(), llvm::SystemZTargetLowering::emitEHSjLjLongJmp(), llvm::VETargetLowering::emitEHSjLjLongJmp(), llvm::PPCTargetLowering::emitEHSjLjSetJmp(), llvm::SystemZTargetLowering::emitEHSjLjSetJmp(), llvm::VETargetLowering::emitEHSjLjSetJmp(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), llvm::AArch64TargetLowering::EmitEntryPStateSM(), llvm::SIFrameLowering::emitEpilogue(), llvm::WebAssemblyFrameLowering::emitEpilogue(), llvm::SITargetLowering::emitGWSMemViolTestLoop(), emitIndirectDst(), emitIndirectSrc(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::R600TargetLowering::EmitInstrWithCustomInserter(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::AArch64InstrInfo::emitLdStWithAddr(), llvm::PPCTargetLowering::emitProbedAlloca(), llvm::AVRFrameLowering::emitPrologue(), llvm::CSKYFrameLowering::emitPrologue(), llvm::MipsSEFrameLowering::emitPrologue(), llvm::NVPTXFrameLowering::emitPrologue(), llvm::RISCVFrameLowering::emitPrologue(), llvm::SIFrameLowering::emitPrologue(), llvm::WebAssemblyFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), emitPseudoCTPOP(), emitPseudoVMSKCOND(), emitPseudoXVINSGR2VR(), emitQuietFCMP(), emitReadCounterWidePseudo(), llvm::VETargetLowering::emitSjLjDispatchBlock(), emitThumbRegPlusImmInReg(), emitVecCondBranchPseudo(), emitVFROUND_NOEXCEPT_MASK(), emitXBegin(), llvm::SIInstrInfo::enforceOperandRCAlignment(), ensureAssignTypeForTypeFolding(), Expand64BitScalarArithmetic(), llvm::SIInstrInfo::expandMovDPP64(), llvm::HexagonInstrInfo::expandPostRAPseudo(), extractRsrcPtr(), llvm::PPCInstrInfo::finalizeInsInstrs(), llvm::SITargetLowering::finalizeLowering(), llvm::SPIRVTargetLowering::finalizeLowering(), llvm::TargetLoweringBase::finalizeLowering(), llvm::X86RegisterInfo::findDeadCallerSavedReg(), findLoopIncrementValue(), llvm::SPIRVIRMapping::findMI(), findRenameRegForSameLdStRegPair(), fixupSetCC(), llvm::PPCInstrInfo::foldFrameOffset(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), llvm::RISCVInstrInfo::foldMemoryOperandImpl(), llvm::SIInstrInfo::foldMemoryOperandImpl(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), foldPatchpoint(), forceReg(), forwardDeviceParams(), llvm::RISCVInstrInfo::genAlternativeCodeSequence(), llvm::TargetInstrInfo::genAlternativeCodeSequence(), genAlternativeDpCodeSequence(), generateAssignInstrs(), llvm::generateAsyncCopy(), generateGatherLanePattern(), llvm::generateGroupInst(), llvm::generateImageSizeQueryInst(), genIndexedMultiply(), genShXAddAddShift(), llvm::TargetRegisterInfo::getAllocatableSet(), getArgBaseReg(), llvm::PPCRegisterInfo::getCalleeSavedRegs(), llvm::PPCInstrInfo::getConstantFromConstantPool(), GetCostForDef(), llvm::AMDGPURegisterBankInfo::getDefaultMappingAllVGPR(), llvm::AMDGPURegisterBankInfo::getDefaultMappingSOP(), llvm::AMDGPURegisterBankInfo::getDefaultMappingVOP(), getEffectiveImm(), getFoldableImm(), llvm::getFunctionLiveInPhysReg(), getGatherLanePattern(), llvm::CSKYInstrInfo::getGlobalBaseReg(), llvm::M68kInstrInfo::getGlobalBaseReg(), llvm::MipsFunctionInfo::getGlobalBaseReg(), llvm::SparcInstrInfo::getGlobalBaseReg(), llvm::X86InstrInfo::getGlobalBaseReg(), llvm::R600InstrInfo::getIndirectIndexBegin(), getIndVarInfo(), GetInitialOffset(), llvm::AArch64RegisterBankInfo::getInstrAlternativeMappings(), llvm::AMDGPURegisterBankInfo::getInstrAlternativeMappings(), llvm::X86RegisterBankInfo::getInstrAlternativeMappings(), llvm::AArch64RegisterBankInfo::getInstrMapping(), llvm::AMDGPURegisterBankInfo::getInstrMapping(), llvm::ARMRegisterBankInfo::getInstrMapping(), llvm::MipsRegisterBankInfo::getInstrMapping(), llvm::PPCRegisterBankInfo::getInstrMapping(), llvm::RISCVRegisterBankInfo::getInstrMapping(), llvm::X86RegisterBankInfo::getInstrMapping(), llvm::AMDGPURegisterBankInfo::getInstrMappingForLoad(), llvm::RegisterBankInfo::getInstrMappingImpl(), llvm::BPFInstrInfo::getJumpTableIndex(), llvm::X86InstrInfo::getJumpTableIndex(), getLiveRegsForEntryMBB(), llvm::SPIRVGlobalRegistry::getOrCreateOpTypeSampledImage(), llvm::MachineFrameInfo::getPristineRegs(), getPrologueDeath(), llvm::AArch64RegisterInfo::getRegAllocationHints(), llvm::ARMBaseRegisterInfo::getRegAllocationHints(), llvm::PPCRegisterInfo::getRegAllocationHints(), llvm::RISCVRegisterInfo::getRegAllocationHints(), llvm::SIRegisterInfo::getRegAllocationHints(), llvm::SystemZRegisterInfo::getRegAllocationHints(), llvm::TargetRegisterInfo::getRegAllocationHints(), llvm::X86RegisterInfo::getRegAllocationHints(), getRegClass(), getRegistersForValue(), getRegistersForValue(), getRegTy(), llvm::SPIRVGlobalRegistry::getResultType(), getVGPRSpillLaneOrTempRegister(), llvm::CallLowering::handleAssignments(), handleInstructionWithEGPR(), handleNDDOrNFInstructions(), llvm::RISCVInstrInfo::hasReassociableSibling(), llvm::SIInstrInfo::hasVGPRUses(), llvm::RegBankSelect::init(), initGlobalBaseReg(), llvm::MipsFunctionInfo::initGlobalBaseReg(), llvm::MIRParserImpl::initializeMachineFunction(), llvm::VEInstrInfo::insertBranch(), llvm::LoongArchInstrInfo::insertIndirectBranch(), llvm::RISCVInstrInfo::insertIndirectBranch(), llvm::SIInstrInfo::insertIndirectBranch(), llvm::XtensaInstrInfo::insertIndirectBranch(), insertInlineAsmProcess(), llvm::insertMultibyteShift(), llvm::CallLowering::insertSRetLoads(), llvm::CallLowering::insertSRetStores(), isACalleeSavedRegister(), llvm::SIRegisterInfo::isAsmClobberable(), llvm::SIInstrInfo::isBasicBlockPrologue(), isCallerPreservedOrConstPhysReg(), llvm::SITargetLowering::isCanonicalized(), llvm::isCycleInvariant(), isDefinedOutside(), llvm::SITargetLowering::isEligibleForTailCallOptimization(), llvm::MachineLoop::isLoopInvariant(), isNonFoldablePartialRegisterLoad(), llvm::SIInstrInfo::isOperandLegal(), llvm::TargetInstrInfo::isReMaterializableImpl(), llvm::X86InstrInfo::isReMaterializableImpl(), llvm::AMDGPURegisterBankInfo::isSALUMapping(), llvm::SITargetLowering::isSDNodeSourceOfDivergence(), isSignExtendedW(), isSignExtendedW(), llvm::PPCInstrInfo::isSignOrZeroExtended(), isSSA(), llvm::SIInstrInfo::isVGPRCopy(), isXPLeafCandidate(), knownBitsForSBFE(), llvm::AArch64LegalizerInfo::legalizeIntrinsic(), llvm::Legalizer::legalizeMachineFunction(), llvm::SIInstrInfo::legalizeOperands(), llvm::SITargetLowering::legalizeTargetIndependentNode(), loadM0FromVGPR(), llvm::AArch64InstrInfo::loadRegFromStackSlot(), llvm::SIInstrInfo::loadRegFromStackSlot(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), loadScalarOperandsFromVGPR(), llvm::AArch64CallLowering::lowerCall(), llvm::AMDGPUCallLowering::lowerCall(), llvm::ARMCallLowering::lowerCall(), llvm::CallLowering::lowerCall(), llvm::M68kCallLowering::lowerCall(), llvm::MipsCallLowering::lowerCall(), llvm::RISCVCallLowering::lowerCall(), llvm::X86CallLowering::lowerCall(), llvm::HexagonTargetLowering::LowerCallResult(), LowerCallResults(), llvm::PPCRegisterInfo::lowerCRBitRestore(), llvm::PPCRegisterInfo::lowerCRBitSpilling(), llvm::PPCRegisterInfo::lowerCRRestore(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::PPCRegisterInfo::lowerDMRRestore(), llvm::PPCRegisterInfo::lowerDMRSpilling(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::LoongArchTargetLowering::LowerFormalArguments(), llvm::RISCVTargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::XtensaTargetLowering::LowerFormalArguments(), llvm::AArch64CallLowering::lowerFormalArguments(), llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::ARMCallLowering::lowerFormalArguments(), llvm::M68kCallLowering::lowerFormalArguments(), llvm::MipsCallLowering::lowerFormalArguments(), llvm::PPCCallLowering::lowerFormalArguments(), llvm::RISCVCallLowering::lowerFormalArguments(), llvm::X86CallLowering::lowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::AMDGPUCallLowering::lowerFormalArgumentsKernel(), LowerFPToInt(), LowerMemcpy(), LowerMemset(), llvm::AArch64CallLowering::lowerReturn(), llvm::M68kCallLowering::lowerReturn(), llvm::MipsCallLowering::lowerReturn(), llvm::PPCCallLowering::lowerReturn(), llvm::RISCVCallLowering::lowerReturn(), llvm::X86CallLowering::lowerReturn(), llvm::RISCVRegisterInfo::lowerSegmentSpillReload(), llvm::AMDGPUCallLowering::lowerTailCall(), llvm::PPCRegisterInfo::lowerWACCRestore(), llvm::PPCRegisterInfo::lowerWACCSpilling(), lowerWaveReduce(), llvm::machineFunctionIsIllegal(), llvm::RISCVRegisterInfo::materializeFrameBaseRegister(), llvm::SIRegisterInfo::materializeFrameBaseRegister(), llvm::SIInstrInfo::moveFlatAddrToVGPR(), llvm::RISCVInstrInfo::mulImm(), MustSaveLR(), needsDenormHandlingF32(), llvm::RISCVRegisterInfo::needsFrameBaseReg(), needToReserveScavengingSpillSlots(), llvm::PPCInstrInfo::optimizeCmpPostRA(), llvm::AArch64InstrInfo::optimizeCondBranch(), llvm::BranchFolder::OptimizeFunction(), llvm::MIRParserImpl::parseRegisterInfo(), llvm::AMDGPUCallLowering::passSpecialInputs(), llvm::SITargetLowering::PostISelFolding(), llvm::PPCRegisterInfo::prepareDynamicAlloca(), llvm::VETargetLowering::prepareMBB(), llvm::VETargetLowering::prepareSymbol(), llvm::MachineBasicBlock::print(), printMF(), llvm::AArch64InstrInfo::probedStackAlloc(), processBlockAddr(), llvm::SIFrameLowering::processFunctionBeforeFrameFinalized(), llvm::SystemZELFFrameLowering::processFunctionBeforeFrameFinalized(), llvm::SIFrameLowering::processFunctionBeforeFrameIndicesReplaced(), processInstrsWithTypeFolding(), processSwitchesConstants(), pushRegsToStack(), llvm::TargetInstrInfo::reassociateOps(), llvm::recomputeLivenessFlags(), llvm::GCNTargetMachine::registerMachineRegisterInfoCallback(), registerSpirvTypeForNewInstructions(), llvm::SIInstrInfo::reMaterialize(), reservePrivateMemoryRegs(), llvm::GCNRPTracker::reset(), llvm::LiveRangeCalc::reset(), llvm::PPCRegisterInfo::resolveFrameIndex(), llvm::SIRegisterInfo::resolveFrameIndex(), llvm::restoreStatusRegister(), llvm::ThumbRegisterInfo::rewriteFrameIndex(), llvm::rewriteT2FrameIndex(), llvm::AMDGPUPrepareAGPRAllocPass::run(), llvm::GISelValueTrackingPrinterPass::run(), RemoveLoadsIntoFakeUses::run(), llvm::ExecutionDomainFix::runOnMachineFunction(), llvm::GCNRegPressurePrinter::runOnMachineFunction(), salvageCopySSAImpl(), llvm::scavengeFrameVirtualRegs(), llvm::InstructionSelect::selectMachineFunction(), llvm::GISelCSEInfo::setMF(), llvm::MachineIRBuilder::setMF(), SetRegister(), llvm::X86MachineFunctionInfo::setRestoreBasePointer(), llvm::MIRParserImpl::setupRegisterInfo(), llvm::SIMachineFunctionInfo::shiftWwmVGPRsToLowestRange(), llvm::AArch64RegisterInfo::shouldCoalesce(), shouldPreventUndefRegUpdateMemFold(), llvm::PPCInstrInfo::shouldReduceRegisterPressure(), llvm::TargetRegisterInfo::shouldRegionSplitForVirtReg(), llvm::AArch64FrameLowering::spillCalleeSavedRegisters(), llvm::M68kFrameLowering::spillCalleeSavedRegisters(), llvm::PPCFrameLowering::spillCalleeSavedRegisters(), llvm::Thumb1FrameLowering::spillCalleeSavedRegisters(), llvm::X86FrameLowering::spillCalleeSavedRegisters(), spillVGPRtoAGPR(), llvm::MachineBasicBlock::SplitCriticalEdge(), splitMBB(), llvm::SIMachineFunctionInfo::splitWWMSpillRegisters(), llvm::stableHashValue(), llvm::AArch64InstrInfo::storeRegToStackSlot(), llvm::SIInstrInfo::storeRegToStackSlot(), llvm::Thumb2InstrInfo::storeRegToStackSlot(), llvm::tryFoldSPUpdateIntoPushPop(), tryToFindRegisterToRename(), unpack64(), unpackF64OnLA32DSoftABI(), unpackF64OnRV32DSoftABI(), unpackFromRegLoc(), unpackFromRegLoc(), unpackFromRegLoc(), unstackifyVRegsUsedInSplitBB(), llvm::AArch64RegisterInfo::UpdateCustomCalleeSavedRegs(), updateLiveness(), UpdateOperandRegClass(), updateOperandRegConstraints(), llvm::ARMBaseRegisterInfo::updateRegAllocHint(), llvm::RISCVRegisterInfo::updateRegAllocHint(), validateFunCall(), llvm::RegisterBankInfo::InstructionMapping::verify(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
Definition at line 802 of file MachineFunction.h.
|
inline |
Returns the Section this function belongs to.
Definition at line 741 of file MachineFunction.h.
|
inlinestatic |
Support for MachineBasicBlock::getNextNode().
Definition at line 1006 of file MachineFunction.h.
|
inline |
getSubtarget - Return the subtarget for which this machine code is being compiled.
Definition at line 791 of file MachineFunction.h.
Referenced by addImplicitDefs(), llvm::MachineBasicBlock::addLiveIn(), addLiveInRegs(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::RISCVRegisterInfo::adjustReg(), allocateRegMask(), llvm::SIFrameLowering::allocateScavengingFrameIndexesNearIncomingSP(), llvm::TargetFrameLowering::allocateScavengingFrameIndexesNearIncomingSP(), llvm::SIMachineFunctionInfo::allocateSGPRSpillToVGPRLane(), llvm::SIMachineFunctionInfo::allocateVGPRSpillToAGPR(), allowPGOOutlining(), llvm::AMDGPUResourceUsageAnalysisImpl::analyzeResourceUsage(), llvm::A57ChainingConstraint::apply(), llvm::HexagonSubtarget::CallMutation::apply(), llvm::AMDGPURegisterBankInfo::applyMappingDynStackAlloc(), llvm::MipsRegisterBankInfo::applyMappingImpl(), llvm::AMDGPUCallLowering::areCalleeOutgoingArgsTailCallable(), argumentStackSlotRebase(), llvm::RISCVFrameLowering::assignCalleeSavedSpillSlots(), llvm::SIFrameLowering::assignCalleeSavedSpillSlots(), llvm::SystemZXPLINKFrameLowering::assignCalleeSavedSpillSlots(), llvm::SIFrameLowering::assignCalleeSavedSpillSlotsImpl(), attemptDebugCopyProp(), llvm::avoidZeroOffsetLandingPad(), llvm::CodeViewDebug::beginFunctionImpl(), llvm::DwarfDebug::beginInstruction(), buildAnyextOrCopy(), llvm::MachineIRBuilder::buildBoolExtInReg(), llvm::X86InstrInfo::buildClearRegister(), buildDefaultVLOps(), llvm::SPIRVGlobalRegistry::buildGlobalVariable(), llvm::buildNDRange(), buildScratchExecCopy(), llvm::calculateDbgEntityHistory(), llvm::calculateRegAllocScore(), llvm::LiveRangeEdit::calculateRegClassAndHint(), llvm::HexagonTargetLowering::CanLowerReturn(), llvm::LoongArchTargetLowering::CanLowerReturn(), llvm::WebAssemblyCallLowering::canLowerReturn(), cannotCoexistAsymm(), llvm::ARMBaseRegisterInfo::canRealignStack(), llvm::MipsRegisterInfo::canRealignStack(), canSpillOnFrameIndexAccess(), llvm::MachineBasicBlock::canSplitCriticalEdge(), llvm::AArch64FrameLowering::canUseAsPrologue(), llvm::X86FrameLowering::canUseAsPrologue(), llvm::AArch64FrameLowering::canUseRedZone(), llvm::CC_RISCV(), llvm::CC_RISCV_FastCC(), CC_X86_Intr(), checkNumAlignedDPRCS2Regs(), llvm::checkVOPDRegConstraints(), combineFPFusedMultiply(), computeFPBPAlignmentGap(), llvm::SITargetLowering::computeKnownBitsForTargetNode(), computeLiveOuts(), llvm::MachineFrameInfo::computeMaxCallFrameSize(), llvm::TargetSchedModel::computeOutputLatency(), convertCallSiteObjects(), convertEntryValueObjects(), llvm::GCNTargetMachine::convertFuncInfoToYAML(), convertStackObjects(), llvm::Thumb1InstrInfo::copyPhysReg(), llvm::createBURRListDAGScheduler(), createDedicatedExit(), llvm::createDefaultScheduler(), llvm::MipsFunctionInfo::createEhDataRegsFI(), llvm::XCoreFunctionInfo::createEHSpillSlot(), llvm::ARM::createFastISel(), llvm::PPC::createFastISel(), llvm::XCoreFunctionInfo::createFPSpillSlot(), llvm::createHybridListDAGScheduler(), llvm::createILPListDAGScheduler(), llvm::MipsFunctionInfo::createISRRegFI(), llvm::XCoreFunctionInfo::createLRSpillSlot(), createPHIsForCMOVsInSinkBB(), createPHIsForSelects(), createSiFivePreemptibleInterruptFrameEntries(), llvm::createSourceListDAGScheduler(), llvm::PPCInstrInfo::CreateTargetPostRAHazardRecognizer(), createTuple(), deduceAndAssignTypeForGUnmerge(), llvm::MipsInstrInfo::describeLoadedValue(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::CSKYFrameLowering::determineCalleeSaves(), llvm::HexagonFrameLowering::determineCalleeSaves(), llvm::MipsSEFrameLowering::determineCalleeSaves(), llvm::SIFrameLowering::determineCalleeSaves(), llvm::SystemZELFFrameLowering::determineCalleeSaves(), llvm::SystemZXPLINKFrameLowering::determineCalleeSaves(), llvm::TargetFrameLowering::determineCalleeSaves(), llvm::SIFrameLowering::determineCalleeSavesSGPR(), llvm::SystemZXPLINKFrameLowering::determineFrameLayout(), llvm::SIFrameLowering::determinePrologEpilogSGPRSaves(), llvm::AMDGPUCallLowering::doCallerAndCalleePassArgsTheSameWay(), llvm::AArch64FrameLowering::eliminateCallFramePseudoInstr(), llvm::ARCFrameLowering::eliminateCallFramePseudoInstr(), llvm::AVRFrameLowering::eliminateCallFramePseudoInstr(), llvm::MSP430FrameLowering::eliminateCallFramePseudoInstr(), llvm::RISCVFrameLowering::eliminateCallFramePseudoInstr(), llvm::SIFrameLowering::eliminateCallFramePseudoInstr(), llvm::WebAssemblyFrameLowering::eliminateCallFramePseudoInstr(), llvm::XCoreFrameLowering::eliminateCallFramePseudoInstr(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::ARCRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::AVRRegisterInfo::eliminateFrameIndex(), llvm::BPFRegisterInfo::eliminateFrameIndex(), llvm::CSKYRegisterInfo::eliminateFrameIndex(), llvm::HexagonRegisterInfo::eliminateFrameIndex(), llvm::LanaiRegisterInfo::eliminateFrameIndex(), llvm::LoongArchRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::SystemZRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::VERegisterInfo::eliminateFrameIndex(), llvm::WebAssemblyRegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), emitAlignedDPRCS2Restores(), emitAlignedDPRCS2Spills(), emitAligningInstructions(), llvm::AArch64TargetLowering::EmitAllocateSMESaveBuffer(), llvm::AArch64TargetLowering::EmitAllocateZABuffer(), emitBuildPairF64Pseudo(), emitBuildPairF64Pseudo(), emitComments(), llvm::SIFrameLowering::emitCSRSpillRestores(), llvm::SIFrameLowering::emitCSRSpillStores(), llvm::DwarfDebug::emitDebugLocValue(), emitDebugValueComment(), llvm::AArch64TargetLowering::EmitDynamicProbedAlloc(), llvm::SystemZTargetLowering::emitEHSjLjLongJmp(), llvm::SystemZTargetLowering::emitEHSjLjSetJmp(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), llvm::ARCFrameLowering::emitEpilogue(), llvm::ARMFrameLowering::emitEpilogue(), llvm::AVRFrameLowering::emitEpilogue(), llvm::MSP430FrameLowering::emitEpilogue(), llvm::SIFrameLowering::emitEpilogue(), llvm::SparcFrameLowering::emitEpilogue(), llvm::SystemZELFFrameLowering::emitEpilogue(), llvm::SystemZXPLINKFrameLowering::emitEpilogue(), llvm::WebAssemblyFrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitEpilogue(), llvm::XCoreFrameLowering::emitEpilogue(), emitFakeUse(), emitFrameOffsetAdj(), llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV4::emitHiddenKernelArgs(), llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV5::emitHiddenKernelArgs(), llvm::BPFTargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), emitKill(), llvm::ARMBaseRegisterInfo::emitLoadConstPool(), llvm::ThumbRegisterInfo::emitLoadConstPool(), emitLoadM0FromVGPRLoop(), emitLoadScalarOpsFromVGPRLoop(), llvm::AArch64FrameLowering::emitPacRetPlusLeafHardening(), llvm::ARCFrameLowering::emitPrologue(), llvm::AVRFrameLowering::emitPrologue(), llvm::CSKYFrameLowering::emitPrologue(), llvm::HexagonFrameLowering::emitPrologue(), llvm::M68kFrameLowering::emitPrologue(), llvm::MSP430FrameLowering::emitPrologue(), llvm::NVPTXFrameLowering::emitPrologue(), llvm::RISCVFrameLowering::emitPrologue(), llvm::SIFrameLowering::emitPrologue(), llvm::SparcFrameLowering::emitPrologue(), llvm::SystemZELFFrameLowering::emitPrologue(), llvm::SystemZXPLINKFrameLowering::emitPrologue(), llvm::WebAssemblyFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), llvm::XCoreFrameLowering::emitPrologue(), emitPrologueEpilogueSPUpdate(), emitQuietFCMP(), emitReadCounterWidePseudo(), emitSCSEpilogue(), emitSCSPrologue(), emitSelectPseudo(), emitSiFiveCLICPreemptibleRestores(), emitSiFiveCLICPreemptibleSaves(), emitSiFiveCLICStackSwap(), llvm::ARMSelectionDAGInfo::EmitSpecializedLibcall(), emitSplitF64Pseudo(), emitSplitPairF64Pseudo(), llvm::X86FrameLowering::emitSPUpdate(), llvm::X86FrameLowering::emitStackProbe(), emitStackProbeInline(), llvm::AArch64SelectionDAGInfo::EmitStreamingCompatibleMemLibCall(), EmitTailCallStoreFPAndRetAddr(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::HexagonSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::WebAssemblySelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemmove(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemset(), llvm::WebAssemblySelectionDAGInfo::EmitTargetCodeForMemset(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), emitThumb1LoadConstPool(), emitThumb2LoadConstPool(), emitThumbRegPlusImmInReg(), emitVFROUND_NOEXCEPT_MASK(), enableAllocFrameElim(), llvm::HexagonFrameLowering::enableCalleeSaveSkip(), llvm::PPCFrameLowering::enableShrinkWrapping(), estimateFunctionSizeInBytes(), estimateFunctionSizeInBytes(), estimateRSStackSizeLimit(), llvm::MachineFrameInfo::estimateStackSize(), Expand64BitScalarArithmetic(), llvm::VEInstrInfo::expandExtendStackPseudo(), llvm::VEInstrInfo::expandGetStackTopPseudo(), llvm::SIInstrInfo::expandPostRAPseudo(), expandXorFP(), llvm::AArch64RegisterInfo::explainReservedReg(), llvm::AArch64CallLowering::fallBackToDAGISel(), llvm::finalizeBundle(), finalizeDebugInstrRefs(), llvm::SITargetLowering::finalizeLowering(), findLoopIncrementValue(), findPrologueEndLoc(), fixupBlock(), fixupSetCC(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::TargetInstrInfo::genAlternativeCodeSequence(), llvm::generateExtInst(), generateGatherLanePattern(), llvm::generateGroupUniformInst(), llvm::generateIntelSubgroupsInst(), llvm::generateKernelClockInst(), genIndexedMultiply(), genShXAddAddShift(), llvm::AMDGPUSubtarget::get(), getAddressForMemoryInput(), getArgBaseReg(), llvm::PPCRegisterInfo::getBaseRegister(), llvm::getBLRCallOpcode(), llvm::getBLXOpcode(), llvm::getBLXpredOpcode(), llvm::MachineIRBuilder::getBoolExtOp(), llvm::AArch64RegisterInfo::getCalleeSavedRegs(), llvm::ARMBaseRegisterInfo::getCalleeSavedRegs(), llvm::AVRRegisterInfo::getCalleeSavedRegs(), llvm::CSKYRegisterInfo::getCalleeSavedRegs(), llvm::LoongArchRegisterInfo::getCalleeSavedRegs(), llvm::MipsRegisterInfo::getCalleeSavedRegs(), llvm::PPCRegisterInfo::getCalleeSavedRegs(), llvm::RISCVRegisterInfo::getCalleeSavedRegs(), llvm::SystemZELFRegisters::getCalleeSavedRegs(), llvm::SystemZRegisterInfo::getCalleeSavedRegs(), llvm::SystemZXPLINK64Registers::getCalleeSavedRegs(), llvm::X86RegisterInfo::getCalleeSavedRegs(), llvm::TargetFrameLowering::getCalleeSaves(), llvm::AArch64RegisterInfo::getCallPreservedMask(), llvm::ARMBaseRegisterInfo::getCallPreservedMask(), llvm::AVRRegisterInfo::getCallPreservedMask(), llvm::CSKYRegisterInfo::getCallPreservedMask(), llvm::LoongArchRegisterInfo::getCallPreservedMask(), llvm::MipsRegisterInfo::getCallPreservedMask(), llvm::PPCRegisterInfo::getCallPreservedMask(), llvm::RISCVRegisterInfo::getCallPreservedMask(), llvm::SystemZELFRegisters::getCallPreservedMask(), llvm::SystemZRegisterInfo::getCallPreservedMask(), llvm::SystemZXPLINK64Registers::getCallPreservedMask(), llvm::X86RegisterInfo::getCallPreservedMask(), llvm::AArch64RegisterInfo::getCustomEHPadPreservedMask(), llvm::AArch64RegisterInfo::getDarwinCallPreservedMask(), llvm::TargetFrameLowering::getDwarfFrameBase(), llvm::X86FrameLowering::getDwarfFrameBase(), llvm::getEHScopeMembership(), llvm::MachineBasicBlock::getFallThrough(), llvm::WebAssemblyFrameLowering::getFPReg(), llvm::CSKYFrameLowering::getFrameIndexReference(), llvm::HexagonFrameLowering::getFrameIndexReference(), llvm::LoongArchFrameLowering::getFrameIndexReference(), llvm::R600FrameLowering::getFrameIndexReference(), llvm::RISCVFrameLowering::getFrameIndexReference(), llvm::SIFrameLowering::getFrameIndexReference(), llvm::SparcFrameLowering::getFrameIndexReference(), llvm::TargetFrameLowering::getFrameIndexReference(), llvm::AArch64FrameLowering::getFrameIndexReferencePreferSP(), llvm::ARMBaseRegisterInfo::getFrameRegister(), llvm::AVRRegisterInfo::getFrameRegister(), llvm::M68kRegisterInfo::getFrameRegister(), llvm::MipsRegisterInfo::getFrameRegister(), llvm::SystemZRegisterInfo::getFrameRegister(), llvm::XtensaRegisterInfo::getFrameRegister(), llvm::SIProgramInfo::getFunctionCodeSize(), getGatherLanePattern(), llvm::SIMachineFunctionInfo::getGITPtrLoReg(), getGlobalBaseRegClass(), llvm::ARMHazardRecognizerFPMLx::getHazardType(), llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV4::getHSAKernelProps(), llvm::R600InstrInfo::getIndirectIndexEnd(), GetInitialOffset(), llvm::AArch64RegisterBankInfo::getInstrAlternativeMappings(), llvm::X86RegisterBankInfo::getInstrAlternativeMappings(), llvm::AArch64RegisterBankInfo::getInstrMapping(), llvm::ARMRegisterBankInfo::getInstrMapping(), llvm::PPCRegisterBankInfo::getInstrMapping(), llvm::RISCVRegisterBankInfo::getInstrMapping(), llvm::X86RegisterBankInfo::getInstrMapping(), llvm::RegisterBankInfo::getInstrMappingImpl(), llvm::AArch64InstrInfo::getInstSizeInBytes(), llvm::MSP430InstrInfo::getInstSizeInBytes(), llvm::ARMBaseRegisterInfo::getLargestLegalSuperClass(), llvm::AVRRegisterInfo::getLargestLegalSuperClass(), llvm::PPCRegisterInfo::getLargestLegalSuperClass(), llvm::X86RegisterInfo::getLargestLegalSuperClass(), getLoadStoreOffsetSizeInBits(), llvm::WebAssemblyFrameLowering::getLocalForStackObject(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), getMemsetStores(), llvm::MipsFunctionInfo::getMoveF64ViaSpillFI(), getMSAMapping(), llvm::X86RegisterInfo::getNumSupportedRegs(), llvm::WebAssemblyFrameLowering::getOpcAdd(), llvm::WebAssemblyFrameLowering::getOpcAnd(), llvm::WebAssemblyFrameLowering::getOpcConst(), llvm::WebAssemblyFrameLowering::getOpcGlobGet(), llvm::WebAssemblyFrameLowering::getOpcGlobSet(), llvm::WebAssemblyFrameLowering::getOpcSub(), getOrCreateFrameHelper(), llvm::SPIRVGlobalRegistry::getOrCreateOpTypeCoopMatr(), llvm::RISCVInstrInfo::getOutliningCandidateInfo(), llvm::X86GenRegisterBankInfo::getPartialMappingIdx(), llvm::MachineFrameInfo::getPristineRegs(), llvm::X86RegisterInfo::getPtrSizedFrameRegister(), llvm::X86RegisterInfo::getPtrSizedStackRegister(), llvm::RISCVMachineFunctionInfo::getPushPopKind(), llvm::AArch64RegisterInfo::getRegAllocationHints(), llvm::PPCRegisterInfo::getRegAllocationHints(), llvm::RISCVRegisterInfo::getRegAllocationHints(), llvm::SystemZRegisterInfo::getRegAllocationHints(), llvm::X86RegisterInfo::getRegAllocationHints(), llvm::RISCVRegisterInfo::getRegisterCostTableIndex(), getRegistersForValue(), getRegistersForValue(), llvm::AArch64RegisterInfo::getRegPressureLimit(), llvm::ARMBaseRegisterInfo::getRegPressureLimit(), llvm::MipsRegisterInfo::getRegPressureLimit(), llvm::PPCRegisterInfo::getRegPressureLimit(), llvm::SystemZELFFrameLowering::getRegSpillOffset(), getRegTy(), llvm::AArch64RegisterInfo::getReservedRegs(), llvm::ARMBaseRegisterInfo::getReservedRegs(), llvm::AVRRegisterInfo::getReservedRegs(), llvm::CSKYRegisterInfo::getReservedRegs(), llvm::HexagonRegisterInfo::getReservedRegs(), llvm::M68kRegisterInfo::getReservedRegs(), llvm::MipsRegisterInfo::getReservedRegs(), llvm::PPCRegisterInfo::getReservedRegs(), llvm::R600RegisterInfo::getReservedRegs(), llvm::RISCVRegisterInfo::getReservedRegs(), llvm::SparcRegisterInfo::getReservedRegs(), llvm::SystemZRegisterInfo::getReservedRegs(), llvm::X86RegisterInfo::getReservedRegs(), llvm::XtensaRegisterInfo::getReservedRegs(), getScavSlotsNumForRVV(), getSchedRegions(), llvm::AMDGPULegalizerInfo::getSegmentAperture(), llvm::AArch64FrameLowering::getSEHFrameIndexOffset(), llvm::ARMBaseRegisterInfo::getSjLjDispatchPreservedMask(), llvm::TargetInstrInfo::getSPAdjust(), llvm::X86InstrInfo::getSPAdjust(), llvm::WebAssemblyFrameLowering::getSPReg(), getStackHazardSize(), llvm::AArch64RegisterInfo::getStrictlyReservedRegs(), GetSymbolRef(), getTargetIndexName(), llvm::gettBLXrOpcode(), llvm::AArch64RegisterInfo::getThisReturnPreservedMask(), llvm::ARMBaseRegisterInfo::getThisReturnPreservedMask(), llvm::ARMBaseRegisterInfo::getTLSCallPreservedMask(), llvm::AArch64RegisterInfo::getUserReservedRegs(), getVCIXISDNodeWCHAIN(), getVGPRSpillLaneOrTempRegister(), llvm::GCNRegPressure::getVGPRSpills(), llvm::X86FrameLowering::has128ByteRedZone(), llvm::AArch64RegisterInfo::hasBasePointer(), llvm::AArch64FrameLowering::hasFPImpl(), llvm::ARCFrameLowering::hasFPImpl(), llvm::ARMFrameLowering::hasFPImpl(), llvm::CSKYFrameLowering::hasFPImpl(), llvm::HexagonFrameLowering::hasFPImpl(), llvm::LoongArchFrameLowering::hasFPImpl(), llvm::RISCVFrameLowering::hasFPImpl(), llvm::SIFrameLowering::hasFPImpl(), llvm::VEFrameLowering::hasFPImpl(), hasRVVFrameObject(), llvm::LiveRegMatrix::init(), llvm::LiveStacks::init(), llvm::RegBankSelect::init(), llvm::RegPressureTracker::init(), initGlobalBaseReg(), llvm::MipsFunctionInfo::initGlobalBaseReg(), INITIALIZE_PASS(), llvm::MIRParserImpl::initializeFrameInfo(), llvm::MIRParserImpl::initializeMachineFunction(), llvm::TailDuplicator::initMF(), llvm::GenericScheduler::initPolicy(), llvm::PostGenericScheduler::initPolicy(), initRegisterMaskIds(), llvm::SystemZELFFrameLowering::inlineStackProbe(), llvm::SystemZXPLINKFrameLowering::inlineStackProbe(), insertCSRRestores(), insertCSRRestores(), insertCSRSaves(), insertCSRSaves(), insertDivByZeroTrap(), llvm::LoongArchInstrInfo::insertIndirectBranch(), llvm::RISCVInstrInfo::insertIndirectBranch(), llvm::SIInstrInfo::insertIndirectBranch(), llvm::insertMultibyteShift(), insertRememberRestorePair(), llvm::SIInstrInfo::insertScratchExecCopy(), insertSEH(), insertSpirvDecorations(), insertUndefLaneMask(), insertWaitInstruction(), interpretValues(), llvm::AArch64RegisterInfo::isArgumentRegister(), llvm::X86RegisterInfo::isArgumentRegister(), llvm::RISCVRegisterInfo::isAsmClobberable(), llvm::PPCRegisterInfo::isCallerPreservedPhysReg(), llvm::isCycleInvariant(), llvm::AMDGPUCallLowering::isEligibleForTailCallOptimization(), isEligibleToFoldADDIForFasterLocalAccesses(), llvm::X86RegisterInfo::isFixedRegister(), llvm::ARMBaseRegisterInfo::isInlineAsmReadOnlyReg(), llvm::MachineLoop::isLoopInvariant(), isNonFoldablePartialRegisterLoad(), llvm::ARMBaseInstrInfo::isPredicable(), isRegOtherThanSPAndFP(), llvm::LoongArchInstrInfo::isSafeToMove(), llvm::TargetInstrInfo::isSchedulingBoundary(), llvm::PPCInstrInfo::isSignOrZeroExtended(), isThreadPointerAcquisitionNode(), isXPLeafCandidate(), jumpTableHasOtherUses(), llvm::ARMFrameLowering::keepFramePointer(), legalizeScatterGatherIndexType(), llvm::GCNRegPressure::less(), llvm::SIMachineFunctionInfo::limitOccupancy(), llvm::MachineBasicBlock::liveout_begin(), loadM0FromVGPR(), loadScalarOperandsFromVGPR(), llvm::WebAssemblyMCInstLower::lower(), llvm::PPCRegisterInfo::lowerACCRestore(), llvm::PPCRegisterInfo::lowerACCSpilling(), llvm::HexagonTargetLowering::LowerCall(), llvm::RISCVTargetLowering::LowerCall(), llvm::AArch64CallLowering::lowerCall(), llvm::AMDGPUCallLowering::lowerCall(), llvm::ARMCallLowering::lowerCall(), llvm::M68kCallLowering::lowerCall(), llvm::MipsCallLowering::lowerCall(), llvm::RISCVCallLowering::lowerCall(), llvm::SPIRVCallLowering::lowerCall(), llvm::X86CallLowering::lowerCall(), llvm::PPCRegisterInfo::lowerCRBitRestore(), llvm::PPCRegisterInfo::lowerCRBitSpilling(), llvm::PPCRegisterInfo::lowerCRRestore(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::PPCRegisterInfo::lowerDMRRestore(), llvm::PPCRegisterInfo::lowerDMRSpilling(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), llvm::PPCRegisterInfo::lowerDynamicAreaOffset(), llvm::LegalizerHelper::lowerDynStackAlloc(), llvm::LoongArchTargetLowering::LowerFormalArguments(), llvm::AArch64CallLowering::lowerFormalArguments(), llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::MipsCallLowering::lowerFormalArguments(), llvm::RISCVCallLowering::lowerFormalArguments(), llvm::AMDGPUCallLowering::lowerFormalArgumentsKernel(), llvm::InlineAsmLowering::lowerInlineAsm(), llvm::LegalizerHelper::lowerMemCpyFamily(), llvm::PPCRegisterInfo::lowerOctWordSpilling(), llvm::PPCRegisterInfo::lowerPrepareProbedAlloca(), llvm::PPCRegisterInfo::lowerQuadwordRestore(), llvm::PPCRegisterInfo::lowerQuadwordSpilling(), llvm::AArch64CallLowering::lowerReturn(), llvm::ARMCallLowering::lowerReturn(), llvm::RISCVCallLowering::lowerReturn(), llvm::SPIRVCallLowering::lowerReturn(), llvm::X86CallLowering::lowerReturn(), llvm::RISCVRegisterInfo::lowerSegmentSpillReload(), llvm::AMDGPUCallLowering::lowerTailCall(), lowerTileCopy(), llvm::PPCRegisterInfo::lowerWACCRestore(), llvm::PPCRegisterInfo::lowerWACCSpilling(), llvm::machineFunctionIsIllegal(), llvm::AArch64RegisterInfo::materializeFrameBaseRegister(), llvm::ARMBaseRegisterInfo::materializeFrameBaseRegister(), llvm::PPCRegisterInfo::materializeFrameBaseRegister(), llvm::RISCVRegisterInfo::materializeFrameBaseRegister(), llvm::MachineInstr::mayAlias(), needScavSlotForCFR(), llvm::RISCVRegisterInfo::needsFrameBaseReg(), llvm::AArch64FunctionInfo::needsShadowCallStackPrologueEpilogue(), llvm::SystemZELFFrameLowering::orderFrameObjects(), outliningCandidatesV8_3OpsConsensus(), llvm::GCNTargetMachine::parseMachineFunctionInfo(), llvm::AMDGPUCallLowering::passSpecialInputs(), performMemPairCombine(), llvm::PPCRegisterInfo::prepareDynamicAlloca(), llvm::MachineBasicBlock::print(), llvm::MachineFrameInfo::print(), print(), llvm::MachineInstr::print(), printMF(), llvm::MachineOperand::printTargetFlags(), llvm::AArch64InstrInfo::probedStackAlloc(), llvm::AArch64FrameLowering::processFunctionBeforeFrameFinalized(), llvm::ARCFrameLowering::processFunctionBeforeFrameFinalized(), llvm::LoongArchFrameLowering::processFunctionBeforeFrameFinalized(), llvm::RISCVFrameLowering::processFunctionBeforeFrameFinalized(), llvm::SIFrameLowering::processFunctionBeforeFrameFinalized(), llvm::SystemZELFFrameLowering::processFunctionBeforeFrameFinalized(), llvm::SystemZXPLINKFrameLowering::processFunctionBeforeFrameFinalized(), llvm::XCoreFrameLowering::processFunctionBeforeFrameFinalized(), llvm::SIFrameLowering::processFunctionBeforeFrameIndicesReplaced(), processVCIXOperands(), produceCompactUnwindFrame(), llvm::PPCInstrInfo::promoteInstr32To64ForElimEXTSW(), promoteVCIXScalar(), llvm::TargetInstrInfo::reassociateOps(), llvm::NVPTXDwarfDebug::recordTargetSourceLine(), llvm::TargetInstrInfo::reduceAccumulatorTree(), llvm::MachineBasicBlock::removeLiveInOverlappedWith(), replaceFI(), ReplaceTLSBaseAddrCall(), llvm::ARMFrameLowering::requiresAAPCSFrameRecord(), llvm::PPCRegisterInfo::requiresFrameIndexScavenging(), llvm::AArch64FrameLowering::requiresSaveVG(), llvm::PPCRegisterInfo::requiresVirtualBaseRegisters(), llvm::R600InstrInfo::reserveIndirectRegisters(), reservePrivateMemoryRegs(), llvm::AArch64FrameLowering::resetCFIToInitialState(), llvm::MipsTargetMachine::resetSubtarget(), llvm::AArch64RegisterInfo::resolveFrameIndex(), llvm::ARMBaseRegisterInfo::resolveFrameIndex(), llvm::PPCRegisterInfo::resolveFrameIndex(), llvm::ThumbRegisterInfo::resolveFrameIndex(), llvm::ARMFrameLowering::ResolveFrameIndexReference(), llvm::AArch64FrameLowering::resolveFrameOffsetReference(), llvm::ResourcePriorityQueue::ResourcePriorityQueue(), llvm::AArch64FrameLowering::restoreCalleeSavedRegisters(), llvm::AVRFrameLowering::restoreCalleeSavedRegisters(), llvm::CSKYFrameLowering::restoreCalleeSavedRegisters(), llvm::MSP430FrameLowering::restoreCalleeSavedRegisters(), llvm::RISCVFrameLowering::restoreCalleeSavedRegisters(), llvm::SIFrameLowering::restoreCalleeSavedRegisters(), llvm::SystemZELFFrameLowering::restoreCalleeSavedRegisters(), llvm::SystemZXPLINKFrameLowering::restoreCalleeSavedRegisters(), llvm::Thumb1FrameLowering::restoreCalleeSavedRegisters(), llvm::XCoreFrameLowering::restoreCalleeSavedRegisters(), restoreCRs(), llvm::restoreStatusRegister(), llvm::ThumbRegisterInfo::rewriteFrameIndex(), llvm::AMDGPUPrepareAGPRAllocPass::run(), llvm::MachineSchedulerPass::run(), llvm::PostMachineSchedulerPass::run(), llvm::RAGreedy::run(), llvm::SILateBranchLoweringPass::run(), llvm::SILowerControlFlowPass::run(), llvm::X86LoadValueInjectionLoadHardeningPass::run(), RemoveLoadsIntoFakeUses::run(), runAnalysisOnFuncOrFunclet(), runImpl(), llvm::ARMBlockPlacement::runOnMachineFunction(), llvm::CFIFixup::runOnMachineFunction(), llvm::DetectRoundChange::runOnMachineFunction(), llvm::ErrataWorkaround::runOnMachineFunction(), llvm::ExecutionDomainFix::runOnMachineFunction(), llvm::FixAllFDIVSQRT::runOnMachineFunction(), llvm::HexagonAsmPrinter::runOnMachineFunction(), llvm::InsertNOPLoad::runOnMachineFunction(), llvm::InstructionSelect::runOnMachineFunction(), llvm::Legalizer::runOnMachineFunction(), llvm::LiveDebugVariables::LDVImpl::runOnMachineFunction(), llvm::MachinePipeliner::runOnMachineFunction(), llvm::RegisterClassInfo::runOnMachineFunction(), runOnMF(), runX86LoadValueInjectionRetHardening(), runX86ReturnThunks(), runX86SpeculativeExecutionSideEffectSuppression(), runX86WinEHUnwindV2(), salvageCopySSA(), salvageCopySSAImpl(), llvm::ScheduleDAGInstrs::ScheduleDAGInstrs(), selectI64Imm(), llvm::InstructionSelect::selectMachineFunction(), setAliasRegs(), setCallTargetReg(), llvm::MachineIRBuilder::setMF(), SetRegister(), llvm::X86MachineFunctionInfo::setRestoreBasePointer(), llvm::MIRParserImpl::setupRegisterInfo(), llvm::SIMachineFunctionInfo::shiftWwmVGPRsToLowestRange(), llvm::AArch64RegisterInfo::shouldCoalesce(), llvm::HexagonRegisterInfo::shouldCoalesce(), llvm::TargetRegisterInfo::shouldRegionSplitForVirtReg(), llvm::MachineBasicBlock::SkipPHIsAndLabels(), llvm::MachineBasicBlock::SkipPHIsLabelsAndDebug(), llvm::AArch64FrameLowering::spillCalleeSavedRegisters(), llvm::AVRFrameLowering::spillCalleeSavedRegisters(), llvm::CSKYFrameLowering::spillCalleeSavedRegisters(), llvm::LoongArchFrameLowering::spillCalleeSavedRegisters(), llvm::MSP430FrameLowering::spillCalleeSavedRegisters(), llvm::RISCVFrameLowering::spillCalleeSavedRegisters(), llvm::SIFrameLowering::spillCalleeSavedRegisters(), llvm::SystemZELFFrameLowering::spillCalleeSavedRegisters(), llvm::SystemZXPLINKFrameLowering::spillCalleeSavedRegisters(), llvm::Thumb1FrameLowering::spillCalleeSavedRegisters(), llvm::XCoreFrameLowering::spillCalleeSavedRegisters(), llvm::X86FrameLowering::spillFPBP(), llvm::MachineBasicBlock::splitAt(), llvm::MachineBasicBlock::SplitCriticalEdge(), splitMBB(), suppressAPXForRelocation(), tryMemPairCombine(), llvm::X86InstrInfo::unfoldMemoryOperand(), llvm::X86InstrInfo::unfoldMemoryOperand(), unstackifyVRegsUsedInSplitBB(), llvm::AArch64RegisterInfo::UpdateCustomCalleeSavedRegs(), llvm::AArch64RegisterInfo::UpdateCustomCallPreservedMask(), UpdatedOnX86AvoidTrailingCallPass(), UpdateOperandRegClass(), llvm::MachineBasicBlock::updateTerminator(), llvm::AArch64RegisterInfo::useFPForScavengingIndex(), llvm::HexagonRegisterInfo::useFPForScavengingIndex(), llvm::ThumbRegisterInfo::useFPForScavengingIndex(), llvm::SystemZELFFrameLowering::usePackedStack(), llvm::RISCVMachineFunctionInfo::useSaveRestoreLibCalls(), llvm::RegisterBankInfo::InstructionMapping::verify(), and llvm::WebAssemblyFrameLowering::writeSPToGlobal().
|
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 796 of file MachineFunction.h.
|
inline |
getTarget - Return the target machine this machine code is compiled with
Definition at line 787 of file MachineFunction.h.
Referenced by llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::X86FrameLowering::adjustForSegmentedStacks(), AlignBlocks(), llvm::NVPTXTargetLowering::allowFMA(), llvm::ARMFrameLowering::assignCalleeSavedSpillSlots(), assignSections(), llvm::X86InstrInfo::canMakeTailCallConditional(), llvm::AArch64RegisterInfo::cannotEliminateFrame(), llvm::ARMBaseRegisterInfo::cannotEliminateFrame(), llvm::MachineBasicBlock::canSplitCriticalEdge(), llvm::X86FrameLowering::canUseLEAForSPInEpilogue(), CC_ARM_AAPCS_Custom_Aggregate(), llvm::MipsFunctionInfo::createEhDataRegsFI(), llvm::MipsTargetLowering::createFastISel(), llvm::MCResourceInfo::createTotalNumSGPRs(), llvm::MCResourceInfo::createTotalNumVGPRs(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::determineCalleeSaves(), llvm::TargetFrameLowering::determineCalleeSaves(), llvm::TargetInstrInfo::duplicate(), llvm::PPCFrameLowering::eliminateCallFramePseudoInstr(), llvm::X86FrameLowering::eliminateCallFramePseudoInstr(), llvm::AVRRegisterInfo::eliminateFrameIndex(), llvm::PPCFrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitEpilogue(), llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV4::emitKernel(), llvm::ARMFrameLowering::emitPrologue(), llvm::NVPTXFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), llvm::TargetFrameLowering::enableCFIFixup(), ExpandMOVImmSExti8(), llvm::HexagonInstrInfo::expandPostRAPseudo(), llvm::AArch64CallLowering::fallBackToDAGISel(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::MCResourceInfo::gatherResourceInfo(), llvm::AMDGPUSubtarget::get(), llvm::GISelValueTrackingAnalysisLegacy::get(), llvm::HexagonFrameLowering::getFrameIndexReference(), llvm::X86FrameLowering::getFrameIndexReference(), llvm::NVPTXRegisterInfo::getFrameLocalRegister(), llvm::MipsRegisterInfo::getFrameRegister(), llvm::NVPTXRegisterInfo::getFrameRegister(), getGlobalBaseRegClass(), llvm::AArch64InstrInfo::getInstSizeInBytes(), llvm::ARCInstrInfo::getInstSizeInBytes(), llvm::ARMBaseInstrInfo::getInstSizeInBytes(), llvm::AVRInstrInfo::getInstSizeInBytes(), llvm::CSKYInstrInfo::getInstSizeInBytes(), llvm::LoongArchInstrInfo::getInstSizeInBytes(), llvm::MipsInstrInfo::getInstSizeInBytes(), llvm::MSP430InstrInfo::getInstSizeInBytes(), llvm::PPCInstrInfo::getInstSizeInBytes(), llvm::RISCVInstrInfo::getInstSizeInBytes(), llvm::SIInstrInfo::getInstSizeInBytes(), llvm::SparcInstrInfo::getInstSizeInBytes(), llvm::SystemZInstrInfo::getInstSizeInBytes(), llvm::XtensaInstrInfo::getInstSizeInBytes(), llvm::RISCVMachineFunctionInfo::getPushPopKind(), llvm::ARMSubtarget::getPushPopSplitVariation(), llvm::X86RegisterInfo::getReservedRegs(), llvm::HexagonInstrInfo::getSize(), llvm::AArch64FrameLowering::hasFPImpl(), llvm::ARCFrameLowering::hasFPImpl(), llvm::ARMFrameLowering::hasFPImpl(), llvm::CSKYFrameLowering::hasFPImpl(), llvm::HexagonFrameLowering::hasFPImpl(), llvm::LoongArchFrameLowering::hasFPImpl(), llvm::M68kFrameLowering::hasFPImpl(), llvm::MipsFrameLowering::hasFPImpl(), llvm::MSP430FrameLowering::hasFPImpl(), llvm::RISCVFrameLowering::hasFPImpl(), llvm::SIFrameLowering::hasFPImpl(), llvm::SparcFrameLowering::hasFPImpl(), llvm::SystemZELFFrameLowering::hasFPImpl(), llvm::VEFrameLowering::hasFPImpl(), llvm::X86FrameLowering::hasFPImpl(), llvm::XCoreFrameLowering::hasFPImpl(), llvm::XtensaFrameLowering::hasFPImpl(), initGlobalBaseReg(), llvm::MipsFunctionInfo::initGlobalBaseReg(), llvm::MIRParserImpl::initializeCallSiteInfo(), llvm::MIRParserImpl::initializeMachineFunction(), isCombineInstrCandidateFP(), llvm::AArch64CallLowering::isEligibleForTailCallOptimization(), llvm::AMDGPUCallLowering::isEligibleForTailCallOptimization(), llvm::X86::isExtendedSwiftAsyncFrameSupported(), llvm::AArch64FrameLowering::isFPReserved(), llvm::ARMFrameLowering::isFPReserved(), isOptNone(), isTargetWindows(), llvm::AMDGPULegalizerInfo::legalizeAddrSpaceCast(), llvm::SITargetLowering::LowerCall(), llvm::AArch64CallLowering::lowerCall(), llvm::CallLowering::lowerCall(), llvm::MipsCallLowering::lowerCall(), llvm::AArch64CallLowering::lowerFormalArguments(), llvm::MipsCallLowering::lowerFormalArguments(), llvm::AMDGPUCallLowering::lowerTailCall(), llvm::AArch64FunctionInfo::needsDwarfUnwindInfo(), llvm::PPCFrameLowering::needsFP(), needsFrameMoves(), llvm::WebAssemblyFrameLowering::needsPrologForEH(), needsPrologueENDBR(), llvm::AArch64FrameLowering::needsWinCFI(), needsWinCFI(), needsWinCFI(), llvm::AMDGPUMIRFormatter::parseCustomPseudoSourceValue(), printMF(), llvm::PPCFrameLowering::processFunctionBeforeFrameFinalized(), llvm::X86FrameLowering::processFunctionBeforeFrameFinalized(), promoteToConstantPool(), reportGISelDiagnostic(), llvm::reportGISelFailure(), runIndirectBranchTracking(), llvm::InstructionSelect::runOnMachineFunction(), runX86SpeculativeExecutionSideEffectSuppression(), llvm::TargetLowering::setTypeIdForCallsiteInfo(), shouldLowerMemFuncForSize(), shouldLowerMemFuncForSize(), llvm::TailDuplicator::shouldTailDuplicate(), shouldUseDebugInstrRef(), and targetSupportsBF16Type().
| unsigned MachineFunction::getTypeIDFor | ( | const GlobalValue * | TI | ) |
Return the type id for the specified typeinfo. This is function wide.
Definition at line 912 of file MachineFunction.cpp.
References N.
Referenced by addLandingPad().
|
inline |
Return a reference to the C++ typeinfo for the current function.
Definition at line 1430 of file MachineFunction.h.
Referenced by llvm::EHStreamer::emitExceptionTable(), and llvm::EHStreamer::emitTypeInfos().
|
inline |
Definition at line 1456 of file MachineFunction.h.
References VariableDbgInfos.
Referenced by getEntryValueVariableDbgInfo(), getInStackSlotVariableDbgInfo(), and getInStackSlotVariableDbgInfo().
|
inline |
Definition at line 1457 of file MachineFunction.h.
References VariableDbgInfos.
|
inline |
Definition at line 830 of file MachineFunction.h.
|
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 829 of file MachineFunction.h.
Referenced by llvm::WebAssemblyFunctionInfo::initializeBaseYamlFields(), llvm::WebAssemblyExceptionInfo::recalculate(), sortBlocks(), and llvm::yaml::WebAssemblyFunctionInfo::WebAssemblyFunctionInfo().
|
inline |
Get the index in wasm EH for a given landing pad.
Definition at line 1378 of file MachineFunction.h.
References assert(), and hasWasmLandingPadIndex().
Referenced by llvm::WasmException::computeCallSiteTable().
|
inline |
Definition at line 836 of file MachineFunction.h.
|
inline |
getWinEHFuncInfo - Return information about how the current function uses Windows exception handling.
Returns null for functions that don't use funclets for exception handling.
Definition at line 835 of file MachineFunction.h.
Referenced by llvm::WinException::beginFunction(), llvm::X86FrameLowering::emitPrologue(), MarkEHGuard(), MarkEHRegistrationNode(), llvm::AArch64FrameLowering::processFunctionBeforeFrameFinalized(), and llvm::X86FrameLowering::restoreWin32EHStackPointers().
| void MachineFunction::handleChangeDesc | ( | MachineInstr & | MI, |
| const MCInstrDesc & | TID ) |
Definition at line 182 of file MachineFunction.cpp.
References MI.
Referenced by ilist_traits< MachineInstr >, and llvm::MachineInstr::setDesc().
|
inline |
Definition at line 1399 of file MachineFunction.h.
|
inline |
Definition at line 1383 of file MachineFunction.h.
|
inline |
Return if there is any wasm exception handling.
Definition at line 1363 of file MachineFunction.h.
|
inline |
Returns true if this function has basic block sections enabled.
Definition at line 764 of file MachineFunction.h.
References llvm::All, llvm::List, and llvm::Preset.
Referenced by assignSections(), getBBAddrMapFeature(), llvm::MachineBasicBlock::getSymbol(), and llvm::MIRParserImpl::initializeMachineFunction().
Return true if the begin label has a call site number associated with it.
Definition at line 1416 of file MachineFunction.h.
Referenced by getCallSiteBeginLabel().
Return true if the landing pad Eh symbol has an associated call site.
Definition at line 1395 of file MachineFunction.h.
Referenced by llvm::VETargetLowering::emitSjLjDispatchBlock(), getCallSiteLandingPad(), and runIndirectBranchTracking().
|
inline |
Definition at line 1320 of file MachineFunction.h.
Referenced by printMF().
|
inline |
Definition at line 1326 of file MachineFunction.h.
Referenced by llvm::X86FrameLowering::assignCalleeSavedSpillSlots(), llvm::WinException::beginFunction(), llvm::X86FrameLowering::emitPrologue(), llvm::WinException::endFunction(), llvm::AArch64RegisterInfo::getLocalAddressRegister(), llvm::AArch64RegisterInfo::hasBasePointer(), llvm::AArch64FrameLowering::hasFPImpl(), llvm::X86FrameLowering::hasFPImpl(), needFuncLabels(), printMF(), llvm::AArch64FrameLowering::processFunctionBeforeFrameFinalized(), llvm::X86FrameLowering::processFunctionBeforeFrameFinalized(), llvm::X86FrameLowering::processFunctionBeforeFrameIndicesReplaced(), and llvm::AArch64FrameLowering::resolveFrameOffsetReference().
|
inline |
Definition at line 1323 of file MachineFunction.h.
Referenced by llvm::getEHScopeMembership(), and printMF().
|
inline |
Definition at line 1329 of file MachineFunction.h.
Referenced by printMF(), and RemoveLoadsIntoFakeUses::run().
|
inline |
Returns true if the function contains any inline assembly.
Definition at line 868 of file MachineFunction.h.
Referenced by llvm::CodeViewDebug::beginFunctionImpl(), llvm::PPCRegisterInfo::getReservedRegs(), llvm::InstructionSelect::selectMachineFunction(), and llvm::X86FrameLowering::spillFPBP().
|
inline |
Returns true if the landing pad has an associate index in wasm EH.
Definition at line 1373 of file MachineFunction.h.
Referenced by llvm::WasmException::computeCallSiteTable(), llvm::WasmException::endFunction(), and getWasmLandingPadIndex().
|
inline |
Definition at line 877 of file MachineFunction.h.
Referenced by llvm::WinException::beginFunction(), llvm::X86InstrInfo::canMakeTailCallConditional(), llvm::ARMFrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitEpilogue(), printMF(), and UpdatedOnX86AvoidTrailingCallPass().
| void MachineFunction::initTargetMachineFunctionInfo | ( | const TargetSubtargetInfo & | STI | ) |
Initialize the target specific MachineFunctionInfo.
Definition at line 244 of file MachineFunction.cpp.
References assert().
Referenced by llvm::MachineModuleInfo::getOrCreateMachineFunction().
|
inline |
Definition at line 1036 of file MachineFunction.h.
Referenced by addUnreachableAfterTryTables(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::rdf::Liveness::computeLiveIns(), createDedicatedExit(), createFrameHelperMachineFunction(), llvm::SystemZ::emitBlockAfter(), llvm::AArch64TargetLowering::EmitCheckMatchingVL(), llvm::RISCVTargetLowering::emitDynamicProbedAlloc(), llvm::PPCTargetLowering::emitEHSjLjSetJmp(), llvm::SystemZTargetLowering::emitEHSjLjSetJmp(), llvm::VETargetLowering::emitEHSjLjSetJmp(), llvm::AArch64TargetLowering::EmitF128CSEL(), llvm::AVRTargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::emitProbedAlloca(), emitReadCounterWidePseudo(), emitStackProbeInline(), emitXBegin(), llvm::AMDGPURegisterBankInfo::executeInWaterfallLoop(), llvm::VEInstrInfo::expandExtendStackPseudo(), llvm::SPIRVTargetLowering::finalizeLowering(), llvm::SelectionDAGBuilder::FindMergedConditions(), INITIALIZE_PASS(), llvm::PPCFrameLowering::inlineStackProbe(), insertDivByZeroTrap(), loadM0FromVGPR(), loadScalarOperandsFromVGPR(), llvm::PeelSingleBlockLoop(), llvm::AArch64InstrInfo::probedStackAlloc(), llvm::ARMBlockPlacement::revertWhileToDoLoop(), llvm::MachineBasicBlock::splitAt(), splitBlockForLoop(), llvm::MachineBasicBlock::SplitCriticalEdge(), splitEdge(), splitEndLoopBB(), splitMBB(), and tryToSplitRestore().
|
inline |
Definition at line 1332 of file MachineFunction.h.
Referenced by printMF().
| void MachineFunction::makeDebugValueSubstitution | ( | DebugInstrOperandPair | A, |
| DebugInstrOperandPair | B, | ||
| unsigned | SubReg = 0 ) |
Create a substitution between one <instr,operand> value to a different, new value.
Definition at line 1036 of file MachineFunction.cpp.
References A(), assert(), B(), DebugOperandMemNumber, and DebugValueSubstitutions.
Referenced by addDebugSubstitutionsToTable(), fixupSetCC(), salvageCopySSAImpl(), and substituteDebugValuesForInst().
| void MachineFunction::moveAdditionalCallInfo | ( | const MachineInstr * | Old, |
| const MachineInstr * | New ) |
Move the call site info from Old to \New call site info.
This function is used when we are replacing one call instruction with another one to the same callee.
Definition at line 1007 of file MachineFunction.cpp.
References assert(), eraseAdditionalCallInfo(), getCallInstr(), and llvm::MachineInstr::shouldUpdateAdditionalCallInfo().
Referenced by llvm::X86TargetLowering::EmitKCFICheck().
| bool MachineFunction::needsFrameMoves | ( | ) | const |
True if this function needs frame moves for debug or exceptions.
Definition at line 699 of file MachineFunction.cpp.
References llvm::TargetOptions::ForceDwarfFrameSection, getTarget(), and llvm::TargetMachine::Options.
Referenced by llvm::M68kFrameLowering::eliminateCallFramePseudoInstr(), llvm::X86FrameLowering::eliminateCallFramePseudoInstr(), llvm::X86FrameLowering::emitEpilogue(), llvm::M68kFrameLowering::emitPrologue(), llvm::PPCFrameLowering::emitPrologue(), llvm::SparcFrameLowering::emitPrologue(), llvm::TargetFrameLowering::enableCFIFixup(), ExpandMOVImmSExti8(), llvm::PPCFrameLowering::inlineStackProbe(), needsDwarfCFI(), llvm::AArch64FunctionInfo::needsDwarfUnwindInfo(), llvm::ARCRegisterInfo::needsFrameMoves(), and llvm::XCoreRegisterInfo::needsFrameMoves().
|
delete |
References MachineFunction().
| void MachineFunction::print | ( | raw_ostream & | OS, |
| const SlotIndexes * | Indexes = nullptr ) const |
print - Print out the MachineFunction in a format suitable for debugging to the specified stream.
Definition at line 657 of file MachineFunction.cpp.
References getFunction(), getName(), getParent(), getProperties(), llvm::TargetSubtargetInfo::getRegisterInfo(), getSubtarget(), I, llvm::ModuleSlotTracker::incorporateFunction(), llvm::MachineFunctionProperties::print(), llvm::printReg(), and TRI.
Referenced by dump(), llvm::MachineSchedulerPass::run(), and llvm::PostMachineSchedulerPass::run().
|
inline |
Definition at line 1034 of file MachineFunction.h.
References MBB.
Referenced by llvm::SystemZTargetLowering::emitEHSjLjSetJmp(), llvm::VETargetLowering::emitEHSjLjSetJmp(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::VETargetLowering::emitSjLjDispatchBlock(), llvm::SystemZXPLINKFrameLowering::inlineStackProbe(), llvm::SIInstrInfo::insertSimulatedTrap(), and llvm::AMDGPULegalizerInfo::legalizeTrapEndpgm().
|
inline |
Definition at line 1035 of file MachineFunction.h.
References MBB.
Referenced by llvm::X86FrameLowering::adjustForHiPEPrologue(), and llvm::X86FrameLowering::adjustForSegmentedStacks().
|
inline |
Definition at line 1022 of file MachineFunction.h.
|
inline |
Definition at line 1023 of file MachineFunction.h.
|
inline |
Definition at line 1049 of file MachineFunction.h.
References MBBI.
Referenced by llvm::MachineBasicBlock::removeFromParent().
|
inline |
Definition at line 1050 of file MachineFunction.h.
References MBBI.
|
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 1080 of file MachineFunction.h.
|
inline |
Definition at line 1024 of file MachineFunction.h.
|
inline |
Definition at line 1025 of file MachineFunction.h.
| 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 351 of file MachineFunction.cpp.
References assert(), begin(), empty(), end(), MBB, and MBBI.
Referenced by createBBClusterInfoForFunction(), llvm::ARMBlockPlacement::revertWhileToDoLoop(), llvm::ARMBlockPlacement::runOnMachineFunction(), and sortBlocks().
|
inline |
Reset the instance as if it was just created.
Definition at line 712 of file MachineFunction.h.
|
inline |
Reset the currently registered delegate - otherwise assert.
Definition at line 718 of file MachineFunction.h.
References assert().
| auto MachineFunction::salvageCopySSA | ( | MachineInstr & | MI, |
| DenseMap< Register, DebugInstrOperandPair > & | DbgPHICache ) |
Find the underlying defining instruction / operand for a COPY instruction while in SSA form.
Copies do not actually define values – they move them between registers. Labelling a COPY-like instruction with an instruction number is to be avoided as it makes value numbers non-unique later in compilation. This method follows the definition chain for any sequence of COPY-like instructions to find whatever non-COPY-like instruction defines the copied value; or for parameters, creates a DBG_PHI on entry. May insert instructions into the entry block! MI The copy-like instruction to salvage. DbgPHICache A container to cache already-solved COPYs.
Definition at line 1076 of file MachineFunction.cpp.
References assert(), llvm::TargetSubtargetInfo::getInstrInfo(), getSubtarget(), MI, salvageCopySSAImpl(), and TII.
Referenced by finalizeDebugInstrRefs().
| auto MachineFunction::salvageCopySSAImpl | ( | MachineInstr & | MI | ) |
Definition at line 1101 of file MachineFunction.cpp.
References llvm::MachineInstr::all_defs(), assert(), llvm::BuildMI(), llvm::MachineRegisterInfo::def_begin(), llvm::MachineInstr::getDebugInstrNum(), llvm::MachineBasicBlock::getFirstNonPHI(), llvm::TargetSubtargetInfo::getInstrInfo(), llvm::ilist_node_impl< OptionsT >::getIterator(), getNewDebugInstrNum(), llvm::MachineBasicBlock::getParent(), llvm::MachineOperand::getParent(), llvm::MachineOperand::getReg(), getRegInfo(), getSubtarget(), llvm::MachineRegisterInfo::getTargetRegisterInfo(), llvm::MachineRegisterInfo::hasOneDef(), llvm::MachineInstr::isCopyLike(), llvm_unreachable, llvm::make_range(), makeDebugValueSubstitution(), MI, P, llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::reverse(), TII, and TRI.
Referenced by salvageCopySSA().
|
inline |
setAlignment - Set the alignment of the function.
Definition at line 842 of file MachineFunction.h.
References A().
Referenced by llvm::MIRParserImpl::initializeMachineFunction().
|
inline |
Definition at line 770 of file MachineFunction.h.
|
inline |
Definition at line 1315 of file MachineFunction.h.
Referenced by llvm::MIRParserImpl::initializeMachineFunction().
Map the begin label for a call site.
Definition at line 1404 of file MachineFunction.h.
Map the landing pad's EH symbol to the call site indexes.
Definition at line 907 of file MachineFunction.cpp.
References llvm::ArrayRef< T >::begin(), and llvm::ArrayRef< T >::end().
|
inline |
Definition at line 1318 of file MachineFunction.h.
Referenced by llvm::MIRParserImpl::initializeMachineFunction().
| void MachineFunction::setDebugInstrNumberingCount | ( | unsigned | Num | ) |
Set value of DebugInstrNumberingCount field.
Avoid using this unless you're deserializing this data.
Definition at line 1032 of file MachineFunction.cpp.
References DebugInstrNumberingCount.
|
inline |
Set the delegate.
resetDelegate must be called before attempting to set.
Definition at line 726 of file MachineFunction.h.
References assert().
|
inline |
setCallsSetJmp - Set a flag that indicates if there's a call to a "returns twice" function.
Definition at line 863 of file MachineFunction.h.
References B().
Referenced by llvm::MIRParserImpl::initializeMachineFunction().
|
inline |
Definition at line 1321 of file MachineFunction.h.
Referenced by llvm::MIRParserImpl::initializeMachineFunction().
|
inline |
Definition at line 1327 of file MachineFunction.h.
Referenced by llvm::MIRParserImpl::initializeMachineFunction().
|
inline |
Definition at line 1324 of file MachineFunction.h.
Referenced by llvm::MIRParserImpl::initializeMachineFunction().
|
inline |
Definition at line 1330 of file MachineFunction.h.
|
inline |
Set a flag that indicates that the function contains inline assembly.
Definition at line 873 of file MachineFunction.h.
References B().
Referenced by llvm::InstructionSelect::selectMachineFunction().
|
inline |
Definition at line 880 of file MachineFunction.h.
Referenced by llvm::ARMFrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), llvm::MIRParserImpl::initializeMachineFunction(), and llvm::X86FrameLowering::processFunctionBeforeFrameFinalized().
|
inline |
Definition at line 1333 of file MachineFunction.h.
Referenced by llvm::MIRParserImpl::initializeMachineFunction().
|
inline |
Definition at line 734 of file MachineFunction.h.
|
inline |
Definition at line 773 of file MachineFunction.h.
Referenced by llvm::MIRParserImpl::initializePrefetchTargets().
|
inline |
Indicates the Section this function belongs to.
Definition at line 744 of file MachineFunction.h.
| void MachineFunction::setUseDebugInstrRef | ( | bool | UseInstrRef | ) |
Set whether this function will use instruction referencing or not.
Definition at line 1329 of file MachineFunction.cpp.
References UseDebugInstrRef.
Referenced by llvm::SelectionDAGISelPass::run(), and llvm::SelectionDAGISelLegacy::runOnMachineFunction().
|
inline |
Collect information used to emit debugging information of a variable in a stack slot.
Definition at line 1444 of file MachineFunction.h.
References VariableDbgInfos.
Referenced by llvm::MIRParserImpl::initializeFrameInfo(), llvm::MIRParserImpl::parseStackObjectsDebugInfo(), processDbgDeclare(), and processIfEntryValueDbgDeclare().
|
inline |
Collect information used to emit debugging information of a variable in the entry value of a register.
Definition at line 1451 of file MachineFunction.h.
References Reg, and VariableDbgInfos.
|
inline |
Map the landing pad to its index. Used for Wasm exception handling.
Definition at line 1368 of file MachineFunction.h.
Referenced by mapWasmLandingPadIndex().
| bool MachineFunction::shouldSplitStack | ( | ) | const |
Should we be emitting segmented stack stuff for the function.
Definition at line 324 of file MachineFunction.cpp.
References getFunction(), and llvm::Function::hasFnAttribute().
Referenced by llvm::X86FrameLowering::emitPrologue(), and llvm::X86FrameLowering::enableShrinkWrapping().
| bool MachineFunction::shouldUseDebugInstrRef | ( | ) | const |
Determine whether, in the current machine configuration, we should use instruction referencing or not.
Definition at line 1307 of file MachineFunction.cpp.
References llvm::debuginfoShouldUseDebugInstrRef(), getTarget(), and llvm::None.
Referenced by llvm::SelectionDAGISelPass::run(), and llvm::SelectionDAGISelLegacy::runOnMachineFunction().
|
inline |
Definition at line 1027 of file MachineFunction.h.
Referenced by createBBClusterInfoForFunction(), gatherBlocksDF(), getJTISymbol(), removeEmptyBlocks(), llvm::BasicBlockMatchingAndInference::runOnMachineFunction(), llvm::InstructionSelect::selectMachineFunction(), and llvm::GraphTraits< DOTMachineFuncInfo * >::size().
|
inline |
Definition at line 1055 of file MachineFunction.h.
Referenced by llvm::sortBasicBlocksAndUpdateBranches().
Definition at line 1039 of file MachineFunction.h.
References MBBI.
Referenced by llvm::MachineBasicBlock::moveAfter(), and llvm::MachineBasicBlock::moveBefore().
Definition at line 1045 of file MachineFunction.h.
References MBBI.
|
inline |
Definition at line 1042 of file MachineFunction.h.
References MBB.
| void MachineFunction::substituteDebugValuesForInst | ( | const MachineInstr & | Old, |
| MachineInstr & | New, | ||
| unsigned | MaxOperand = UINT_MAX ) |
Create substitutions for any tracked values in Old, to point at New.
Needed when we re-create an instruction during optimization, which has the same signature (i.e., def operands in the same place) but a modified instruction type, flags, or otherwise. An example: X86 moves are sometimes transformed into equivalent LEAs. If the two instructions are not the same opcode, limit which operands to examine for substitutions to the first N operands by setting MaxOperand.
Definition at line 1047 of file MachineFunction.cpp.
References assert(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), I, makeDebugValueSubstitution(), and llvm::MachineInstr::peekDebugInstrNum().
|
inline |
Tries to get the global and target flags for a call site, if the instruction is a call to a global.
Definition at line 1293 of file MachineFunction.h.
References MI.
Referenced by llvm::MachineInstr::isIdenticalTo().
| bool MachineFunction::useDebugInstrRef | ( | ) | const |
Returns true if the function's variable locations are tracked with instruction referencing.
Definition at line 1325 of file MachineFunction.cpp.
References UseDebugInstrRef.
Referenced by llvm::LiveDebugVariables::analyze(), printMF(), RemoveLoadsIntoFakeUses::run(), and llvm::SelectionDAGISel::runOnMachineFunction().
| bool MachineFunction::verify | ( | LiveIntervals * | LiveInts, |
| SlotIndexes * | Indexes, | ||
| const char * | Banner = nullptr, | ||
| raw_ostream * | OS = nullptr, | ||
| bool | AbortOnError = true ) const |
Run the current MachineFunction through the machine code verifier, useful for debugger use.
TODO: Add the param for LiveStacks analysis.
Definition at line 436 of file MachineVerifier.cpp.
| bool MachineFunction::verify | ( | MachineFunctionAnalysisManager & | MFAM, |
| const char * | Banner = nullptr, | ||
| raw_ostream * | OS = nullptr, | ||
| bool | AbortOnError = true ) const |
For New Pass Manager: Run the current MachineFunction through the machine code verifier, useful for debugger use.
Definition at line 430 of file MachineVerifier.cpp.
| bool MachineFunction::verify | ( | Pass * | p = nullptr, |
| const char * | Banner = nullptr, | ||
| raw_ostream * | OS = nullptr, | ||
| bool | AbortOnError = true ) const |
Run the current MachineFunction through the machine code verifier, useful for debugger use.
Definition at line 425 of file MachineVerifier.cpp.
Referenced by llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::MIRParserImpl::initializeMachineFunction(), and llvm::X86SpeculativeLoadHardeningPass::run().
| 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 769 of file MachineFunction.cpp.
References llvm::errs(), getName(), and llvm::ViewGraph().
| void MachineFunction::viewCFGOnly | ( | ) | const |
viewCFGOnly - This function is meant for use from the debugger.
It works just like viewCFG, but it does not include the contents of basic blocks into the nodes, just the label. If you are only interested in the CFG this can make the graph smaller.
Definition at line 779 of file MachineFunction.cpp.
References llvm::errs(), getName(), and llvm::ViewGraph().
|
friend |
Definition at line 573 of file MachineFunction.h.
References handleChangeDesc(), and MI.
| unsigned llvm::MachineFunction::DebugInstrNumberingCount = 0 |
A count of how many instructions in the function have had numbers assigned to them.
Used for debug value tracking, to determine the next instruction number.
Definition at line 586 of file MachineFunction.h.
Referenced by getNewDebugInstrNum(), and setDebugInstrNumberingCount().
A reserved operand number representing the instructions memory operand, for instructions that have a stack spill fused into them.
Definition at line 702 of file MachineFunction.h.
Referenced by makeDebugValueSubstitution().
| DenseMap<unsigned, DebugPHIRegallocPos> llvm::MachineFunction::DebugPHIPositions |
Map of debug instruction numbers to the position of their PHI instructions during register allocation.
See DebugPHIRegallocPos.
Definition at line 643 of file MachineFunction.h.
| SmallVector<DebugSubstitution, 8> llvm::MachineFunction::DebugValueSubstitutions |
Debug value substitutions: a collection of DebugSubstitution objects, recording changes in where a value is defined.
For example, when one instruction is substituted for another. Keeping a record allows recovery of variable locations after compilation finishes.
Definition at line 625 of file MachineFunction.h.
Referenced by makeDebugValueSubstitution(), and printMF().
| bool llvm::MachineFunction::UseDebugInstrRef = false |
Flag for whether this function contains DBG_VALUEs (false) or DBG_INSTR_REF (true).
Definition at line 647 of file MachineFunction.h.
Referenced by setUseDebugInstrRef(), and useDebugInstrRef().
| VariableDbgInfoMapTy llvm::MachineFunction::VariableDbgInfos |
Definition at line 581 of file MachineFunction.h.
Referenced by getVariableDbgInfo(), getVariableDbgInfo(), setVariableDbgInfo(), and setVariableDbgInfo().