[semantic-sil] Add a new pass that dumps out the ownership of all SILValue in a function and performs some minor checks upon them.

rdar://29671437
This commit is contained in:
Michael Gottesman
2016-12-16 17:47:22 -08:00
parent 3df612b0d6
commit 4bfaef8ae0
4 changed files with 76 additions and 5 deletions

View File

@@ -237,6 +237,8 @@ PASS(UnsafeGuaranteedPeephole, "unsafe-guaranteed-peephole",
"Builtin.unsafeGuaranteed")
PASS(UsePrespecialized, "use-prespecialized",
"Use pre-specialized functions")
PASS(ValueOwnershipKindDumper, "value-ownership-kind-dumper",
"Print the value ownership kind of all ValueBase in a SILModule")
PASS(BugReducerTester, "bug-reducer-tester",
"Utility pass for testing sil-bug-reducer. Asserts when visits an apply that calls a specific function")
PASS_RANGE(AllPasses, AADumper, BugReducerTester)