This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new e41d554308 [Backend][ROCm] Fix error when building TVM with LLVM 19 
(#17141)
e41d554308 is described below

commit e41d554308f165bf4730d7c33e4dd8914b6d7e6b
Author: Masahiro Hiramori <[email protected]>
AuthorDate: Thu Jul 11 01:18:43 2024 +0900

    [Backend][ROCm] Fix error when building TVM with LLVM 19 (#17141)
    
    * fix error when building with llvm>=19
    
    * always need to include llvm/IR/Module.h
---
 src/target/llvm/codegen_amdgpu.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/target/llvm/codegen_amdgpu.cc 
b/src/target/llvm/codegen_amdgpu.cc
index 80c2abb5f1..fafe718fee 100644
--- a/src/target/llvm/codegen_amdgpu.cc
+++ b/src/target/llvm/codegen_amdgpu.cc
@@ -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>

Reply via email to