Lines Matching full:cn
89 bool canBeRepresentedAsSls(const ConstantSDNode &CN) {
91 return isInt<21>(CN.getSExtValue()) && ((CN.getSExtValue() & 0x3) == 0);
110 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr)) {
113 if (canBeRepresentedAsSls(*CN)) {
114 int32_t Imm = CN->getSExtValue();
115 Offset = CurDAG->getTargetConstant(Imm, DL, CN->getValueType(0));
132 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr)) {
135 if (isInt<16>(CN->getSExtValue())) {
136 int16_t Imm = CN->getSExtValue();
137 Offset = CurDAG->getTargetConstant(Imm, DL, CN->getValueType(0));
138 Base = CurDAG->getRegister(Lanai::R0, CN->getValueType(0));
144 if (canBeRepresentedAsSls(*CN))
148 if (isInt<10>(CN->getSExtValue())) {
149 int16_t Imm = CN->getSExtValue();
150 Offset = CurDAG->getTargetConstant(Imm, DL, CN->getValueType(0));
151 Base = CurDAG->getRegister(Lanai::R0, CN->getValueType(0));
178 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1)))
179 if ((RiMode && isInt<16>(CN->getSExtValue())) ||
180 (!RiMode && isInt<10>(CN->getSExtValue()))) {
191 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), DL, MVT::i32);
264 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1)))
265 if (isInt<16>(CN->getSExtValue()))