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