LLVM 20.0.0git
|
#include "llvm/SandboxIR/Constant.h"
Static Public Member Functions | |
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. | |
Protected Member Functions | |
Constant (llvm::Constant *C, sandboxir::Context &SBCtx) | |
Constant (ClassID ID, llvm::Constant *C, sandboxir::Context &SBCtx) | |
Use | getOperandUseInternal (unsigned OpIdx, bool Verify) const override |
\Returns the Use for the OpIdx'th operand. | |
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 |
Friends | |
class | ConstantInt |
class | Function |
class | Context |
Definition at line 32 of file Constant.h.
|
inlineprotected |
Definition at line 34 of file Constant.h.
|
inlineprotected |
Definition at line 36 of file Constant.h.
|
inlinestatic |
|
overridevirtual |
Implements llvm::sandboxir::Value.
Reimplemented in llvm::sandboxir::Function, llvm::sandboxir::ConstantInt, llvm::sandboxir::ConstantFP, llvm::sandboxir::ConstantAggregateZero, llvm::sandboxir::ConstantPointerNull, llvm::sandboxir::UndefValue, llvm::sandboxir::PoisonValue, llvm::sandboxir::GlobalIFunc, llvm::sandboxir::GlobalVariable, llvm::sandboxir::NoCFIValue, llvm::sandboxir::DSOLocalEquivalent, and llvm::sandboxir::ConstantTokenNone.
Definition at line 19 of file Constant.cpp.
References llvm::sandboxir::Value::dumpCommonPrefix(), llvm::sandboxir::Value::dumpCommonSuffix(), and OS.
|
inlineoverrideprotectedvirtual |
\Returns the Use for the OpIdx'th
operand.
This is virtual to allow instructions to deviate from the LLVM IR operands, which is a requirement for sandboxir Instructions that consist of more than one LLVM Instruction.
Implements llvm::sandboxir::User.
Reimplemented in llvm::sandboxir::GlobalObject.
Definition at line 41 of file Constant.h.
References llvm::sandboxir::User::getOperandUseDefault(), and Verify.
|
inline |
Definition at line 56 of file Constant.h.
References llvm::sandboxir::Value::getContext().
\Returns the operand index of Use
.
Implements llvm::sandboxir::User.
Reimplemented in llvm::sandboxir::ConstantFP, llvm::sandboxir::ConstantAggregateZero, llvm::sandboxir::ConstantPointerNull, llvm::sandboxir::UndefValue, llvm::sandboxir::GlobalObject, llvm::sandboxir::NoCFIValue, llvm::sandboxir::DSOLocalEquivalent, llvm::sandboxir::ConstantTokenNone, and llvm::sandboxir::ConstantInt.
Definition at line 57 of file Constant.h.
References llvm::sandboxir::User::getUseOperandNoDefault().
|
inlineoverridevirtual |
Should crash if there is something wrong with the instruction.
Implements llvm::sandboxir::Value.
Reimplemented in llvm::sandboxir::Function, llvm::sandboxir::ConstantInt, llvm::sandboxir::ConstantFP, llvm::sandboxir::ConstantAggregateZero, llvm::sandboxir::ConstantPointerNull, llvm::sandboxir::UndefValue, llvm::sandboxir::PoisonValue, llvm::sandboxir::GlobalIFunc, llvm::sandboxir::GlobalVariable, llvm::sandboxir::NoCFIValue, llvm::sandboxir::DSOLocalEquivalent, and llvm::sandboxir::ConstantTokenNone.
Definition at line 61 of file Constant.h.
References assert(), and llvm::sandboxir::Value::Val.
|
friend |
Definition at line 38 of file Constant.h.
|
friend |
Definition at line 40 of file Constant.h.
|
friend |
Definition at line 39 of file Constant.h.