[Statepoint] Add getters to StatepointOpers.
authorDenis Antrushin <dantrushin@gmail.com>
Tue, 14 Apr 2020 15:30:51 +0000 (18:30 +0300)
committerDenis Antrushin <dantrushin@gmail.com>
Wed, 15 Apr 2020 11:31:42 +0000 (14:31 +0300)
commitedbb27ccb63402b591a459f4087434ea778c23a7
tree3bfe489e7551aaae83aa1a518e48e9ffd096198a
parentf05867339737bb203b64a95e096fee509313122d
[Statepoint] Add getters to StatepointOpers.

To simplify future work on statepoint representation, hide
direct access to 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.

Reviewed By: skatkov
Differential Revision: https://reviews.llvm.org/D78119
llvm/include/llvm/CodeGen/StackMaps.h
llvm/lib/CodeGen/FixupStatepointCallerSaved.cpp
llvm/lib/CodeGen/MachineVerifier.cpp