Change TargetLowering::getRegClassFor to take an MVT, instead of EVT.
authorPatrik Hagglund <patrik.h.hagglund@ericsson.com>
Thu, 13 Dec 2012 06:34:11 +0000 (06:34 +0000)
committerPatrik Hagglund <patrik.h.hagglund@ericsson.com>
Thu, 13 Dec 2012 06:34:11 +0000 (06:34 +0000)
commita61b17c18a67f1b3faef2f2108379c4337ce9bb7
tree2e0ed18089a0e7799c81a35f48ab61ec7c173b90
parente3ec87a6f7b718596697727e699a62aed0d40b25
Change TargetLowering::getRegClassFor to take an MVT, instead of EVT.

Accordingly, add helper funtions getSimpleValueType (in parallel to
getValueType) in SDValue, SDNode, and TargetLowering.

This is the first, in a series of patches.

This is the second attempt. In the first attempt (r169837), a few
getSimpleVT() were hoisted too far, detected by bootstrap failures.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170104 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/llvm/CodeGen/FunctionLoweringInfo.h
include/llvm/CodeGen/SelectionDAGNodes.h
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/FastISel.cpp
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
lib/CodeGen/SelectionDAG/InstrEmitter.cpp
lib/CodeGen/SelectionDAG/InstrEmitter.h
lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/Target/ARM/ARMFastISel.cpp
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/ARM/ARMISelLowering.h
lib/Target/Mips/MipsISelLowering.cpp