Skip to content

Commit

Permalink
llvm 14 and above move TargetRegistry into MC (apache#9305)
Browse files Browse the repository at this point in the history
TEST=build with latest llvm
  • Loading branch information
powderluv authored and ylc committed Jan 13, 2022
1 parent ab1d442 commit 1f06c28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/target/llvm/llvm_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@
#include <llvm/Support/FileSystem.h>
#include <llvm/Support/Host.h>
#include <llvm/Support/MemoryBuffer.h>
#if TVM_LLVM_VERSION >= 140
#include <llvm/MC/TargetRegistry.h>
#else
#include <llvm/Support/TargetRegistry.h>
#endif
#include <llvm/Support/TargetSelect.h>
#include <llvm/Support/raw_ostream.h>
#include <llvm/Target/TargetMachine.h>
Expand Down

0 comments on commit 1f06c28

Please sign in to comment.