From e17d5a60be04cc6f3dc20ad89b286892d5084e87 Mon Sep 17 00:00:00 2001 From: anush elangovan Date: Sun, 17 Oct 2021 03:54:19 +0000 Subject: [PATCH] llvm 14 and above move TargetRegistry into MC TEST=build with latest llvm --- src/target/llvm/llvm_common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/target/llvm/llvm_common.h b/src/target/llvm/llvm_common.h index b967c7ad44e0..fcc44fb8f95c 100644 --- a/src/target/llvm/llvm_common.h +++ b/src/target/llvm/llvm_common.h @@ -72,7 +72,11 @@ #include #include #include +#if TVM_LLVM_VERSION >= 140 +#include +#else #include +#endif #include #include #include