Lines Matching refs:ConstantSDNode
207 unsigned RCID = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue(); in getOperandRegClass()
212 unsigned SubRegIdx = cast<ConstantSDNode>(SubRegOp)->getZExtValue(); in getOperandRegClass()
397 ConstantSDNode *C = cast<ConstantSDNode>(N); in Select()
436 ConstantSDNode *Offset = dyn_cast<ConstantSDNode>(N->getOperand(1)); in Select()
440 ConstantSDNode *Width = dyn_cast<ConstantSDNode>(N->getOperand(2)); in Select()
511 if (ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(Addr)) { in SelectGlobalValueConstantOffset()
521 if (!isa<ConstantSDNode>(Addr)) { in SelectGlobalValueVariableOffset()
531 ConstantSDNode *IMMOffset; in SelectADDRVTX_READ()
534 && (IMMOffset = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) in SelectADDRVTX_READ()
542 } else if ((IMMOffset = dyn_cast<ConstantSDNode>(Addr)) in SelectADDRVTX_READ()
560 ConstantSDNode *C; in SelectADDRIndirect()
563 if ((C = dyn_cast<ConstantSDNode>(Addr))) { in SelectADDRIndirect()
567 (C = dyn_cast<ConstantSDNode>(Addr.getOperand(1)))) { in SelectADDRIndirect()
662 ConstantSDNode *C1 = cast<ConstantSDNode>(N1); in SelectDS1Addr1Offset()
671 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(Addr.getOperand(0))) { in SelectDS1Addr1Offset()
693 } else if (const ConstantSDNode *CAddr = dyn_cast<ConstantSDNode>(Addr)) { in SelectDS1Addr1Offset()
726 ConstantSDNode *C1 = cast<ConstantSDNode>(N1); in SelectDS64Bit4ByteAligned()
738 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(Addr.getOperand(0))) { in SelectDS64Bit4ByteAligned()
764 } else if (const ConstantSDNode *CAddr = dyn_cast<ConstantSDNode>(Addr)) { in SelectDS64Bit4ByteAligned()
788 static bool isLegalMUBUFImmOffset(const ConstantSDNode *Imm) { in isLegalMUBUFImmOffset()
818 ConstantSDNode *C1 = cast<ConstantSDNode>(N1); in SelectMUBUF()
882 ConstantSDNode *C = cast<ConstantSDNode>(Addr64); in SelectMUBUFAddr64()
923 ConstantSDNode *C1 = cast<ConstantSDNode>(N1); in SelectMUBUFScratch()
949 if (!cast<ConstantSDNode>(Offen)->getSExtValue() && in SelectMUBUFOffset()
950 !cast<ConstantSDNode>(Idxen)->getSExtValue() && in SelectMUBUFOffset()
951 !cast<ConstantSDNode>(Addr64)->getSExtValue()) { in SelectMUBUFOffset()
984 uint32_t Imm = cast<ConstantSDNode>(Constant)->getZExtValue(); in SelectMUBUFConstant()
1029 if (!isa<ConstantSDNode>(Offset)) in SelectMUBUFIntrinsicOffset()
1042 if (isa<ConstantSDNode>(Offset)) { in SelectMUBUFIntrinsicVOffset()
1055 if (cast<ConstantSDNode>(N1)->getSExtValue() >= 0 && in SelectMUBUFIntrinsicVOffset()
1092 ConstantSDNode *C = dyn_cast<ConstantSDNode>(ByteOffsetNode); in SelectSMRDOffset()
1158 return !Imm && isa<ConstantSDNode>(Offset); in SelectSMRDImm32()
1165 !isa<ConstantSDNode>(Offset); in SelectSMRDSgpr()
1183 return !Imm && isa<ConstantSDNode>(Offset); in SelectSMRDBufferImm32()
1190 !isa<ConstantSDNode>(Offset); in SelectSMRDBufferSgpr()
1201 ConstantSDNode *C1 = cast<ConstantSDNode>(N1); in SelectMOVRELOffset()
1209 if (isa<ConstantSDNode>(Index)) in SelectMOVRELOffset()
1235 ConstantSDNode *B = dyn_cast<ConstantSDNode>(Shl->getOperand(1)); in SelectS_BFEFromShifts()
1236 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(1)); in SelectS_BFEFromShifts()
1261 ConstantSDNode *Shift = dyn_cast<ConstantSDNode>(Srl.getOperand(1)); in SelectS_BFE()
1262 ConstantSDNode *Mask = dyn_cast<ConstantSDNode>(N->getOperand(1)); in SelectS_BFE()
1283 ConstantSDNode *Shift = dyn_cast<ConstantSDNode>(N->getOperand(1)); in SelectS_BFE()
1284 ConstantSDNode *Mask = dyn_cast<ConstantSDNode>(And->getOperand(1)); in SelectS_BFE()
1316 const ConstantSDNode *Amt = dyn_cast<ConstantSDNode>(Src.getOperand(1)); in SelectS_BFE()
1453 return Res && cast<ConstantSDNode>(SrcMods)->isNullValue(); in SelectVOP3NoMods()
1472 return Res && cast<ConstantSDNode>(SrcMods)->isNullValue() && in SelectVOP3NoMods0()
1473 cast<ConstantSDNode>(Clamp)->isNullValue() && in SelectVOP3NoMods0()
1474 cast<ConstantSDNode>(Omod)->isNullValue(); in SelectVOP3NoMods0()