[llvm] [CodeGen] Refactor rematerializer unit tests to reduce boilerplate (NFC) (PR #197575)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 10 07:00:57 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `llvm` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/56096
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
3.204 [3/9/61] Linking CXX executable unittests/Target/X86/X86Tests
3.408 [3/8/62] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
3.509 [3/7/63] Linking CXX executable unittests/tools/llvm-mca/LLVMMCATests
3.624 [3/6/64] Linking CXX executable unittests/tools/llvm-exegesis/LLVMExegesisTests
5.015 [3/5/65] Linking CXX executable tools/clang/unittests/Interpreter/ClangReplInterpreterTests
5.077 [3/4/66] Linking CXX executable tools/clang/unittests/Interpreter/ExceptionTests/ClangReplInterpreterExceptionTests
6.415 [3/3/67] Linking CXX executable tools/clang/unittests/AllClangUnitTests
6.890 [3/2/68] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DXContainerYAMLTest.cpp.o
7.105 [2/2/69] Linking CXX executable unittests/ObjectYAML/ObjectYAMLTests
9.004 [2/1/70] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/RematerializerTest.cpp.o
FAILED: unittests/CodeGen/CMakeFiles/CodeGenTests.dir/RematerializerTest.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/g++ -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/unittests/CodeGen -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/CodeGen -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/third-party/unittest/googletest/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/third-party/unittest/googlemock/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-array-bounds -Wno-stringop-overread -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 -UNDEBUG -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -Wno-suggest-override -std=c++17 -MD -MT unittests/CodeGen/CMakeFiles/CodeGenTests.dir/RematerializerTest.cpp.o -MF unittests/CodeGen/CMakeFiles/CodeGenTests.dir/RematerializerTest.cpp.o.d -o unittests/CodeGen/CMakeFiles/CodeGenTests.dir/RematerializerTest.cpp.o -c /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/CodeGen/RematerializerTest.cpp
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/CodeGen/RematerializerTest.cpp: In static member function ‘static void {anonymous}::RematerializerTest::SetUpTestCase()’:
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/CodeGen/RematerializerTest.cpp:96:5: error: ‘LLVMInitializeAMDGPUTargetInfo’ was not declared in this scope; did you mean ‘LLVMInitializeX86TargetInfo’?
96 | LLVMInitializeAMDGPUTargetInfo();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| LLVMInitializeX86TargetInfo
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/CodeGen/RematerializerTest.cpp:97:5: error: ‘LLVMInitializeAMDGPUTarget’ was not declared in this scope; did you mean ‘LLVMInitializeX86Target’?
97 | LLVMInitializeAMDGPUTarget();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| LLVMInitializeX86Target
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/CodeGen/RematerializerTest.cpp:98:5: error: ‘LLVMInitializeAMDGPUTargetMC’ was not declared in this scope; did you mean ‘LLVMInitializeX86TargetMC’?
98 | LLVMInitializeAMDGPUTargetMC();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| LLVMInitializeX86TargetMC
ninja: build stopped: subcommand failed.
```
</details>
https://github.com/llvm/llvm-project/pull/197575
More information about the llvm-commits
mailing list