Skip to content

Commit 21072b6

Browse files
authored
1 parent 34cf69e commit 21072b6

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

compiler/src/iree/compiler/API/Internal/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ iree_compiler_cc_library(
3535
"//compiler/src/iree/compiler/Tools:version",
3636
"//compiler/src/iree/compiler/Utils",
3737
"@llvm-project//llvm:Support",
38+
"@llvm-project//llvm:TargetParser",
3839
"@llvm-project//mlir:BuiltinToLLVMIRTranslation",
3940
"@llvm-project//mlir:BytecodeWriter",
4041
"@llvm-project//mlir:CAPIIR",

compiler/src/iree/compiler/API/Internal/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ iree_cc_library(
2020
"Diagnostics.cpp"
2121
DEPS
2222
LLVMSupport
23+
LLVMTargetParser
2324
MLIRBuiltinToLLVMIRTranslation
2425
MLIRBytecodeWriter
2526
MLIRCAPIIR

compiler/src/iree/compiler/API/Internal/CompilerDriver.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
#include "llvm/Support/SourceMgr.h"
6666
#include "llvm/Support/ThreadPool.h"
6767
#include "llvm/Support/ToolOutputFile.h"
68+
#include "llvm/TargetParser/Host.h"
6869
#include "mlir/Bytecode/BytecodeWriter.h"
6970
#include "mlir/CAPI/IR.h"
7071
#include "mlir/CAPI/Wrap.h"
@@ -1161,11 +1162,11 @@ void llvmVersionPrinter(llvm::raw_ostream &os) {
11611162
os << " with assertions";
11621163
#endif
11631164
#if LLVM_VERSION_PRINTER_SHOW_HOST_TARGET_INFO
1164-
std::string CPU = std::string(sys::getHostCPUName());
1165+
std::string CPU = std::string(llvm::sys::getHostCPUName());
11651166
if (CPU == "generic")
11661167
CPU = "(unknown)";
11671168
os << ".\n"
1168-
<< " Default target: " << sys::getDefaultTargetTriple() << '\n'
1169+
<< " Default target: " << llvm::sys::getDefaultTargetTriple() << '\n'
11691170
<< " Host CPU: " << CPU;
11701171
#endif
11711172
os << '\n';

third_party/llvm-project

Submodule llvm-project updated 1235 files

0 commit comments

Comments
 (0)