Files
swift-mirror/test/Frontend/lowered_sil.swift
Michael Gottesman 4763251427 [sil] Add the ability for the frontend to dump LoweredSIL before IRGen.
This is something that I have wanted to add for a while and have never had the
need to. I need it now to fix a bug in the bots where I am forced to use IRGen
output to test ThunkLowering which causes platform level differences to show up
in the FileCheck output. With this, I can just emit the actual lowered SIL
output and just test it at that level. There are other cases like this where we
are unable to test lowered SIL so we use IRGen creating this brittleness.
Hopefully this stops this problem from showing up in the future.

rdar://138845396
2024-11-01 03:16:55 -07:00

7 lines
119 B
Swift

// RUN: %target-swift-frontend -o - -emit-lowered-sil %s | %FileCheck %s
// CHECK: sil_stage lowered
func test() {
}