/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-c-test/ |
D | echo.cpp | 64 LLVMTypeRef Clone(LLVMValueRef Src) { in Clone() 65 return Clone(LLVMTypeOf(Src)); in Clone() 68 LLVMTypeRef Clone(LLVMTypeRef Src) { in Clone() 69 LLVMTypeKind Kind = LLVMGetTypeKind(Src); in Clone() 88 return LLVMIntTypeInContext(Ctx, LLVMGetIntTypeWidth(Src)); in Clone() 90 unsigned ParamCount = LLVMCountParamTypes(Src); in Clone() 95 LLVMGetParamTypes(Src, Params); in Clone() 100 LLVMTypeRef FunTy = LLVMFunctionType(Clone(LLVMGetReturnType(Src)), in Clone() 102 LLVMIsFunctionVarArg(Src)); in Clone() 109 const char *Name = LLVMGetStructName(Src); in Clone() [all …]
|
/external/webrtc/webrtc/base/ |
D | safe_conversions_impl.h | 39 template <typename Dst, typename Src, 42 SrcSign IsSrcSigned = std::numeric_limits<Src>::is_signed ? 46 template <typename Dst, typename Src> 47 struct StaticRangeCheck<Dst, Src, DST_SIGNED, SRC_SIGNED> { 49 typedef std::numeric_limits<Src> SrcLimits; 56 (sizeof(Src) * 8 - 1); 61 template <typename Dst, typename Src> 62 struct StaticRangeCheck<Dst, Src, DST_UNSIGNED, SRC_UNSIGNED> { 63 static const DstRange value = sizeof(Dst) >= sizeof(Src) ? 67 template <typename Dst, typename Src> [all …]
|
/external/llvm/tools/llvm-c-test/ |
D | echo.cpp | 64 LLVMTypeRef Clone(LLVMValueRef Src) { in Clone() 65 return Clone(LLVMTypeOf(Src)); in Clone() 68 LLVMTypeRef Clone(LLVMTypeRef Src) { in Clone() 69 LLVMTypeKind Kind = LLVMGetTypeKind(Src); in Clone() 88 return LLVMIntTypeInContext(Ctx, LLVMGetIntTypeWidth(Src)); in Clone() 90 unsigned ParamCount = LLVMCountParamTypes(Src); in Clone() 94 LLVMGetParamTypes(Src, Params); in Clone() 99 LLVMTypeRef FunTy = LLVMFunctionType(Clone(LLVMGetReturnType(Src)), in Clone() 101 LLVMIsFunctionVarArg(Src)); in Clone() 108 const char *Name = LLVMGetStructName(Src); in Clone() [all …]
|
/external/v8/src/base/ |
D | safe_conversions_impl.h | 51 typename Src, 56 std::numeric_limits<Src>::is_signed 63 template <typename Dst, typename Src, IntegerRepresentation Sign> 64 struct StaticDstRangeRelationToSrcRange<Dst, Src, Sign, Sign> { 66 MaxExponent<Dst>::value >= MaxExponent<Src>::value 73 template <typename Dst, typename Src> 75 Src, 79 MaxExponent<Dst>::value > MaxExponent<Src>::value 85 template <typename Dst, typename Src> 87 Src, [all …]
|
D | safe_math.h | 55 template <typename Src> 56 CheckedNumeric(const CheckedNumeric<Src>& rhs) in CheckedNumeric() 59 template <typename Src> 60 CheckedNumeric(Src value, RangeConstraint validity) in CheckedNumeric() 65 template <typename Src> 66 CheckedNumeric(Src value) // NOLINT in CheckedNumeric() 69 STATIC_ASSERT(std::numeric_limits<Src>::is_specialized); in CheckedNumeric() 117 template <typename Src> CheckedNumeric& operator+=(Src rhs); 118 template <typename Src> CheckedNumeric& operator-=(Src rhs); 119 template <typename Src> CheckedNumeric& operator*=(Src rhs); [all …]
|
/external/libchrome/base/numerics/ |
D | safe_conversions.h | 27 template <typename Dst, typename Src> 30 static constexpr Dst Do(Src) { in Do() 40 template <typename Dst, typename Src, typename Enable = void> 43 static constexpr bool Do(Src value) { in Do() 50 template <typename Dst, typename Src> 53 Src, 55 std::is_integral<Dst>::value && std::is_integral<Src>::value && 56 std::is_signed<Dst>::value && std::is_signed<Src>::value && 57 !IsTypeInRangeForNumericType<Dst, Src>::value>::type> { 60 static constexpr bool Do(Src value) { [all …]
|
D | checked_math.h | 29 template <typename Src> 30 constexpr CheckedNumeric(const CheckedNumeric<Src>& rhs) in CheckedNumeric() 33 template <typename Src> 38 template <typename Src> 39 constexpr CheckedNumeric(Src value) // NOLINT(runtime/explicit) in CheckedNumeric() 41 static_assert(std::is_arithmetic<Src>::value, "Argument must be numeric."); in CheckedNumeric() 46 template <typename Src> 48 StrictNumeric<Src> value) // NOLINT(runtime/explicit) in CheckedNumeric() 49 : state_(static_cast<Src>(value)) {} in CheckedNumeric() 97 template <typename Dst = T, typename Src> [all …]
|
D | clamped_math.h | 29 template <typename Src> 30 constexpr ClampedNumeric(const ClampedNumeric<Src>& rhs) in ClampedNumeric() 33 template <typename Src> 38 template <typename Src> 39 constexpr ClampedNumeric(Src value) // NOLINT(runtime/explicit) in ClampedNumeric() 41 static_assert(std::is_arithmetic<Src>::value, "Argument must be numeric."); in ClampedNumeric() 46 template <typename Src> 48 StrictNumeric<Src> value) // NOLINT(runtime/explicit) in ClampedNumeric() 49 : value_(saturated_cast<T>(static_cast<Src>(value))) {} in ClampedNumeric() 59 template <typename Src> [all …]
|
D | safe_conversions_impl.h | 148 typename Src, 152 IntegerRepresentation SrcSign = std::is_signed<Src>::value 159 template <typename Dst, typename Src, IntegerRepresentation Sign> 160 struct StaticDstRangeRelationToSrcRange<Dst, Src, Sign, Sign> { 162 MaxExponent<Dst>::value >= MaxExponent<Src>::value 169 template <typename Dst, typename Src> 171 Src, 175 MaxExponent<Dst>::value > MaxExponent<Src>::value 181 template <typename Dst, typename Src> 183 Src, [all …]
|
/external/swiftshader/src/Pipeline/ |
D | VertexProgram.hpp | 62 typedef Shader::SourceParameter Src; typedef in sw::VertexProgram 68 Vector4f fetchRegister(const Src &src, unsigned int offset = 0); 69 Vector4f readConstant(const Src &src, unsigned int offset = 0); 76 void M3X2(Vector4f &dst, Vector4f &src0, Src &src1); 77 void M3X3(Vector4f &dst, Vector4f &src0, Src &src1); 78 void M3X4(Vector4f &dst, Vector4f &src0, Src &src1); 79 void M4X3(Vector4f &dst, Vector4f &src0, Src &src1); 80 void M4X4(Vector4f &dst, Vector4f &src0, Src &src1); 83 void BREAKP(const Src &predicateRegister); 88 void CALLNZ(int labelIndex, int callSiteIndex, const Src &src); [all …]
|
D | PixelProgram.hpp | 85 …Vector4f sampleTexture(const Src &sampler, Vector4f &uvwq, Float4 &bias, Vector4f &dsx, Vector4f &… 93 Vector4f fetchRegister(const Src &src, unsigned int offset = 0); 94 Vector4f readConstant(const Src &src, unsigned int offset = 0); 105 void M3X2(Vector4f &dst, Vector4f &src0, const Src &src1); 106 void M3X3(Vector4f &dst, Vector4f &src0, const Src &src1); 107 void M3X4(Vector4f &dst, Vector4f &src0, const Src &src1); 108 void M4X3(Vector4f &dst, Vector4f &src0, const Src &src1); 109 void M4X4(Vector4f &dst, Vector4f &src0, const Src &src1); 110 void TEX(Vector4f &dst, Vector4f &src0, const Src &src1, bool project, bool bias); 111 void TEXLOD(Vector4f &dst, Vector4f &src0, const Src &src1, Float4 &lod); [all …]
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
D | radeon_program_pair.c | 53 if (rgb && pair->RGB.Src[RC_PAIR_PRESUB_SRC].Used in rc_pair_alloc_source() 54 && index != pair->RGB.Src[RC_PAIR_PRESUB_SRC].Index) { in rc_pair_alloc_source() 58 if (alpha && pair->Alpha.Src[RC_PAIR_PRESUB_SRC].Used in rc_pair_alloc_source() 59 && index != pair->Alpha.Src[RC_PAIR_PRESUB_SRC].Index) { in rc_pair_alloc_source() 67 if (pair->RGB.Src[i].Used) { in rc_pair_alloc_source() 68 if (pair->RGB.Src[i].File != file || in rc_pair_alloc_source() 69 pair->RGB.Src[i].Index != index) { in rc_pair_alloc_source() 77 if (pair->Alpha.Src[i].Used) { in rc_pair_alloc_source() 78 if (pair->Alpha.Src[i].File != file || in rc_pair_alloc_source() 79 pair->Alpha.Src[i].Index != index) { in rc_pair_alloc_source() [all …]
|
/external/swiftshader/src/Shader/ |
D | VertexProgram.hpp | 62 typedef Shader::SourceParameter Src; typedef in sw::VertexProgram 70 Vector4f fetchRegister(const Src &src, unsigned int offset = 0); 71 Vector4f readConstant(const Src &src, unsigned int offset = 0); 78 void M3X2(Vector4f &dst, Vector4f &src0, Src &src1); 79 void M3X3(Vector4f &dst, Vector4f &src0, Src &src1); 80 void M3X4(Vector4f &dst, Vector4f &src0, Src &src1); 81 void M4X3(Vector4f &dst, Vector4f &src0, Src &src1); 82 void M4X4(Vector4f &dst, Vector4f &src0, Src &src1); 85 void BREAKP(const Src &predicateRegister); 91 void CALLNZ(int labelIndex, int callSiteIndex, const Src &src); [all …]
|
D | PixelProgram.hpp | 85 …Vector4f sampleTexture(const Src &sampler, Vector4f &uvwq, Float4 &bias, Vector4f &dsx, Vector4f &… 93 Vector4f fetchRegister(const Src &src, unsigned int offset = 0); 94 Vector4f readConstant(const Src &src, unsigned int offset = 0); 105 void M3X2(Vector4f &dst, Vector4f &src0, const Src &src1); 106 void M3X3(Vector4f &dst, Vector4f &src0, const Src &src1); 107 void M3X4(Vector4f &dst, Vector4f &src0, const Src &src1); 108 void M4X3(Vector4f &dst, Vector4f &src0, const Src &src1); 109 void M4X4(Vector4f &dst, Vector4f &src0, const Src &src1); 110 void TEX(Vector4f &dst, Vector4f &src0, const Src &src1, bool project, bool bias); 111 void TEXLOD(Vector4f &dst, Vector4f &src0, const Src &src1, Float4 &lod); [all …]
|
/external/pdfium/third_party/base/numerics/ |
D | safe_math.h | 106 template <typename Src> 107 constexpr CheckedNumeric(const CheckedNumeric<Src>& rhs) in CheckedNumeric() 110 template <typename Src> 115 template <typename Src> 116 constexpr CheckedNumeric(Src value) // NOLINT(runtime/explicit) in CheckedNumeric() 118 static_assert(std::is_arithmetic<Src>::value, "Argument must be numeric."); in CheckedNumeric() 123 template <typename Src> 125 StrictNumeric<Src> value) // NOLINT(runtime/explicit) in CheckedNumeric() 126 : state_(static_cast<Src>(value)) {} in CheckedNumeric() 166 template <typename Dst = T, typename Src> [all …]
|
D | safe_conversions.h | 53 template <typename Dst, typename Src> 54 constexpr bool IsValueInRangeForNumericType(Src value) { in IsValueInRangeForNumericType() 74 template <typename Dst, class CheckHandler = CheckOnFailure, typename Src> 75 constexpr Dst checked_cast(Src value) { in checked_cast() 78 using SrcType = typename internal::UnderlyingType<Src>::type; in checked_cast() 108 template <typename Dst, template <typename> class S, typename Src> 109 constexpr Dst saturated_cast_impl(Src value, RangeCheck constraint) { in saturated_cast_impl() 116 : (std::is_integral<Src>::value || !constraint.IsUnderflowFlagSet() in saturated_cast_impl() 128 typename Src> 129 constexpr Dst saturated_cast(Src value) { in saturated_cast() [all …]
|
/external/swiftshader/third_party/subzero/unittest/AssemblerX8664/ |
D | XmmArith.cpp | 17 #define TestArithSSXmmXmm(FloatSize, Src, Value0, Dst, Value1, Inst, Op) \ in TEST_F() argument 22 "(" #FloatSize ", " #Src ", " #Value0 ", " #Dst ", " #Value1 \ in TEST_F() 32 __ movss(IceType_f##FloatSize, Encoded_Xmm_##Src(), dwordAddress(T1)); \ in TEST_F() 33 __ Inst(IceType_f##FloatSize, Encoded_Xmm_##Dst(), Encoded_Xmm_##Src()); \ in TEST_F() 82 #define TestArithSS(FloatSize, Src, Dst0, Dst1) \ in TEST_F() argument 84 TestArithSSXmmXmm(FloatSize, Src, 1.0, Dst0, 10.0, addss, +); \ in TEST_F() 86 TestArithSSXmmXmm(FloatSize, Src, 3.0, Dst0, 30.0, subss, -); \ in TEST_F() 88 TestArithSSXmmXmm(FloatSize, Src, 5.0, Dst0, 50.0, mulss, *); \ in TEST_F() 90 TestArithSSXmmXmm(FloatSize, Src, 7.0, Dst0, 70.0, divss, / ); \ in TEST_F() 94 #define TestImpl(Src, Dst0, Dst1) \ in TEST_F() argument [all …]
|
D | DataMov.cpp | 99 #define TestMemReg(Src, Size) \ in TEST_F() argument 101 static constexpr char TestString[] = "(" #Src ", " #Size ")"; \ in TEST_F() 106 __ mov(IceType_i32, Encoded_GPR_##Src(), Immediate(Value)); \ in TEST_F() 107 __ mov(IceType_i##Size, dwordAddress(T0), Encoded_GPR_##Src()); \ in TEST_F() 118 #define TestImpl(Src) \ in TEST_F() argument 120 TestMemReg(Src, 8); \ in TEST_F() 121 TestMemReg(Src, 16); \ in TEST_F() 122 TestMemReg(Src, 32); \ in TEST_F() 123 TestMemReg(Src, 64); \ in TEST_F() 156 #define TestRegReg(Dst, Src, Suffix, Size) \ in TEST_F() argument [all …]
|
/external/swiftshader/third_party/subzero/unittest/AssemblerX8632/ |
D | XmmArith.cpp | 17 #define TestArithSSXmmXmm(FloatSize, Src, Value0, Dst, Value1, Inst, Op) \ in TEST_F() argument 22 "(" #FloatSize ", " #Src ", " #Value0 ", " #Dst ", " #Value1 \ in TEST_F() 33 __ movss(IceType_f##FloatSize, XmmRegister::Encoded_Reg_##Src, \ in TEST_F() 36 XmmRegister::Encoded_Reg_##Src); \ in TEST_F() 87 #define TestArithSS(FloatSize, Src, Dst0, Dst1) \ in TEST_F() argument 89 TestArithSSXmmXmm(FloatSize, Src, 1.0, Dst0, 10.0, addss, +); \ in TEST_F() 91 TestArithSSXmmXmm(FloatSize, Src, 3.0, Dst0, 30.0, subss, -); \ in TEST_F() 93 TestArithSSXmmXmm(FloatSize, Src, 5.0, Dst0, 50.0, mulss, *); \ in TEST_F() 95 TestArithSSXmmXmm(FloatSize, Src, 7.0, Dst0, 70.0, divss, / ); \ in TEST_F() 123 #define TestPArithXmmXmm(Dst, Value0, Src, Value1, Inst, Op, Type, Size) \ in TEST_F() argument [all …]
|
D | GPRArith.cpp | 326 #define TestImplRegReg(Dst, Value0, Src, Value1, Size) \ in TEST_F() argument 330 "(" #Dst ", " #Value0 ", " #Src ", " #Value1 ", " #Size ")"; \ in TEST_F() 336 __ mov(IceType_i##Size, GPRRegister::Encoded_Reg_##Src, \ in TEST_F() 339 GPRRegister::Encoded_Reg_##Src); \ in TEST_F() 388 #define TestImplAddrReg(Value0, Src, Value1, Size) \ in TEST_F() argument 392 "(Addr, " #Value0 ", " #Src ", " #Value1 ", " #Size ")"; \ in TEST_F() 397 __ mov(IceType_i##Size, GPRRegister::Encoded_Reg_##Src, \ in TEST_F() 400 GPRRegister::Encoded_Reg_##Src); \ in TEST_F() 446 #define TestImplValues(Dst, Value0, Src, Value1, Size) \ in TEST_F() argument 448 TestImplRegReg(Dst, Value0, Src, Value1, Size); \ in TEST_F() [all …]
|
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_transform.h | 286 tgsi_transform_src_reg_xyzw(&inst.Src[0], src0_file, src0_index); in tgsi_transform_op1_inst() 313 tgsi_transform_src_reg_xyzw(&inst.Src[0], src0_file, src0_index); in tgsi_transform_op2_inst() 314 tgsi_transform_src_reg_xyzw(&inst.Src[1], src1_file, src1_index); in tgsi_transform_op2_inst() 315 inst.Src[1].Register.Negate = src1_negate; in tgsi_transform_op2_inst() 343 tgsi_transform_src_reg_xyzw(&inst.Src[0], src0_file, src0_index); in tgsi_transform_op3_inst() 344 tgsi_transform_src_reg_xyzw(&inst.Src[1], src1_file, src1_index); in tgsi_transform_op3_inst() 345 tgsi_transform_src_reg_xyzw(&inst.Src[2], src2_file, src2_index); in tgsi_transform_op3_inst() 371 tgsi_transform_src_reg_xyzw(&inst.Src[0], src0_file, src0_index); in tgsi_transform_op1_swz_inst() 374 inst.Src[0].Register.SwizzleX = src0_swizzle; in tgsi_transform_op1_swz_inst() 377 inst.Src[0].Register.SwizzleY = src0_swizzle; in tgsi_transform_op1_swz_inst() [all …]
|
D | tgsi_lowering.c | 143 reg_src(&new_inst.Src[0], src, SWIZ(X, Y, Z, W)); in create_mov() 201 struct tgsi_full_src_register *src0 = &inst->Src[0]; in transform_dst() 202 struct tgsi_full_src_register *src1 = &inst->Src[1]; in transform_dst() 222 reg_src(&new_inst.Src[0], src0, SWIZ(_, Y, _, _)); in transform_dst() 223 reg_src(&new_inst.Src[1], src1, SWIZ(_, Y, _, _)); in transform_dst() 234 reg_src(&new_inst.Src[0], src0, SWIZ(_, _, Z, _)); in transform_dst() 245 reg_src(&new_inst.Src[0], src1, SWIZ(_, _, _, W)); in transform_dst() 256 reg_src(&new_inst.Src[0], &ctx->imm, SWIZ(Y, _, _, _)); in transform_dst() 282 struct tgsi_full_src_register *src0 = &inst->Src[0]; in transform_lrp() 283 struct tgsi_full_src_register *src1 = &inst->Src[1]; in transform_lrp() [all …]
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonPeephole.cpp | 105 void ChangeOpInto(MachineOperand &Dst, MachineOperand &Src); 141 MachineOperand &Src = MI.getOperand(1); in runOnMachineFunction() local 143 unsigned SrcReg = Src.getReg(); in runOnMachineFunction() 190 MachineOperand &Src = MI.getOperand(1); in runOnMachineFunction() local 192 unsigned SrcReg = Src.getReg(); in runOnMachineFunction() 208 MachineOperand &Src = MI.getOperand(1); in runOnMachineFunction() local 211 if (Src.getSubReg() != Hexagon::subreg_loreg) in runOnMachineFunction() 215 unsigned SrcReg = Src.getReg(); in runOnMachineFunction() 300 void HexagonPeephole::ChangeOpInto(MachineOperand &Dst, MachineOperand &Src) { in ChangeOpInto() argument 301 assert (&Dst != &Src && "Cannot duplicate into itself"); in ChangeOpInto() [all …]
|
/external/llvm/lib/CodeGen/ |
D | MachineBranchProbabilityInfo.cpp | 44 const MachineBasicBlock *Src, in getEdgeProbability() argument 46 return Src->getSuccProbability(Dst); in getEdgeProbability() 50 const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const { in getEdgeProbability() argument 53 return getEdgeProbability(Src, in getEdgeProbability() 54 std::find(Src->succ_begin(), Src->succ_end(), Dst)); in getEdgeProbability() 58 const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const { in isEdgeHot() argument 60 return getEdgeProbability(Src, Dst) > HotProb; in isEdgeHot() 84 raw_ostream &OS, const MachineBasicBlock *Src, in printEdgeProbability() argument 87 const BranchProbability Prob = getEdgeProbability(Src, Dst); in printEdgeProbability() 88 OS << "edge MBB#" << Src->getNumber() << " -> MBB#" << Dst->getNumber() in printEdgeProbability() [all …]
|
/external/swiftshader/third_party/subzero/src/ |
D | IceTargetLoweringMIPS32.h | 178 void _andi(Variable *Dest, Variable *Src, uint32_t Imm) { in _andi() argument 179 Context.insert<InstMIPS32Andi>(Dest, Src, Imm); in _andi() 210 void _abs_d(Variable *Dest, Variable *Src) { in _abs_d() argument 211 Context.insert<InstMIPS32Abs_d>(Dest, Src); in _abs_d() 214 void _abs_s(Variable *Dest, Variable *Src) { in _abs_s() argument 215 Context.insert<InstMIPS32Abs_s>(Dest, Src); in _abs_s() 218 void _addi(Variable *Dest, Variable *Src, uint32_t Imm) { in _addi() argument 219 Context.insert<InstMIPS32Addi>(Dest, Src, Imm); in _addi() 230 void _addiu(Variable *Dest, Variable *Src, uint32_t Imm) { in _addiu() argument 231 Context.insert<InstMIPS32Addiu>(Dest, Src, Imm); in _addiu() [all …]
|