Skip to content

Commit fb00bc3

Browse files
committed
Swift SIL: add the SmallProjectionPath utility
The `SmallProjectionPath` represents a path of value or address projections. It’s used for defining argument effects for functions and for the new escape analysis.
1 parent 887b5ca commit fb00bc3

File tree

3 files changed

+577
-0
lines changed

3 files changed

+577
-0
lines changed

SwiftCompilerSources/Sources/Optimizer/FunctionPasses/RunUnitTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ let runUnitTests = FunctionPass(name: "run-unit-tests", {
1818
(function: Function, context: PassContext) in
1919

2020
print("--- Run unit tests ---")
21+
22+
print("test ProjectionPath")
23+
SmallProjectionPath.runUnitTests()
2124
})

SwiftCompilerSources/Sources/SIL/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ add_swift_compiler_module(SIL
1717
Location.swift
1818
Operand.swift
1919
Registration.swift
20+
SmallProjectionPath.swift
2021
SubstitutionMap.swift
2122
Type.swift
2223
Utils.swift

0 commit comments

Comments
 (0)