Change SelectCode's argument from SDValue to SDNode *, to make it more
authorDan Gohman <gohman@apple.com>
Tue, 5 Jan 2010 01:24:18 +0000 (01:24 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 5 Jan 2010 01:24:18 +0000 (01:24 +0000)
commiteeb3a00b84b7767d236ec8cf0619b9217fc247b9
tree6fa4e0deb80140890cb0084bcff5edb7bd4d31fe
parent4c3235595fe7f43bb4e43eefdee308fb961b9300
Change SelectCode's argument from SDValue to SDNode *, to make it more
clear what information these functions are actually using.

This is also a micro-optimization, as passing a SDNode * around is
simpler than passing a { SDNode *, int } by value or reference.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92564 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
include/llvm/CodeGen/DAGISelHeader.h
include/llvm/CodeGen/SelectionDAGISel.h
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
lib/Target/ARM/ARMISelDAGToDAG.cpp
lib/Target/ARM/ARMInstrInfo.td
lib/Target/Alpha/AlphaISelDAGToDAG.cpp
lib/Target/Blackfin/BlackfinISelDAGToDAG.cpp
lib/Target/CellSPU/SPUISelDAGToDAG.cpp
lib/Target/MSP430/MSP430ISelDAGToDAG.cpp
lib/Target/Mips/MipsISelDAGToDAG.cpp
lib/Target/PIC16/PIC16ISelDAGToDAG.cpp
lib/Target/PIC16/PIC16ISelDAGToDAG.h
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
lib/Target/Sparc/SparcISelDAGToDAG.cpp
lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
lib/Target/X86/X86ISelDAGToDAG.cpp
lib/Target/XCore/XCoreISelDAGToDAG.cpp
utils/TableGen/DAGISelEmitter.cpp