comparison lib/Target/MSP430/MSP430ISelDAGToDAG.cpp @ 83:60c9769439b8 LLVM3.7

LLVM 3.7
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Wed, 18 Feb 2015 14:55:36 +0900
parents 54457678186b
children afa8332a0e37
comparison
equal deleted inserted replaced
78:af83660cff7b 83:60c9769439b8
90 /// MSP430DAGToDAGISel - MSP430 specific code to select MSP430 machine 90 /// MSP430DAGToDAGISel - MSP430 specific code to select MSP430 machine
91 /// instructions for SelectionDAG operations. 91 /// instructions for SelectionDAG operations.
92 /// 92 ///
93 namespace { 93 namespace {
94 class MSP430DAGToDAGISel : public SelectionDAGISel { 94 class MSP430DAGToDAGISel : public SelectionDAGISel {
95 const MSP430TargetLowering &Lowering;
96 const MSP430Subtarget &Subtarget;
97
98 public: 95 public:
99 MSP430DAGToDAGISel(MSP430TargetMachine &TM, CodeGenOpt::Level OptLevel) 96 MSP430DAGToDAGISel(MSP430TargetMachine &TM, CodeGenOpt::Level OptLevel)
100 : SelectionDAGISel(TM, OptLevel), 97 : SelectionDAGISel(TM, OptLevel) {}
101 Lowering(*TM.getSubtargetImpl()->getTargetLowering()),
102 Subtarget(*TM.getSubtargetImpl()) {}
103 98
104 const char *getPassName() const override { 99 const char *getPassName() const override {
105 return "MSP430 DAG->DAG Pattern Instruction Selection"; 100 return "MSP430 DAG->DAG Pattern Instruction Selection";
106 } 101 }
107 102