Skip to content

Commit

Permalink
del extra header file in llvm_context_pass.h
Browse files Browse the repository at this point in the history
  • Loading branch information
galeselee committed Dec 23, 2022
1 parent 325732a commit bd6b58d
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions taichi/runtime/llvm/llvm_context_pass.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
#include "llvm/Analysis/TargetTransformInfo.h"
#pragma once

#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/IR/Function.h"
#include "llvm/Pass.h"
#include "llvm/IR/Module.h"
#include "llvm/IRReader/IRReader.h"
#include "llvm/Linker/Linker.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/Host.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/CodeGen.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Transforms/IPO.h"
#include "llvm/Transforms/IPO/PassManagerBuilder.h"
#include "llvm/IR/Instructions.h"
Expand All @@ -26,6 +17,7 @@
namespace taichi {
namespace lang {
using namespace llvm;
#if defined(TI_WITH_AMDGPU)
struct AMDGPUConvertAllocaInstAddressSpacePass : public FunctionPass {
static char ID;
AMDGPUConvertAllocaInstAddressSpacePass() : FunctionPass(ID) {}
Expand Down Expand Up @@ -126,6 +118,7 @@ struct AMDGPUConvertFuncParamAddressSpacePass : public ModulePass {

char AMDGPUConvertAllocaInstAddressSpacePass::ID = 0;
char AMDGPUConvertFuncParamAddressSpacePass::ID = 0;
#endif

} // namespace lang
} // namespace taichi
} // namespace taichi

0 comments on commit bd6b58d

Please sign in to comment.