Lines Matching refs:CN
94 bool canBeRepresentedAsSls(const ConstantSDNode &CN) {
96 return isInt<21>(CN.getSExtValue()) && ((CN.getSExtValue() & 0x3) == 0);
104 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr)) {
107 if (canBeRepresentedAsSls(*CN)) {
108 int32_t Imm = CN->getSExtValue();
109 Offset = CurDAG->getTargetConstant(Imm, DL, CN->getValueType(0));
126 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr)) {
129 if (isInt<16>(CN->getSExtValue())) {
130 int16_t Imm = CN->getSExtValue();
131 Offset = CurDAG->getTargetConstant(Imm, DL, CN->getValueType(0));
132 Base = CurDAG->getRegister(Lanai::R0, CN->getValueType(0));
138 if (canBeRepresentedAsSls(*CN))
142 if (isInt<10>(CN->getSExtValue())) {
143 int16_t Imm = CN->getSExtValue();
144 Offset = CurDAG->getTargetConstant(Imm, DL, CN->getValueType(0));
145 Base = CurDAG->getRegister(Lanai::R0, CN->getValueType(0));
172 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1)))
173 if ((RiMode && isInt<16>(CN->getSExtValue())) ||
174 (!RiMode && isInt<10>(CN->getSExtValue()))) {
185 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), DL, MVT::i32);
227 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1)))
228 if (isInt<16>(CN->getSExtValue()))