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] [refactor] LLVMProgramImpl code clean up: part-5 #5197

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion taichi/codegen/codegen_llvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "taichi/llvm/launch_arg_info.h"
#include "taichi/llvm/llvm_offline_cache.h"
#include "taichi/llvm/llvm_program.h"
#include "taichi/struct/struct_llvm.h"
#include "taichi/llvm/struct_llvm.h"
#include "taichi/util/file_sequence_writer.h"

TLANG_NAMESPACE_BEGIN
Expand Down
2 changes: 1 addition & 1 deletion taichi/codegen/codegen_llvm_quant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "taichi/codegen/codegen_llvm.h"

#include "taichi/ir/statements.h"
#include "taichi/struct/struct_llvm.h"
#include "taichi/llvm/struct_llvm.h"

TLANG_NAMESPACE_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion taichi/llvm/llvm_program.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "taichi/runtime/runtime.h"
#include "taichi/system/threading.h"
#include "taichi/struct/struct.h"
#include "taichi/struct/struct_llvm.h"
#include "taichi/llvm/struct_llvm.h"
#include "taichi/program/snode_expr_utils.h"
#include "taichi/system/memory_pool.h"
#include "taichi/program/program_impl.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifdef TI_WITH_LLVM
#include "taichi/struct/struct_llvm.h"
#include "taichi/llvm/struct_llvm.h"

#include "llvm/IR/Verifier.h"
#include "llvm/IR/IRBuilder.h"
Expand Down Expand Up @@ -363,5 +362,3 @@ llvm::Function *StructCompilerLLVM::create_function(llvm::FunctionType *ft,

} // namespace lang
} // namespace taichi

#endif //#ifdef TI_WITH_LLVM
3 changes: 0 additions & 3 deletions taichi/struct/struct_llvm.h → taichi/llvm/struct_llvm.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#ifdef TI_WITH_LLVM
// Codegen for the hierarchical data structure (LLVM)
#include "taichi/llvm/llvm_program.h"
#include "taichi/llvm/llvm_codegen_utils.h"
Expand Down Expand Up @@ -56,5 +55,3 @@ class StructCompilerLLVM : public StructCompiler, public LLVMModuleBuilder {

} // namespace lang
} // namespace taichi

#endif //#ifdef TI_WITH_LLVM
1 change: 0 additions & 1 deletion taichi/program/program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "taichi/program/extension.h"
#include "taichi/backends/cpu/codegen_cpu.h"
#include "taichi/struct/struct.h"
#include "taichi/struct/struct_llvm.h"
#include "taichi/backends/metal/api.h"
#include "taichi/backends/wasm/aot_module_builder_impl.h"
#include "taichi/runtime/program_impls/opengl/opengl_program.h"
Expand Down
2 changes: 1 addition & 1 deletion tests/cpp/codegen/refine_coordinates_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "taichi/program/compile_config.h"
#include "taichi/program/program.h"
#include "taichi/llvm/llvm_program.h"
#include "taichi/struct/struct_llvm.h"
#include "taichi/llvm/struct_llvm.h"

namespace taichi {

Expand Down