[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:45 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 63271 tests passed
* 1618 tests skipped

All executed tests passed, but another part of the build **failed**. Click on a failure below to see the details.

<details>
<summary>[code=1] unittests/Frontend/CMakeFiles/LLVMFrontendTests.dir/OpenMPDecompositionTest.cpp.obj</summary>

```
FAILED: [code=1] unittests/Frontend/CMakeFiles/LLVMFrontendTests.dir/OpenMPDecompositionTest.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DLLVM_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iunittests\Frontend -IC:\_work\llvm-project\llvm-project\llvm\unittests\Frontend -Iinclude -IC:\_work\llvm-project\llvm-project\llvm\include -IC:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include -IC:\_work\llvm-project\llvm-project\third-party\unittest\googlemock\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -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 -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -MD -UNDEBUG -Wno-gnu-zero-variadic-macro-arguments /EHs-c- /GR- -Wno-suggest-override -std:c++17 /showIncludes /Founittests\Frontend\CMakeFiles\LLVMFrontendTests.dir\OpenMPDecompositionTest.cpp.obj /Fdunittests\Frontend\CMakeFiles\LLVMFrontendTests.dir\ -c -- C:\_work\llvm-project\llvm-project\llvm\unittests\Frontend\OpenMPDecompositionTest.cpp
C:\_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{}}},
|                                                    ^~~~~~~~~~~~~
C:\_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) {
|   ^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_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) {
|   ^           ~~~~~~~~~~~~~~~~~~~~~~
C:\_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) {
|   ^           ~~~~~~~~~~~~~~~~~
C:\_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) {
|   ^           ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_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)
|            ^
C:\_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)
|            ^
C:\_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