[llvm] [OpenMP] Implement EnumSet container (PR #211323)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 24 05:57:12 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `bolt-x86_64-ubuntu-dylib` running on `bolt-worker` while building `llvm` at step 5 "build-bolt".

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

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

```
Step 5 (build-bolt) failure: build (failure)
...
7.044 [955/18/1290] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/InstCount.cpp.o
7.045 [954/18/1291] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/InstructionSimplify.cpp.o
7.048 [953/18/1292] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/KernelInfo.cpp.o
7.052 [952/18/1293] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyBranchProbabilityInfo.cpp.o
7.052 [951/18/1294] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LastRunTrackingAnalysis.cpp.o
7.055 [950/18/1295] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyCallGraph.cpp.o
7.056 [949/18/1296] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyBlockFrequencyInfo.cpp.o
7.061 [948/18/1297] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemDerefPrinter.cpp.o
7.062 [947/18/1298] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemoryBuiltins.cpp.o
7.065 [946/18/1299] Building CXX object lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/DirectiveNameParser.cpp.o
FAILED: lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/DirectiveNameParser.cpp.o 
ccache /usr/bin/c++ -DLLVM_EXPORTS -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/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/build/lib/Frontend/OpenMP -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/lib/Frontend/OpenMP -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/build/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/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 -fno-exceptions -funwind-tables -fno-rtti -std=c++17 -MD -MT lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/DirectiveNameParser.cpp.o -MF lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/DirectiveNameParser.cpp.o.d -o lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/DirectiveNameParser.cpp.o -c /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/lib/Frontend/OpenMP/DirectiveNameParser.cpp
In file included from /usr/include/c++/11/cassert:44,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/ADT/Bitset.h:21,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/Frontend/OpenMP/OMP.h:20,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/Frontend/OpenMP/DirectiveNameParser.h:15,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/lib/Frontend/OpenMP/DirectiveNameParser.cpp:9:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/Frontend/OpenMP/OMP.h: In member function ‘constexpr Enum llvm::omp::detail::EnumSetIterator<Enum, Size>::operator*() const’:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/Frontend/OpenMP/OMP.h:138:14: error: ‘const llvm::omp::EnumSet<Enum, Size>::Base’ has not been declared
  138 |   assert(Set.Base::test(At));
      |              ^~~~
7.065 [946/17/1300] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ModelUnderTrainingRunner.cpp.o
7.067 [946/16/1301] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemoryDependenceAnalysis.cpp.o
7.069 [946/15/1302] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemoryLocation.cpp.o
7.070 [946/14/1303] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemoryProfileInfo.cpp.o
7.071 [946/13/1304] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemorySSAUpdater.cpp.o
7.074 [946/12/1305] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemorySSA.cpp.o
7.076 [946/11/1306] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ModuleDebugInfoPrinter.cpp.o
7.082 [946/10/1307] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ModuleSummaryAnalysis.cpp.o
7.342 [946/9/1308] Building CXX object lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/OMPContext.cpp.o
FAILED: lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/OMPContext.cpp.o 
ccache /usr/bin/c++ -DLLVM_EXPORTS -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/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/build/lib/Frontend/OpenMP -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/lib/Frontend/OpenMP -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/build/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/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 -fno-exceptions -funwind-tables -fno-rtti -std=c++17 -MD -MT lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/OMPContext.cpp.o -MF lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/OMPContext.cpp.o.d -o lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/OMPContext.cpp.o -c /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/lib/Frontend/OpenMP/OMPContext.cpp
In file included from /usr/include/c++/11/cassert:44,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/ADT/Bitset.h:21,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/Frontend/OpenMP/OMP.h:20,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/Frontend/OpenMP/OMPConstants.h:19,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/Frontend/OpenMP/OMPContext.h:22,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/lib/Frontend/OpenMP/OMPContext.cpp:15:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/Frontend/OpenMP/OMP.h: In member function ‘constexpr Enum llvm::omp::detail::EnumSetIterator<Enum, Size>::operator*() const’:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/Frontend/OpenMP/OMP.h:138:14: error: ‘const llvm::omp::EnumSet<Enum, Size>::Base’ has not been declared
  138 |   assert(Set.Base::test(At));
      |              ^~~~
7.653 [946/8/1309] Building X86GenFastISel.inc...
7.717 [946/7/1310] Building X86GenGlobalISel.inc...
8.841 [946/6/1311] Building CXX object lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/OMP.cpp.o
FAILED: lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/OMP.cpp.o 
ccache /usr/bin/c++ -DLLVM_EXPORTS -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/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/build/lib/Frontend/OpenMP -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/lib/Frontend/OpenMP -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/build/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/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 -fno-exceptions -funwind-tables -fno-rtti -std=c++17 -MD -MT lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/OMP.cpp.o -MF lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/OMP.cpp.o.d -o lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/OMP.cpp.o -c /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/lib/Frontend/OpenMP/OMP.cpp
In file included from /usr/include/c++/11/cassert:44,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/ADT/Bitset.h:21,

```

</details>

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


More information about the llvm-commits mailing list