HomePhabricator

[NFC][Regalloc] accessors for 'reg' and 'weight'

Authored by mtrofin on Sep 15 2020, 2:54 PM.

Description

[NFC][Regalloc] accessors for 'reg' and 'weight'

Also renamed the fields to follow style guidelines.

Accessors help with readability - weight mutation, in particular,
is easier to follow this way.

Differential Revision: https://reviews.llvm.org/D87725

Details