|
std::ostream & | print (std::ostream &os) const override |
|
auto * | parent () const |
|
auto | args () const |
|
auto | numParams () const |
|
auto | getParamType (int index) const |
|
auto | getReturnType () const |
|
bool | hasBody () const |
|
BasicBlock * | getEntryBlock () const |
| Gets the entry BB of the function or nullptr if it doesn't exist.
|
|
auto | body () const |
| Create a new basic block and add it to the function.
|
|
void | removeBlock (BasicBlock *block) |
|
AllocaInst * | createAlloca (Type *type) |
| Create an alloca instruction for the given type. This will be at the start of the entry BB of the function. If no entry BB exists, this will fail. More...
|
|
auto | isNoReturn () const |
|
void | setNoReturn () |
|
void | setExternalLinkage () |
|
bool | isExternalLinkage () const override |
|
void | printDot (std::ostream &os) const |
|
utils::Generator< BasicBlock * > | reversePostOrder () const |
|
utils::Generator< AllocaInst * > | allocas () const |
|
| User (Context &ctx, Type *type) |
|
auto | children () const |
|
auto | numChildren () const |
|
Value * | getChild (unsigned idx) const |
|
| Value (Context &ctx, Type *type) |
|
tir::Context & | ctx () |
|
auto | users () |
|
auto | users () const |
|
Type * | type () const |
|
void | addUser (User *user) |
|
void | removeUser (User *user) |
|
std::string_view | name () const |
|
auto | nameOpt () const |
|
void | replaceAllUsesWith (Value *newValue) |
|
void | setName (std::string_view name) |
|
std::ostream & | printName (std::ostream &os) const |
|
void | dump () const |
|
|
class | CompilationUnit |
|
class | BasicBlock |
|
Definition at line 144 of file Constant.h.
◆ createAlloca()
Create an alloca instruction for the given type. This will be at the start of the entry BB of the function. If no entry BB exists, this will fail.
- Parameters
-
type | The type of the alloca instruction. |
- Returns
- AllocaInst* The alloca instruction created.
Definition at line 196 of file Constant.h.
198 auto* inst = AllocaInst::Create(ctx(), type);
BasicBlock * getEntryBlock() const
Gets the entry BB of the function or nullptr if it doesn't exist.
References getEntryBlock().
The documentation for this class was generated from the following files: