/external/gemmlowp/fixedpoint/ |
D | fixedpoint.h | 229 template <typename IntegerType> 230 IntegerType RoundingHalfSum(IntegerType a, IntegerType b) { 231 static_assert(std::is_same<IntegerType, void>::value, "unimplemented"); 254 template <typename IntegerType> 255 IntegerType SaturatingAdd(IntegerType a, IntegerType b) { 256 static_assert(std::is_same<IntegerType, void>::value, "unimplemented"); 284 template <typename IntegerType, bool Is16Bit> 286 static IntegerType Run(IntegerType a, IntegerType b) { return Add(a, b); } 288 template <typename IntegerType> 289 struct AddSaturatingIf16BitImpl<IntegerType, true> { [all …]
|
/external/rust/crates/litrs/src/integer/ |
D | mod.rs | 34 type_suffix: Option<IntegerType>, 48 pub enum IntegerType { enum 146 pub fn type_suffix(&self) -> Option<IntegerType> { in type_suffix() argument 198 fn ty() -> IntegerType; in ty() 215 fn ty() -> IntegerType { 216 IntegerType::$variant 280 "u8" => Some(IntegerType::U8), in parse_impl() 281 "u16" => Some(IntegerType::U16), in parse_impl() 282 "u32" => Some(IntegerType::U32), in parse_impl() 283 "u64" => Some(IntegerType::U64), in parse_impl() [all …]
|
/external/pigweed/pw_random/ |
D | get_int_bounded_fuzzer.cc | 23 enum class IntegerType : uint8_t { enum 44 switch (provider.ConsumeEnum<IntegerType>()) { in LLVMFuzzerTestOneInput() 45 case IntegerType::kUint8: in LLVMFuzzerTestOneInput() 48 case IntegerType::kUint16: in LLVMFuzzerTestOneInput() 51 case IntegerType::kUint32: in LLVMFuzzerTestOneInput() 54 case IntegerType::kUint64: in LLVMFuzzerTestOneInput()
|
/external/AFLplusplus/instrumentation/ |
D | cmplog-instructions-pass.cc | 162 IntegerType *Int8Ty = IntegerType::getInt8Ty(C); in hookInstrs() 163 IntegerType *Int16Ty = IntegerType::getInt16Ty(C); in hookInstrs() 164 IntegerType *Int32Ty = IntegerType::getInt32Ty(C); in hookInstrs() 165 IntegerType *Int64Ty = IntegerType::getInt64Ty(C); in hookInstrs() 166 IntegerType *Int128Ty = IntegerType::getInt128Ty(C); in hookInstrs() 337 IntegerType *intTyOp0 = NULL; in hookInstrs() 338 IntegerType *intTyOp1 = NULL; in hookInstrs() 447 intTyOp0 = dyn_cast<IntegerType>(ty0); in hookInstrs() 448 intTyOp1 = dyn_cast<IntegerType>(ty1); in hookInstrs() 589 op0, IntegerType::get(C, ty0->getPrimitiveSizeInBits())); in hookInstrs() [all …]
|
D | cmplog-switches-pass.cc | 155 IntegerType *Int8Ty = IntegerType::getInt8Ty(C); 156 IntegerType *Int16Ty = IntegerType::getInt16Ty(C); 157 IntegerType *Int32Ty = IntegerType::getInt32Ty(C); 158 IntegerType *Int64Ty = IntegerType::getInt64Ty(C); 341 IRB.CreateIntCast(CompareTo, IntegerType::get(C, cast_size), false); 364 IRB.CreateIntCast(cint, IntegerType::get(C, cast_size), false);
|
D | split-compares-pass.so.cc | 235 IntegerType * Int1Ty = IntegerType::getInt1Ty(C); in simplifyFPCompares() 370 IntegerType *Int1Ty = IntegerType::getInt1Ty(C); in simplifyOrEqualsCompare() 457 IntegerType *Int1Ty = IntegerType::getInt1Ty(C); in simplifySignedCompare() 464 IntegerType *intTyOp0 = dyn_cast<IntegerType>(op0->getType()); in simplifySignedCompare() 467 IntegerType *IntType = IntegerType::get(C, bitw); in simplifySignedCompare() 580 IntegerType *intTyOp0 = dyn_cast<IntegerType>(op0->getType()); in splitCompare() 597 IntegerType *Int1Ty = IntegerType::getInt1Ty(C); in splitCompare() 599 IntegerType *OldIntType = IntegerType::get(C, bitw); in splitCompare() 600 IntegerType *NewIntType = IntegerType::get(C, bitw / 2); in splitCompare() 760 auto op0Ty = dyn_cast<IntegerType>(op0->getType()); in simplifyAndSplit() [all …]
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/ |
D | convert_tensor_test.cc | 144 {1, -1}, DT_INT8, mlir::IntegerType::get(&context, 8))); in TEST_F() 146 {1, -1}, DT_INT16, mlir::IntegerType::get(&context, 16))); in TEST_F() 148 {1, -1}, DT_INT32, mlir::IntegerType::get(&context, 32))); in TEST_F() 150 {1, -1}, DT_INT64, mlir::IntegerType::get(&context, 64))); in TEST_F() 154 mlir::IntegerType::get( in TEST_F() 155 &context, 8, mlir::IntegerType::SignednessSemantics::Unsigned))); in TEST_F() 158 mlir::IntegerType::get( in TEST_F() 159 &context, 16, mlir::IntegerType::SignednessSemantics::Unsigned))); in TEST_F() 162 mlir::IntegerType::get( in TEST_F() 163 &context, 32, mlir::IntegerType::SignednessSemantics::Unsigned))); in TEST_F() [all …]
|
/external/clang/lib/CodeGen/ |
D | CodeGenTypeCache.h | 22 class IntegerType; variable 37 llvm::IntegerType *Int8Ty, *Int16Ty, *Int32Ty, *Int64Ty; 42 llvm::IntegerType *IntTy; 46 llvm::IntegerType *IntPtrTy; 47 llvm::IntegerType *SizeTy; 48 llvm::IntegerType *PtrDiffTy;
|
/external/llvm/lib/IR/ |
D | Type.cpp | 51 return isIntegerTy() && cast<IntegerType>(this)->getBitWidth() == Bitwidth; in isIntegerTy() 117 case Type::IntegerTyID: return cast<IntegerType>(this)->getBitWidth(); in getPrimitiveSizeInBits() 166 IntegerType *Type::getInt1Ty(LLVMContext &C) { return &C.pImpl->Int1Ty; } in getInt1Ty() 167 IntegerType *Type::getInt8Ty(LLVMContext &C) { return &C.pImpl->Int8Ty; } in getInt8Ty() 168 IntegerType *Type::getInt16Ty(LLVMContext &C) { return &C.pImpl->Int16Ty; } in getInt16Ty() 169 IntegerType *Type::getInt32Ty(LLVMContext &C) { return &C.pImpl->Int32Ty; } in getInt32Ty() 170 IntegerType *Type::getInt64Ty(LLVMContext &C) { return &C.pImpl->Int64Ty; } in getInt64Ty() 171 IntegerType *Type::getInt128Ty(LLVMContext &C) { return &C.pImpl->Int128Ty; } in getInt128Ty() 173 IntegerType *Type::getIntNTy(LLVMContext &C, unsigned N) { in getIntNTy() 174 return IntegerType::get(C, N); in getIntNTy() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Type.cpp | 58 return isIntegerTy() && cast<IntegerType>(this)->getBitWidth() == Bitwidth; in isIntegerTy() 125 return TypeSize::Fixed(cast<IntegerType>(this)->getBitWidth()); in getPrimitiveSizeInBits() 177 IntegerType *Type::getInt1Ty(LLVMContext &C) { return &C.pImpl->Int1Ty; } in getInt1Ty() 178 IntegerType *Type::getInt8Ty(LLVMContext &C) { return &C.pImpl->Int8Ty; } in getInt8Ty() 179 IntegerType *Type::getInt16Ty(LLVMContext &C) { return &C.pImpl->Int16Ty; } in getInt16Ty() 180 IntegerType *Type::getInt32Ty(LLVMContext &C) { return &C.pImpl->Int32Ty; } in getInt32Ty() 181 IntegerType *Type::getInt64Ty(LLVMContext &C) { return &C.pImpl->Int64Ty; } in getInt64Ty() 182 IntegerType *Type::getInt128Ty(LLVMContext &C) { return &C.pImpl->Int128Ty; } in getInt128Ty() 184 IntegerType *Type::getIntNTy(LLVMContext &C, unsigned N) { in getIntNTy() 185 return IntegerType::get(C, N); in getIntNTy() [all …]
|
/external/llvm/examples/BrainF/ |
D | BrainF.cpp | 77 getOrInsertFunction("getchar", IntegerType::getInt32Ty(C), NULL)); in header() 81 getOrInsertFunction("putchar", IntegerType::getInt32Ty(C), in header() 82 IntegerType::getInt32Ty(C), NULL)); in header() 95 Type* IntPtrTy = IntegerType::getInt32Ty(C); in header() 96 Type* Int8Ty = IntegerType::getInt8Ty(C); in header() 158 getOrInsertFunction("puts", IntegerType::getInt32Ty(C), in header() 159 PointerType::getUnqual(IntegerType::getInt8Ty(C)), NULL)); in header() 166 Constant *zero_32 = Constant::getNullValue(IntegerType::getInt32Ty(C)); in header() 219 CreateTrunc(tape_0, IntegerType::getInt8Ty(C), tapereg); in readloop() 233 CreateSExt(tape_0, IntegerType::getInt32Ty(C), tapereg); in readloop() [all …]
|
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/ |
D | legalize_tf_types.cc | 51 return mlir::IntegerType::get(type.getContext(), 8); in ToLegalElementType() 54 return mlir::IntegerType::get(type.getContext(), 16); in ToLegalElementType() 57 return mlir::IntegerType::get(type.getContext(), 32); in ToLegalElementType() 60 return mlir::IntegerType::get( in ToLegalElementType() 62 mlir::IntegerType::SignednessSemantics::Unsigned); in ToLegalElementType() 65 return mlir::IntegerType::get( in ToLegalElementType() 67 mlir::IntegerType::SignednessSemantics::Unsigned); in ToLegalElementType()
|
D | xla_framework_to_llvm_pass.cc | 88 IntegerType::get(rewriter.getContext(), 8))), in LoadValue() 105 LLVM::LLVMPointerType::get(IntegerType::get(rewriter.getContext(), 8))); in convertFuncOpToLLVMFuncOp() 107 LLVM::LLVMPointerType::get(IntegerType::get(rewriter.getContext(), 8))); in convertFuncOpToLLVMFuncOp() 109 IntegerType::get(rewriter.getContext(), 8)))); in convertFuncOpToLLVMFuncOp() 111 IntegerType::get(rewriter.getContext(), 8)))); in convertFuncOpToLLVMFuncOp() 113 IntegerType::get(rewriter.getContext(), 64))); in convertFuncOpToLLVMFuncOp() 115 IntegerType::get(rewriter.getContext(), 64))); in convertFuncOpToLLVMFuncOp() 173 IntegerType::get(rewriter.getContext(), 8))); in convertFuncOpToLLVMFuncOp() 237 return LLVM::LLVMPointerType::get(IntegerType::get(ctx, 8)); in runOnOperation()
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/ |
D | depthwiseconv_3x3_filter_common.h | 186 template <typename IntegerType> 187 static inline IntegerType Run(IntegerType x, int exponent) { 191 template <typename IntegerType> 192 static inline IntegerType RunMult(IntegerType x, int exponent) { 200 template <typename IntegerType> 201 static inline IntegerType Run(IntegerType x, int exponent) { 204 template <typename IntegerType> 205 static inline IntegerType RunMult(IntegerType x, IntegerType exponent) { 208 template <typename IntegerType> 209 static inline IntegerType RunMult(IntegerType x, int exponent) {
|
/external/swiftshader/third_party/subzero/src/ |
D | IceTypeConverter.cpp | 24 llvm::Type *Type_i1 = llvm::IntegerType::get(Context, 1); in TypeConverter() 25 llvm::Type *Type_i8 = llvm::IntegerType::get(Context, 8); in TypeConverter() 26 llvm::Type *Type_i16 = llvm::IntegerType::get(Context, 16); in TypeConverter() 27 llvm::Type *Type_i32 = llvm::IntegerType::get(Context, 32); in TypeConverter() 33 addLLVMType(IceType_i64, llvm::IntegerType::get(Context, 64)); in TypeConverter()
|
/external/cronet/third_party/protobuf/ruby/tests/ |
D | type_errors.rb | 12 IntegerType = Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.4') ? Fixnum : Integer constant in TestTypeErrors 16 … "Invalid argument for string field 'optional_string' (given #{IntegerType.name})." do 20 "Invalid argument for string field 'oneof_string' (given #{IntegerType.name})." do 157 "Invalid type #{IntegerType.name} to assign to submessage field 'optional_msg'." do
|
/external/protobuf/ruby/tests/ |
D | type_errors.rb | 12 IntegerType = Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.4') ? Fixnum : Integer constant in TestTypeErrors 16 … "Invalid argument for string field 'optional_string' (given #{IntegerType.name})." do 20 "Invalid argument for string field 'oneof_string' (given #{IntegerType.name})." do 157 "Invalid type #{IntegerType.name} to assign to submessage field 'optional_msg'." do
|
/external/llvm/unittests/ExecutionEngine/Orc/ |
D | ObjectLinkingLayerTest.cpp | 71 Type *Int32Ty = IntegerType::get(Context, 32); in TEST() 142 IntegerType *Int32Ty = IntegerType::get(Context, 32); in TEST_F() 212 IntegerType *Int32Ty = IntegerType::get(Context, 32); in TEST_F() 227 IntegerType *Int32Ty = IntegerType::get(Context, 32); in TEST_F()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | TypePromotion.cpp | 108 IntegerType *OrigTy = nullptr; 114 IntegerType *ExtTy = nullptr; 129 IRPromoter(LLVMContext &C, IntegerType *Ty, unsigned Width, in IRPromoter() 135 ExtTy = IntegerType::get(Ctx, PromotedWidth); in IRPromoter() 229 if (!isa<IntegerType>(V->getType())) in isSource() 389 if (!isa<IntegerType>(V->getType()) || isSink(V)) in shouldPromote() 533 if ((Op->getType() == ExtTy) || !isa<IntegerType>(Op->getType())) in PromoteTree() 557 if (!isa<Instruction>(V) || !isa<IntegerType>(V->getType())) in TruncateSinks() 660 IntegerType *SrcTy = cast<IntegerType>(Trunc->getOperand(0)->getType()); in ConvertTruncs() 661 IntegerType *DestTy = cast<IntegerType>(TruncTysMap[Trunc][0]); in ConvertTruncs() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | Type.h | 32 class IntegerType; variable 419 static IntegerType *getIntNTy(LLVMContext &C, unsigned N); 420 static IntegerType *getInt1Ty(LLVMContext &C); 421 static IntegerType *getInt8Ty(LLVMContext &C); 422 static IntegerType *getInt16Ty(LLVMContext &C); 423 static IntegerType *getInt32Ty(LLVMContext &C); 424 static IntegerType *getInt64Ty(LLVMContext &C); 425 static IntegerType *getInt128Ty(LLVMContext &C);
|
/external/llvm/include/llvm/IR/ |
D | Type.h | 29 class IntegerType; variable 377 static IntegerType *getIntNTy(LLVMContext &C, unsigned N); 378 static IntegerType *getInt1Ty(LLVMContext &C); 379 static IntegerType *getInt8Ty(LLVMContext &C); 380 static IntegerType *getInt16Ty(LLVMContext &C); 381 static IntegerType *getInt32Ty(LLVMContext &C); 382 static IntegerType *getInt64Ty(LLVMContext &C); 383 static IntegerType *getInt128Ty(LLVMContext &C);
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | Type.h | 29 class IntegerType; variable 388 static IntegerType *getIntNTy(LLVMContext &C, unsigned N); 389 static IntegerType *getInt1Ty(LLVMContext &C); 390 static IntegerType *getInt8Ty(LLVMContext &C); 391 static IntegerType *getInt16Ty(LLVMContext &C); 392 static IntegerType *getInt32Ty(LLVMContext &C); 393 static IntegerType *getInt64Ty(LLVMContext &C); 394 static IntegerType *getInt128Ty(LLVMContext &C);
|
/external/tensorflow/tensorflow/compiler/mlir/tfrt/python_tests/ |
D | python_test_attrs.cc | 73 if (!a.isa<IntegerType>() || !b.isa<IntegerType>()) { in verifyRegionArgAttribute() 76 auto width_a = a.dyn_cast<IntegerType>().getWidth(); in verifyRegionArgAttribute() 77 auto width_b = b.dyn_cast<IntegerType>().getWidth(); in verifyRegionArgAttribute()
|
/external/proguard/src/proguard/classfile/attribute/preverification/ |
D | VerificationTypeFactory.java | 31 static final IntegerType INTEGER_TYPE = new IntegerType(); 43 public static IntegerType createIntegerType() in createIntegerType()
|
/external/tensorflow/tensorflow/lite/kernels/internal/ |
D | common.h | 533 template <typename IntegerType> 534 IntegerType SaturatingAddNonGemmlowp(IntegerType a, IntegerType b) { in SaturatingAddNonGemmlowp() 535 static_assert(std::is_same<IntegerType, void>::value, "unimplemented"); in SaturatingAddNonGemmlowp() 559 template <typename IntegerType> 560 IntegerType SaturatingSub(IntegerType a, IntegerType b) { in SaturatingSub() 561 static_assert(std::is_same<IntegerType, void>::value, "unimplemented"); in SaturatingSub() 596 template <typename IntegerType> 597 IntegerType SaturatingRoundingMultiplyByPOTParam(IntegerType x, int exponent) { in SaturatingRoundingMultiplyByPOTParam() 602 typename gemmlowp::FixedPointRawTypeTraits<IntegerType>::ScalarRawType; in SaturatingRoundingMultiplyByPOTParam() 603 const IntegerType min = in SaturatingRoundingMultiplyByPOTParam() [all …]
|