LLVM 19.0.0git
|
An LLLVM Instruction that has no SandboxIR equivalent class gets mapped to an OpaqueInstr. More...
#include "llvm/SandboxIR/SandboxIR.h"
Static Public Member Functions | |
static bool | classof (const sandboxir::Value *From) |
![]() | |
static const char * | getOpcodeName (Opcode Opc) |
static bool | classof (const sandboxir::Value *From) |
For isa/dyn_cast. | |
![]() | |
static bool | classof (const Value *From) |
For isa/dyn_cast. | |
Friends | |
class | Context |
raw_ostream & | operator<< (raw_ostream &OS, const sandboxir::OpaqueInst &OI) |
Additional Inherited Members | |
![]() | |
enum class | Opcode { DEF_VALUE , DEF_USER , OP , DEF_INSTR } |
![]() | |
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 > |
![]() | |
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 |
![]() | |
Instruction (ClassID ID, Opcode Opc, llvm::Instruction *I, sandboxir::Context &SBCtx) | |
![]() | |
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 |
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 | verifyUserOfLLVMUse (const llvm::Use &Use) const |
![]() | |
void | clearValue () |
Value (ClassID SubclassID, llvm::Value *Val, Context &Ctx) | |
![]() | |
static const char * | getSubclassIDStr (ClassID ID) |
![]() | |
Opcode | Opc |
![]() | |
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. | |
An LLLVM Instruction that has no SandboxIR equivalent class gets mapped to an OpaqueInstr.
Definition at line 537 of file SandboxIR.h.
|
inlinestatic |
Definition at line 548 of file SandboxIR.h.
References From.
|
overridevirtual |
Reimplemented from llvm::sandboxir::Instruction.
Definition at line 290 of file SandboxIR.cpp.
References llvm::dbgs(), and dump().
Referenced by dump().
|
overridevirtual |
Reimplemented from llvm::sandboxir::Instruction.
Definition at line 285 of file SandboxIR.cpp.
References llvm::sandboxir::Value::dumpCommonPrefix(), llvm::sandboxir::Value::dumpCommonSuffix(), and OS.
|
inlinefinalvirtual |
This is used by BasicBlock::iterator.
Implements llvm::sandboxir::Instruction.
Definition at line 554 of file SandboxIR.h.
\Returns the operand index of Use
.
Implements llvm::sandboxir::User.
Definition at line 551 of file SandboxIR.h.
References llvm::sandboxir::User::getUseOperandNoDefault().
|
inlinefinalvirtual |
Should crash if there is something wrong with the instruction.
Reimplemented from llvm::sandboxir::User.
Definition at line 556 of file SandboxIR.h.
|
friend |
Definition at line 542 of file SandboxIR.h.
|
friend |
Definition at line 559 of file SandboxIR.h.