Skip to content

Commit 3d9ed92

Browse files
authored
[SandboxIR][NFC] Move Region from SandboxVectorizer to SandboxIR. (#110173)
I'm planning to add RegionPass and RegionPassManager next to the equivalent FunctionPass and FunctionPassManager in SandboxIR, which means that SandboxIR has to know about Regions. There's nothing vectorizer-specific about the Region class, and the only thing using Regions at this moment is the unit test, so this is a straightforward file move.
1 parent 1d8fad9 commit 3d9ed92

File tree

7 files changed

+3
-3
lines changed

7 files changed

+3
-3
lines changed

llvm/lib/SandboxIR/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ add_llvm_component_library(LLVMSandboxIR
33
Module.cpp
44
Pass.cpp
55
PassManager.cpp
6+
Region.cpp
67
SandboxIR.cpp
78
Tracker.cpp
89
Type.cpp

llvm/lib/Transforms/Vectorize/SandboxVectorizer/Region.cpp renamed to llvm/lib/SandboxIR/Region.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include "llvm/Transforms/Vectorize/SandboxVectorizer/Region.h"
9+
#include "llvm/SandboxIR/Region.h"
1010

1111
namespace llvm::sandboxir {
1212

llvm/lib/Transforms/Vectorize/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ add_llvm_component_library(LLVMVectorize
55
LoopVectorize.cpp
66
SandboxVectorizer/DependencyGraph.cpp
77
SandboxVectorizer/Passes/BottomUpVec.cpp
8-
SandboxVectorizer/Region.cpp
98
SandboxVectorizer/SandboxVectorizer.cpp
109
SLPVectorizer.cpp
1110
Vectorize.cpp

llvm/unittests/SandboxIR/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ set(LLVM_LINK_COMPONENTS
77

88
add_llvm_unittest(SandboxIRTests
99
PassTest.cpp
10+
RegionTest.cpp
1011
SandboxIRTest.cpp
1112
TrackerTest.cpp
1213
TypesTest.cpp

llvm/unittests/Transforms/Vectorize/SandboxVectorizer/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ add_llvm_unittest(SandboxVectorizerTests
1111
DependencyGraphTest.cpp
1212
InstrIntervalTest.cpp
1313
LegalityTest.cpp
14-
RegionTest.cpp
1514
)

0 commit comments

Comments
 (0)