[llvm] AMDGPU: Move AMDGPUTargetID to AMDGPUTargetParser (PR #205268)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 22 23:48:29 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
The build failed before running any tests. Click on a failure below to see the details.
<details>
<summary>lib/TargetParser/CMakeFiles/LLVMTargetParser.dir/AMDGPUTargetParser.cpp.o</summary>
```
FAILED: lib/TargetParser/CMakeFiles/LLVMTargetParser.dir/AMDGPUTargetParser.cpp.o
sccache /opt/llvm/bin/clang++ -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/lib/TargetParser -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/TargetParser -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/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 -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/TargetParser/CMakeFiles/LLVMTargetParser.dir/AMDGPUTargetParser.cpp.o -MF lib/TargetParser/CMakeFiles/LLVMTargetParser.dir/AMDGPUTargetParser.cpp.o.d -o lib/TargetParser/CMakeFiles/LLVMTargetParser.dir/AMDGPUTargetParser.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/TargetParser/AMDGPUTargetParser.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/TargetParser/AMDGPUTargetParser.cpp:714:10: error: no matching constructor for initialization of 'Triple'
714 | Triple TT(Parts[0], Parts[1], Parts[2], Parts[3]);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/TargetParser/Triple.h:381:12: note: candidate constructor not viable: no known conversion from 'llvm::StringRef' to 'const Twine' for 1st argument
381 | LLVM_ABI Triple(const Twine &ArchStr, const Twine &VendorStr,
| ^ ~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/TargetParser/Triple.h:383:12: note: candidate constructor not viable: no known conversion from 'llvm::StringRef' to 'ArchType' for 1st argument
383 | LLVM_ABI Triple(ArchType A, SubArchType SA = NoSubArch,
| ^ ~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/TargetParser/Triple.h:379:12: note: candidate constructor not viable: requires 3 arguments, but 4 were provided
379 | LLVM_ABI Triple(const Twine &ArchStr, const Twine &VendorStr,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
380 | const Twine &OSStr);
| ~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/TargetParser/Triple.h:385:12: note: candidate constructor not viable: requires 5 arguments, but 4 were provided
385 | LLVM_ABI Triple(ArchType A, SubArchType SA, VendorType V, OSType OS,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
386 | EnvironmentType E);
| ~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/TargetParser/Triple.h:387:12: note: candidate constructor not viable: requires 6 arguments, but 4 were provided
387 | LLVM_ABI Triple(ArchType A, SubArchType SA, VendorType V, OSType OS,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
388 | EnvironmentType E, ObjectFormatType OF);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/TargetParser/Triple.h:373:21: note: candidate constructor not viable: requires single argument 'Str', but 4 arguments were provided
373 | LLVM_ABI explicit Triple(std::string &&Str);
| ^ ~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/TargetParser/Triple.h:374:12: note: candidate constructor not viable: requires single argument 'Str', but 4 arguments were provided
374 | explicit Triple(StringRef Str) : Triple(Str.str()) {}
| ^ ~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/TargetParser/Triple.h:375:12: note: candidate constructor not viable: requires single argument 'Str', but 4 arguments were provided
375 | explicit Triple(const char *Str) : Triple(std::string(Str)) {}
| ^ ~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/TargetParser/Triple.h:376:12: note: candidate constructor not viable: requires single argument 'Str', but 4 arguments were provided
376 | explicit Triple(const std::string &Str) : Triple(std::string(Str)) {}
| ^ ~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/TargetParser/Triple.h:377:21: note: candidate constructor not viable: requires single argument 'Str', but 4 arguments were provided
377 | LLVM_ABI explicit Triple(const Twine &Str);
| ^ ~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/TargetParser/Triple.h:47:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 4 were provided
47 | class Triple {
| ^~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/TargetParser/Triple.h:47:7: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 4 were provided
47 | class Triple {
| ^~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/TargetParser/Triple.h:371:3: note: candidate constructor not viable: requires 0 arguments, but 4 were provided
371 | Triple() = default;
| ^
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/205268
More information about the llvm-commits
mailing list