[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:51:50 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-sles-build-only` running on `rocm-worker-hw-04-sles` while building `offload` at step 5 "compile-openmp".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/11679

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 5 (compile-openmp) failure: build (failure)
...
19.509 [25/28/1739] Embedding LLVM offloading binary in devicertl-nvptx-sm_35.o
19.536 [25/27/1740] Optimizing LLVM bitcode libomptarget-amdgpu-gfx1151.bc
19.541 [24/27/1741] Optimizing LLVM bitcode libomptarget-amdgpu-gfx1153.bc
19.544 [23/27/1742] Packaging LLVM offloading binary libomptarget-amdgpu-gfx1151.bc.out
19.548 [22/27/1743] Building CXX object offload/src/CMakeFiles/omptarget.dir/DeviceImage.cpp.o
19.548 [22/26/1744] Packaging LLVM offloading binary libomptarget-amdgpu-gfx1153.bc.out
19.563 [21/26/1745] Embedding LLVM offloading binary in devicertl-amdgpu-gfx1151.o
19.564 [21/25/1746] Embedding LLVM offloading binary in devicertl-amdgpu-gfx1153.o
19.767 [21/24/1747] Building CXX object offload/liboffload/CMakeFiles/LLVMOffload.dir/src/OffloadLib.cpp.o
19.836 [21/23/1748] Building CXX object offload/tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/APIGen.cpp.o
FAILED: offload/tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/APIGen.cpp.o 
/home/botworker/bbot/builds/openmp-offload-sles-build/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/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/include -Iopenmp/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 -std=c++17 -MD -MT offload/tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/APIGen.cpp.o -MF offload/tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/APIGen.cpp.o.d -o offload/tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/APIGen.cpp.o -c /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/offload/tools/offload-tblgen/APIGen.cpp
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/offload/tools/offload-tblgen/APIGen.cpp:19:
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/offload/tools/offload-tblgen/GenCommon.hpp:11:
/home/botworker/bbot/builds/openmp-offload-sles-build/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/botworker/bbot/builds/openmp-offload-sles-build/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/botworker/bbot/builds/openmp-offload-sles-build/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/botworker/bbot/builds/openmp-offload-sles-build/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/botworker/bbot/builds/openmp-offload-sles-build/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/botworker/bbot/builds/openmp-offload-sles-build/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/botworker/bbot/builds/openmp-offload-sles-build/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/botworker/bbot/builds/openmp-offload-sles-build/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/botworker/bbot/builds/openmp-offload-sles-build/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/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/offload/tools/offload-tblgen/APIGen.cpp:205:20: error: no matching constructor for initialization of 'MacroRec'
  205 |       ProcessMacro(MacroRec{R}, OS);
      |                    ^       ~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/offload/tools/offload-tblgen/RecordTypes.hpp:29:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const llvm::Record *' to 'const MacroRec' for 1st argument
   29 | class MacroRec {
      |       ^~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/offload/tools/offload-tblgen/RecordTypes.hpp:29:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const llvm::Record *' to 'MacroRec' for 1st argument
   29 | class MacroRec {

```

</details>

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


More information about the llvm-commits mailing list