|
clang 23.0.0git
|
Provides top-level interfaces for incremental compilation and execution. More...
#include "clang/Interpreter/Interpreter.h"
Public Member Functions | |
| virtual | ~Interpreter () |
| const ASTContext & | getASTContext () const |
| ASTContext & | getASTContext () |
| const CompilerInstance * | getCompilerInstance () const |
| CompilerInstance * | getCompilerInstance () |
| llvm::Expected< IncrementalExecutor & > | getExecutionEngine () |
| llvm::Expected< PartialTranslationUnit & > | Parse (llvm::StringRef Code) |
| llvm::Error | Execute (PartialTranslationUnit &T) |
| llvm::Error | ParseAndExecute (llvm::StringRef Code, Value *V=nullptr) |
| llvm::Error | Undo (unsigned N=1) |
| Undo N previous incremental inputs. | |
| llvm::Error | LoadDynamicLibrary (const char *name) |
| Link a dynamic library. | |
| llvm::Expected< llvm::orc::ExecutorAddr > | getSymbolAddress (GlobalDecl GD) const |
| llvm::Expected< llvm::orc::ExecutorAddr > | getSymbolAddress (llvm::StringRef IRName) const |
| llvm::Expected< llvm::orc::ExecutorAddr > | getSymbolAddressFromLinkerName (llvm::StringRef LinkerName) const |
| const IncrementalExecutorBuilder & | getIncrementalExecutorBuilder () const |
Static Public Member Functions | |
| static llvm::Expected< std::unique_ptr< Interpreter > > | create (std::unique_ptr< CompilerInstance > CI, std::unique_ptr< IncrementalExecutorBuilder > IEB=nullptr) |
| static llvm::Expected< std::unique_ptr< Interpreter > > | createWithCUDA (std::unique_ptr< CompilerInstance > CI, std::unique_ptr< CompilerInstance > DCI) |
Protected Member Functions | |
| Interpreter (std::unique_ptr< CompilerInstance > Instance, llvm::Error &Err, std::unique_ptr< IncrementalExecutorBuilder > IEB=nullptr, std::unique_ptr< clang::ASTConsumer > Consumer=nullptr) | |
| llvm::Error | CreateExecutor () |
| void | ResetExecutor () |
Friends | |
| class | Value |
Provides top-level interfaces for incremental compilation and execution.
Definition at line 98 of file Interpreter.h.
|
protected |
Definition at line 250 of file Interpreter.cpp.
References clang::C, CreateExecutor(), and Execute().
Referenced by create(), and getCompilerInstance().
|
virtual |
Definition at line 306 of file Interpreter.cpp.
References toString().
|
static |
Definition at line 350 of file Interpreter.cpp.
References Interpreter(), and clang::Runtimes.
Referenced by createWithCUDA().
|
protected |
Definition at line 482 of file Interpreter.cpp.
Referenced by Execute(), getExecutionEngine(), and Interpreter().
|
static |
Definition at line 371 of file Interpreter.cpp.
References create().
| llvm::Error clang::Interpreter::Execute | ( | PartialTranslationUnit & | T | ) |
Definition at line 502 of file Interpreter.cpp.
References CreateExecutor(), and clang::T.
Referenced by Interpreter(), and ParseAndExecute().
| ASTContext & clang::Interpreter::getASTContext | ( | ) |
Definition at line 430 of file Interpreter.cpp.
References clang::CompilerInstance::getASTContext(), and getCompilerInstance().
| const ASTContext & clang::Interpreter::getASTContext | ( | ) | const |
Definition at line 434 of file Interpreter.cpp.
References clang::CompilerInstance::getASTContext(), and getCompilerInstance().
Referenced by clang::Value::getASTContext().
| CompilerInstance * clang::Interpreter::getCompilerInstance | ( | ) |
Definition at line 416 of file Interpreter.cpp.
| const CompilerInstance * clang::Interpreter::getCompilerInstance | ( | ) | const |
Definition at line 417 of file Interpreter.cpp.
References getCompilerInstance(), and Interpreter().
Referenced by getASTContext(), getASTContext(), getCompilerInstance(), and Parse().
| llvm::Expected< IncrementalExecutor & > clang::Interpreter::getExecutionEngine | ( | ) |
Definition at line 421 of file Interpreter.cpp.
References CreateExecutor().
Referenced by LoadDynamicLibrary().
|
inline |
Definition at line 183 of file Interpreter.h.
| llvm::Expected< llvm::orc::ExecutorAddr > clang::Interpreter::getSymbolAddress | ( | GlobalDecl | GD | ) | const |
ExecutorAddr of a GlobalDecl. This interface uses the CodeGenModule's internal mangling cache to avoid recomputing the mangled name. Definition at line 546 of file Interpreter.cpp.
References getSymbolAddress().
Referenced by getSymbolAddress().
| llvm::Expected< llvm::orc::ExecutorAddr > clang::Interpreter::getSymbolAddress | ( | llvm::StringRef | IRName | ) | const |
ExecutorAddr of a given name as written in the IR. Definition at line 556 of file Interpreter.cpp.
References clang::IncrementalExecutor::IRName.
| llvm::Expected< llvm::orc::ExecutorAddr > clang::Interpreter::getSymbolAddressFromLinkerName | ( | llvm::StringRef | LinkerName | ) | const |
ExecutorAddr of a given name as written in the object file. Definition at line 566 of file Interpreter.cpp.
References clang::IncrementalExecutor::LinkerName.
| llvm::Error clang::Interpreter::LoadDynamicLibrary | ( | const char * | name | ) |
Link a dynamic library.
Definition at line 601 of file Interpreter.cpp.
References getExecutionEngine().
| llvm::Expected< PartialTranslationUnit & > clang::Interpreter::Parse | ( | llvm::StringRef | Code | ) |
Definition at line 449 of file Interpreter.cpp.
References getCompilerInstance(), clang::CompilerInstance::getDiagnostics(), clang::diag::Ignored, and clang::DiagnosticsEngine::setSeverity().
Definition at line 526 of file Interpreter.cpp.
References Execute(), clang::Parse, V, and Value.
|
inlineprotected |
Definition at line 142 of file Interpreter.h.
| llvm::Error clang::Interpreter::Undo | ( | unsigned | N = 1 | ) |
Undo N previous incremental inputs.
Definition at line 575 of file Interpreter.cpp.
|
friend |
Definition at line 99 of file Interpreter.h.
References Value.
Referenced by ParseAndExecute(), and Value.