|
| | SBVecContext (llvm::LLVMContext &LLVMCtx) |
| Public Member Functions inherited from llvm::sandboxir::Context |
| | Context (LLVMContext &LLVMCtx) |
| | Context (const Context &)=delete |
| Context & | operator= (const Context &)=delete |
| virtual | ~Context () |
| void | clear () |
| | Clears function-level state.
|
| cl::LibraryOptionsContext & | getLibraryOptions () const |
| Tracker & | getTracker () |
| void | save () |
| | Convenience function for getTracker().save()
|
| void | revert (bool RevertAll=false) |
| | Convenience function for getTracker().revert()
|
| void | accept (bool AcceptAll=false) |
| | Convenience function for getTracker().accept()
|
| sandboxir::Value * | getValue (llvm::Value *V) const |
| const sandboxir::Value * | getValue (const llvm::Value *V) const |
| Module * | getModule (llvm::Module *LLVMM) const |
| Module * | getOrCreateModule (llvm::Module *LLVMM) |
| Type * | getType (llvm::Type *LLVMTy) |
| Function * | createFunction (llvm::Function *F) |
| | Create a sandboxir::Function for an existing LLVM IR F, including all blocks and instructions.
|
| Module * | createModule (llvm::Module *LLVMM) |
| | Create a sandboxir::Module corresponding to LLVMM.
|
| size_t | getNumValues () const |
| | \Returns the number of values registered with Context.
|
| CallbackID | registerEraseInstrCallback (EraseInstrCallback CB, StringRef CBName, bool AllowDuplicateNames=false, std::optional< CallbackID > BeforeID=std::nullopt) |
| | Register a callback that gets called when a SandboxIR instruction is about to be removed from its parent.
|
| void | unregisterEraseInstrCallback (CallbackID ID) |
| CallbackID | registerCreateInstrCallback (CreateInstrCallback CB, StringRef CBName, bool AllowDuplicateNames=false, std::optional< CallbackID > BeforeID=std::nullopt) |
| | Register a callback that gets called right after a SandboxIR instruction is created.
|
| void | unregisterCreateInstrCallback (CallbackID ID) |
| CallbackID | registerMoveInstrCallback (MoveInstrCallback CB, StringRef CBName, bool AllowDuplicateNames=false, std::optional< CallbackID > BeforeID=std::nullopt) |
| | Register a callback that gets called when a SandboxIR instruction is about to be moved.
|
| void | unregisterMoveInstrCallback (CallbackID ID) |
| CallbackID | registerSetUseCallback (SetUseCallback CB, StringRef CBName, bool AllowDuplicateNames=false, std::optional< CallbackID > BeforeID=std::nullopt) |
| | Register a callback that gets called when a Use gets set.
|
| void | unregisterSetUseCallback (CallbackID ID) |
Definition at line 48 of file SandboxVectorizerIR.h.