File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed
compiler/src/iree/compiler/API/Internal Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ iree_cc_library(
2020 "Diagnostics.cpp"
2121 DEPS
2222 LLVMSupport
23+ LLVMTargetParser
2324 MLIRBuiltinToLLVMIRTranslation
2425 MLIRBytecodeWriter
2526 MLIRCAPIIR
Original file line number Diff line number Diff line change 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 ' ;
You can’t perform that action at this time.
0 commit comments