Skip to content

Commit 8130700

Browse files
abhikran-quicjunrushao
authored andcommitted
[LLVM] Update Host.h path (#16373)
[LLVM] Update Host.h LLVM header path Due to LLVM PR llvm/llvm-project#74261, Host.h has been moved to a new location in LLVM
1 parent e1d71b3 commit 8130700

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/target/llvm/llvm_instance.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@
4242
#include <llvm/Support/CodeGen.h>
4343
#include <llvm/Support/CommandLine.h>
4444
#include <llvm/Support/ErrorOr.h>
45+
#if TVM_LLVM_VERSION >= 180
46+
#include <llvm/TargetParser/Host.h>
47+
#else
4548
#include <llvm/Support/Host.h>
49+
#endif
4650
#include <llvm/Support/MemoryBuffer.h>
4751
#include <llvm/Support/SourceMgr.h>
4852
#include <llvm/Support/TargetSelect.h>

src/target/llvm/llvm_module.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@
4141
#include <llvm/IR/Module.h>
4242
#include <llvm/IRReader/IRReader.h>
4343
#include <llvm/Support/FileSystem.h>
44+
#if TVM_LLVM_VERSION >= 180
45+
#include <llvm/TargetParser/Host.h>
46+
#else
4447
#include <llvm/Support/Host.h>
48+
#endif
4549
#include <llvm/Support/SourceMgr.h>
4650
#include <llvm/Support/raw_ostream.h>
4751
#include <llvm/Target/TargetMachine.h>

0 commit comments

Comments
 (0)