[llvm-branch-commits] [flang] [mlir] [Flang][mlir][OpenMP] Support affinity clause codegen in Flang (PR #182222)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Feb 24 12:47:15 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 3488 tests passed
* 399 tests skipped
All executed tests passed, but another part of the build **failed**. Click on a failure below to see the details.
<details>
<summary>tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/Decomposer.cpp.o</summary>
```
FAILED: tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/Decomposer.cpp.o
sccache /opt/llvm/bin/clang++ -DFLANG_INCLUDE_TESTS=1 -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/tools/flang/lib/Lower -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/../mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/../clang/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 -Wno-deprecated-copy -Wno-string-conversion -Wno-ctad-maybe-unsupported -Wno-unused-command-line-argument -Wstring-conversion -Wcovered-switch-default -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/Decomposer.cpp.o -MF tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/Decomposer.cpp.o.d -o tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/Decomposer.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/Decomposer.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/Decomposer.cpp:15:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/Utils.h:192:31: error: use of undeclared identifier 'hlfir'
192 | int64_t getElementBytesOrZero(hlfir::Entity entity, const mlir::DataLayout &dl);
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/Utils.h:200:56: error: use of undeclared identifier 'hlfir'
200 | const mlir::DataLayout &dl, hlfir::Entity entity,
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/Utils.h:215:35: error: use of undeclared identifier 'hlfir'
215 | hlfir::Entity entity,
| ^
3 errors generated.
```
</details>
<details>
<summary>tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/Utils.cpp.o</summary>
```
FAILED: tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/Utils.cpp.o
sccache /opt/llvm/bin/clang++ -DFLANG_INCLUDE_TESTS=1 -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/tools/flang/lib/Lower -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/../mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/../clang/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 -Wno-deprecated-copy -Wno-string-conversion -Wno-ctad-maybe-unsupported -Wno-unused-command-line-argument -Wstring-conversion -Wcovered-switch-default -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/Utils.cpp.o -MF tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/Utils.cpp.o.d -o tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/Utils.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/Utils.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/Utils.cpp:13:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/Utils.h:192:31: error: use of undeclared identifier 'hlfir'
192 | int64_t getElementBytesOrZero(hlfir::Entity entity, const mlir::DataLayout &dl);
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/Utils.h:200:56: error: use of undeclared identifier 'hlfir'
200 | const mlir::DataLayout &dl, hlfir::Entity entity,
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/Utils.h:215:35: error: use of undeclared identifier 'hlfir'
215 | hlfir::Entity entity,
| ^
3 errors generated.
```
</details>
<details>
<summary>tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/ClauseProcessor.cpp.o</summary>
```
FAILED: tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/ClauseProcessor.cpp.o
sccache /opt/llvm/bin/clang++ -DFLANG_INCLUDE_TESTS=1 -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/tools/flang/lib/Lower -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/../mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/../clang/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 -Wno-deprecated-copy -Wno-string-conversion -Wno-ctad-maybe-unsupported -Wno-unused-command-line-argument -Wstring-conversion -Wcovered-switch-default -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/ClauseProcessor.cpp.o -MF tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/ClauseProcessor.cpp.o.d -o tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/ClauseProcessor.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/ClauseProcessor.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/ClauseProcessor.cpp:13:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/ClauseProcessor.h:16:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/Utils.h:192:31: error: use of undeclared identifier 'hlfir'
192 | int64_t getElementBytesOrZero(hlfir::Entity entity, const mlir::DataLayout &dl);
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/Utils.h:200:56: error: use of undeclared identifier 'hlfir'
200 | const mlir::DataLayout &dl, hlfir::Entity entity,
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/Utils.h:215:35: error: use of undeclared identifier 'hlfir'
215 | hlfir::Entity entity,
| ^
3 errors generated.
```
</details>
<details>
<summary>tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/DataSharingProcessor.cpp.o</summary>
```
FAILED: tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/DataSharingProcessor.cpp.o
sccache /opt/llvm/bin/clang++ -DFLANG_INCLUDE_TESTS=1 -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/tools/flang/lib/Lower -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/../mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/../clang/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 -Wno-deprecated-copy -Wno-string-conversion -Wno-ctad-maybe-unsupported -Wno-unused-command-line-argument -Wstring-conversion -Wcovered-switch-default -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/DataSharingProcessor.cpp.o -MF tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/DataSharingProcessor.cpp.o.d -o tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/DataSharingProcessor.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/DataSharingProcessor.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/DataSharingProcessor.cpp:15:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/Utils.h:192:31: error: use of undeclared identifier 'hlfir'
192 | int64_t getElementBytesOrZero(hlfir::Entity entity, const mlir::DataLayout &dl);
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/Utils.h:200:56: error: use of undeclared identifier 'hlfir'
200 | const mlir::DataLayout &dl, hlfir::Entity entity,
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/Utils.h:215:35: error: use of undeclared identifier 'hlfir'
215 | hlfir::Entity entity,
| ^
3 errors generated.
```
</details>
<details>
<summary>tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/OpenMP.cpp.o</summary>
```
FAILED: tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/OpenMP.cpp.o
sccache /opt/llvm/bin/clang++ -DFLANG_INCLUDE_TESTS=1 -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/tools/flang/lib/Lower -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/../mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/../clang/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 -Wno-deprecated-copy -Wno-string-conversion -Wno-ctad-maybe-unsupported -Wno-unused-command-line-argument -Wstring-conversion -Wcovered-switch-default -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/OpenMP.cpp.o -MF tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/OpenMP.cpp.o.d -o tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/OpenMP.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/OpenMP.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/OpenMP.cpp:16:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/ClauseProcessor.h:16:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/Utils.h:192:31: error: use of undeclared identifier 'hlfir'
192 | int64_t getElementBytesOrZero(hlfir::Entity entity, const mlir::DataLayout &dl);
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/Utils.h:200:56: error: use of undeclared identifier 'hlfir'
200 | const mlir::DataLayout &dl, hlfir::Entity entity,
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Lower/OpenMP/Utils.h:215:35: error: use of undeclared identifier 'hlfir'
215 | hlfir::Entity entity,
| ^
3 errors 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/182222
More information about the llvm-branch-commits
mailing list