This is an archive of the discontinued LLVM Phabricator instance.

[CFGuard] Split into two passes and link into opt
AcceptedPublic

Authored by ajpaverd on Jun 24 2020, 3:41 AM.

Details

Summary

Split the CFGuard pass into two separate function passes: one using the "dispatch" mechanism (used on X86-64) and the other using the "check" mechanism (for all other supported targets). Link each of these passes into opt and add tests for the IR transform.

Diff Detail

Event Timeline

ajpaverd created this revision.Jun 24 2020, 3:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 24 2020, 3:41 AM
ajpaverd updated this revision to Diff 273017.Jun 24 2020, 7:05 AM

[CFGuard] Split into two passes and link into opt

Ping @mehdi_amini - is this what you were asking for the CFGuard pass?

mehdi_amini accepted this revision.Oct 5 2020, 2:11 PM

LGTM, thanks.

This revision is now accepted and ready to land.Oct 5 2020, 2:11 PM

this will need to be ported to the new pass manager at some point