From 813070014aa8996519ec469a98931d6939c7f65c Mon Sep 17 00:00:00 2001 From: Abhikrant Sharma Date: Wed, 10 Jan 2024 20:26:08 +0530 Subject: [PATCH] [LLVM] Update Host.h path (#16373) [LLVM] Update Host.h LLVM header path Due to LLVM PR https://github.com/llvm/llvm-project/pull/74261, Host.h has been moved to a new location in LLVM --- src/target/llvm/llvm_instance.cc | 4 ++++ src/target/llvm/llvm_module.cc | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/target/llvm/llvm_instance.cc b/src/target/llvm/llvm_instance.cc index 9e88222059..08ba34cc73 100644 --- a/src/target/llvm/llvm_instance.cc +++ b/src/target/llvm/llvm_instance.cc @@ -42,7 +42,11 @@ #include #include #include +#if TVM_LLVM_VERSION >= 180 +#include +#else #include +#endif #include #include #include diff --git a/src/target/llvm/llvm_module.cc b/src/target/llvm/llvm_module.cc index 4823f2c9ea..62ea797edd 100644 --- a/src/target/llvm/llvm_module.cc +++ b/src/target/llvm/llvm_module.cc @@ -41,7 +41,11 @@ #include #include #include +#if TVM_LLVM_VERSION >= 180 +#include +#else #include +#endif #include #include #include