[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:22:04 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `ml-opt-devrel-x86-64` running on `ml-opt-devrel-x86-64-b1` while building `llvm` at step 5 "build-unified-tree".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/175/builds/23918
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (build-unified-tree) failure: build (failure)
...
89.074 [24/63/3854] Building CXX object tools/sancov/CMakeFiles/sancov.dir/sancov.cpp.o
89.078 [24/62/3855] Building CXX object tools/sancov/CMakeFiles/sancov.dir/sancov-driver.cpp.o
89.095 [23/62/3856] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o
89.095 [23/61/3857] Copying llvm-locstats into /b/ml-opt-devrel-x86-64-b1/build/./bin
89.116 [23/60/3858] Linking CXX executable bin/llvm-objdump
89.164 [22/60/3859] Generating ../../bin/llvm-otool
89.479 [22/59/3860] Linking CXX executable bin/llvm-profgen
89.982 [22/58/3861] Linking CXX executable bin/llvm-rtdyld
90.110 [22/57/3862] Linking CXX executable bin/sancov
110.664 [22/56/3863] 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++ -DCPUINFO_SUPPORTED_PLATFORM=1 -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/b/ml-opt-devrel-x86-64-b1/build/lib/Target/AMDGPU -I/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU -I/var/lib/buildbot/.local/lib/python3.7/site-packages/tensorflow/include -I/b/ml-opt-devrel-x86-64-b1/build/include -I/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include -isystem /tmp/tflitebuild/tensorflow/include -isystem /tmp/tflitebuild/eigen/include/eigen3 -isystem /tmp/tflitebuild/abseil-cpp/include -isystem /tmp/tflitebuild/flatbuffers/include -isystem /tmp/tflitebuild/gemmlowp/include/gemmlowp -isystem /tmp/tflitebuild/ml_dtypes/src/ml_dtypes -isystem /tmp/tflitebuild/ml_dtypes/src/ml_dtypes/ml_dtypes -isystem /tmp/tflitebuild/ruy/include -isystem /tmp/tflitebuild/cpuinfo/include -isystem /tmp/tflitebuild/ARM_NEON_2_x86_SSE/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 -fvisibility=hidden -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -DEIGEN_NEON_GEBP_NR=4 -DTFL_STATIC_LIBRARY_BUILD -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 /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/R600MCInstLower.cpp
In file included from /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:15:
/b/ml-opt-devrel-x86-64-b1/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
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:24:7: note: 'llvm::MCContext' declared here
24 | class MCContext;
| ^
/b/ml-opt-devrel-x86-64-b1/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
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include/llvm/Target/TargetMachine.h:64:7: note: 'llvm::TargetSubtargetInfo' declared here
64 | class TargetSubtargetInfo;
| ^
In file included from /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:15:
/b/ml-opt-devrel-x86-64-b1/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
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:23:7: note: 'llvm::AsmPrinter' declared here
23 | class AsmPrinter;
| ^
/b/ml-opt-devrel-x86-64-b1/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
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:24:7: note: 'llvm::MCContext' declared here
24 | class MCContext;
| ^
/b/ml-opt-devrel-x86-64-b1/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
/b/ml-opt-devrel-x86-64-b1/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