|
LLVM
4.0.0
|
MI-level patchpoint operands. More...
#include <StackMaps.h>
Public Types | |
| enum | { IDPos, NBytesPos, TargetPos, NArgPos, CCPos, MetaEnd } |
| Enumerate the meta operands. More... | |
Public Member Functions | |
| PatchPointOpers (const MachineInstr *MI) | |
| bool | isAnyReg () const |
| bool | hasDef () const |
| uint64_t | getID () const |
| Return the ID for the given patchpoint. More... | |
| uint32_t | getNumPatchBytes () const |
| Return the number of patchable bytes the given patchpoint should emit. More... | |
| const MachineOperand & | getCallTarget () const |
| Returns the target of the underlying call. More... | |
| CallingConv::ID | getCallingConv () const |
| Returns the calling convention. More... | |
| unsigned | getArgIdx () const |
| uint32_t | getNumCallArgs () const |
| Return the number of call arguments. More... | |
| unsigned | getVarIdx () const |
| Get the operand index of the variable list of non-argument operands. More... | |
| unsigned | getStackMapStartIdx () const |
| Get the index at which stack map locations will be recorded. More... | |
| unsigned | getNextScratchIdx (unsigned StartIdx=0) const |
| Get the next scratch register operand index. More... | |
MI-level patchpoint operands.
MI patchpoint operations take the form: [<def>], <id>, <numBytes>, <target>, <numArgs>, <cc>, ...
IR patchpoint intrinsics do not have the <cc> operand because calling convention is part of the subclass data.
SD patchpoint nodes do not have a def operand because it is part of the SDValue.
Patchpoints following the anyregcc convention are handled specially. For these, the stack map also records the location of the return value and arguments.
Definition at line 70 of file StackMaps.h.
| anonymous enum |
Enumerate the meta operands.
| Enumerator | |
|---|---|
| IDPos | |
| NBytesPos | |
| TargetPos | |
| NArgPos | |
| CCPos | |
| MetaEnd | |
Definition at line 73 of file StackMaps.h.
|
explicit |
Definition at line 44 of file StackMaps.cpp.
References assert(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::isDef(), llvm::MachineOperand::isImplicit(), and isReg().
|
inline |
Definition at line 112 of file StackMaps.h.
References MetaEnd.
Referenced by getStackMapStartIdx().
|
inline |
Returns the calling convention.
Definition at line 108 of file StackMaps.h.
References CCPos, and llvm::MachineOperand::getImm().
Referenced by isAnyReg().
|
inline |
Returns the target of the underlying call.
Definition at line 103 of file StackMaps.h.
References TargetPos.
|
inline |
Return the ID for the given patchpoint.
Definition at line 95 of file StackMaps.h.
References llvm::MachineOperand::getImm(), and IDPos.
Get the next scratch register operand index.
Definition at line 59 of file StackMaps.cpp.
References assert(), getVarIdx(), and MI.
|
inline |
Return the number of call arguments.
Definition at line 115 of file StackMaps.h.
References llvm::MachineOperand::getImm(), llvm::MachineInstr::getOperand(), and NArgPos.
Referenced by getVarIdx().
|
inline |
Return the number of patchable bytes the given patchpoint should emit.
Definition at line 98 of file StackMaps.h.
References llvm::MachineOperand::getImm(), and NBytesPos.
Referenced by llvm::AArch64InstrInfo::getInstSizeInBytes(), and llvm::PPCInstrInfo::getInstSizeInBytes().
|
inline |
Get the index at which stack map locations will be recorded.
Arguments are not recorded unless the anyregcc convention is used.
Definition at line 127 of file StackMaps.h.
References getArgIdx(), getVarIdx(), and isAnyReg().
|
inline |
Get the operand index of the variable list of non-argument operands.
These hold the "live state".
Definition at line 121 of file StackMaps.h.
References getNumCallArgs(), and MetaEnd.
Referenced by foldPatchpoint(), getNextScratchIdx(), and getStackMapStartIdx().
|
inline |
Definition at line 92 of file StackMaps.h.
|
inline |
Definition at line 91 of file StackMaps.h.
References llvm::CallingConv::AnyReg, and getCallingConv().
Referenced by getStackMapStartIdx().
1.8.6