[all-commits] [llvm/llvm-project] edbb27: [Statepoint] Add getters to StatepointOpers.

dantrushin via All-commits all-commits at lists.llvm.org
Wed Apr 15 04:33:45 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: edbb27ccb63402b591a459f4087434ea778c23a7
      https://github.com/llvm/llvm-project/commit/edbb27ccb63402b591a459f4087434ea778c23a7
  Author: Denis Antrushin <dantrushin at gmail.com>
  Date:   2020-04-15 (Wed, 15 Apr 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/StackMaps.h
    M llvm/lib/CodeGen/FixupStatepointCallerSaved.cpp
    M llvm/lib/CodeGen/MachineVerifier.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list