[llvm] [CodeGen] Use temp symbol for MBBs (PR #95031)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 20 04:22:28 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `mlir-rocm-mi200` running on `mi200-buildbot` while building `llvm` at step 5 "build-check-mlir-build-only".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/177/builds/308

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-check-mlir-build-only) failure: build (failure)
...
18.819 [2087/58/2405] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/ModuloSchedule.cpp.o
18.837 [2086/58/2406] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/XCOFFObjectWriter.cpp.o
18.897 [2085/58/2407] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmLexer.cpp.o
18.995 [2084/58/2408] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCObjectFileInfo.cpp.o
19.041 [2083/58/2409] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/MachineInstr.cpp.o
19.062 [2082/58/2410] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCExpr.cpp.o
19.104 [2081/58/2411] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/GOFFAsmParser.cpp.o
19.258 [2080/58/2412] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCSection.cpp.o
19.301 [2079/58/2413] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCAsmInfo.cpp.o
19.302 [2078/58/2414] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCContext.cpp.o
FAILED: lib/MC/CMakeFiles/LLVMMC.dir/MCContext.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DBUILD_EXAMPLES -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vol/worker/mi200-buildbot/mlir-rocm-mi200/build/lib/MC -I/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/lib/MC -I/vol/worker/mi200-buildbot/mlir-rocm-mi200/build/include -I/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/MC/CMakeFiles/LLVMMC.dir/MCContext.cpp.o -MF lib/MC/CMakeFiles/LLVMMC.dir/MCContext.cpp.o.d -o lib/MC/CMakeFiles/LLVMMC.dir/MCContext.cpp.o -c /vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/lib/MC/MCContext.cpp
/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/lib/MC/MCContext.cpp:328:61: error: invalid operands to binary expression ('StringRef' and 'const Twine')
  328 |   return createRenamableSymbol(MAI->getPrivateLabelPrefix() << Name,
      |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~
/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/include/llvm/ADT/Twine.h:572:23: note: candidate function not viable: no known conversion from 'StringRef' to 'raw_ostream &' for 1st argument
  572 |   inline raw_ostream &operator<<(raw_ostream &OS, const Twine &RHS) {
      |                       ^          ~~~~~~~~~~~~~~~
/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/include/llvm/Support/raw_ostream.h:783:14: note: candidate function not viable: no known conversion from 'StringRef' to 'raw_ostream &' for 1st argument
  783 | raw_ostream &operator<<(raw_ostream &OS, std::nullopt_t);
      |              ^          ~~~~~~~~~~~~~~~
/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/include/llvm/Support/VersionTuple.h:191:14: note: candidate function not viable: no known conversion from 'StringRef' to 'raw_ostream &' for 1st argument
  191 | raw_ostream &operator<<(raw_ostream &Out, const VersionTuple &V);
      |              ^          ~~~~~~~~~~~~~~~~
/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/include/llvm/ADT/APInt.h:2128:21: note: candidate function not viable: no known conversion from 'StringRef' to 'raw_ostream &' for 1st argument
 2128 | inline raw_ostream &operator<<(raw_ostream &OS, const APInt &I) {
      |                     ^          ~~~~~~~~~~~~~~~
/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/include/llvm/MC/MCInst.h:241:21: note: candidate function not viable: no known conversion from 'StringRef' to 'raw_ostream &' for 1st argument
  241 | inline raw_ostream& operator<<(raw_ostream &OS, const MCOperand &MO) {
      |                     ^          ~~~~~~~~~~~~~~~
/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/include/llvm/MC/MCInst.h:246:21: note: candidate function not viable: no known conversion from 'StringRef' to 'raw_ostream &' for 1st argument
  246 | inline raw_ostream& operator<<(raw_ostream &OS, const MCInst &MI) {
      |                     ^          ~~~~~~~~~~~~~~~
/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/include/llvm/MC/MCExpr.h:138:21: note: candidate function not viable: no known conversion from 'StringRef' to 'raw_ostream &' for 1st argument
  138 | inline raw_ostream &operator<<(raw_ostream &OS, const MCExpr &E) {
      |                     ^          ~~~~~~~~~~~~~~~
/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/include/llvm/MC/MCLabel.h:49:21: note: candidate function not viable: no known conversion from 'StringRef' to 'raw_ostream &' for 1st argument
   49 | inline raw_ostream &operator<<(raw_ostream &OS, const MCLabel &Label) {
      |                     ^          ~~~~~~~~~~~~~~~
/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/include/llvm/MC/MCSymbol.h:437:21: note: candidate function not viable: no known conversion from 'StringRef' to 'raw_ostream &' for 1st argument
  437 | inline raw_ostream &operator<<(raw_ostream &OS, const MCSymbol &Sym) {
      |                     ^          ~~~~~~~~~~~~~~~
/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/include/llvm/Support/raw_ostream.h:437:1: note: candidate template ignored: requirement 'std::is_base_of_v<llvm::raw_ostream, llvm::StringRef>' was not satisfied [with OStream = StringRef, T = Twine]
  437 | operator<<(OStream &&OS, const T &Value) {
      | ^
/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/include/llvm/Support/raw_ostream.h:787:14: note: candidate template ignored: could not match 'const std::optional<T>' against 'const Twine'
  787 | raw_ostream &operator<<(raw_ostream &OS, const std::optional<T> &O) {
      |              ^
1 error generated.

```

https://github.com/llvm/llvm-project/pull/95031


More information about the llvm-commits mailing list