[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:58:13 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `amdgpu-offload-rhel-8-cmake-build-only` running on `rocm-docker-rhel-8` while building `llvm` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/204/builds/19544
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[7002/8031] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPURewriteUndefForPHI.cpp.o
[7003/8031] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUSelectionDAGInfo.cpp.o
[7004/8031] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUSetWavePriority.cpp.o
[7005/8031] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMIRFormatter.cpp.o
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMIRFormatter.cpp: In lambda function:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMIRFormatter.cpp:62: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘const int64_t’ {aka ‘const long int’} [-Wsign-compare]
if (Id == None)
[7006/8031] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPreloadKernArgProlog.cpp.o
[7007/8031] 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 -DLLVM_EXPORTS -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/amdgpu-offload-rhel-8-cmake-build-only/build/lib/Target/AMDGPU -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/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-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -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/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
In file included from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:28: error: ‘MCContext’ does not name a type
MCContext &Ctx;
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:29: error: ‘TargetSubtargetInfo’ does not name a type
const TargetSubtargetInfo &ST;
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:30: error: ‘AsmPrinter’ does not name a type; did you mean ‘iswprint_l’?
const AsmPrinter &AP;
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:33: error: expected ‘)’ before ‘&’ token
AMDGPUMCInstLower(MCContext &ctx, const TargetSubtargetInfo &ST,
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:36: error: ‘MachineOperand’ does not name a type
bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const;
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:36: error: ‘MCOperand’ has not been declared
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:39: error: ‘MachineInstr’ does not name a type
void lower(const MachineInstr *MI, MCInst &OutMI) const;
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:39: error: ‘MCInst’ has not been declared
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:41: error: ‘MachineInstr’ does not name a type
void lowerT16D16Helper(const MachineInstr *MI, MCInst &OutMI) const;
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:41: error: ‘MCInst’ has not been declared
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:45: error: ‘MCExpr’ does not name a type
static inline const MCExpr *lowerAddrSpaceCast(const TargetMachine &TM,
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:43: error: no declaration matches ‘AMDGPUMCInstLower::AMDGPUMCInstLower(llvm::MCContext&, const llvm::TargetSubtargetInfo&, const llvm::AsmPrinter&)’
AMDGPUMCInstLower::AMDGPUMCInstLower(MCContext &ctx,
In file included from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:27: note: candidates are: ‘constexpr AMDGPUMCInstLower::AMDGPUMCInstLower(AMDGPUMCInstLower&&)’
class AMDGPUMCInstLower {
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:27: note: ‘constexpr AMDGPUMCInstLower::AMDGPUMCInstLower(const AMDGPUMCInstLower&)’
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:27: note: ‘constexpr AMDGPUMCInstLower::AMDGPUMCInstLower()’
Step 7 (build cmake config) failure: build cmake config (failure)
...
[7002/8031] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPURewriteUndefForPHI.cpp.o
[7003/8031] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUSelectionDAGInfo.cpp.o
[7004/8031] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUSetWavePriority.cpp.o
[7005/8031] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMIRFormatter.cpp.o
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMIRFormatter.cpp: In lambda function:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMIRFormatter.cpp:62: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘const int64_t’ {aka ‘const long int’} [-Wsign-compare]
if (Id == None)
[7006/8031] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPreloadKernArgProlog.cpp.o
[7007/8031] 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 -DLLVM_EXPORTS -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/amdgpu-offload-rhel-8-cmake-build-only/build/lib/Target/AMDGPU -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/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-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -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/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
In file included from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:28: error: ‘MCContext’ does not name a type
MCContext &Ctx;
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:29: error: ‘TargetSubtargetInfo’ does not name a type
const TargetSubtargetInfo &ST;
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:30: error: ‘AsmPrinter’ does not name a type; did you mean ‘iswprint_l’?
const AsmPrinter &AP;
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:33: error: expected ‘)’ before ‘&’ token
AMDGPUMCInstLower(MCContext &ctx, const TargetSubtargetInfo &ST,
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:36: error: ‘MachineOperand’ does not name a type
bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const;
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:36: error: ‘MCOperand’ has not been declared
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:39: error: ‘MachineInstr’ does not name a type
void lower(const MachineInstr *MI, MCInst &OutMI) const;
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:39: error: ‘MCInst’ has not been declared
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:41: error: ‘MachineInstr’ does not name a type
void lowerT16D16Helper(const MachineInstr *MI, MCInst &OutMI) const;
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:41: error: ‘MCInst’ has not been declared
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:45: error: ‘MCExpr’ does not name a type
static inline const MCExpr *lowerAddrSpaceCast(const TargetMachine &TM,
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:43: error: no declaration matches ‘AMDGPUMCInstLower::AMDGPUMCInstLower(llvm::MCContext&, const llvm::TargetSubtargetInfo&, const llvm::AsmPrinter&)’
AMDGPUMCInstLower::AMDGPUMCInstLower(MCContext &ctx,
In file included from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:27: note: candidates are: ‘constexpr AMDGPUMCInstLower::AMDGPUMCInstLower(AMDGPUMCInstLower&&)’
class AMDGPUMCInstLower {
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:27: note: ‘constexpr AMDGPUMCInstLower::AMDGPUMCInstLower(const AMDGPUMCInstLower&)’
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:27: note: ‘constexpr AMDGPUMCInstLower::AMDGPUMCInstLower()’
```
</details>
https://github.com/llvm/llvm-project/pull/154769
More information about the llvm-commits
mailing list