This is an archive of the discontinued LLVM Phabricator instance.

Add ObjC ARC module flag and use it to control arc-contract pass
Needs ReviewPublic

Authored by steven_wu on Feb 20 2015, 2:17 PM.

Details

Summary

Currently, there is no good way to tell if the bitcode is compiled
with ARC or not. However, it is required to run objc-arc-contract
pass for ObjC ARC. Introduces a new module flag for ObjC-ARC and
use that to decide if objc-arc-contract pass is required or not.

Diff Detail

Event Timeline

steven_wu updated this revision to Diff 20432.Feb 20 2015, 2:17 PM
steven_wu retitled this revision from to Add ObjC ARC module flag and use it to control arc-contract pass.
steven_wu updated this object.
steven_wu edited the test plan for this revision. (Show Details)
steven_wu added reviewers: dexonsmith, gottesmm.
steven_wu added a subscriber: Unknown Object (MLST).
steven_wu updated this revision to Diff 21048.Mar 2 2015, 2:56 PM

Fix the code according to Duncan's feedback. Attempt to add a testcase.
Not sure if there is better to check if the pass is run other than using -debug-pass=Arguments.

dexonsmith resigned from this revision.Oct 6 2020, 3:35 PM