This is an archive of the discontinued LLVM Phabricator instance.

[Statepoint] Add getters to StatepointOpers. NFC.
ClosedPublic

Authored by dantrushin on Apr 14 2020, 8:58 AM.

Details

Summary

To simplify future work on statepoint representation, hide
direct access ti statepoint field indices and provide getters
for them. Add getters for couple more statepoint fields.

This also fixes two bugs in MachineVerifier for statepoint:
First, the break statement was falling out of if statement
scope, thus disabling following checks.
Second, it was incorrectly accessing some fields like CallingConv -
StatepointOpers gives index to their value directly, not to
preceeding field type encoding.

Diff Detail

Event Timeline

dantrushin created this revision.Apr 14 2020, 8:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 14 2020, 8:58 AM
skatkov accepted this revision.Apr 14 2020, 7:17 PM

it is not NFC as you fix verifier. Split this patch into two parts or remove NFC.

This revision is now accepted and ready to land.Apr 14 2020, 7:17 PM
This revision was automatically updated to reflect the committed changes.