[llvm] [AMDGPU][NFC] Only include CodeGenPassBuilder.h where needed. (PR #154769)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 22 02:12:32 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-hip-vega20` running on `hip-vega20-0` while building `llvm` at step 3 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/25751
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 3 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/hip-build.sh --jobs=' (failure)
...
[4717/5235] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUSetWavePriority.cpp.o
[4718/5235] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUWaitSGPRHazards.cpp.o
[4719/5235] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/GCNILPSched.cpp.o
[4720/5235] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/GCNCreateVOPD.cpp.o
[4721/5235] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/GCNMinRegStrategy.cpp.o
[4722/5235] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/GCNDPPCombine.cpp.o
[4723/5235] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/GCNPreRAOptimizations.cpp.o
[4724/5235] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPreloadKernelArguments.cpp.o
[4725/5235] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMIRFormatter.cpp.o
[4726/5235] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMCInstLower.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMCInstLower.cpp.o
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fvisibility=hidden -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMCInstLower.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMCInstLower.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMCInstLower.cpp.o -c /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:28: error: ‘MCContext’ does not name a type
28 | MCContext &Ctx;
|
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:29: error: ‘TargetSubtargetInfo’ does not name a type
29 | const TargetSubtargetInfo &ST;
|
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:30: error: ‘AsmPrinter’ does not name a type
30 | const AsmPrinter &AP;
|
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:33: error: expected ‘)’ before ‘&’ token
33 | AMDGPUMCInstLower(MCContext &ctx, const TargetSubtargetInfo &ST,
|
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:36: error: ‘MachineOperand’ does not name a type
36 | bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const;
|
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:36: error: ‘MCOperand’ has not been declared
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:39: error: ‘MachineInstr’ does not name a type
39 | void lower(const MachineInstr *MI, MCInst &OutMI) const;
|
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:39: error: ‘MCInst’ has not been declared
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:41: error: ‘MachineInstr’ does not name a type
41 | void lowerT16D16Helper(const MachineInstr *MI, MCInst &OutMI) const;
|
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:41: error: ‘MCInst’ has not been declared
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:45: error: ‘MCExpr’ does not name a type
45 | static inline const MCExpr *lowerAddrSpaceCast(const TargetMachine &TM,
|
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:43: error: no declaration matches ‘AMDGPUMCInstLower::AMDGPUMCInstLower(llvm::MCContext&, const llvm::TargetSubtargetInfo&, const llvm::AsmPrinter&)’
43 | AMDGPUMCInstLower::AMDGPUMCInstLower(MCContext &ctx,
|
Step 7 (Building LLVM) failure: Building LLVM (failure)
...
[4717/5235] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUSetWavePriority.cpp.o
[4718/5235] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUWaitSGPRHazards.cpp.o
[4719/5235] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/GCNILPSched.cpp.o
[4720/5235] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/GCNCreateVOPD.cpp.o
[4721/5235] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/GCNMinRegStrategy.cpp.o
[4722/5235] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/GCNDPPCombine.cpp.o
[4723/5235] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/GCNPreRAOptimizations.cpp.o
[4724/5235] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPreloadKernelArguments.cpp.o
[4725/5235] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMIRFormatter.cpp.o
[4726/5235] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMCInstLower.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMCInstLower.cpp.o
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fvisibility=hidden -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMCInstLower.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMCInstLower.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMCInstLower.cpp.o -c /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:28: error: ‘MCContext’ does not name a type
28 | MCContext &Ctx;
|
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:29: error: ‘TargetSubtargetInfo’ does not name a type
29 | const TargetSubtargetInfo &ST;
|
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:30: error: ‘AsmPrinter’ does not name a type
30 | const AsmPrinter &AP;
|
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:33: error: expected ‘)’ before ‘&’ token
33 | AMDGPUMCInstLower(MCContext &ctx, const TargetSubtargetInfo &ST,
|
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:36: error: ‘MachineOperand’ does not name a type
36 | bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const;
|
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:36: error: ‘MCOperand’ has not been declared
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:39: error: ‘MachineInstr’ does not name a type
39 | void lower(const MachineInstr *MI, MCInst &OutMI) const;
|
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:39: error: ‘MCInst’ has not been declared
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:41: error: ‘MachineInstr’ does not name a type
41 | void lowerT16D16Helper(const MachineInstr *MI, MCInst &OutMI) const;
|
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:41: error: ‘MCInst’ has not been declared
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:45: error: ‘MCExpr’ does not name a type
45 | static inline const MCExpr *lowerAddrSpaceCast(const TargetMachine &TM,
|
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:43: error: no declaration matches ‘AMDGPUMCInstLower::AMDGPUMCInstLower(llvm::MCContext&, const llvm::TargetSubtargetInfo&, const llvm::AsmPrinter&)’
43 | AMDGPUMCInstLower::AMDGPUMCInstLower(MCContext &ctx,
|
```
</details>
https://github.com/llvm/llvm-project/pull/154769
More information about the llvm-commits
mailing list