summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-09-09 11:46:34 +0000
committerTim Northover <tnorthover@apple.com>2016-09-09 11:46:34 +0000
commit0f140c769a75779991d0bb31c2e34907621d2386 (patch)
treeee9ab7880246083d7fe91bd95f29a59a98e2e09f /llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp
parenta3afe44d6c1499e7b11968ed502f3d5193479076 (diff)
downloadbcm5719-llvm-0f140c769a75779991d0bb31c2e34907621d2386.tar.gz
bcm5719-llvm-0f140c769a75779991d0bb31c2e34907621d2386.zip
GlobalISel: move type information to MachineRegisterInfo.
We want each register to have a canonical type, which means the best place to store this is in MachineRegisterInfo rather than on every MachineInstr that happens to use or define that register. Most changes following from this are pretty simple (you need an MRI anyway if you're going to be doing any transformations, so just check the type there). But legalization doesn't really want to check redundant operands (when, for example, a G_ADD only ever has one type) so I've made use of MCInstrDesc's operand type field to encode these constraints and limit legalization's work. As an added bonus, more validation is possible, both in MachineVerifier and MachineIRBuilder (coming soon). llvm-svn: 281035
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud