Skip to content

Commit

Permalink
[Backend][ROCm] Fix error when building TVM with LLVM 19 (#17141)
Browse files Browse the repository at this point in the history
* fix error when building with llvm>=19

* always need to include llvm/IR/Module.h
  • Loading branch information
mshr-h authored Jul 10, 2024
1 parent fd7c81d commit e41d554
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/target/llvm/codegen_amdgpu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#if TVM_LLVM_VERSION < 170
#include <llvm/Transforms/IPO/PassManagerBuilder.h>
#endif
#include <llvm/IR/Module.h>
#include <llvm/Transforms/Utils/Cloning.h>
#include <tvm/runtime/c_runtime_api.h>
#include <tvm/runtime/device_api.h>
Expand Down

0 comments on commit e41d554

Please sign in to comment.