Update the .cvs files.
[oota-llvm.git] / lib / Target / CellSPU / SPUISelLowering.h
index 916f2c931fc6ee5768b2ebbf1e46230e3500df81..5c41c29c51571d3dd39532f56a427350712e030d 100644 (file)
@@ -38,49 +38,56 @@ namespace llvm {
       CALL,                     ///< CALL instruction
       SHUFB,                    ///< Vector shuffle (permute)
       INSERT_MASK,              ///< Insert element shuffle mask
-      CNTB,                    ///< Count leading ones in bytes
+      CNTB,                     ///< Count leading ones in bytes
       PROMOTE_SCALAR,           ///< Promote scalar->vector
       EXTRACT_ELT0,             ///< Extract element 0
-      EXTRACT_ELT0_CHAINED,    ///< Extract element 0, with chain
+      EXTRACT_ELT0_CHAINED,     ///< Extract element 0, with chain
       EXTRACT_I1_ZEXT,          ///< Extract element 0 as i1, zero extend
       EXTRACT_I1_SEXT,          ///< Extract element 0 as i1, sign extend
       EXTRACT_I8_ZEXT,          ///< Extract element 0 as i8, zero extend
       EXTRACT_I8_SEXT,          ///< Extract element 0 as i8, sign extend
-      MPY,                     ///< 16-bit Multiply (low parts of a 32-bit)
-      MPYU,                    ///< Multiply Unsigned
-      MPYH,                    ///< Multiply High
-      MPYHH,                   ///< Multiply High-High
-      VEC_SHL,                 ///< Vector shift left
-      VEC_SRL,                 ///< Vector shift right (logical)
-      VEC_SRA,                 ///< Vector shift right (arithmetic)
-      VEC_ROTL,                        ///< Vector rotate left
-      VEC_ROTR,                        ///< Vector rotate right
-      ROTBYTES_RIGHT_Z,                ///< Vector rotate right, by bytes, zero fill
+      MPY,                      ///< 16-bit Multiply (low parts of a 32-bit)
+      MPYU,                     ///< Multiply Unsigned
+      MPYH,                     ///< Multiply High
+      MPYHH,                    ///< Multiply High-High
+      SHLQUAD_L_BITS,           ///< Rotate quad left, by bits
+      SHLQUAD_L_BYTES,          ///< Rotate quad left, by bytes
+      VEC_SHL,                  ///< Vector shift left
+      VEC_SRL,                  ///< Vector shift right (logical)
+      VEC_SRA,                  ///< Vector shift right (arithmetic)
+      VEC_ROTL,                 ///< Vector rotate left
+      VEC_ROTR,                 ///< Vector rotate right
+      ROTQUAD_RZ_BYTES,         ///< Rotate quad right, by bytes, zero fill
+      ROTQUAD_RZ_BITS,          ///< Rotate quad right, by bits, zero fill
       ROTBYTES_RIGHT_S,         ///< Vector rotate right, by bytes, sign fill
-      ROTBYTES_LEFT,           ///< Rotate bytes (loads -> ROTQBYI)
-      ROTBYTES_LEFT_CHAINED,   ///< Rotate bytes (loads -> ROTQBYI), with chain
-      FSMBI,                   ///< Form Select Mask for Bytes, Immediate
-      SELB,                    ///< Select bits -> (b & mask) | (a & ~mask)
-      SFPConstant,             ///< Single precision floating point constant
+      ROTBYTES_LEFT,            ///< Rotate bytes (loads -> ROTQBYI)
+      ROTBYTES_LEFT_CHAINED,    ///< Rotate bytes (loads -> ROTQBYI), with chain
+      ROTBYTES_LEFT_BITS,       ///< Rotate bytes left by bit shift count
+      SELECT_MASK,              ///< Select Mask (FSM, FSMB, FSMH, FSMBI)
+      SELB,                     ///< Select bits -> (b & mask) | (a & ~mask)
+      ADD_EXTENDED,             ///< Add extended, with carry
+      CARRY_GENERATE,           ///< Carry generate for ADD_EXTENDED
+      SUB_EXTENDED,             ///< Subtract extended, with borrow
+      BORROW_GENERATE,          ///< Borrow generate for SUB_EXTENDED
       FPInterp,                 ///< Floating point interpolate
-      FPRecipEst,              ///< Floating point reciprocal estimate
-      SEXT32TO64,              ///< Sign-extended 32-bit const -> 64-bits
-      LAST_SPUISD              ///< Last user-defined instruction
+      FPRecipEst,               ///< Floating point reciprocal estimate
+      SEXT32TO64,               ///< Sign-extended 32-bit const -> 64-bits
+      LAST_SPUISD               ///< Last user-defined instruction
     };
   }
 
   /// Predicates that are used for node matching:
   namespace SPU {
     SDOperand get_vec_u18imm(SDNode *N, SelectionDAG &DAG,
-                             MVT::ValueType ValueType);
+                             MVT ValueType);
     SDOperand get_vec_i16imm(SDNode *N, SelectionDAG &DAG,
-                             MVT::ValueType ValueType);
+                             MVT ValueType);
     SDOperand get_vec_i10imm(SDNode *N, SelectionDAG &DAG,
-                             MVT::ValueType ValueType);
+                             MVT ValueType);
     SDOperand get_vec_i8imm(SDNode *N, SelectionDAG &DAG,
-                            MVT::ValueType ValueType);
+                            MVT ValueType);
     SDOperand get_ILHUvec_imm(SDNode *N, SelectionDAG &DAG,
-                              MVT::ValueType ValueType);
+                              MVT ValueType);
     SDOperand get_v4i32_imm(SDNode *N, SelectionDAG &DAG);
     SDOperand get_v2i64_imm(SDNode *N, SelectionDAG &DAG);
   }
@@ -100,6 +107,9 @@ namespace llvm {
     /// getTargetNodeName() - This method returns the name of a target specific
     /// DAG node.
     virtual const char *getTargetNodeName(unsigned Opcode) const;
+
+    /// getSetCCResultType - Return the ValueType for ISD::SETCC
+    virtual MVT getSetCCResultType(const SDOperand &) const;
     
     /// LowerOperation - Provide custom lowering hooks for some operations.
     ///
@@ -108,24 +118,21 @@ namespace llvm {
     virtual SDOperand PerformDAGCombine(SDNode *N, DAGCombinerInfo &DCI) const;
 
     virtual void computeMaskedBitsForTargetNode(const SDOperand Op,
-                                                uint64_t Mask,
-                                                uint64_t &KnownZero, 
-                                                uint64_t &KnownOne,
+                                                const APInt &Mask,
+                                                APInt &KnownZero, 
+                                                APInt &KnownOne,
                                                 const SelectionDAG &DAG,
                                                 unsigned Depth = 0) const;
 
-    virtual MachineBasicBlock *InsertAtEndOfBasicBlock(MachineInstr *MI,
-                                                       MachineBasicBlock *MBB);
-    
     ConstraintType getConstraintType(const std::string &ConstraintLetter) const;
 
     std::pair<unsigned, const TargetRegisterClass*> 
       getRegForInlineAsmConstraint(const std::string &Constraint,
-                                   MVT::ValueType VT) const;
+                                   MVT VT) const;
 
     void LowerAsmOperandForConstraint(SDOperand Op, char ConstraintLetter,
                                       std::vector<SDOperand> &Ops,
-                                      SelectionDAG &DAG);
+                                      SelectionDAG &DAG) const;
 
     /// isLegalAddressImmediate - Return true if the integer value can be used
     /// as the offset of the target addressing mode.