Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[llvm] [aot] Split LlvmRuntimeExecutor from LlvmProgramImpl #5207

Merged
merged 12 commits into from
Jun 23, 2022
4 changes: 2 additions & 2 deletions taichi/llvm/llvm_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace lang {

using namespace llvm;

TaichiLLVMContext::TaichiLLVMContext(LlvmProgramImpl *llvm_prog, Arch arch)
TaichiLLVMContext::TaichiLLVMContext(CompileConfig *config, Arch arch)
: arch_(arch) {
TI_TRACE("Creating Taichi llvm context for arch: {}", arch_name(arch));
main_thread_id_ = std::this_thread::get_id();
Expand Down Expand Up @@ -94,7 +94,7 @@ TaichiLLVMContext::TaichiLLVMContext(LlvmProgramImpl *llvm_prog, Arch arch)
TI_NOT_IMPLEMENTED
#endif
}
jit = JITSession::create(this, llvm_prog->config, arch);
jit = JITSession::create(this, config, arch);
TI_TRACE("Taichi llvm context created.");
}

Expand Down
2 changes: 1 addition & 1 deletion taichi/llvm/llvm_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class TaichiLLVMContext {
// main_thread is defined to be the thread that runs the initializer
JITModule *runtime_jit_module{nullptr};

TaichiLLVMContext(LlvmProgramImpl *llvm_prog, Arch arch);
TaichiLLVMContext(CompileConfig *config, Arch arch);

virtual ~TaichiLLVMContext();

Expand Down
Loading