LLVM 20.0.0git
|
Contains a list of sandboxir::Instruction's. More...
#include "llvm/SandboxIR/BasicBlock.h"
Public Types | |
using | iterator = BBIterator |
Public Types inherited from llvm::sandboxir::Value | |
enum class | ClassID : unsigned { DEF_VALUE , DEF_USER , DEF_CONST , 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 67 of file BasicBlock.h.
Definition at line 86 of file BasicBlock.h.
|
default |
Instruction & llvm::sandboxir::BasicBlock::back | ( | ) | const |
Definition at line 112 of file BasicBlock.cpp.
References assert(), and llvm::sandboxir::Value::Val.
BasicBlock::iterator llvm::sandboxir::BasicBlock::begin | ( | ) | const |
Definition at line 84 of file BasicBlock.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 121 of file BasicBlock.cpp.
References llvm::any_of(), llvm::sandboxir::Value::Ctx, llvm::Value::getName(), llvm::sandboxir::Context::getValue(), I, Name, OS, and llvm::sandboxir::Value::Val.
|
inline |
Definition at line 100 of file BasicBlock.h.
|
inline |
Definition at line 88 of file BasicBlock.h.
References llvm::sandboxir::Value::Ctx, and llvm::sandboxir::Value::Val.
Referenced by empty(), llvm::sandboxir::Instruction::insertInto(), llvm::sandboxir::InsertPosition::InsertPosition(), and rbegin().
Instruction & llvm::sandboxir::BasicBlock::front | ( | ) | const |
Definition at line 104 of file BasicBlock.cpp.
References assert(), getContext(), and llvm::sandboxir::Value::Val.
|
inline |
Definition at line 98 of file BasicBlock.h.
References llvm::sandboxir::Value::Ctx.
Referenced by front(), llvm::sandboxir::BlockAddress::get(), and llvm::sandboxir::BlockAddress::lookup().
Function * llvm::sandboxir::BasicBlock::getParent | ( | ) | const |
Definition at line 53 of file BasicBlock.cpp.
References llvm::sandboxir::Value::Ctx, F, llvm::sandboxir::Context::getValue(), and llvm::sandboxir::Value::Val.
Referenced by llvm::sandboxir::Instruction::getParent().
Instruction * llvm::sandboxir::BasicBlock::getTerminator | ( | ) | const |
Definition at line 98 of file BasicBlock.cpp.
References llvm::sandboxir::Value::Ctx, getTerminator(), llvm::sandboxir::Context::getValue(), and llvm::sandboxir::Value::Val.
Referenced by getTerminator().
|
inline |
Definition at line 92 of file BasicBlock.h.
References end().
|
inline |
Definition at line 95 of file BasicBlock.h.
References begin().
|
finalvirtual |
Should crash if there is something wrong with the instruction.
Implements llvm::sandboxir::Value.
Definition at line 156 of file BasicBlock.cpp.
References assert(), and llvm::sandboxir::Value::Val.
|
friend |
Definition at line 71 of file BasicBlock.h.
|
friend |
Definition at line 72 of file BasicBlock.h.