1 | #include "taichi/runtime/cpu/aot_module_builder_impl.h" |
---|---|
2 | |
3 | #include <algorithm> |
4 | |
5 | #include "taichi/codegen/cpu/codegen_cpu.h" |
6 | #include "taichi/runtime/llvm/launch_arg_info.h" |
7 | |
8 | namespace taichi::lang { |
9 | namespace cpu { |
10 | |
11 | LLVMCompiledKernel AotModuleBuilderImpl::compile_kernel(Kernel *kernel) { |
12 | auto cgen = |
13 | KernelCodeGenCPU(get_compile_config(), kernel, get_taichi_llvm_context()); |
14 | return cgen.compile_kernel_to_module(); |
15 | } |
16 | |
17 | } // namespace cpu |
18 | } // namespace taichi::lang |
19 |