diff --git a/mlir/tools/mlir-tblgen/CMakeLists.txt b/mlir/tools/mlir-tblgen/CMakeLists.txt index 0835b6d27c71..0d9ece2f061e 100644 --- a/mlir/tools/mlir-tblgen/CMakeLists.txt +++ b/mlir/tools/mlir-tblgen/CMakeLists.txt @@ -1,4 +1,5 @@ set(LLVM_LINK_COMPONENTS + CodeGenTypes Demangle Support TableGen diff --git a/mlir/tools/mlir-tblgen/LLVMIRIntrinsicGen.cpp b/mlir/tools/mlir-tblgen/LLVMIRIntrinsicGen.cpp index 71bd51394c6e..4fa037aafde7 100644 --- a/mlir/tools/mlir-tblgen/LLVMIRIntrinsicGen.cpp +++ b/mlir/tools/mlir-tblgen/LLVMIRIntrinsicGen.cpp @@ -14,8 +14,8 @@ #include "mlir/TableGen/GenInfo.h" #include "llvm/ADT/SmallBitVector.h" +#include "llvm/CodeGen/MachineValueType.h" #include "llvm/Support/CommandLine.h" -#include "llvm/Support/MachineValueType.h" #include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/Regex.h" #include "llvm/Support/Signals.h" diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel index 7ed2f9ade937..08aea6d0555c 100644 --- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel @@ -7855,6 +7855,7 @@ cc_binary( ":MlirTableGenMain", ":Support", ":TableGen", + "//llvm:CodeGenTypes", "//llvm:Support", "//llvm:TableGen", "//llvm:TargetParser",