[llvm] [Offload] Introduce offload-tblgen and initial new API implementation (PR #108413)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 25 09:54:44 PST 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `offload` at step 5 "compile-openmp".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/9113
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (compile-openmp) failure: build (failure)
...
39.964 [21/25/2187] Optimizing LLVM bitcode libomptarget-nvptx-sm_75.bc
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/opt: WARNING: failed to create target machine for 'nvptx64-nvidia-cuda': unable to get target for 'nvptx64-nvidia-cuda', see --version and --triple.
39.970 [20/25/2188] Packaging LLVM offloading binary libomptarget-nvptx-sm_75.bc.out
39.995 [19/25/2189] Embedding LLVM offloading binary in devicertl-nvptx-sm_75.o
40.002 [19/24/2190] Building CXX object offload/src/CMakeFiles/omptarget.dir/DeviceImage.cpp.o
40.160 [19/23/2191] Optimizing LLVM bitcode libomptarget-nvptx-sm_80.bc
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/opt: WARNING: failed to create target machine for 'nvptx64-nvidia-cuda': unable to get target for 'nvptx64-nvidia-cuda', see --version and --triple.
40.164 [18/23/2192] Packaging LLVM offloading binary libomptarget-nvptx-sm_80.bc.out
40.183 [17/23/2193] Embedding LLVM offloading binary in devicertl-nvptx-sm_80.o
40.245 [17/22/2194] Building CXX object offload/tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/EntryPointGen.cpp.o
FAILED: offload/tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/EntryPointGen.cpp.o
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -DOMPT_SUPPORT=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/include -I/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/include -I/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -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 -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 -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT offload/tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/EntryPointGen.cpp.o -MF offload/tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/EntryPointGen.cpp.o.d -o offload/tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/EntryPointGen.cpp.o -c /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/tools/offload-tblgen/EntryPointGen.cpp
In file included from /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/tools/offload-tblgen/EntryPointGen.cpp:17:
In file included from /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/tools/offload-tblgen/GenCommon.hpp:11:
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/tools/offload-tblgen/RecordTypes.hpp:81:25: error: no matching constructor for initialization of 'EnumValueRec'
81 | vals.emplace_back(EnumValueRec{Val});
| ^ ~~~~~
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/tools/offload-tblgen/RecordTypes.hpp:64:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const llvm::Record *' to 'const EnumValueRec' for 1st argument
64 | class EnumValueRec {
| ^~~~~~~~~~~~
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/tools/offload-tblgen/RecordTypes.hpp:64:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const llvm::Record *' to 'EnumValueRec' for 1st argument
64 | class EnumValueRec {
| ^~~~~~~~~~~~
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/tools/offload-tblgen/RecordTypes.hpp:66:12: note: candidate constructor not viable: 1st argument ('const llvm::Record *') would lose const qualifier
66 | explicit EnumValueRec(Record *rec) : rec(rec) {}
| ^ ~~~~~~~~~~~
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/tools/offload-tblgen/RecordTypes.hpp:115:28: error: no matching conversion for functional-style cast from 'const llvm::Record *' to 'StructMemberRec'
115 | members.emplace_back(StructMemberRec(Member));
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/tools/offload-tblgen/RecordTypes.hpp:100:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const llvm::Record *' to 'const StructMemberRec' for 1st argument
100 | class StructMemberRec {
| ^~~~~~~~~~~~~~~
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/tools/offload-tblgen/RecordTypes.hpp:100:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const llvm::Record *' to 'StructMemberRec' for 1st argument
100 | class StructMemberRec {
| ^~~~~~~~~~~~~~~
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/tools/offload-tblgen/RecordTypes.hpp:102:12: note: candidate constructor not viable: 1st argument ('const llvm::Record *') would lose const qualifier
102 | explicit StructMemberRec(Record *rec) : rec(rec) {}
| ^ ~~~~~~~~~~~
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/tools/offload-tblgen/RecordTypes.hpp:133:18: error: assigning to 'BitsInit *' from 'const BitsInit *' discards qualifiers
133 | flags = rec->getValueAsBitsInit("flags");
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/tools/offload-tblgen/EntryPointGen.cpp:134:24: error: no matching constructor for initialization of 'FunctionRec'
134 | EmitValidationFunc(FunctionRec{R}, OS);
| ^ ~~~
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/tools/offload-tblgen/RecordTypes.hpp:192:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const llvm::Record *' to 'const FunctionRec' for 1st argument
192 | class FunctionRec {
| ^~~~~~~~~~~
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/tools/offload-tblgen/RecordTypes.hpp:192:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const llvm::Record *' to 'FunctionRec' for 1st argument
192 | class FunctionRec {
```
</details>
https://github.com/llvm/llvm-project/pull/108413
More information about the llvm-commits
mailing list