Skip to content

Commit

Permalink
Fix llvm-enabled build by adding missing intrinsics headers (apache#4575
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dmakarov authored and zhiics committed Dec 31, 2019
1 parent f1d9994 commit b849be4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/codegen/llvm/llvm_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@

#include <llvm/IR/Value.h>
#include <llvm/IR/Intrinsics.h>
#if TVM_LLVM_VERSION >= 100
#include <llvm/IR/IntrinsicsAMDGPU.h>
#include <llvm/IR/IntrinsicsARM.h>
#include <llvm/IR/IntrinsicsNVPTX.h>
#include <llvm/IR/IntrinsicsX86.h>
#endif
#include <llvm/IR/Argument.h>
#include <llvm/IR/BasicBlock.h>
#include <llvm/IR/Constants.h>
Expand All @@ -44,7 +50,6 @@
#include <llvm/IR/LLVMContext.h>
#include <llvm/IR/Module.h>
#include <llvm/IR/Type.h>
#include <llvm/IR/Intrinsics.h>
#include <llvm/IR/MDBuilder.h>
#include <llvm/IR/Verifier.h>

Expand Down

0 comments on commit b849be4

Please sign in to comment.