1919#include " llvm/CodeGen/TargetLowering.h"
2020
2121namespace llvm {
22- namespace MSP430ISD {
23- enum NodeType : unsigned {
24- FIRST_NUMBER = ISD::BUILTIN_OP_END,
25-
26- // / Return with a glue operand. Operand 0 is the chain operand.
27- RET_GLUE,
28-
29- // / Same as RET_GLUE, but used for returning from ISRs.
30- RETI_GLUE,
31-
32- // / Y = R{R,L}A X, rotate right (left) arithmetically
33- RRA, RLA,
34-
35- // / Y = RRC X, rotate right via carry
36- RRC,
37-
38- // / Rotate right via carry, carry gets cleared beforehand by clrc
39- RRCL,
40-
41- // / CALL - These operations represent an abstract call
42- // / instruction, which includes a bunch of information.
43- CALL,
44-
45- // / Wrapper - A wrapper node for TargetConstantPool, TargetExternalSymbol,
46- // / and TargetGlobalAddress.
47- Wrapper,
48-
49- // / CMP - Compare instruction.
50- CMP,
51-
52- // / SetCC - Operand 0 is condition code, and operand 1 is the flag
53- // / operand produced by a CMP instruction.
54- SETCC,
55-
56- // / MSP430 conditional branches. Operand 0 is the chain operand, operand 1
57- // / is the block to branch if condition is true, operand 2 is the
58- // / condition code, and operand 3 is the flag operand produced by a CMP
59- // / instruction.
60- BR_CC,
61-
62- // / SELECT_CC - Operand 0 and operand 1 are selection variable, operand 3
63- // / is condition code and operand 4 is flag operand.
64- SELECT_CC,
65-
66- // / DADD - Decimal addition with carry
67- // / TODO Nothing generates a node of this type yet.
68- DADD,
69- };
70- }
71-
7222 class MSP430Subtarget ;
7323 class MSP430TargetLowering : public TargetLowering {
7424 public:
@@ -86,10 +36,6 @@ namespace llvm {
8636 // / LowerOperation - Provide custom lowering hooks for some operations.
8737 SDValue LowerOperation (SDValue Op, SelectionDAG &DAG) const override ;
8838
89- // / getTargetNodeName - This method returns the name of a target specific
90- // / DAG node.
91- const char *getTargetNodeName (unsigned Opcode) const override ;
92-
9339 SDValue LowerShifts (SDValue Op, SelectionDAG &DAG) const ;
9440 SDValue LowerGlobalAddress (SDValue Op, SelectionDAG &DAG) const ;
9541 SDValue LowerBlockAddress (SDValue Op, SelectionDAG &DAG) const ;
0 commit comments