LLVM 22.0.0git
|
#include "llvm/SandboxIR/Constant.h"
Static Public Member Functions | |
static LLVM_ABI BlockAddress * | get (Function *F, BasicBlock *BB) |
Return a BlockAddress for the specified function and basic block. | |
static LLVM_ABI BlockAddress * | get (BasicBlock *BB) |
Return a BlockAddress for the specified basic block. | |
static LLVM_ABI BlockAddress * | lookup (const BasicBlock *BB) |
Lookup an existing BlockAddress constant for the given BasicBlock. | |
static bool | classof (const sandboxir::Value *From) |
For isa/dyn_cast. | |
Static Public Member Functions inherited from llvm::sandboxir::Constant | |
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. |
Friends | |
class | Context |
Definition at line 1427 of file Constant.h.
|
inlinestatic |
For isa/dyn_cast.
Definition at line 1449 of file Constant.h.
References llvm::sandboxir::Value::getSubclassID().
|
static |
Return a BlockAddress for the specified basic block.
The basic block must be embedded into a function.
Definition at line 454 of file Constant.cpp.
References llvm::sandboxir::BasicBlock(), llvm::cast(), llvm::BlockAddress::get(), and llvm::BasicBlock::getContext().
|
static |
Return a BlockAddress for the specified function and basic block.
Definition at line 448 of file Constant.cpp.
References llvm::sandboxir::BasicBlock(), llvm::cast(), F, llvm::sandboxir::Constant::Function, and llvm::BlockAddress::get().
BasicBlock * llvm::sandboxir::BlockAddress::getBasicBlock | ( | ) | const |
Definition at line 469 of file Constant.cpp.
References llvm::sandboxir::BasicBlock(), llvm::cast(), llvm::sandboxir::Value::Ctx, and llvm::sandboxir::Value::Val.
Function * llvm::sandboxir::BlockAddress::getFunction | ( | ) | const |
Definition at line 464 of file Constant.cpp.
References llvm::cast(), llvm::sandboxir::Value::Ctx, llvm::sandboxir::Constant::Function, and llvm::sandboxir::Value::Val.
|
static |
Lookup an existing BlockAddress
constant for the given BasicBlock.
!BB->hasAddressTaken()
, otherwise the BlockAddress
. Definition at line 459 of file Constant.cpp.
References llvm::sandboxir::BasicBlock(), llvm::cast(), llvm::cast_or_null(), llvm::BasicBlock::getContext(), and llvm::BlockAddress::lookup().
|
friend |
Definition at line 1430 of file Constant.h.
References llvm::sandboxir::BasicBlock(), Context, F, llvm::sandboxir::Constant::Function, and LLVM_ABI.
Referenced by Context.