/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 33 return ConstantInt::get(Val->getType(), 0); in decomposeSimpleLinearExpr() 83 PointerType *PTy = cast<PointerType>(CI.getType()); in PromoteCastOfAllocation() 129 Amt = ConstantInt::get(AI.getArraySize()->getType(), Scale); in PromoteCastOfAllocation() 135 Value *Off = ConstantInt::get(AI.getArraySize()->getType(), in PromoteCastOfAllocation() 151 Value *NewCast = AllocaBuilder.CreateBitCast(New, AI.getType(), "tmpcast"); in PromoteCastOfAllocation() 196 if (I->getOperand(0)->getType() == Ty) in EvaluateInDifferentType() 238 Type *SrcTy = CI->getOperand(0)->getType(); // A from above in isEliminableCastPair() 239 Type *MidTy = CI->getType(); // B from above in isEliminableCastPair() 270 if (V->getType() == Ty || isa<Constant>(V)) return false; in ShouldOptimizeCast() 295 isEliminableCastPair(CSrc, CI.getOpcode(), CI.getType(), DL)) { in commonCastTransforms() [all …]
|
D | InstCombineCalls.cpp | 91 cast<PointerType>(MI->getArgOperand(1)->getType())->getAddressSpace(); in SimplifyMemTransfer() 93 cast<PointerType>(MI->getArgOperand(0)->getType())->getAddressSpace(); in SimplifyMemTransfer() 108 Type *SrcETy = cast<PointerType>(StrippedDest->getType()) in SimplifyMemTransfer() 153 MI->setArgOperand(2, Constant::getNullValue(MemOpLength->getType())); in SimplifyMemTransfer() 168 if (!LenC || !FillC || !FillC->getType()->isIntegerTy(8)) in SimplifyMemSet() 179 unsigned DstAddrSp = cast<PointerType>(Dest->getType())->getAddressSpace(); in SimplifyMemSet() 193 MI->setLength(Constant::getNullValue(LenC->getType())); in SimplifyMemSet() 261 auto VT = cast<VectorType>(CDV->getType()); in SimplifyX86immshift() 278 auto VT = cast<VectorType>(Vec->getType()); in SimplifyX86immshift() 313 VectorType *SrcTy = cast<VectorType>(II.getArgOperand(0)->getType()); in SimplifyX86extend() [all …]
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/raw/util/ |
D | DexAnnotator.java | 91 switch (mapItem.getType()) { in DexAnnotator() 93 annotators.put(mapItem.getType(), HeaderItem.makeAnnotator(this, mapItem)); in DexAnnotator() 96 annotators.put(mapItem.getType(), StringIdItem.makeAnnotator(this, mapItem)); in DexAnnotator() 99 annotators.put(mapItem.getType(), TypeIdItem.makeAnnotator(this, mapItem)); in DexAnnotator() 102 annotators.put(mapItem.getType(), ProtoIdItem.makeAnnotator(this, mapItem)); in DexAnnotator() 105 annotators.put(mapItem.getType(), FieldIdItem.makeAnnotator(this, mapItem)); in DexAnnotator() 108 annotators.put(mapItem.getType(), MethodIdItem.makeAnnotator(this, mapItem)); in DexAnnotator() 111 annotators.put(mapItem.getType(), ClassDefItem.makeAnnotator(this, mapItem)); in DexAnnotator() 114 annotators.put(mapItem.getType(), MapItem.makeAnnotator(this, mapItem)); in DexAnnotator() 117 annotators.put(mapItem.getType(), TypeListItem.makeAnnotator(this, mapItem)); in DexAnnotator() [all …]
|
/external/compiler-rt/lib/ubsan/ |
D | ubsan_value.cc | 24 CHECK(getType().isSignedIntegerTy()); in getSIntValue() 29 sizeof(SIntMax) * 8 - getType().getIntegerBitWidth(); in getSIntValue() 32 if (getType().getIntegerBitWidth() == 64) in getSIntValue() 35 if (getType().getIntegerBitWidth() == 128) in getSIntValue() 38 if (getType().getIntegerBitWidth() == 128) in getSIntValue() 45 CHECK(getType().isUnsignedIntegerTy()); in getUIntValue() 48 if (getType().getIntegerBitWidth() == 64) in getUIntValue() 51 if (getType().getIntegerBitWidth() == 128) in getUIntValue() 54 if (getType().getIntegerBitWidth() == 128) in getUIntValue() 61 if (getType().isUnsignedIntegerTy()) in getPositiveIntValue() [all …]
|
/external/llvm/lib/CodeGen/ |
D | IntrinsicLowering.cpp | 34 ParamTys.push_back(I->getType()); in EnsureFunctionExists() 42 switch((int)Fn.arg_begin()->getType()->getTypeID()) { in EnsureFPIntrinsicsExist() 55 Fn.arg_begin()->getType()); in EnsureFPIntrinsicsExist() 74 ParamTys.push_back((*I)->getType()); in ReplaceCallWith() 167 assert(V->getType()->isIntegerTy() && "Can't bswap a non-integer type!"); in LowerBSWAP() 169 unsigned BitSize = V->getType()->getPrimitiveSizeInBits(); in LowerBSWAP() 176 Value *Tmp1 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP() 178 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP() 184 Value *Tmp4 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24), in LowerBSWAP() 186 Value *Tmp3 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP() [all …]
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
D | TypeTokenResolutionTest.java | 57 return new TypeToken<A[]>(getClass()) {}.getType(); in getArrayTypeA() 89 assertEquals(new TypeToken<String[]>() {}.getType(), foo.getArrayTypeA()); in testPartialSpecialization() 148 assertEquals(new TypeToken<List<String>>() {}.getType(), 150 .getType()); 190 final Type f = new TypeToken<F>(getClass()) {}.getType(); 191 final Type t = new TypeToken<T>(getClass()) {}.getType(); 194 return new TypeToken<F>(getClass()) {}.getType(); 198 return new TypeToken<T>(getClass()) {}.getType(); 232 TypeToken.of(ParameterizedOuter.class).resolveType(fieldType).getType()); 238 assertEquals(String.class, TypeToken.of(this.getClass()).resolveType(String.class).getType()); [all …]
|
/external/skia/src/animator/ |
D | SkDisplayable.h | 68 virtual SkDisplayTypes getType() const; 71 SkDisplayTypes type = getType(); in isAnimate() 73 bool isApply() const { return getType() == SkType_Apply; } in isApply() 74 bool isColor() const { return getType() == SkType_Color; } in isColor() 76 bool isGroup() const { return getType() == SkType_Group || in isGroup() 77 getType() == SkType_Save || getType() == SkType_DrawTo || in isGroup() 78 getType() == SkType_SaveLayer; } in isGroup() 79 bool isMatrix() const { return getType() == SkType_Matrix; } in isMatrix() 80 virtual bool isPaint() const { return getType() == SkType_Paint; } in isPaint() 82 bool isPost() const { return getType() == SkType_Post; } in isPost() [all …]
|
/external/clang/lib/CodeGen/ |
D | CGExprAgg.cpp | 127 if (E->getDecl()->getType()->isReferenceType()) { in VisitDeclRefExpr() 130 EmitFinalDestCopy(E->getType(), result.getReferenceLValue(CGF, E)); in VisitDeclRefExpr() 189 return EmitFinalDestCopy(E->getType(), LV); in VisitPseudoObjectExpr() 192 CGF.EmitPseudoObjectRValue(E, EnsureSlot(E->getType())); in VisitPseudoObjectExpr() 203 EmitFinalDestCopy(E->getType(), Res); in VisitAtomicExpr() 219 if (LV.getType()->isAtomicType() || CGF.LValueIsSuitableForInlineAtomic(LV)) { in EmitAggLoadOfLValue() 224 EmitFinalDestCopy(E->getType(), LV); in EmitAggLoadOfLValue() 264 EmitFinalDestCopy(E->getType(), src); in EmitMoveFromReturnSlot() 324 Ctx.getAsConstantArrayType(E->getSubExpr()->getType()); in VisitCXXStdInitializerListExpr() 328 RecordDecl *Record = E->getType()->castAs<RecordType>()->getDecl(); in VisitCXXStdInitializerListExpr() [all …]
|
D | CGExpr.cpp | 45 cast<llvm::PointerType>(value->getType())->getAddressSpace(); in EmitCastToVoidPtr() 51 if (value->getType() == destType) return value; in EmitCastToVoidPtr() 111 if (const MemberPointerType *MPT = E->getType()->getAs<MemberPointerType>()) { in EvaluateExprAsBool() 118 if (!E->getType()->isAnyComplexType()) in EvaluateExprAsBool() 119 return EmitScalarConversion(EmitScalarExpr(E), E->getType(), BoolTy, Loc); in EvaluateExprAsBool() 121 return EmitComplexToScalarConversion(EmitComplexExpr(E), E->getType(), BoolTy, in EvaluateExprAsBool() 142 switch (getEvaluationKind(E->getType())) { in EmitAnyExpr() 149 aggSlot = CreateAggTemp(E->getType(), "agg-temp"); in EmitAnyExpr() 161 if (hasAggregateEvaluationKind(E->getType())) in EmitAnyExprToTemp() 162 AggSlot = CreateAggTemp(E->getType(), "agg.tmp"); in EmitAnyExprToTemp() [all …]
|
D | CGExprConstant.cpp | 85 CGM.getDataLayout().getABITypeAlignment(C->getType())); in getAlignment() 90 CGM.getDataLayout().getTypeAllocSize(C->getType())); in getSizeInChars() 235 if (!isa<llvm::IntegerType>(LastElt->getType())) { in AppendBitField() 238 assert(isa<llvm::ArrayType>(LastElt->getType()) && in AppendBitField() 240 llvm::ArrayType *AT = cast<llvm::ArrayType>(LastElt->getType()); in AppendBitField() 253 Elements.back()->getType()->isIntegerTy(CharWidth) && in AppendBitField() 335 CGM.getDataLayout().getABITypeAlignment(C->getType())); in ConvertStructToPacked() 366 RecordDecl *RD = ILE->getType()->getAs<RecordType>()->getDecl(); in Build() 387 Field->getType(), CGF); in Build() 389 EltInit = CGM.EmitNullConstant(Field->getType()); in Build() [all …]
|
/external/deqp/framework/randomshaders/ |
D | rsgVariableValue.cpp | 35 DE_ASSERT(a.getType() == b.getType()); in compareValueRangesAllTrue() 37 if (a.getType().isStruct()) in compareValueRangesAllTrue() 39 int numMembers = (int)a.getType().getMembers().size(); in compareValueRangesAllTrue() 46 else if (a.getType().isArray()) in compareValueRangesAllTrue() 48 int numElements = (int)a.getType().getNumElements(); in compareValueRangesAllTrue() 57 int numElements = (int)a.getType().getNumElements(); in compareValueRangesAllTrue() 58 switch (a.getType().getBaseType()) in compareValueRangesAllTrue() 184 : m_type (other.getType()) in ValueRange() 185 , m_min (other.getType().getScalarSize()) in ValueRange() 186 , m_max (other.getType().getScalarSize()) in ValueRange() [all …]
|
D | rsgVariableValue.hpp | 79 const VariableType& getType (void) const { return m_type; } in getType() function in rsg::StridedValueRead 94 const VariableType& getType (void) const { return *m_type; } in getType() function in rsg::ConstStridedValueAccess 97 …cess component (int compNdx) const { return ConstStridedValueAccess(getType().getElementType(… in component() 98 …lementNdx) const { return ConstStridedValueAccess(getType().getElementType(), m_value + Stride*get… in arrayElement() 99 …x) const { return ConstStridedValueAccess(getType().getMembers()[memberNdx].getType(), m_value + S… in member() 115 …StridedValueRead<Stride> value (void) const { return StridedValueRead<Stride>(getType(), m_v… in value() 130 …StridedValueAccess component (int compNdx) { return StridedValueAccess(this->getType().getEle… in component() 131 …ementNdx) { return StridedValueAccess(this->getType().getElementType(), this->m_value + Stride*thi… in arrayElement() 132 … { return StridedValueAccess(this->getType().getMembers()[memberNdx].getType(), this->m_value + S… in member() 164 DE_ASSERT(this->getType() == valueRead.getType()); in operator =() [all …]
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/base/reference/ |
D | BaseTypeReference.java | 41 return getType().hashCode(); in hashCode() 48 return getType().equals(((TypeReference)o).getType()); in equals() 51 return getType().equals(o.toString()); in equals() 59 return getType().compareTo(o.toString()); in compareTo() 62 @Override public int length() { return getType().length(); } in length() 63 @Override public char charAt(int index) { return getType().charAt(index); } in charAt() 64 …@Override public CharSequence subSequence(int start, int end) { return getType().subSequence(start… in subSequence() 65 @Override @Nonnull public String toString() { return getType(); } in toString()
|
/external/guice/core/test/com/google/inject/ |
D | TypeLiteralTypeResolutionTest.java | 100 resolver.getReturnType(List.class.getMethod("subList", int.class, int.class)).getType()); in testDirectInheritance() 108 resolver.getSupertype(Collection.class).getType()); in testGenericSupertype() 110 resolver.getSupertype(Iterable.class).getType()); in testGenericSupertype() 112 resolver.getSupertype(AbstractList.class).getType()); in testGenericSupertype() 113 assertEquals(Object.class, resolver.getSupertype(Object.class).getType()); in testGenericSupertype() 118 assertEquals(MyInteger.class, resolver.getParameterTypes(comparableCompareTo).get(0).getType()); in testRecursiveTypeVariable() 132 assertEquals(listOf(Short.class), resolver.getFieldType(list).getType()); in testFields() 133 assertEquals(Short.class, resolver.getFieldType(instance).getType()); in testFields() 144 resolver.getParameterTypes(newHasGenericConstructor).get(0).getType()); in testGenericConstructor() 154 assertEquals(NullPointerException.class, type.getExceptionTypes(newThrower).get(0).getType()); in testThrowsExceptions() [all …]
|
/external/llvm/lib/IR/ |
D | Constants.cpp | 62 if (getType()->isFPOrFPVectorTy()) in isNegativeZeroValue() 293 assert(isa<IntegerType>(Elt->getType()) && "Index must be an integer"); in getAggregateElement() 341 assert(C->getType()->isFirstClassType() && "Cannot evaluate aggregate vals!"); in canTrapImpl() 577 assert(Slot->getType() == IntegerType::get(Context, V.getBitWidth())); in get() 606 assert(C->getType() == Ty->getScalarType() && in get() 773 return Constant::getNullValue(getType()->getSequentialElementType()); in getSequentialElement() 779 return Constant::getNullValue(getType()->getStructElementType(Elt)); in getStructElement() 785 if (isa<SequentialType>(getType())) in getElementValue() 793 if (isa<SequentialType>(getType())) in getElementValue() 799 Type *Ty = getType(); in getNumElements() [all …]
|
D | Instructions.cpp | 63 if (Op1->getType() != Op2->getType()) in areInvalidOperands() 66 if (Op1->getType()->isTokenTy()) in areInvalidOperands() 69 if (VectorType *VT = dyn_cast<VectorType>(Op0->getType())) { in areInvalidOperands() 73 VectorType *ET = dyn_cast<VectorType>(Op1->getType()); in areInvalidOperands() 79 } else if (Op0->getType() != Type::getInt1Ty(Op0->getContext())) { in areInvalidOperands() 93 : Instruction(PN.getType(), Instruction::PHI, nullptr, PN.getNumOperands()), in PHINode() 121 replaceAllUsesWith(UndefValue::get(getType())); in removeIncomingValue() 153 return UndefValue::get(getType()); in hasConstantValue() 174 : Instruction(LP.getType(), Instruction::LandingPad, nullptr, in LandingPadInst() 244 FTy->getParamType(i) == Args[i]->getType()) && in init() [all …]
|
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/ |
D | TestTreeNodeStream.java | 154 assertEquals(101, ((Tree)stream.LT(1)).getType()); in testLT() 155 assertEquals(Token.DOWN, ((Tree)stream.LT(2)).getType()); in testLT() 156 assertEquals(102, ((Tree)stream.LT(3)).getType()); in testLT() 157 assertEquals(Token.DOWN, ((Tree)stream.LT(4)).getType()); in testLT() 158 assertEquals(103, ((Tree)stream.LT(5)).getType()); in testLT() 159 assertEquals(Token.UP, ((Tree)stream.LT(6)).getType()); in testLT() 160 assertEquals(104, ((Tree)stream.LT(7)).getType()); in testLT() 161 assertEquals(Token.UP, ((Tree)stream.LT(8)).getType()); in testLT() 162 assertEquals(Token.EOF, ((Tree)stream.LT(9)).getType()); in testLT() 164 assertEquals(Token.EOF, ((Tree)stream.LT(100)).getType()); in testLT() [all …]
|
D | TestInterpretedLexing.java | 87 assertEquals(result.getType(), Atype); in testSimpleAltCharTest() 90 assertEquals(result.getType(), Atype); in testSimpleAltCharTest() 101 assertEquals(result.getType(), Atype); in testSingleRuleRef() 112 assertEquals(result.getType(), INTtype); in testSimpleLoop() 115 assertEquals(result.getType(), INTtype); in testSimpleLoop() 127 assertEquals(result.getType(), Atype); in testMultAltLoop() 130 assertEquals(result.getType(), Atype); in testMultAltLoop() 133 assertEquals(result.getType(), Atype); in testMultAltLoop() 136 assertEquals(result.getType(), Atype); in testMultAltLoop() 139 assertEquals(result.getType(), Atype); in testMultAltLoop() [all …]
|
/external/mockito/src/org/mockito/internal/util/reflection/ |
D | FieldInitializer.java | 87 …Problems initializing field '" + field.getName() + "' of type '" + field.getType().getSimpleName()… in initialize() 94 if(field.getType().isLocalClass()) { in checkNotLocal() 95 …throw new MockitoException("the type '" + field.getType().getSimpleName() + "' is a local class."); in checkNotLocal() 100 if(field.getType().isMemberClass() && !Modifier.isStatic(field.getType().getModifiers())) { in checkNotInner() 101 …throw new MockitoException("the type '" + field.getType().getSimpleName() + "' is an inner class."… in checkNotInner() 106 if(field.getType().isInterface()) { in checkNotInterface() 107 … throw new MockitoException("the type '" + field.getType().getSimpleName() + "' is an interface."); in checkNotInterface() 112 if(Modifier.isAbstract(field.getType().getModifiers())) { in checkNotAbstract() 113 …throw new MockitoException("the type '" + field.getType().getSimpleName() + " is an abstract class… in checkNotAbstract() 177 constructor = field.getType().getDeclaredConstructor(); in instantiate() [all …]
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/ |
D | ContentTypeDetectorTest.java | 42 assertEquals(ContentTypeDetector.UNKNOWN, detector.getType()); in testEmptyStream() 50 assertEquals(ContentTypeDetector.CLASSFILE, detector.getType()); in testClassFile() 57 assertEquals(ContentTypeDetector.CLASSFILE, detector.getType()); in testClassFile11() 64 assertEquals(ContentTypeDetector.CLASSFILE, detector.getType()); in testClassFile12() 71 assertEquals(ContentTypeDetector.CLASSFILE, detector.getType()); in testClassFile13() 78 assertEquals(ContentTypeDetector.CLASSFILE, detector.getType()); in testClassFile14() 85 assertEquals(ContentTypeDetector.CLASSFILE, detector.getType()); in testClassFile15() 92 assertEquals(ContentTypeDetector.CLASSFILE, detector.getType()); in testClassFile16() 99 assertEquals(ContentTypeDetector.CLASSFILE, detector.getType()); in testClassFile17() 106 assertEquals(ContentTypeDetector.CLASSFILE, detector.getType()); in testClassFile18() [all …]
|
/external/mockito/cglib-and-asm/src/org/mockito/asm/tree/analysis/ |
D | BasicVerifier.java | 174 expected = newValue(Type.getType(((FieldInsnNode) insn).desc)); in unaryOperation() 194 expected1 = newValue(Type.getType("[I")); in binaryOperation() 198 if (isSubTypeOf(value1, newValue(Type.getType("[Z")))) { in binaryOperation() 199 expected1 = newValue(Type.getType("[Z")); in binaryOperation() 201 expected1 = newValue(Type.getType("[B")); in binaryOperation() 206 expected1 = newValue(Type.getType("[C")); in binaryOperation() 210 expected1 = newValue(Type.getType("[S")); in binaryOperation() 214 expected1 = newValue(Type.getType("[J")); in binaryOperation() 218 expected1 = newValue(Type.getType("[F")); in binaryOperation() 222 expected1 = newValue(Type.getType("[D")); in binaryOperation() [all …]
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolutionExpander.cpp | 56 if (U->getType() == Ty) in ReuseOrCreateCast() 69 CI->setOperand(0, UndefValue::get(V->getType())); in ReuseOrCreateCast() 120 assert(SE.getTypeSizeInBits(V->getType()) == SE.getTypeSizeInBits(Ty) && in InsertNoopCastOfTo() 125 if (V->getType() == Ty) in InsertNoopCastOfTo() 128 if (CI->getOperand(0)->getType() == Ty) in InsertNoopCastOfTo() 134 SE.getTypeSizeInBits(Ty) == SE.getTypeSizeInBits(V->getType())) { in InsertNoopCastOfTo() 138 SE.getTypeSizeInBits(CI->getType()) == in InsertNoopCastOfTo() 139 SE.getTypeSizeInBits(CI->getOperand(0)->getType())) in InsertNoopCastOfTo() 144 SE.getTypeSizeInBits(CE->getType()) == in InsertNoopCastOfTo() 145 SE.getTypeSizeInBits(CE->getOperand(0)->getType())) in InsertNoopCastOfTo() [all …]
|
D | VectorUtils.cpp | 93 !I.getArgOperand(0)->getType()->isFloatingPointTy() || in checkUnaryFloatSignature() 94 I.getType() != I.getArgOperand(0)->getType() || !I.onlyReadsMemory()) in checkUnaryFloatSignature() 112 !I.getArgOperand(0)->getType()->isFloatingPointTy() || in checkBinaryFloatSignature() 113 !I.getArgOperand(1)->getType()->isFloatingPointTy() || in checkBinaryFloatSignature() 114 I.getType() != I.getArgOperand(0)->getType() || in checkBinaryFloatSignature() 115 I.getType() != I.getArgOperand(1)->getType() || !I.onlyReadsMemory()) in checkBinaryFloatSignature() 235 cast<PointerType>(Gep->getType()->getScalarType())->getElementType()); in getGEPInductionOperand() 277 if (CI && CI->getType() == Ty) { in getUniqueCastUse() 290 auto *PtrTy = dyn_cast<PointerType>(Ptr->getType()); in getStrideFromPointer() 343 StripedOffRecurrenceCast = C->getType(); in getStrideFromPointer() [all …]
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/base/ |
D | BaseAnnotation.java | 44 hashCode = hashCode*31 + getType().hashCode(); in hashCode() 53 getType().equals(other.getType()) && in equals() 63 res = getType().compareTo(o.getType()); in compareTo() 71 return annotation1.getType().compareTo(annotation2.getType());
|
/external/javassist/src/main/javassist/bytecode/annotation/ |
D | EnumMemberValue.java | 62 return getType(cl).getField(getValue()).get(null); in getValue() 65 throw new ClassNotFoundException(getType() + "." + getValue()); in getValue() 68 throw new ClassNotFoundException(getType() + "." + getValue()); in getValue() 72 Class getType(ClassLoader cl) throws ClassNotFoundException { in getType() method in EnumMemberValue 73 return loadClass(cl, getType()); in getType() 81 public String getType() { in getType() method in EnumMemberValue 109 return getType() + "." + getValue(); in toString()
|