[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:18:43 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `lldb-aarch64-ubuntu` running on `linaro-lldb-aarch64-ubuntu` while building `llvm` at step 4 "build".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/23049
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (build) failure: build (failure)
...
120.549 [4701/7/2144] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPULegalizerInfo.cpp.o
120.804 [4700/7/2145] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMacroFusion.cpp.o
123.148 [4700/6/2146] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUImageIntrinsicOptimizer.cpp.o
125.396 [4700/5/2147] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPrepareAGPRAlloc.cpp.o
127.958 [4699/5/2148] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPULowerModuleLDSPass.cpp.o
128.307 [4699/4/2149] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUInstructionSelector.cpp.o
128.851 [4699/3/2150] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUSwLowerLDS.cpp.o
128.936 [4698/3/2151] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMemoryUtils.cpp.o
129.567 [4698/2/2152] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPULowerBufferFatPointers.cpp.o
131.298 [4697/2/2153] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMCInstLower.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMCInstLower.cpp.o
/usr/local/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/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/lib/Target/AMDGPU -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/llvm/lib/Target/AMDGPU -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/include -I/home/tcwg-buildbot/worker/lldb-aarch64-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 -std=c++17 -fvisibility=hidden -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/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
In file included from ../llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
../llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:28:3: error: unknown type name 'MCContext'; did you mean 'llvm::MCContext'?
28 | MCContext &Ctx;
| ^~~~~~~~~
| llvm::MCContext
../llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:24:7: note: 'llvm::MCContext' declared here
24 | class MCContext;
| ^
../llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:29:9: error: unknown type name 'TargetSubtargetInfo'; did you mean 'llvm::TargetSubtargetInfo'?
29 | const TargetSubtargetInfo &ST;
| ^~~~~~~~~~~~~~~~~~~
| llvm::TargetSubtargetInfo
../llvm-project/llvm/include/llvm/Target/TargetMachine.h:64:7: note: 'llvm::TargetSubtargetInfo' declared here
64 | class TargetSubtargetInfo;
| ^
In file included from ../llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
../llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:30:9: error: unknown type name 'AsmPrinter'; did you mean 'llvm::AsmPrinter'?
30 | const AsmPrinter &AP;
| ^~~~~~~~~~
| llvm::AsmPrinter
../llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:23:7: note: 'llvm::AsmPrinter' declared here
23 | class AsmPrinter;
| ^
../llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:33:21: error: unknown type name 'MCContext'; did you mean 'llvm::MCContext'?
33 | AMDGPUMCInstLower(MCContext &ctx, const TargetSubtargetInfo &ST,
| ^~~~~~~~~
| llvm::MCContext
../llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:24:7: note: 'llvm::MCContext' declared here
24 | class MCContext;
| ^
../llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:33:43: error: unknown type name 'TargetSubtargetInfo'; did you mean 'llvm::TargetSubtargetInfo'?
33 | AMDGPUMCInstLower(MCContext &ctx, const TargetSubtargetInfo &ST,
| ^~~~~~~~~~~~~~~~~~~
| llvm::TargetSubtargetInfo
../llvm-project/llvm/include/llvm/Target/TargetMachine.h:64:7: note: 'llvm::TargetSubtargetInfo' declared here
64 | class TargetSubtargetInfo;
| ^
```
</details>
https://github.com/llvm/llvm-project/pull/154769
More information about the llvm-commits
mailing list