[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:27:26 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `lldb-arm-ubuntu` running on `linaro-lldb-arm-ubuntu` while building `llvm` at step 4 "build".

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

Here is the relevant piece of the build log for the reference:
```
Step 4 (build) failure: build (failure)
...
26.029 [4423/55/1731] Building CXX object lib/MCA/CMakeFiles/LLVMMCA.dir/Pipeline.cpp.o
26.030 [4423/54/1732] Building CXX object lib/MCA/CMakeFiles/LLVMMCA.dir/Stages/DispatchStage.cpp.o
26.031 [4423/53/1733] Building CXX object lib/MCA/CMakeFiles/LLVMMCA.dir/Stages/EntryStage.cpp.o
26.050 [4423/52/1734] Building CXX object lib/MCA/CMakeFiles/LLVMMCA.dir/Stages/ExecuteStage.cpp.o
26.056 [4423/51/1735] Building CXX object lib/MCA/CMakeFiles/LLVMMCA.dir/Stages/InOrderIssueStage.cpp.o
26.057 [4423/50/1736] Building CXX object lib/MCA/CMakeFiles/LLVMMCA.dir/Stages/InstructionTables.cpp.o
26.060 [4423/49/1737] Building CXX object lib/MCA/CMakeFiles/LLVMMCA.dir/Stages/MicroOpQueueStage.cpp.o
26.074 [4423/48/1738] Building CXX object lib/MCA/CMakeFiles/LLVMMCA.dir/Stages/Stage.cpp.o
26.078 [4423/47/1739] Building CXX object lib/MCA/CMakeFiles/LLVMMCA.dir/Stages/RetireStage.cpp.o
26.164 [4423/46/1740] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCContext.cpp.o
FAILED: lib/MC/CMakeFiles/LLVMMC.dir/MCContext.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/lib/MC -I/home/tcwg-buildbot/worker/lldb-arm-ubuntu/llvm-project/llvm/lib/MC -I/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/include -I/home/tcwg-buildbot/worker/lldb-arm-ubuntu/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 /home/tcwg-buildbot/worker/lldb-arm-ubuntu/llvm-project/llvm/lib/MC/MCContext.cpp
../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,
      |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~
../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) {
      |                       ^          ~~~~~~~~~~~~~~~
../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);
      |              ^          ~~~~~~~~~~~~~~~
../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);
      |              ^          ~~~~~~~~~~~~~~~~
../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) {
      |                     ^          ~~~~~~~~~~~~~~~
../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) {
      |                     ^          ~~~~~~~~~~~~~~~
../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) {
      |                     ^          ~~~~~~~~~~~~~~~
../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) {
      |                     ^          ~~~~~~~~~~~~~~~
../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) {
      |                     ^          ~~~~~~~~~~~~~~~
../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) {
      |                     ^          ~~~~~~~~~~~~~~~
../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) {
      | ^
../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