mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The only caveat is that: 1. We do not properly recognize when we have a let binding and we perform a guaranteed dynamic call. In such a case, we add an extra retain, release pair around the call. In order to get that case I will need to refactor some code in Callee. I want to make this change, but not at the expense of getting the rest of this work in. 2. Some of the protocol witness thunks generated have unnecessary retains or releases in a similar manner. But this is a good first step. I am going to send a large follow up email with all of the relevant results, so I can let the bots chew on this a little bit. rdar://19933044 Swift SVN r27241
20 lines
671 B
Bash
20 lines
671 B
Bash
#!/bin/bash
|
|
|
|
process_count=17
|
|
process_id_max=$(($process_count - 1))
|
|
|
|
for id in $(seq 0 $process_id_max); do
|
|
|
|
cat > parse_stdlib_$id.sil <<__EOF__
|
|
//// Automatically Generated From validation-test/parser/Inputs/gen_parse_stdlib_tests.sh
|
|
////// Do Not Edit Directly!
|
|
|
|
// Make sure that we can parse the stdlib.sil deserialized from Swift.swiftmodule.
|
|
|
|
// RUN: rm -f %t.*
|
|
// RUN: %target-sil-opt -enable-guaranteed-self -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil
|
|
// RUN: %target-sil-opt -enable-guaranteed-self %t.sil -ast-verifier-process-count=$process_count -ast-verifier-process-id=$id > /dev/null
|
|
__EOF__
|
|
|
|
done
|