HomePhabricator

[NFC] Let (MC)Register APIs check isStackSlot
Audit Required17640c5aac64

Authored by mtrofin on Sep 30 2020, 10:36 AM.

Description

[NFC] Let (MC)Register APIs check isStackSlot

The user is expected to make the isStackSlot check before calling isPhysicalRegister
or isVirtualRegister. The APIs assert otherwise. We can improve the usability
of these APIs by carrying out the check in the 2 APIs: they become a
complete "source of truth" and remove an extra responsibility from the
user.

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

Details

Auditors
grosbach
Committed
mtrofinOct 1 2020, 9:55 AM
Differential Revision
D88598: [NFC] Let (MC)Register APIs check isStackSlot
Parents
rGdcb5b6dfbfb5: [runtimes] Remove TOOLCHAIN_TOOLS specialization
Branches
Unknown
Tags
Unknown