LLVM 19.0.0git
|
#include "llvm/SandboxIR/SandboxIR.h"
Public Member Functions | |
Context (LLVMContext &LLVMCtx) | |
sandboxir::Value * | getValue (llvm::Value *V) const |
const sandboxir::Value * | getValue (const llvm::Value *V) const |
Function * | createFunction (llvm::Function *F) |
size_t | getNumValues () const |
\Returns the number of values registered with Context. | |
Protected Member Functions | |
Value * | registerValue (std::unique_ptr< Value > &&VPtr) |
Take ownership of VPtr and store it in LLVMValueToValueMap . | |
Value * | getOrCreateValueInternal (llvm::Value *V, llvm::User *U=nullptr) |
Argument * | getOrCreateArgument (llvm::Argument *LLVMArg) |
Value * | getOrCreateValue (llvm::Value *LLVMV) |
BasicBlock * | createBasicBlock (llvm::BasicBlock *BB) |
Protected Attributes | |
LLVMContext & | LLVMCtx |
DenseMap< llvm::Value *, std::unique_ptr< sandboxir::Value > > | LLVMValueToValueMap |
Maps LLVM Value to the corresponding sandboxir::Value. | |
Friends | |
class | BasicBlock |
Various leaf nodes. | |
Definition at line 618 of file SandboxIR.h.
|
inline |
Definition at line 650 of file SandboxIR.h.
|
protected |
Definition at line 386 of file SandboxIR.cpp.
References assert(), BasicBlock, getValue(), and registerValue().
Referenced by createFunction().
Function * Context::createFunction | ( | llvm::Function * | F | ) |
Definition at line 402 of file SandboxIR.cpp.
References assert(), createBasicBlock(), F, getOrCreateArgument(), getValue(), and registerValue().
|
inline |
\Returns the number of values registered with Context.
Definition at line 660 of file SandboxIR.h.
References LLVMValueToValueMap.
Referenced by llvm::sandboxir::Value::Value().
|
inlineprotected |
Definition at line 631 of file SandboxIR.h.
References LLVMValueToValueMap.
Referenced by createFunction().
|
inlineprotected |
Definition at line 641 of file SandboxIR.h.
References getOrCreateValueInternal().
|
protected |
Definition at line 356 of file SandboxIR.cpp.
References assert(), llvm::CallingConv::C, getOrCreateValueInternal(), getValue(), and LLVMValueToValueMap.
Referenced by getOrCreateValue(), and getOrCreateValueInternal().
|
inline |
Definition at line 653 of file SandboxIR.h.
References getValue().
Value * Context::getValue | ( | llvm::Value * | V | ) | const |
Definition at line 395 of file SandboxIR.cpp.
References LLVMValueToValueMap.
Referenced by llvm::sandboxir::BasicBlock::begin(), createBasicBlock(), createFunction(), llvm::sandboxir::Use::dump(), llvm::sandboxir::BasicBlock::dump(), llvm::sandboxir::Function::dump(), llvm::sandboxir::Use::get(), llvm::sandboxir::Function::getArg(), getOrCreateValueInternal(), llvm::sandboxir::BasicBlock::getParent(), llvm::sandboxir::BasicBlock::getTerminator(), getValue(), llvm::sandboxir::BBIterator::operator++(), llvm::sandboxir::Value::replaceUsesWithIf(), llvm::sandboxir::Value::use_begin(), llvm::sandboxir::Value::user_begin(), and llvm::sandboxir::User::verifyUserOfLLVMUse().
Take ownership of VPtr and store it in LLVMValueToValueMap
.
Definition at line 347 of file SandboxIR.cpp.
References assert(), and LLVMValueToValueMap.
Referenced by createBasicBlock(), and createFunction().
|
friend |
|
protected |
Definition at line 620 of file SandboxIR.h.
|
protected |
Maps LLVM Value to the corresponding sandboxir::Value.
Owns all SandboxIR objects.
Definition at line 624 of file SandboxIR.h.
Referenced by getNumValues(), getOrCreateArgument(), getOrCreateValueInternal(), getValue(), and registerValue().