Lines Matching full:clamp
337 AMDGPU::getNamedOperandIdx(Opcode, AMDGPU::OpName::clamp); in tryFoldImmWithOpSel()
338 bool Clamp = MI->getOperand(ClampIdx).getImm() != 0; in tryFoldImmWithOpSel() local
340 if (!Clamp) { in tryFoldImmWithOpSel()
1512 // Clamp patterns are canonically selected to v_max_* instructions, so only
1527 if (!TII->getNamedOperand(MI, AMDGPU::OpName::clamp)->getImm()) in isClamp()
1561 // FIXME: Clamp for v_mad_mixhi_f16 handled during isel.
1569 // The type of clamp must be compatible. in tryFoldClamp()
1576 MachineOperand *DefClamp = TII->getNamedOperand(*Def, AMDGPU::OpName::clamp); in tryFoldClamp()
1580 LLVM_DEBUG(dbgs() << "Folding clamp " << *DefClamp << " into " << *Def); in tryFoldClamp()
1582 // Clamp is applied after omod, so it is OK if omod is set. in tryFoldClamp()
1588 // Pseudo scalar instructions have a SGPR for dst and clamp is a v_max* in tryFoldClamp()
1695 TII->hasModifiersSet(MI, AMDGPU::OpName::clamp)) in isOMod()
1723 !TII->hasModifiersSet(MI, AMDGPU::OpName::clamp) && in isOMod()
1752 // Clamp is applied after omod. If the source already has clamp set, don't in tryFoldOMod()
1754 if (TII->hasModifiersSet(*Def, AMDGPU::OpName::clamp)) in tryFoldOMod()