[llvm] Reapply "[SandboxIR][SandboxVec] Remove score tracking from Region, add RegionWithScore" (#195708) (PR #195752)

via llvm-commits llvm-commits at lists.llvm.org
Mon May 4 15:52:46 PDT 2026


github-actions[bot] wrote:

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

The build failed before running any tests. Click on a failure below to see the details.

<details>
<summary>[code=1] lib/SandboxIR/CMakeFiles/LLVMSandboxIR.dir/Region.cpp.obj</summary>

```
FAILED: [code=1] lib/SandboxIR/CMakeFiles/LLVMSandboxIR.dir/Region.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -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_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\lib\SandboxIR -IC:\_work\llvm-project\llvm-project\llvm\lib\SandboxIR -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\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  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Folib\SandboxIR\CMakeFiles\LLVMSandboxIR.dir\Region.cpp.obj /Fdlib\SandboxIR\CMakeFiles\LLVMSandboxIR.dir\LLVMSandboxIR.pdb -c -- C:\_work\llvm-project\llvm-project\llvm\lib\SandboxIR\Region.cpp
In file included from C:\_work\llvm-project\llvm-project\llvm\lib\SandboxIR\Region.cpp:9:
C:\_work\llvm-project\llvm-project\llvm\include\llvm/SandboxIR/Region.h(123,27): error: cannot use incomplete type 'Function' as a range
123 |     for (BasicBlock &BB : F) {
|                           ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/SandboxIR/Values.def(22,21): note: forward declaration of 'llvm::sandboxir::Function'
22 | DEF_CONST(Function, Function)
|                     ^
1 error generated.
```
</details>
<details>
<summary>[code=1] lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/SandboxVectorizer/Passes/TransactionSave.cpp.obj</summary>

```
FAILED: [code=1] lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/SandboxVectorizer/Passes/TransactionSave.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -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_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\lib\Transforms\Vectorize -IC:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Vectorize -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\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  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Folib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\SandboxVectorizer\Passes\TransactionSave.cpp.obj /Fdlib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\LLVMVectorize.pdb -c -- C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Vectorize\SandboxVectorizer\Passes\TransactionSave.cpp
In file included from C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Vectorize\SandboxVectorizer\Passes\TransactionSave.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\llvm\include\llvm/Transforms/Vectorize/SandboxVectorizer/Passes/TransactionSave.h:16:
C:\_work\llvm-project\llvm-project\llvm\include\llvm/SandboxIR/Region.h(123,27): error: cannot use incomplete type 'Function' as a range
123 |     for (BasicBlock &BB : F) {
|                           ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/SandboxIR/Pass.h(23,7): note: forward declaration of 'llvm::sandboxir::Function'
23 | class Function;
|       ^
1 error generated.
```
</details>
<details>
<summary>[code=1] lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/SandboxVectorizer/Passes/TransactionAcceptOrRevert.cpp.obj</summary>

```
FAILED: [code=1] lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/SandboxVectorizer/Passes/TransactionAcceptOrRevert.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -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_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\lib\Transforms\Vectorize -IC:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Vectorize -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\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  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Folib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\SandboxVectorizer\Passes\TransactionAcceptOrRevert.cpp.obj /Fdlib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\LLVMVectorize.pdb -c -- C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Vectorize\SandboxVectorizer\Passes\TransactionAcceptOrRevert.cpp
In file included from C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Vectorize\SandboxVectorizer\Passes\TransactionAcceptOrRevert.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\llvm\include\llvm/Transforms/Vectorize/SandboxVectorizer/Passes/TransactionAcceptOrRevert.h:18:
C:\_work\llvm-project\llvm-project\llvm\include\llvm/SandboxIR/Region.h(123,27): error: cannot use incomplete type 'Function' as a range
123 |     for (BasicBlock &BB : F) {
|                           ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/SandboxIR/Pass.h(23,7): note: forward declaration of 'llvm::sandboxir::Function'
23 | class Function;
|       ^
1 error generated.
```
</details>
<details>
<summary>[code=1] lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/SandboxVectorizer/Passes/RegionsFromMetadata.cpp.obj</summary>

```
FAILED: [code=1] lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/SandboxVectorizer/Passes/RegionsFromMetadata.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -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_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\lib\Transforms\Vectorize -IC:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Vectorize -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\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  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Folib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\SandboxVectorizer\Passes\RegionsFromMetadata.cpp.obj /Fdlib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\LLVMVectorize.pdb -c -- C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Vectorize\SandboxVectorizer\Passes\RegionsFromMetadata.cpp
In file included from C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Vectorize\SandboxVectorizer\Passes\RegionsFromMetadata.cpp:11:
In file included from C:\_work\llvm-project\llvm-project\llvm\include\llvm/Transforms/Vectorize/SandboxVectorizer/RegionWithScore.h:16:
C:\_work\llvm-project\llvm-project\llvm\include\llvm/SandboxIR/Region.h(123,27): error: cannot use incomplete type 'Function' as a range
123 |     for (BasicBlock &BB : F) {
|                           ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/SandboxIR/Pass.h(23,7): note: forward declaration of 'llvm::sandboxir::Function'
23 | class Function;
|       ^
1 error generated.
```
</details>
<details>
<summary>[code=1] lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/SandboxVectorizer/RegionWithScore.cpp.obj</summary>

```
FAILED: [code=1] lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/SandboxVectorizer/RegionWithScore.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -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_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\lib\Transforms\Vectorize -IC:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Vectorize -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\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  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Folib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\SandboxVectorizer\RegionWithScore.cpp.obj /Fdlib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\LLVMVectorize.pdb -c -- C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Vectorize\SandboxVectorizer\RegionWithScore.cpp
In file included from C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Vectorize\SandboxVectorizer\RegionWithScore.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\llvm\include\llvm/Transforms/Vectorize/SandboxVectorizer/RegionWithScore.h:16:
C:\_work\llvm-project\llvm-project\llvm\include\llvm/SandboxIR/Region.h(123,27): error: cannot use incomplete type 'Function' as a range
123 |     for (BasicBlock &BB : F) {
|                           ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/SandboxIR/Values.def(22,21): note: forward declaration of 'llvm::sandboxir::Function'
22 | DEF_CONST(Function, Function)
|                     ^
1 error generated.
```
</details>
<details>
<summary>[code=1] lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/SandboxVectorizer/Passes/PackReuse.cpp.obj</summary>

```
FAILED: [code=1] lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/SandboxVectorizer/Passes/PackReuse.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -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_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\lib\Transforms\Vectorize -IC:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Vectorize -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\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  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Folib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\SandboxVectorizer\Passes\PackReuse.cpp.obj /Fdlib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\LLVMVectorize.pdb -c -- C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Vectorize\SandboxVectorizer\Passes\PackReuse.cpp
In file included from C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Vectorize\SandboxVectorizer\Passes\PackReuse.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\llvm\include\llvm/Transforms/Vectorize/SandboxVectorizer/Passes/PackReuse.h:17:
C:\_work\llvm-project\llvm-project\llvm\include\llvm/SandboxIR/Region.h(123,27): error: cannot use incomplete type 'Function' as a range
123 |     for (BasicBlock &BB : F) {
|                           ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/SandboxIR/Pass.h(23,7): note: forward declaration of 'llvm::sandboxir::Function'
23 | class Function;
|       ^
1 error generated.
```
</details>
<details>
<summary>[code=1] lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/SandboxVectorizer/Passes/LoadStoreVec.cpp.obj</summary>

```
FAILED: [code=1] lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/SandboxVectorizer/Passes/LoadStoreVec.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -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_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\lib\Transforms\Vectorize -IC:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Vectorize -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\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  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Folib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\SandboxVectorizer\Passes\LoadStoreVec.cpp.obj /Fdlib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\LLVMVectorize.pdb -c -- C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Vectorize\SandboxVectorizer\Passes\LoadStoreVec.cpp
In file included from C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Vectorize\SandboxVectorizer\Passes\LoadStoreVec.cpp:11:
C:\_work\llvm-project\llvm-project\llvm\include\llvm/SandboxIR/Region.h(123,27): error: cannot use incomplete type 'Function' as a range
123 |     for (BasicBlock &BB : F) {
|                           ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/SandboxIR/Pass.h(23,7): note: forward declaration of 'llvm::sandboxir::Function'
23 | class Function;
|       ^
1 error generated.
```
</details>
<details>
<summary>[code=1] lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/SandboxVectorizer/Passes/SeedCollection.cpp.obj</summary>

```
FAILED: [code=1] lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/SandboxVectorizer/Passes/SeedCollection.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -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_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\lib\Transforms\Vectorize -IC:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Vectorize -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\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  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Folib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\SandboxVectorizer\Passes\SeedCollection.cpp.obj /Fdlib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\LLVMVectorize.pdb -c -- C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Vectorize\SandboxVectorizer\Passes\SeedCollection.cpp
In file included from C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Vectorize\SandboxVectorizer\Passes\SeedCollection.cpp:12:
In file included from C:\_work\llvm-project\llvm-project\llvm\include\llvm/Transforms/Vectorize/SandboxVectorizer/RegionWithScore.h:16:
C:\_work\llvm-project\llvm-project\llvm\include\llvm/SandboxIR/Region.h(123,27): error: cannot use incomplete type 'Function' as a range
123 |     for (BasicBlock &BB : F) {
|                           ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/SandboxIR/Pass.h(23,7): note: forward declaration of 'llvm::sandboxir::Function'
23 | class Function;
|       ^
1 error generated.
```
</details>
<details>
<summary>[code=1] unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/RegionTest.cpp.obj</summary>

```
FAILED: [code=1] unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/RegionTest.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_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\unittests\SandboxIR -IC:\_work\llvm-project\llvm-project\llvm\unittests\SandboxIR -IC:\_work\llvm-project\llvm-project\build\include -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  -std:c++17 -MD -UNDEBUG -Wno-gnu-zero-variadic-macro-arguments /EHs-c- /GR- -Wno-suggest-override /showIncludes /Founittests\SandboxIR\CMakeFiles\SandboxIRTests.dir\RegionTest.cpp.obj /Fdunittests\SandboxIR\CMakeFiles\SandboxIRTests.dir\ -c -- C:\_work\llvm-project\llvm-project\llvm\unittests\SandboxIR\RegionTest.cpp
In file included from C:\_work\llvm-project\llvm-project\llvm\unittests\SandboxIR\RegionTest.cpp:9:
C:\_work\llvm-project\llvm-project\llvm\include\llvm/SandboxIR/Region.h(123,27): error: cannot use incomplete type 'Function' as a range
123 |     for (BasicBlock &BB : F) {
|                           ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/SandboxIR/Values.def(22,21): note: forward declaration of 'llvm::sandboxir::Function'
22 | DEF_CONST(Function, Function)
|                     ^
1 error generated.
```
</details>
<details>
<summary>[code=1] unittests/Transforms/Vectorize/SandboxVectorizer/CMakeFiles/SandboxVectorizerTests.dir/RegionWithScoreTest.cpp.obj</summary>

```
FAILED: [code=1] unittests/Transforms/Vectorize/SandboxVectorizer/CMakeFiles/SandboxVectorizerTests.dir/RegionWithScoreTest.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_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\unittests\Transforms\Vectorize\SandboxVectorizer -IC:\_work\llvm-project\llvm-project\llvm\unittests\Transforms\Vectorize\SandboxVectorizer -IC:\_work\llvm-project\llvm-project\build\include -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  -std:c++17 -MD -UNDEBUG -Wno-gnu-zero-variadic-macro-arguments /EHs-c- /GR- -Wno-suggest-override /showIncludes /Founittests\Transforms\Vectorize\SandboxVectorizer\CMakeFiles\SandboxVectorizerTests.dir\RegionWithScoreTest.cpp.obj /Fdunittests\Transforms\Vectorize\SandboxVectorizer\CMakeFiles\SandboxVectorizerTests.dir\ -c -- C:\_work\llvm-project\llvm-project\llvm\unittests\Transforms\Vectorize\SandboxVectorizer\RegionWithScoreTest.cpp
In file included from C:\_work\llvm-project\llvm-project\llvm\unittests\Transforms\Vectorize\SandboxVectorizer\RegionWithScoreTest.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\llvm\include\llvm/Transforms/Vectorize/SandboxVectorizer/RegionWithScore.h:16:
C:\_work\llvm-project\llvm-project\llvm\include\llvm/SandboxIR/Region.h(123,27): error: cannot use incomplete type 'Function' as a range
123 |     for (BasicBlock &BB : F) {
|                           ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/SandboxIR/Values.def(22,21): note: forward declaration of 'llvm::sandboxir::Function'
22 | DEF_CONST(Function, Function)
|                     ^
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/195752


More information about the llvm-commits mailing list