[llvm-branch-commits] [flang] [llvm] [Flang] Add lowering for flang to mlir for thread_limit (PR #175791)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Jan 13 09:01:44 PST 2026


github-actions[bot] wrote:

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

* 97581 tests passed
* 1874 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/Frontend/CMakeFiles/LLVMFrontendTests.dir/OpenMPDecompositionTest.cpp.o</summary>

```
FAILED: unittests/Frontend/CMakeFiles/LLVMFrontendTests.dir/OpenMPDecompositionTest.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__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/unittests/Frontend -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/Frontend -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/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/Frontend/CMakeFiles/LLVMFrontendTests.dir/OpenMPDecompositionTest.cpp.o -MF unittests/Frontend/CMakeFiles/LLVMFrontendTests.dir/OpenMPDecompositionTest.cpp.o.d -o unittests/Frontend/CMakeFiles/LLVMFrontendTests.dir/OpenMPDecompositionTest.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/Frontend/OpenMPDecompositionTest.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/Frontend/OpenMPDecompositionTest.cpp:674:52: error: no viable conversion from 'omp::ExprTy' to 'ListT<Threadlim>' (aka 'SmallVector<omp::ExprTy, 0>')
674 |       {OMPC_thread_limit, omp::clause::ThreadLimit{omp::ExprTy{}}},
|                                                    ^~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1235:3: note: candidate constructor not viable: no known conversion from 'omp::ExprTy' to 'std::initializer_list<omp::ExprTy>' for 1st argument
1235 |   SmallVector(std::initializer_list<T> IL) : SmallVectorImpl<T>(N) {
|   ^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1245:3: note: candidate constructor not viable: no known conversion from 'omp::ExprTy' to 'const SmallVector<omp::ExprTy, 0> &' for 1st argument
1245 |   SmallVector(const SmallVector &RHS) : SmallVectorImpl<T>(N) {
|   ^           ~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1255:3: note: candidate constructor not viable: no known conversion from 'omp::ExprTy' to 'SmallVector<omp::ExprTy, 0> &&' for 1st argument
1255 |   SmallVector(SmallVector &&RHS) : SmallVectorImpl<T>(N) {
|   ^           ~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1260:3: note: candidate constructor not viable: no known conversion from 'omp::ExprTy' to 'SmallVectorImpl<omp::ExprTy> &&' for 1st argument
1260 |   SmallVector(SmallVectorImpl<T> &&RHS) : SmallVectorImpl<T>(N) {
|   ^           ~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1214:12: note: explicit constructor is not a candidate
1214 |   explicit SmallVector(size_t Size)
|            ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1230:12: note: explicit constructor is not a candidate
1230 |   explicit SmallVector(const iterator_range<RangeTy> &R)
|            ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1241:12: note: explicit constructor is not a candidate
1241 |   explicit SmallVector(ArrayRef<U> A) : SmallVectorImpl<T>(N) {
|            ^
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/175791


More information about the llvm-branch-commits mailing list