Home
last modified time | relevance | path

Searched full:clamp (Results 1 – 25 of 296) sorted by relevance

12345678910>>...12

/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DVINTERPInstructions.td21 bits<1> clamp;
33 let Inst{15} = clamp;
80 Clamp:$clamp,
83 let Asm64 = " $vdst, $src0_modifiers, $src1_modifiers, $src2_modifiers$clamp$waitexp";
98 Clamp:$clamp, op_sel0:$op_sel,
101 let Asm64 = " $vdst, $src0_modifiers, $src1_modifiers, $src2_modifiers$clamp$op_sel$waitexp";
136 0, /* clamp */
156 0, /* clamp */
H A DVOPInstructions.td231 bits<1> clamp;
249 let Inst{11} = !if(p.HasClamp, clamp{0}, 0);
254 let Inst{15} = !if(p.HasClamp, clamp{0}, 0);
263 let Inst{15} = !if(P.HasClamp, clamp{0}, 0);
385 bits<1> clamp;
400 let Inst{15} = !if(P.HasClamp, clamp{0}, 0);
483 bits<1> clamp;
484 let Inst{15} = !if(p.HasClamp, clamp{0}, 0);
492 bits<1> clamp;
494 let Inst{15} = !if(P.HasClamp, clamp{0}, 0);
[all …]
H A DSIInstrInfo.td55 def AMDGPUclamp : SDNode<"AMDGPUISD::CLAMP", SDTFPUnaryOp>;
1082 def Clamp : NamedBitOperand<"clamp">;
1083 def Clamp0 : DefaultOperand<Clamp, 0>;
1725 Clamp0:$clamp, omod0:$omod),
1727 (ins Src0Mod:$src0_modifiers, Src0RC:$src0, Clamp0:$clamp),
1732 (ins Src0RC:$src0, Clamp0:$clamp),
1741 Clamp0:$clamp, omod0:$omod),
1744 !if(HasClamp, (ins Clamp0:$clamp), (ins))))
1748 (ins Src0RC:$src0, Src1RC:$src1, Clamp0:$clamp),
1760 Clamp0:$clamp, omod0:$omod),
[all …]
H A DAMDGPURegBankCombiner.cpp222 // clamp(NaN) = dx10_clamp ? 0.0 : NaN
228 // with fmed3(Val, K0, K1) or clamp(Val). Clamp requires K0 = 0.0 and K1 = 1.0.
235 // min(max(NaN, K0), K1) = min(K0, K1) = K0 (can clamp when dx10_clamp = true)
278 // Clamp is available on all types after regbankselect (f16, f32, f64, v2f16). in matchFPMinMaxToClamp()
303 // Replacing fmed3(NaN, 0.0, 1.0) with clamp. Requires dx10_clamp = true.
314 // In llvm-ir, clamp is often represented as an intrinsic call to in matchFPMed3ToClamp()
H A DVOP1Instructions.td114 i1:$clamp, i32:$omod))))],
176 // Special profile for instructions which have clamp
181 let Ins64 = (ins Src0RC64:$src0, Clamp:$clamp, omod:$omod);
182 let InsVOP3Base = (ins Src0VOP3DPP:$src0, Clamp:$clamp, omod:$omod);
183 let AsmVOP3Base = "$vdst, $src0$clamp$omod";
192 let Ins64 = (ins Src0RC64:$src0, Clamp:$clamp, omod:$omod);
193 let InsVOP3Base = (ins Src0VOP3DPP:$src0, Clamp:$clamp, omod:$omod);
194 let AsmVOP3Base = "$vdst, $src0$clamp$omod";
389 Clamp:$clamp, dst_sel:$dst_sel, dst_unused:$dst_unused,
578 Clamp:$clamp, omod:$omod, src0_sel:$src0_sel);
[all …]
H A DVOP3PInstructions.td42 // following it. For now workaround this by requiring clamp
46 dag mods = !con(!if(UseTiedOutput, (ins Clamp:$clamp, VGPR_32:$vdst_in),
47 (ins Clamp0:$clamp)),
54 "$vdst, $src0_modifiers, $src1_modifiers, $src2_modifiers$op_sel$op_sel_hi$clamp";
128 // Integer operations with clamp bit set.
180 // FIXME: Special case handling for maxhi (especially for clamp)
257 // Clamp modifier is applied after conversion to f16.
278 // Clamp modifier is applied after conversion to f16.
424 i32:$src2, (i1 timm:$clamp)),
427 (i32 8), i32:$src2, i1:$clamp)
[all …]
H A DAMDGPUISelDAGToDAG.h210 SDValue &Clamp, SDValue &Omod) const;
212 SDValue &Clamp, SDValue &Omod) const;
214 SDValue &Clamp, SDValue &Omod) const;
221 bool SelectVOP3OMods(SDValue In, SDValue &Src, SDValue &Clamp,
H A DVOP3Instructions.td11 let Asm64 = " $vdst, $src0_modifiers, $src1_modifiers, $src2_modifiers$clamp$omod" in {
26 let Asm64 = "$vdst, $sdst, $src0_modifiers, $src1_modifiers, $src2_modifiers$clamp$omod";
40 let Asm64 = "$vdst, $sdst, $src0, $src1, $src2$clamp";
67 Clamp0:$clamp, omod0:$omod);
69 let Asm64 = "$vdst, $src0_modifiers, $attr$attrchan$clamp$omod";
75 Clamp0:$clamp, omod0:$omod);
77 let Asm64 = "$vdst, $src0, $attr$attrchan$clamp$omod";
87 " $vdst, $src0_modifiers, $attr$attrchan"#src2#"$high$clamp"#omod;
97 highmod:$high, Clamp0:$clamp, omod0:$omod),
101 highmod:$high, Clamp0:$clamp)
[all …]
H A DVOP2Instructions.td135 (VOP3Mods0 P.Src0VT:$src0, i32:$src0_modifiers, i1:$clamp, i32:$omod),
136 (VOP3Mods0 P.Src0VT:$src0, i32:$src0_modifiers, i1:$clamp))),
353 ps.Pfl.Src0RC32:$src0, ps.Pfl.Src1RC32:$src1, Clamp:$clamp),
454 Clamp:$clamp, omod:$omod,
539 let Asm64 = "$vdst, $src0, $src1$clamp";
545 let AsmVOP3Base = "$vdst, $sdst, $src0, $src1$clamp";
546 …let AsmSDWA = "$vdst, vcc, $src0_modifiers, $src1_modifiers$clamp $dst_sel $dst_unused $src0_sel $…
547 …let AsmSDWA9 = "$vdst, vcc, $src0_modifiers, $src1_modifiers$clamp $dst_sel $dst_unused $src0_sel …
572 …let AsmSDWA = "$vdst, vcc, $src0_modifiers, $src1_modifiers, vcc$clamp $dst_sel $dst_unused $src0_…
573 …let AsmSDWA9 = "$vdst, vcc, $src0_modifiers, $src1_modifiers, vcc$clamp $dst_sel $dst_unused $src0…
[all …]
H A DSIModeRegisterDefaults.h28 /// clamp NaN to zero; otherwise, pass NaN through.
83 // FIXME: Inlining should be OK for dx10-clamp, since the caller's mode should
H A DR600Instructions.td56 def CLAMP : InstFlag <"printClamp">;
104 (ins WRITE:$write, OMOD:$omod, REL:$dst_rel, CLAMP:$clamp,
109 "$clamp $last $dst$write$dst_rel$omod, "
146 OMOD:$omod, REL:$dst_rel, CLAMP:$clamp,
152 "$clamp $last $update_exec_mask$update_pred$dst$write$dst_rel$omod, "
186 (ins REL:$dst_rel, CLAMP:$clamp,
192 !strconcat(" ", opName, "$clamp
[all...]
H A DSIFoldOperands.cpp337 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()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__algorithm/
H A Dclamp.h25 clamp(_LIBCPP_LIFETIMEBOUND const _Tp& __v, in clamp() function
29 _LIBCPP_ASSERT_ARGUMENT_WITHIN_DOMAIN(!__comp(__hi, __lo), "Bad bounds passed to std::clamp"); in clamp()
35 clamp(_LIBCPP_LIFETIMEBOUND const _Tp& __v, in clamp() function
38 return std::clamp(__v, __lo, __hi, __less<>()); in clamp()
H A Dranges_clamp.h42 "Bad bounds passed to std::ranges::clamp");
56 inline constexpr auto clamp = __clamp::__fn{};
/freebsd/contrib/llvm-project/clang/lib/Headers/hlsl/
H A Dhlsl_intrinsics.h450 // clamp builtins
453 /// \fn T clamp(T X, T Min, T Max)
456 /// \param X A value to clamp.
461 /// For values of -INF or INF, clamp will behave as expected.
466 half clamp(half, half, half);
469 half2 clamp(half2, half2, half2);
472 half3 clamp(half3, half3, half3);
475 half4 clamp(half4, half4, half4);
480 int16_t clamp(int16_t, int16_t, int16_t);
483 int16_t2 clamp(int16_t2, int16_t2, int16_t2);
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIntrinsicsNVVM.td2639 // .clamp variants
2643 "llvm.nvvm.suld.1d.i8.clamp">;
2647 "llvm.nvvm.suld.1d.i16.clamp">;
2651 "llvm.nvvm.suld.1d.i32.clamp">;
2655 "llvm.nvvm.suld.1d.i64.clamp">;
2659 "llvm.nvvm.suld.1d.v2i8.clamp">;
2663 "llvm.nvvm.suld.1d.v2i16.clamp">;
2667 "llvm.nvvm.suld.1d.v2i32.clamp">;
2671 "llvm.nvvm.suld.1d.v2i64.clamp">;
2675 "llvm.nvvm.suld.1d.v4i8.clamp">;
[all …]
H A DIntrinsicsAMDGPU.td665 // Name of the {lod} or {clamp} argument that is appended to the coordinates,
692 let LodOrClamp = "clamp" in
2512 llvm_i1_ty, // %clamp
2587 llvm_i1_ty, // %clamp
2655 // f32 %r = llvm.amdgcn.fdot2(v2f16 %a, v2f16 %b, f32 %c, i1 %clamp)
2665 llvm_i1_ty // %clamp
2698 // f32 %r = llvm.amdgcn.fdot2.f32.bf16(v2bf16 %a, v2bf16 %b, f32 %c, i1 %clamp)
2708 llvm_i1_ty // %clamp
2713 // i32 %r = llvm.amdgcn.sdot2(v2i16 %a, v2i16 %b, i32 %c, i1 %clamp)
2723 llvm_i1_ty // %clamp
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXIntrinsics.td3969 defm SULD_1D_I8_CLAMP : SULD_1D<"suld.b.1d.b8.clamp", Int16Regs>;
3970 defm SULD_1D_I16_CLAMP : SULD_1D<"suld.b.1d.b16.clamp", Int16Regs>;
3971 defm SULD_1D_I32_CLAMP : SULD_1D<"suld.b.1d.b32.clamp", Int32Regs>;
3972 defm SULD_1D_I64_CLAMP : SULD_1D<"suld.b.1d.b64.clamp", Int64Regs>;
3995 : SULD_1D_ARRAY<"suld.b.a1d.b8.clamp", Int16Regs>;
3997 : SULD_1D_ARRAY<"suld.b.a1d.b16.clamp", Int16Regs>;
3999 : SULD_1D_ARRAY<"suld.b.a1d.b32.clamp", Int32Regs>;
4001 : SULD_1D_ARRAY<"suld.b.a1d.b64.clamp", Int64Regs>;
4031 defm SULD_2D_I8_CLAMP : SULD_2D<"suld.b.2d.b8.clamp", Int16Regs>;
4032 defm SULD_2D_I16_CLAMP : SULD_2D<"suld.b.2d.b16.clamp", Int16Regs>;
[all …]
/freebsd/contrib/bc/gen/
H A Ddc_help.txt75 -C --no-digit-clamp
86 -c --digit-clamp
210 If an integer and non-zero, clamp digits larger than or equal to the
H A Dbc_help.txt66 -C --no-digit-clamp
77 -c --digit-clamp
253 If an integer and non-zero, clamp digits larger than or equal to the
/freebsd/contrib/bc/include/
H A Dvm.h228 /// A convenience macro for getting the digit clamp flag.
260 /// Returns the string for the digit clamp environment variable.
263 /// Returns the default for the digit clamp environment variable.
314 /// Returns the string for the digit clamp environment variable.
317 /// Returns the default for the digit clamp environment variable.
369 /// Returns the string for the digit clamp environment variable.
372 /// Returns the default for the digit clamp environment variable.
579 /// Whether or not to clamp digits that are greater than or equal to the
/freebsd/crypto/openssl/crypto/ec/curve448/
H A Deddsa.c50 static void clamp(uint8_t secret_scalar_ser[EDDSA_448_PRIVATE_BYTES]) in clamp() function
129 clamp(secret_scalar_ser); in ossl_c448_ed448_derive_public_key()
188 clamp(expanded); in ossl_c448_ed448_sign()
/freebsd/share/man/man4/
H A Dmod_cc.4117 This value controls the maximum rtt variance clamp when considering if CSS is needed.
121 This value controls the minimum rtt variance clamp when considering if CSS is needed.
/freebsd/contrib/llvm-project/clang/lib/Headers/
H A Dopencl-c.h9223 char __ovld __cnfn clamp(char, char, char);
9224 uchar __ovld __cnfn clamp(uchar, uchar, uchar);
9225 char2 __ovld __cnfn clamp(char2, char2, char2);
9226 uchar2 __ovld __cnfn clamp(uchar2, uchar2, uchar2);
9227 char3 __ovld __cnfn clamp(char3, char3, char3);
9228 uchar3 __ovld __cnfn clamp(uchar3, uchar3, uchar3);
9229 char4 __ovld __cnfn clamp(char4, char4, char4);
9230 uchar4 __ovld __cnfn clamp(uchar4, uchar4, uchar4);
9231 char8 __ovld __cnfn clamp(char8, char8, char8);
9232 uchar8 __ovld __cnfn clamp(uchar8, uchar8, uchar8);
[all …]
/freebsd/contrib/bc/manuals/dc/
H A DEH.135 [\f[B]\-\-help\f[R]] [\f[B]\-\-digit\-clamp\f[R]]
36 [\f[B]\-\-no\-digit\-clamp\f[R]] [\f[B]\-\-interactive\f[R]]
62 \f[B]\-C\f[R], \f[B]\-\-no\-digit\-clamp\f[R]
72 If this and/or the \f[B]\-c\f[R] or \f[B]\-\-digit\-clamp\f[R] options
82 \f[B]\-c\f[R], \f[B]\-\-digit\-clamp\f[R]
93 If this and/or the \f[B]\-C\f[R] or \f[B]\-\-no\-digit\-clamp\f[R]
347 the \f[B]\-c\f[R]/\f[B]\-\-digit\-clamp\f[R] or
348 \f[B]\-C\f[R]/\f[B]\-\-no\-digit\-clamp\f[R] options (see the
1267 contains an integer, a non\-zero value makes dc(1) clamp digits that are

12345678910>>...12