[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:11:49 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime-2` running on `rocm-worker-hw-02` while building `llvm` at step 5 "compile-openmp".

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

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

```
Step 5 (compile-openmp) failure: build (failure)
...
29.230 [82/61/4570] Copying llvm-locstats into /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/./bin
29.290 [82/60/4571] Linking CXX executable bin/llvm-objdump
29.299 [81/60/4572] Generating ../../bin/llvm-otool
29.308 [81/59/4573] Linking CXX executable bin/sancov
29.313 [81/58/4574] Linking CXX executable bin/llvm-rtdyld
29.339 [81/57/4575] Linking CXX executable bin/llvm-profgen
32.783 [81/56/4576] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAlwaysInlinePass.cpp.o
32.942 [81/55/4577] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMIRFormatter.cpp.o
33.010 [81/54/4578] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPreloadKernelArguments.cpp.o
33.064 [81/53/4579] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600MCInstLower.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600MCInstLower.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/builds/openmp-offload-amdgpu-runtime-2/llvm.build/lib/Target/AMDGPU -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/lib/Target/AMDGPU -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/include -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/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 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600MCInstLower.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600MCInstLower.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600MCInstLower.cpp.o -c /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/lib/Target/AMDGPU/R600MCInstLower.cpp
In file included from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:15:
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:28: error: ‘MCContext’ does not name a type
   28 |   MCContext &Ctx;
      | 
In file included from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:15:
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:29: error: ‘TargetSubtargetInfo’ does not name a type
   29 |   const TargetSubtargetInfo &ST;
      | 
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:30: error: ‘AsmPrinter’ does not name a type
   30 |   const AsmPrinter &AP;
      | 
In file included from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:15:
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:33: error: expected ‘)’ before ‘&’ token
   33 |   AMDGPUMCInstLower(MCContext &ctx, const TargetSubtargetInfo &ST,
      | 
In file included from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:15:
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/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/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:36: error: ‘MCOperand’ has not been declared
In file included from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:15:
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/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/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:39: error: ‘MCInst’ has not been declared
In file included from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:15:
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/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/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:41: error: ‘MCInst’ has not been declared
In file included from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:15:
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/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/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:26: error: expected ‘)’ before ‘&’ token
   26 |   R600MCInstLower(MCContext &ctx, const R600Subtarget &ST,
      | 

```

</details>

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


More information about the llvm-commits mailing list