aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorMircea Trofin <mtrofin@google.com>2020-09-30 10:36:11 -0700
committerMircea Trofin <mtrofin@google.com>2020-10-01 09:55:20 -0700
commit17640c5aac649c154959ca1075953f0d252a4a5b (patch)
tree8625b9477c60666876a6b78fed3a9cadb068c9c0 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parentdcb5b6dfbfb5dafb66797e8dba2f04eb76a153b7 (diff)
downloadllvm-17640c5aac649c154959ca1075953f0d252a4a5b.zip
llvm-17640c5aac649c154959ca1075953f0d252a4a5b.tar.gz
llvm-17640c5aac649c154959ca1075953f0d252a4a5b.tar.bz2
[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
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions