Representation of machine code for a single LLVM IR function.
Synopsis
Declared in <llvm/CodeGen/MachineFunction.h>
class MachineFunction;
Types
Name |
Description |
Argument number paired with the register used to pass it after lowering. |
|
Extra call‐site metadata for argument forwarding and call‐graph types. |
|
Global callee and target flags for a call instruction. |
|
PHI location that is also a debug‐info variable value during regalloc. |
|
Remaps a debug instruction‐reference from one def to another. |
|
Callback interface notified when instructions are inserted or removed. |
|
Fixed location of a variable that does not change during execution. |
Type Aliases
Name |
Description |
Map from call instructions to their additional call‐site info. |
|
Pair of instruction number and operand number. |
|
Capacity token used when allocating recycled MachineOperand arrays. |
|
Collection type for unchanging variable debug locations. |
|
Const iterator over the machine basic blocks in this function. |
|
Const reverse iterator over the machine basic block list. |
|
Iterator over the machine basic blocks in this function. |
|
Reverse iterator over the machine basic blocks in this function. |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy the MachineFunction and its owned machine IR. |
|
MachineFunctions are not assignable. |
Create a new MachineInstr which is a copy of |
|
Allocate a new MachineBasicBlock (prefer this over |
|
Allocate a new MachineInstr (prefer this over |
|
Discard and recompute MachineBasicBlock numbers for this function. |
|
Start tracking the arguments passed to the call |
|
Notes the global and target flags for a call site. |
|
Record annotations associated with a particular label. |
|
Add the specified symbol to the list of targets for Windows EH Continuation Guard. |
|
Append frame CFI instruction |
|
Provide the begin and end labels of an invoke style call and associate it with a try landing pad block. |
|
Add a new landing pad and extract EH info from its landingpad instruction. |
|
Add physical register |
|
Add the specified symbol to the list of valid longjmp targets for Windows Control Flow Guard. |
|
Adds the MBB to the internal numbering. Returns the unique number assigned to the MBB. |
|
Allocate an array of MachineOperands. This is only intended for use by internal MachineInstr functions. |
|
Allocate and initialize a register mask with |
|
Allocate a copy of shuffle mask |
|
Assign and return the next analysis block number. |
|
Assign IsBeginSection IsEndSection fields for basic blocks in this function. |
|
|
|
|
|
Return true if this function contains a call to eh_return. |
|
Return true if this function contains a call to _Unwind_Init. |
|
Clone target‐specific info |
|
Clone MachineFunctionInfo from |
|
Clones instruction or the whole instruction bundle |
|
Copy call‐site info from |
|
Allocate a string and populate it with the given external symbol name. |
|
Allocate and construct an extra info structure for a |
|
Deallocate an array of MachineOperands and recycle the memory. |
|
Delete the given MachineBasicBlock. |
|
Delete the given MachineInstr. |
|
dump ‐ Print the current MachineFunction to cerr, useful for debugger use. |
|
Return true if this function has no basic blocks. |
|
|
|
Ensure the function is at least |
|
|
|
Erase the call site info for call instruction |
|
Return an estimate of the function's code size, taking into account block and function alignment |
|
Return true if this function calls a "returns twice" function. |
|
Finalize partially emitted DBG_INSTR_REF debug instructions. |
|
|
|
getAlignment ‐ Return the alignment of the function. |
|
Return the numbering "epoch" of analysis block numbers. |
|
Return the MachineBasicBlock with block number |
|
Get the call site number for a begin label. |
|
Get the call site indexes for a landing pad EH symbol. |
|
Return the map from call instructions to their call‐site info. |
|
Iterates over the full set of call sites and their associated globals. |
|
Return the CodeView label annotations recorded for this function. |
|
|
|
Return the MCContext used by this machine function. |
|
Return the DataLayout attached to the Module associated to this MF. |
|
Returns the denormal handling type for the default rounding mode of the function. |
|
Returns a reference to a list of symbols that are targets for Windows EH Continuation Guard. |
|
Returns the collection of variables for which we have debug info and that have been assigned an entry value register. |
|
Return the id of the filter encoded by TyIds. This is function wide. |
|
Return a reference to the typeids encoding filters used in the current function. |
|
|
|
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. |
|
Return the LLVM function that this machine code represents |
|
getFunctionNumber ‐ Return a unique ID for the current function. |
|
Returns the collection of variables for which we have debug info and that have been assigned a stack slot. |
|
|
|
Return the number of |
|
Return the MCSymbol for the specified non‐empty jump table. |
|
|
|
Return a reference to the landing pad info for the current function. |
|
Return symbols immediately following calls to _setjmp in this function. |
|
|
|
Return one past the highest analysis block number assigned so far. |
|
getName ‐ Return the name of the corresponding LLVM function. |
|
Return the next instruction number for debug value tracking. |
|
getNumBlockIDs ‐ Return the number of MBB ID's allocated. |
|
Return the currently installed GlobalISel change observer. |
|
Return existing jump‐table info, or allocate one for |
|
Find or create an LandingPadInfo for the specified MachineBasicBlock. |
|
getPICBaseSymbol ‐ Return a function‐local symbol to represent the PIC base. |
|
Return the PseudoSourceValueManager for this function. |
|
Returns the preferred alignment which comes from the function attributes (optsize, minsize, prefalign) and TargetLowering. |
|
Return the map of basic‐block IDs to prefetch callsite indexes. |
|
|
|
|
|
Returns the Section this function belongs to. |
|
|
|
getTarget ‐ Return the target machine this machine code is compiled with |
|
Return the type id for the specified typeinfo. This is function wide. |
|
Return a reference to the C++ typeinfo for the current function. |
|
|
|
Get the index in wasm EH for a given landing pad. |
|
|
|
Notify delegates that |
|
Return true if any call site begin label has been recorded for EH. |
|
Return true if any landing‐pad EH symbol has call‐site indexes recorded. |
|
Return if there is any wasm exception handling. |
|
Returns true if this function has basic block sections enabled. |
|
Return true if the begin label has a call site number associated with it. |
|
Return true if the landing pad Eh symbol has an associated call site. |
|
Return true if this function has a Windows EH Continuation Guard target. |
|
Return true if this function uses EH funclets. |
|
Return true if this function uses EH scopes. |
|
Return true if this function contains FAKE_USE instructions. |
|
Returns true if the function contains any inline assembly. |
|
Returns true if the landing pad has an associate index in wasm EH. |
|
Returns true if the function contains Windows CFI instructions. |
|
Initialize the target‐specific MachineFunctionInfo for |
|
Insert |
|
Return true if this function was created by the machine outliner. |
|
Create a substitution from one instruction/operand value to another. |
|
Move call‐site info from |
|
True if this function needs frame moves for debug or exceptions. |
|
Print this MachineFunction to |
|
Append basic block |
|
Insert basic block |
|
|
|
|
|
Remove basic‐block number |
|
|
|
Replace all references to register |
|
Reset the instance as if it was just created. |
|
Reset the currently registered delegate ‐ otherwise assert. |
|
Find the underlying defining instruction/operand for a COPY in SSA form. |
|
Implementation helper for |
|
Set the alignment of the function. |
|
Set the basic‐block sections policy for this function. |
|
Map the begin label for a call site. |
|
Map the landing pad's EH symbol to the call site indexes. |
|
Set whether this function contains a call to eh_return. |
|
Set whether this function contains a call to _Unwind_Init. |
|
Set value of DebugInstrNumberingCount field. Avoid using this unless you're deserializing this data. |
|
Set the delegate. resetDelegate must be called before attempting to set. |
|
Set whether this function exposes a call to a "returns twice" function. |
|
Set whether this function has a Windows EH Continuation Guard target. |
|
Set whether this function uses EH funclets. |
|
Set whether this function uses EH scopes. |
|
Set whether this function contains FAKE_USE instructions. |
|
Set a flag that indicates that the function contains inline assembly. |
|
Set whether any Windows CFI instructions have been emitted in this function. |
|
Mark whether this function was created by the machine outliner. |
|
Install GlobalISel change observer |
|
Set the map of basic‐block IDs to prefetch callsite indexes. |
|
Indicates the Section this function belongs to. |
|
Set whether this function will use instruction referencing or not. |
|
|
|
Map the landing pad to its index. Used for Wasm exception handling. |
|
Should we be emitting segmented stack stuff for the function |
|
Determine whether, in the current machine configuration, we should use instruction referencing or not. |
|
Return the number of machine basic blocks in this function. |
|
Sort the basic blocks in this function using comparator |
|
|
|
Retarget tracked debug values from |
|
Tries to get the global and target flags for a call site, if the instruction is a call to a global. |
|
Returns true if the function's variable locations are tracked with instruction referencing. |
|
|
|
Display this function's CFG in a debugger graph viewer. |
|
Display this function's CFG labels without basic‐block contents. |
Static Member Functions
Name |
Description |
Return the pointer‐to‐member used by MachineBasicBlock::getNextNode(). |
Data Members
Name |
Description |
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. |
|
Map of debug instruction numbers to the position of their PHI instructions during register allocation. See DebugPHIRegallocPos. |
|
Substitutions recording where tracked debug values were redefined. |
|
Flag for whether this function contains DBG_VALUEs (false) or DBG_INSTR_REF (true). |
|
Debug locations for variables with a fixed address during execution. |
Static Data Members
Name |
Description |
A reserved operand number representing the instructions memory operand, for instructions that have a stack spill fused into them. |
Friends
Name |
Description |
Intrusive list traits for MachineInstr nodes owned by a MachineBasicBlock. |
Non-Member Functions
Name |
Description |
This version of the builder builds a DBG_VALUE or DBG_VALUE_LIST intrinsic for a MachineOperand. |
|
Build a DBG_VALUE for a register or a register‐indirect address. |
|
This version of the builder sets up the first operand as a destination virtual register. |
|
Builder interface. Specify how to create the initial instruction itself. |
|
Insert a NOP before a section‐leading EH pad so its LSDA offset is nonzero. |
|
Compute debug‐value and debug‐label histories for |
|
Compute uniformity information for a Machine IR function. |
|
Constrain a register operand to a given target register class. |
|
Constrain a register operand for a given instruction description. |
|
Create an aggressive anti‐dependence breaker. |
|
Create a critical‐path anti‐dependence breaker. |
|
Finalize instruction bundles in the specified MachineFunction. |
|
Compute EH scope membership for each basic block in a machine function. |
|
Return a virtual register for an incoming physical argument register. |
|
Return whether the function has an instrumented‐profile hash mismatch. |
|
Infer an alignment from machine pointer info for a memory access. |
|
Legalize generic instructions in |
|
Return an illegal instruction in |
|
Report an ISel failure for a specific instruction with a custom message. |
|
Report an ISel error as a missed optimization remark to the LLVMContext's diagnostic stream. Set the FailedISel MachineFunction property. |
|
Report an ISel warning as a missed optimization remark to the LLVMContext's diagnostic stream. |
|
Replaces all frame index virtual registers with physical registers. Uses the register scavenger to find an appropriate register to use. |
|
Returns true if machine function |
|
Sort the machine basic blocks of |
|
Compute a stable hash of machine function |
Created with MrDocs