This is an archive of the discontinued LLVM Phabricator instance.

[ThinLTO] Add -objc-arc-contract pass
Needs ReviewPublic

Authored by EShuman on Aug 18 2023, 1:04 AM.

Details

Reviewers
tejohnson
Summary

Add the -objc-arc-contract pass to enable distributed ThinLTO compilation of sources containing ARC.
The details are here – https://discourse.llvm.org/t/objective-c-and-distributed-thinlto/72482

I need a hand in creating a test (test case file is in attachment)

Diff Detail

Unit TestsFailed

Event Timeline

EShuman created this revision.Aug 18 2023, 1:04 AM
EShuman requested review of this revision.Aug 18 2023, 1:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2023, 1:04 AM

Regarding the test, take a look at clang/test/CodeGen/thinlto-distributed-newpm.ll. You can probably just do something similar and check that this pass is invoked under the expected options.