Page MenuHomePhabricator

[ptr_provenance] Bitcode reader/writer support for the optional ptr_provenance operand of load/store instructions
Needs ReviewPublic

Authored by jeroen.dobbelaere on Jun 14 2021, 3:03 PM.

Details

Summary

This patch introduces bitcode reader/writer support for the optional ptr_provenance operand of load/store instructions.

This is done in a backwards and future compatible way: when present, an extra 'bool true' + the value and type are pushed.
When reading, if there are extra values, the first bool indicates if a ptr_provenance operand is available or not.

If in future more optional values are needed, extra bools can be added to indicate that they are present. As soon as one extra
optional value is emitted, the status of the others should also be emitted.

Note: this corresponds to D87254

Diff Detail

Event Timeline

jeroen.dobbelaere requested review of this revision.Jun 14 2021, 3:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2021, 3:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 15 2022, 7:01 AM