[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:14:08 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `llvm` at step 5 "build-unified-tree".

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

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 5 (build-unified-tree) failure: build (failure)
...
14.295 [256/34/17] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPreloadKernelArguments.cpp.o
14.346 [255/34/18] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPreloadKernArgProlog.cpp.o
14.667 [254/34/19] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAlwaysInlinePass.cpp.o
15.258 [253/34/20] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/GCNPreRALongBranchReg.cpp.o
15.267 [252/34/21] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUResourceUsageAnalysis.cpp.o
15.436 [251/34/22] Linking CXX executable bin/llvm-config
15.700 [250/34/23] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUReserveWWMRegs.cpp.o
15.713 [249/34/24] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPrepareAGPRAlloc.cpp.o
15.789 [248/34/25] Linking CXX executable bin/llvm-ctxprof-util
16.270 [247/34/26] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMCInstLower.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMCInstLower.cpp.o 
/opt/ccache/bin/g++ -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/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/Target/AMDGPU -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/AMDGPU -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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 -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/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
In file included from /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:28: error: ‘MCContext’ does not name a type
   28 |   MCContext &Ctx;
      | 
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:29: error: ‘TargetSubtargetInfo’ does not name a type
   29 |   const TargetSubtargetInfo &ST;
      | 
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:30: error: ‘AsmPrinter’ does not name a type
   30 |   const AsmPrinter &AP;
      | 
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:33: error: expected ‘)’ before ‘&’ token
   33 |   AMDGPUMCInstLower(MCContext &ctx, const TargetSubtargetInfo &ST,
      | 
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:36: error: ‘MCOperand’ has not been declared
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:39: error: ‘MCInst’ has not been declared
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:41: error: ‘MCInst’ has not been declared
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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,
      | 
In file included from /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:27: note: candidates are: ‘constexpr AMDGPUMCInstLower::AMDGPUMCInstLower(AMDGPUMCInstLower&&)’
   27 | class AMDGPUMCInstLower {
      | 
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:27: note:                 ‘constexpr AMDGPUMCInstLower::AMDGPUMCInstLower(const AMDGPUMCInstLower&)’
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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