LLVM 20.0.0git
|
#include "llvm/SandboxIR/SandboxIR.h"
Static Public Member Functions | |
static bool | classof (const Value *From) |
Static Public Member Functions inherited from llvm::sandboxir::Instruction | |
static const char * | getOpcodeName (Opcode Opc) |
static bool | classof (const sandboxir::Value *From) |
For isa/dyn_cast. | |
Static Public Member Functions inherited from llvm::sandboxir::User | |
static bool | classof (const Value *From) |
For isa/dyn_cast. | |
Friends | |
class | CallInst |
class | InvokeInst |
class | CallBrInst |
Additional Inherited Members | |
Public Types inherited from llvm::sandboxir::Instruction | |
enum class | Opcode { OP , OPCODES , DEF_INSTR } |
Public Types inherited from llvm::sandboxir::User | |
using | op_iterator = OperandUseIterator |
using | const_op_iterator = OperandUseIterator |
using | op_range = iterator_range< op_iterator > |
using | const_op_range = iterator_range< const_op_iterator > |
Public Types inherited from llvm::sandboxir::Value | |
enum class | ClassID : unsigned { DEF_VALUE , DEF_USER , DEF_INSTR } |
using | use_iterator = UserUseIterator |
using | const_use_iterator = UserUseIterator |
using | user_iterator = mapped_iterator< sandboxir::UserUseIterator, UseToUser > |
using | const_user_iterator = user_iterator |
Protected Member Functions inherited from llvm::sandboxir::Instruction | |
Instruction (ClassID ID, Opcode Opc, llvm::Instruction *I, sandboxir::Context &SBCtx) | |
llvm::Instruction * | getTopmostLLVMInstruction () const |
A SandboxIR Instruction may map to multiple LLVM IR Instruction. | |
virtual SmallVector< llvm::Instruction *, 1 > | getLLVMInstrs () const =0 |
\Returns the LLVM IR Instructions that this SandboxIR maps to in program order. | |
Protected Member Functions inherited from llvm::sandboxir::User | |
User (ClassID ID, llvm::Value *V, Context &Ctx) | |
Use | getOperandUseDefault (unsigned OpIdx, bool Verify) const |
\Returns the Use edge that corresponds to OpIdx . | |
virtual Use | getOperandUseInternal (unsigned OpIdx, bool Verify) const =0 |
\Returns the Use for the OpIdx'th operand. | |
unsigned | getUseOperandNoDefault (const Use &Use) const |
The default implementation works only for single-LLVMIR-instruction Users and only if they match exactly the LLVM instruction. | |
virtual unsigned | getUseOperandNo (const Use &Use) const =0 |
\Returns the operand index of Use . | |
void | swapOperandsInternal (unsigned OpIdxA, unsigned OpIdxB) |
void | verifyUserOfLLVMUse (const llvm::Use &Use) const |
Protected Member Functions inherited from llvm::sandboxir::Value | |
void | clearValue () |
Value (ClassID SubclassID, llvm::Value *Val, Context &Ctx) | |
Value (const Value &)=delete | |
Disable copies. | |
Value & | operator= (const Value &)=delete |
Static Protected Member Functions inherited from llvm::sandboxir::Value | |
static const char * | getSubclassIDStr (ClassID ID) |
Protected Attributes inherited from llvm::sandboxir::Instruction | |
Opcode | Opc |
Protected Attributes inherited from llvm::sandboxir::Value | |
ClassID | SubclassID |
For isa/dyn_cast. | |
unsigned | UID |
A unique ID used for forming the name (used for debugging). | |
llvm::Value * | Val = nullptr |
The LLVM Value that corresponds to this SandboxIR Value. | |
Context & | Ctx |
All values point to the context. | |
Definition at line 1006 of file SandboxIR.h.
|
inline |
Definition at line 1067 of file SandboxIR.h.
References llvm::sandboxir::User::op_begin().
Referenced by arg_empty(), arg_size(), and args().
|
inline |
Definition at line 1068 of file SandboxIR.h.
References llvm::sandboxir::User::op_begin().
|
inline |
Definition at line 1081 of file SandboxIR.h.
References arg_begin(), and arg_end().
|
inline |
Definition at line 1069 of file SandboxIR.h.
References data_operands_end(), and getNumTotalBundleOperands().
Referenced by arg_empty(), arg_end(), arg_size(), and args().
|
inline |
Definition at line 1072 of file SandboxIR.h.
References arg_end().
|
inline |
Definition at line 1082 of file SandboxIR.h.
References arg_begin(), and arg_end().
Referenced by getArgOperand(), getArgOperandUse(), and setArgOperand().
|
inline |
Definition at line 1075 of file SandboxIR.h.
References arg_begin(), arg_end(), and llvm::make_range().
Referenced by hasArgument().
|
inline |
Definition at line 1078 of file SandboxIR.h.
References arg_begin(), arg_end(), and llvm::make_range().
Definition at line 1014 of file SandboxIR.h.
References From, and llvm::sandboxir::Instruction::Opc.
|
inline |
Definition at line 1025 of file SandboxIR.h.
References llvm::sandboxir::User::op_begin().
Referenced by data_operands_begin(), data_operands_empty(), data_operands_size(), and data_ops().
|
inline |
Definition at line 1026 of file SandboxIR.h.
References data_operands_begin().
|
inline |
Definition at line 1045 of file SandboxIR.h.
References data_operands_begin(), and data_operands_end().
|
inline |
Definition at line 1029 of file SandboxIR.h.
References llvm::sandboxir::User::op_begin(), and llvm::sandboxir::Value::Val.
Referenced by arg_end(), data_operands_empty(), data_operands_size(), and data_ops().
|
inline |
Definition at line 1034 of file SandboxIR.h.
References llvm::sandboxir::User::op_begin(), and llvm::sandboxir::Value::Val.
|
inline |
Definition at line 1048 of file SandboxIR.h.
References data_operands_begin(), and data_operands_end().
|
inline |
Definition at line 1039 of file SandboxIR.h.
References data_operands_begin(), data_operands_end(), and llvm::make_range().
|
inline |
Definition at line 1042 of file SandboxIR.h.
References data_operands_begin(), data_operands_end(), and llvm::make_range().
Definition at line 1084 of file SandboxIR.h.
References arg_size(), assert(), and llvm::sandboxir::User::getOperand().
Definition at line 1105 of file SandboxIR.h.
References llvm::sandboxir::Value::Val.
Definition at line 1097 of file SandboxIR.h.
References arg_size(), assert(), llvm::sandboxir::User::getOperandUse(), and Idx.
Definition at line 1093 of file SandboxIR.h.
References arg_size(), assert(), llvm::sandboxir::User::getOperandUse(), and Idx.
Function * CallBase::getCalledFunction | ( | ) | const |
Definition at line 746 of file SandboxIR.cpp.
References llvm::sandboxir::Value::Ctx, llvm::sandboxir::Context::getValue(), and llvm::sandboxir::Value::Val.
Value * CallBase::getCalledOperand | ( | ) | const |
Definition at line 737 of file SandboxIR.cpp.
References llvm::sandboxir::Value::Ctx, getCalledOperand(), llvm::sandboxir::Context::getValue(), and llvm::sandboxir::Value::Val.
Referenced by getCalledOperand().
Use CallBase::getCalledOperandUse | ( | ) | const |
Definition at line 741 of file SandboxIR.cpp.
References llvm::sandboxir::Value::Ctx, llvm::sandboxir::Context::getValue(), and llvm::sandboxir::Value::Val.
Referenced by setCalledOperand().
Function * CallBase::getCaller | ( | ) |
Definition at line 750 of file SandboxIR.cpp.
References llvm::sandboxir::Value::Ctx, llvm::sandboxir::Context::getValue(), and llvm::sandboxir::Value::Val.
Referenced by getCaller().
Definition at line 1121 of file SandboxIR.h.
References getCaller().
|
inline |
Definition at line 1133 of file SandboxIR.h.
References llvm::sandboxir::Value::Val.
Definition at line 1056 of file SandboxIR.h.
References assert(), isDataOperand(), and llvm::sandboxir::Value::Val.
|
inline |
Definition at line 1021 of file SandboxIR.h.
References llvm::sandboxir::Value::Val.
|
inline |
Definition at line 1128 of file SandboxIR.h.
References llvm::sandboxir::Value::Val.
|
inline |
Return the total number operands (not operand bundles) used by every operand bundle in this OperandBundleUser.
Definition at line 1063 of file SandboxIR.h.
References llvm::sandboxir::Value::Val.
Referenced by arg_end().
Definition at line 1108 of file SandboxIR.h.
References args(), and llvm::is_contained().
Definition at line 1102 of file SandboxIR.h.
References llvm::sandboxir::Value::Val.
Definition at line 1117 of file SandboxIR.h.
References llvm::sandboxir::Value::Val.
Definition at line 1051 of file SandboxIR.h.
References assert(), and llvm::sandboxir::Value::Val.
Referenced by getDataOperandNo().
|
inline |
Definition at line 1114 of file SandboxIR.h.
References llvm::sandboxir::Value::Val.
|
inline |
Definition at line 1136 of file SandboxIR.h.
References llvm::sandboxir::Value::Val.
|
inline |
Definition at line 1124 of file SandboxIR.h.
References llvm::sandboxir::Value::Val.
|
inline |
Definition at line 1127 of file SandboxIR.h.
References llvm::sandboxir::Value::Val.
Definition at line 1088 of file SandboxIR.h.
References arg_size(), assert(), and llvm::sandboxir::User::setOperand().
void CallBase::setCalledFunction | ( | Function * | F | ) |
Definition at line 754 of file SandboxIR.cpp.
References F, setCalledOperand(), and llvm::sandboxir::Value::Val.
|
inline |
Definition at line 1131 of file SandboxIR.h.
References getCalledOperandUse(), and llvm::sandboxir::Use::set().
Referenced by setCalledFunction().
|
friend |
Definition at line 1011 of file SandboxIR.h.
|
friend |
Definition at line 1009 of file SandboxIR.h.
|
friend |
Definition at line 1010 of file SandboxIR.h.