LLVM 20.0.0git
|
Contains a list of sandboxir::Instruction's. More...
#include "llvm/SandboxIR/SandboxIR.h"
Public Types | |
using | iterator = BBIterator |
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 |
Static Public Member Functions | |
static bool | classof (const Value *From) |
For isa/dyn_cast. | |
Friends | |
class | Context |
class | Instruction |
Additional Inherited Members | |
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::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. | |
Contains a list of sandboxir::Instruction's.
Definition at line 558 of file SandboxIR.h.
Definition at line 577 of file SandboxIR.h.
|
default |
Instruction & BasicBlock::back | ( | ) | const |
Definition at line 1980 of file SandboxIR.cpp.
References assert(), getContext(), and llvm::sandboxir::Value::Val.
BasicBlock::iterator BasicBlock::begin | ( | ) | const |
Definition at line 1952 of file SandboxIR.cpp.
References assert(), llvm::BasicBlock::begin(), llvm::sandboxir::Value::Ctx, llvm::BasicBlock::empty(), llvm::sandboxir::Context::getValue(), I, and llvm::sandboxir::Value::Val.
|
finalvirtual |
Implements llvm::sandboxir::Value.
Definition at line 1989 of file SandboxIR.cpp.
References llvm::any_of(), llvm::sandboxir::Value::Ctx, llvm::Value::getName(), llvm::sandboxir::Context::getValue(), I, llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert(), Name, OS, and llvm::sandboxir::Value::Val.
|
inline |
Definition at line 591 of file SandboxIR.h.
|
inline |
Definition at line 579 of file SandboxIR.h.
References llvm::sandboxir::Value::Ctx, and llvm::sandboxir::Value::Val.
Referenced by llvm::sandboxir::CallInst::create(), llvm::sandboxir::CallBrInst::create(), llvm::sandboxir::InvokeInst::create(), llvm::sandboxir::BinaryOperator::create(), llvm::sandboxir::CastInst::create(), llvm::sandboxir::AllocaInst::create(), llvm::sandboxir::GetElementPtrInst::create(), llvm::sandboxir::AtomicCmpXchgInst::create(), llvm::sandboxir::CastInstImpl< Op >::create(), llvm::sandboxir::BinaryOperator::createWithCopiedFlags(), empty(), llvm::sandboxir::Instruction::insertInto(), llvm::sandboxir::Instruction::moveBefore(), and rbegin().
Instruction & BasicBlock::front | ( | ) | const |
Definition at line 1972 of file SandboxIR.cpp.
References assert(), getContext(), and llvm::sandboxir::Value::Val.
|
inline |
Definition at line 589 of file SandboxIR.h.
References llvm::sandboxir::Value::Ctx.
Function * BasicBlock::getParent | ( | ) | const |
Definition at line 1921 of file SandboxIR.cpp.
References llvm::sandboxir::Value::Ctx, F, llvm::sandboxir::Context::getValue(), and llvm::sandboxir::Value::Val.
Referenced by llvm::sandboxir::Instruction::getParent().
Instruction * BasicBlock::getTerminator | ( | ) | const |
Definition at line 1966 of file SandboxIR.cpp.
References llvm::sandboxir::Value::Ctx, getTerminator(), llvm::sandboxir::Context::getValue(), and llvm::sandboxir::Value::Val.
Referenced by getTerminator().
|
inline |
Definition at line 583 of file SandboxIR.h.
References end().
|
inline |
Definition at line 586 of file SandboxIR.h.
References begin().
|
inlinefinalvirtual |
Should crash if there is something wrong with the instruction.
Implements llvm::sandboxir::Value.
Definition at line 596 of file SandboxIR.h.
References assert(), and llvm::sandboxir::Value::Val.
|
friend |
Definition at line 562 of file SandboxIR.h.
|
friend |
Definition at line 563 of file SandboxIR.h.