13#ifndef LLVM_CLANG_LIB_INTERPRETER_WASM_H
14#define LLVM_CLANG_LIB_INTERPRETER_WASM_H
17#error "This requires emscripten."
21#include "llvm/ADT/SmallString.h"
36 createExecutor(llvm::orc::ThreadSafeContext &TSC,
47 llvm::Error
runCtors()
const override;
56 std::vector<std::string> StoredLLVMArgs;
Create a pre-configured CompilerInstance for incremental processing.
Common configuration and interface for incremental executor builders.
Exposes information about the current target.
llvm::Error configure(IncrementalCompilerBuilder &CB, const Options &Opts) override
Apply execution options and configure the compiler for this backend.
bool supportsJIT() const override
Probe whether this backend can JIT code for the host.
llvm::Expected< llvm::Triple > getHostJITTriple() const override
Return the host triple used by this backend.
llvm::Expected< llvm::orc::ExecutorAddr > getSymbolAddress(llvm::StringRef Name, SymbolNameKind NameKind) const override
llvm::Error addModule(PartialTranslationUnit &PTU) override
llvm::Error runCtors() const override
~WasmIncrementalExecutor() override
llvm::Error LoadDynamicLibrary(const char *name) override
llvm::Error removeModule(PartialTranslationUnit &PTU) override
llvm::Error cleanUp() override
WasmIncrementalExecutor(llvm::Error &Err, std::vector< std::string > LLVMArgs)
Top level wrappers for InstallAPI frontend operations.
Options passed to the backend when configuring execution.
The class keeps track of various objects created as part of processing incremental inputs.