[llvm] ARM: Thread float ABI through ARMSubtarget (NFC) (PR #212931)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 29 23:04:43 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 104279 tests passed
* 2449 tests skipped

All executed tests passed, but another part of the build **failed**. Click on a failure below to see the details.

<details>
<summary>unittests/Target/ARM/CMakeFiles/ARMTests.dir/MachineInstrTest.cpp.o</summary>

```
FAILED: unittests/Target/ARM/CMakeFiles/ARMTests.dir/MachineInstrTest.cpp.o
sccache /opt/llvm/bin/clang++ -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/gha/actions-runner/_work/llvm-project/llvm-project/build/unittests/Target/ARM -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/Target/ARM -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/ARM -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/Target/ARM -I/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googlemock/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -UNDEBUG -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -Wno-suggest-override -MD -MT unittests/Target/ARM/CMakeFiles/ARMTests.dir/MachineInstrTest.cpp.o -MF unittests/Target/ARM/CMakeFiles/ARMTests.dir/MachineInstrTest.cpp.o.d -o unittests/Target/ARM/CMakeFiles/ARMTests.dir/MachineInstrTest.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/Target/ARM/MachineInstrTest.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/Target/ARM/MachineInstrTest.cpp:89:16: error: no matching constructor for initialization of 'ARMSubtarget'
89 |   ARMSubtarget ST(TM->getTargetTriple(), std::string(TM->getTargetCPU()),
|                ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
90 |                   std::string(TM->getTargetFeatureString()),
|                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
91 |                   *static_cast<const ARMBaseTargetMachine *>(TM.get()), false);
|                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/ARM/ARMSubtarget.h:216:3: note: candidate constructor not viable: requires at least 6 arguments, but 5 were provided
216 |   ARMSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS,
|   ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
217 |                const ARMBaseTargetMachine &TM, bool IsLittle,
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
218 |                FloatABI::ABIType FloatABI, bool MinSize = false,
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
219 |                DenormalMode DM = DenormalMode::getIEEE());
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/ARM/ARMSubtarget.h:48:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
48 | class ARMSubtarget : public ARMGenSubtargetInfo {
|       ^~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/Target/ARM/MachineInstrTest.cpp:245:16: error: no matching constructor for initialization of 'ARMSubtarget'
245 |   ARMSubtarget ST(TM->getTargetTriple(), std::string(TM->getTargetCPU()),
|                ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
246 |                   std::string(TM->getTargetFeatureString()),
|                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
247 |                   *static_cast<const ARMBaseTargetMachine *>(TM.get()), false);
|                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/ARM/ARMSubtarget.h:216:3: note: candidate constructor not viable: requires at least 6 arguments, but 5 were provided
216 |   ARMSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS,
|   ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
217 |                const ARMBaseTargetMachine &TM, bool IsLittle,
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
218 |                FloatABI::ABIType FloatABI, bool MinSize = false,
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
219 |                DenormalMode DM = DenormalMode::getIEEE());
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/ARM/ARMSubtarget.h:48:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
48 | class ARMSubtarget : public ARMGenSubtargetInfo {
|       ^~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/Target/ARM/MachineInstrTest.cpp:344:16: error: no matching constructor for initialization of 'ARMSubtarget'
344 |   ARMSubtarget ST(TM->getTargetTriple(), std::string(TM->getTargetCPU()),
|                ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
345 |                   std::string(TM->getTargetFeatureString()),
|                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
346 |                   *static_cast<const ARMBaseTargetMachine *>(TM.get()), false);
|                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/ARM/ARMSubtarget.h:216:3: note: candidate constructor not viable: requires at least 6 arguments, but 5 were provided
216 |   ARMSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS,
|   ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
217 |                const ARMBaseTargetMachine &TM, bool IsLittle,
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
218 |                FloatABI::ABIType FloatABI, bool MinSize = false,
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
219 |                DenormalMode DM = DenormalMode::getIEEE());
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/ARM/ARMSubtarget.h:48:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
48 | class ARMSubtarget : public ARMGenSubtargetInfo {
|       ^~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/Target/ARM/MachineInstrTest.cpp:1050:16: error: no matching constructor for initialization of 'ARMSubtarget'
1050 |   ARMSubtarget ST(TM->getTargetTriple(), std::string(TM->getTargetCPU()),
|                ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1051 |                   std::string(TM->getTargetFeatureString()),
|                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1052 |                   *static_cast<const ARMBaseTargetMachine *>(TM.get()), false);
|                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/ARM/ARMSubtarget.h:216:3: note: candidate constructor not viable: requires at least 6 arguments, but 5 were provided
216 |   ARMSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS,
|   ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
217 |                const ARMBaseTargetMachine &TM, bool IsLittle,
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
218 |                FloatABI::ABIType FloatABI, bool MinSize = false,
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
219 |                DenormalMode DM = DenormalMode::getIEEE());
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/ARM/ARMSubtarget.h:48:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
48 | class ARMSubtarget : public ARMGenSubtargetInfo {
|       ^~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/Target/ARM/MachineInstrTest.cpp:1193:16: error: no matching constructor for initialization of 'ARMSubtarget'
1193 |   ARMSubtarget ST(TM->getTargetTriple(), std::string(TM->getTargetCPU()),
|                ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1194 |                   std::string(TM->getTargetFeatureString()),
|                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1195 |                   *static_cast<const ARMBaseTargetMachine *>(TM.get()), false);
|                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/ARM/ARMSubtarget.h:216:3: note: candidate constructor not viable: requires at least 6 arguments, but 5 were provided
216 |   ARMSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS,
|   ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
217 |                const ARMBaseTargetMachine &TM, bool IsLittle,
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
218 |                FloatABI::ABIType FloatABI, bool MinSize = false,
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
219 |                DenormalMode DM = DenormalMode::getIEEE());
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/ARM/ARMSubtarget.h:48:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
48 | class ARMSubtarget : public ARMGenSubtargetInfo {
|       ^~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/Target/ARM/MachineInstrTest.cpp:2073:16: error: no matching constructor for initialization of 'ARMSubtarget'
2073 |   ARMSubtarget ST(TM->getTargetTriple(), std::string(TM->getTargetCPU()),
|                ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2074 |                   std::string(TM->getTargetFeatureString()),
|                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2075 |                   *static_cast<const ARMBaseTargetMachine *>(TM.get()), false);
|                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/ARM/ARMSubtarget.h:216:3: note: candidate constructor not viable: requires at least 6 arguments, but 5 were provided
216 |   ARMSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS,
|   ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
217 |                const ARMBaseTargetMachine &TM, bool IsLittle,
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
218 |                FloatABI::ABIType FloatABI, bool MinSize = false,
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
219 |                DenormalMode DM = DenormalMode::getIEEE());
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/ARM/ARMSubtarget.h:48:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
48 | class ARMSubtarget : public ARMGenSubtargetInfo {
|       ^~~~~~~~~~~~
6 errors generated.
```
</details>
<details>
<summary>unittests/Target/ARM/CMakeFiles/ARMTests.dir/InstSizes.cpp.o</summary>

```
FAILED: unittests/Target/ARM/CMakeFiles/ARMTests.dir/InstSizes.cpp.o
sccache /opt/llvm/bin/clang++ -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/gha/actions-runner/_work/llvm-project/llvm-project/build/unittests/Target/ARM -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/Target/ARM -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/ARM -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/Target/ARM -I/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googlemock/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -UNDEBUG -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -Wno-suggest-override -MD -MT unittests/Target/ARM/CMakeFiles/ARMTests.dir/InstSizes.cpp.o -MF unittests/Target/ARM/CMakeFiles/ARMTests.dir/InstSizes.cpp.o.d -o unittests/Target/ARM/CMakeFiles/ARMTests.dir/InstSizes.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/Target/ARM/InstSizes.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/Target/ARM/InstSizes.cpp:88:16: error: no matching constructor for initialization of 'ARMSubtarget'
88 |   ARMSubtarget ST(TM->getTargetTriple(), std::string(TM->getTargetCPU()),
|                ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
89 |                   std::string(TM->getTargetFeatureString()),
|                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
90 |                   *static_cast<const ARMBaseTargetMachine *>(TM.get()), false);
|                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/ARM/ARMSubtarget.h:216:3: note: candidate constructor not viable: requires at least 6 arguments, but 5 were provided
216 |   ARMSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS,
|   ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
217 |                const ARMBaseTargetMachine &TM, bool IsLittle,
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
218 |                FloatABI::ABIType FloatABI, bool MinSize = false,
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
219 |                DenormalMode DM = DenormalMode::getIEEE());
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/ARM/ARMSubtarget.h:48:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
48 | class ARMSubtarget : public ARMGenSubtargetInfo {
|       ^~~~~~~~~~~~
1 error generated.
```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the llvm-commits mailing list