Lines Matching refs:ImmVal
210 int64_t ImmVal) const;
214 int64_t ImmVal) const;
452 int64_t ImmVal) const { in canUseImmWithOpSel()
477 static_cast<uint16_t>(ImmVal) != static_cast<uint16_t>(ImmVal >> 16)) in canUseImmWithOpSel()
486 int64_t ImmVal) const { in tryFoldImmWithOpSel()
495 if (AMDGPU::isInlinableLiteralV216(ImmVal, OpType)) { in tryFoldImmWithOpSel()
496 Old.ChangeToImmediate(ImmVal); in tryFoldImmWithOpSel()
520 static_cast<uint16_t>(ImmVal >> (ModVal & SISrcMods::OP_SEL_0 ? 16 : 0)); in tryFoldImmWithOpSel()
522 static_cast<uint16_t>(ImmVal >> (ModVal & SISrcMods::OP_SEL_1 ? 16 : 0)); in tryFoldImmWithOpSel()
613 std::optional<int64_t> ImmVal; in updateOperand() local
615 ImmVal = Fold.Def.getEffectiveImmVal(); in updateOperand()
617 if (ImmVal && canUseImmWithOpSel(Fold.UseMI, Fold.UseOpNo, *ImmVal)) { in updateOperand()
618 if (tryFoldImmWithOpSel(Fold.UseMI, Fold.UseOpNo, *ImmVal)) in updateOperand()
623 MachineOperand New = MachineOperand::CreateImm(*ImmVal); in updateOperand()
627 Old.ChangeToImmediate(*ImmVal); in updateOperand()
675 if (ImmVal) { in updateOperand()
685 MachineOperand New = MachineOperand::CreateImm(*ImmVal); in updateOperand()
690 Old.ChangeToImmediate(*ImmVal); in updateOperand()
776 if (std::optional<int64_t> ImmVal = OpToFold.getEffectiveImmVal()) in tryAddToFoldList() local
777 IsLegal = canUseImmWithOpSel(MI, OpNo, *ImmVal); in tryAddToFoldList()