/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 33 return ConstantInt::get(Val->getType(), 0); in DecomposeSimpleLinearExpr() 86 PointerType *PTy = cast<PointerType>(CI.getType()); in PromoteCastOfAllocation() 132 Amt = ConstantInt::get(AI.getArraySize()->getType(), Scale); in PromoteCastOfAllocation() 138 Value *Off = ConstantInt::get(AI.getArraySize()->getType(), in PromoteCastOfAllocation() 154 Value *NewCast = AllocaBuilder.CreateBitCast(New, AI.getType(), "tmpcast"); in PromoteCastOfAllocation() 200 if (I->getOperand(0)->getType() == Ty) in EvaluateInDifferentType() 244 Type *SrcTy = CI->getOperand(0)->getType(); // A from above in isEliminableCastPair() 245 Type *MidTy = CI->getType(); // B from above in isEliminableCastPair() 276 if (V->getType() == Ty || isa<Constant>(V)) return false; in ShouldOptimizeCast() 301 isEliminableCastPair(CSrc, CI.getOpcode(), CI.getType(), DL)) { in commonCastTransforms() [all …]
|
D | InstCombineLoadStoreAlloca.cpp | 169 Type *IntPtrTy = DL->getIntPtrType(AI.getType()); in visitAllocaInst() 170 if (AI.getArraySize()->getType() != IntPtrTy) { in visitAllocaInst() 196 ? DL->getIntPtrType(AI.getType()) in visitAllocaInst() 208 return ReplaceInstUsesWith(AI, Constant::getNullValue(AI.getType())); in visitAllocaInst() 225 AI.setOperand(0, ConstantInt::get(AI.getArraySize()->getType(), 1)); in visitAllocaInst() 254 if (AI.getType() != EntryAI->getType()) in visitAllocaInst() 255 return new BitCastInst(EntryAI, AI.getType()); in visitAllocaInst() 279 = ConstantExpr::getPointerBitCastOrAddrSpaceCast(TheSrc, AI.getType()); in visitAllocaInst() 300 PointerType *DestTy = cast<PointerType>(CI->getType()); in InstCombineLoadCast() 302 if (PointerType *SrcTy = dyn_cast<PointerType>(CastOp->getType())) { in InstCombineLoadCast() [all …]
|
D | InstCombineCalls.cpp | 89 cast<PointerType>(MI->getArgOperand(1)->getType())->getAddressSpace(); in SimplifyMemTransfer() 91 cast<PointerType>(MI->getArgOperand(0)->getType())->getAddressSpace(); in SimplifyMemTransfer() 106 Type *SrcETy = cast<PointerType>(StrippedDest->getType()) in SimplifyMemTransfer() 152 MI->setArgOperand(2, Constant::getNullValue(MemOpLength->getType())); in SimplifyMemTransfer() 167 if (!LenC || !FillC || !FillC->getType()->isIntegerTy(8)) in SimplifyMemSet() 178 unsigned DstAddrSp = cast<PointerType>(Dest->getType())->getAddressSpace(); in SimplifyMemSet() 192 MI->setLength(Constant::getNullValue(LenC->getType())); in SimplifyMemSet() 248 Type *Tys[3] = { CI.getArgOperand(0)->getType(), in visitCallInst() 249 CI.getArgOperand(1)->getType(), in visitCallInst() 250 CI.getArgOperand(2)->getType() }; in visitCallInst() [all …]
|
/external/compiler-rt/lib/ubsan/ |
D | ubsan_value.cc | 22 CHECK(getType().isSignedIntegerTy()); in getSIntValue() 27 sizeof(SIntMax) * 8 - getType().getIntegerBitWidth(); in getSIntValue() 30 if (getType().getIntegerBitWidth() == 64) in getSIntValue() 33 if (getType().getIntegerBitWidth() == 128) in getSIntValue() 36 if (getType().getIntegerBitWidth() == 128) in getSIntValue() 43 CHECK(getType().isUnsignedIntegerTy()); in getUIntValue() 46 if (getType().getIntegerBitWidth() == 64) in getUIntValue() 49 if (getType().getIntegerBitWidth() == 128) in getUIntValue() 52 if (getType().getIntegerBitWidth() == 128) in getUIntValue() 59 if (getType().isUnsignedIntegerTy()) in getPositiveIntValue() [all …]
|
/external/smack/src/org/jivesoftware/smackx/ |
D | Form.java | 138 if (!FormField.TYPE_TEXT_MULTI.equals(field.getType()) in setAnswer() 139 && !FormField.TYPE_TEXT_PRIVATE.equals(field.getType()) in setAnswer() 140 && !FormField.TYPE_TEXT_SINGLE.equals(field.getType()) in setAnswer() 141 && !FormField.TYPE_JID_SINGLE.equals(field.getType()) in setAnswer() 142 && !FormField.TYPE_HIDDEN.equals(field.getType())) { in setAnswer() 164 if (!FormField.TYPE_TEXT_MULTI.equals(field.getType()) in setAnswer() 165 && !FormField.TYPE_TEXT_PRIVATE.equals(field.getType()) in setAnswer() 166 && !FormField.TYPE_TEXT_SINGLE.equals(field.getType())) { in setAnswer() 188 if (!FormField.TYPE_TEXT_MULTI.equals(field.getType()) in setAnswer() 189 && !FormField.TYPE_TEXT_PRIVATE.equals(field.getType()) in setAnswer() [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/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/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/chromium_org/third_party/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/chromium_org/third_party/WebKit/Source/core/html/canvas/ |
D | WebGLGetInfo.cpp | 202 WebGLGetInfo::Type WebGLGetInfo::getType() const in getType() function in blink::WebGLGetInfo 209 ASSERT(getType() == kTypeBool); in getBool() 215 ASSERT(getType() == kTypeBoolArray); in getBoolArray() 221 ASSERT(getType() == kTypeFloat); in getFloat() 227 ASSERT(getType() == kTypeInt); in getInt() 233 ASSERT(getType() == kTypeString); in getString() 239 ASSERT(getType() == kTypeUnsignedInt); in getUnsignedInt() 245 ASSERT(getType() == kTypeWebGLBuffer); in getWebGLBuffer() 251 ASSERT(getType() == kTypeWebGLFloatArray); in getWebGLFloatArray() 257 ASSERT(getType() == kTypeWebGLFramebuffer); in getWebGLFramebuffer() [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/clang/lib/CodeGen/ |
D | CGExprAgg.cpp | 121 if (E->getDecl()->getType()->isReferenceType()) { in VisitDeclRefExpr() 124 EmitFinalDestCopy(E->getType(), result.getReferenceLValue(CGF, E)); in VisitDeclRefExpr() 181 return EmitFinalDestCopy(E->getType(), LV); in VisitPseudoObjectExpr() 184 CGF.EmitPseudoObjectRValue(E, EnsureSlot(E->getType())); in VisitPseudoObjectExpr() 194 CGF.EmitAtomicExpr(E, EnsureSlot(E->getType()).getAddr()); in VisitAtomicExpr() 210 if (LV.getType()->isAtomicType()) { in EmitAggLoadOfLValue() 215 EmitFinalDestCopy(E->getType(), LV); in EmitAggLoadOfLValue() 256 CGF.getContext().getTypeInfoInChars(E->getType()); in EmitMoveFromReturnSlot() 257 EmitFinalDestCopy(E->getType(), src, typeInfo.second); in EmitMoveFromReturnSlot() 319 Ctx.getAsConstantArrayType(E->getSubExpr()->getType()); in VisitCXXStdInitializerListExpr() [all …]
|
D | CGExpr.cpp | 42 cast<llvm::PointerType>(value->getType())->getAddressSpace(); in EmitCastToVoidPtr() 48 if (value->getType() == destType) return value; in EmitCastToVoidPtr() 90 if (const MemberPointerType *MPT = E->getType()->getAs<MemberPointerType>()) { in EvaluateExprAsBool() 96 if (!E->getType()->isAnyComplexType()) in EvaluateExprAsBool() 97 return EmitScalarConversion(EmitScalarExpr(E), E->getType(), BoolTy); in EvaluateExprAsBool() 99 return EmitComplexToScalarConversion(EmitComplexExpr(E), E->getType(),BoolTy); in EvaluateExprAsBool() 119 switch (getEvaluationKind(E->getType())) { in EmitAnyExpr() 126 aggSlot = CreateAggTemp(E->getType(), "agg-temp"); in EmitAnyExpr() 138 if (hasAggregateEvaluationKind(E->getType())) in EmitAnyExprToTemp() 139 AggSlot = CreateAggTemp(E->getType(), "agg.tmp"); in EmitAnyExprToTemp() [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/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/llvm/lib/IR/ |
D | Constants.cpp | 57 if (getType()->isFPOrFPVectorTy()) in isNegativeZeroValue() 228 assert(isa<IntegerType>(Elt->getType()) && "Index must be an integer"); in getAggregateElement() 265 assert(C->getType()->isFirstClassType() && "Cannot evaluate aggregate vals!"); in canTrapImpl() 553 assert(C->getType() == Ty->getScalarType() && in get() 699 return Constant::getNullValue(getType()->getSequentialElementType()); in getSequentialElement() 705 return Constant::getNullValue(getType()->getStructElementType(Elt)); in getStructElement() 711 if (isa<SequentialType>(getType())) in getElementValue() 719 if (isa<SequentialType>(getType())) in getElementValue() 732 return UndefValue::get(getType()->getSequentialElementType()); in getSequentialElement() 738 return UndefValue::get(getType()->getStructElementType(Elt)); in getStructElement() [all …]
|
D | Instructions.cpp | 63 if (Op1->getType() != Op2->getType()) in areInvalidOperands() 66 if (VectorType *VT = dyn_cast<VectorType>(Op0->getType())) { in areInvalidOperands() 70 VectorType *ET = dyn_cast<VectorType>(Op1->getType()); in areInvalidOperands() 76 } else if (Op0->getType() != Type::getInt1Ty(Op0->getContext())) { in areInvalidOperands() 88 : Instruction(PN.getType(), Instruction::PHI, in PHINode() 132 replaceAllUsesWith(UndefValue::get(getType())); in removeIncomingValue() 172 return UndefValue::get(getType()); in hasConstantValue() 195 : Instruction(LP.getType(), Instruction::LandingPad, in LandingPadInst() 272 cast<FunctionType>(cast<PointerType>(Func->getType())->getElementType()); in init() 280 FTy->getParamType(i) == Args[i]->getType()) && in init() [all …]
|
D | IRBuilder.cpp | 29 GlobalVariable *GV = new GlobalVariable(M, StrConstant->getType(), in CreateGlobalString() 43 PointerType *PT = cast<PointerType>(Ptr->getType()); in getCastedInt8PtrValue() 68 Type *Tys[] = { Ptr->getType(), Size->getType() }; in CreateMemSet() 88 Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() }; in CreateMemCpy() 112 Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() }; in CreateMemMove() 126 assert(isa<PointerType>(Ptr->getType()) && in CreateLifetimeStart() 132 assert(Size->getType() == getInt64Ty() && in CreateLifetimeStart() 141 assert(isa<PointerType>(Ptr->getType()) && in CreateLifetimeEnd() 147 assert(Size->getType() == getInt64Ty() && in CreateLifetimeEnd()
|
/external/chromium_org/third_party/skia/tools/ |
D | filtermain.cpp | 52 if (SAVE_LAYER != canvas->getDrawCommandAt(curCommand)->getType() || in check_0() 54 DRAW_BITMAP_RECT_TO_RECT != canvas->getDrawCommandAt(curCommand+1)->getType() || in check_0() 55 RESTORE != canvas->getDrawCommandAt(curCommand+2)->getType()) { in check_0() 124 if (SAVE_LAYER != canvas->getDrawCommandAt(curCommand)->getType() || in check_1() 126 SAVE != canvas->getDrawCommandAt(curCommand+1)->getType() || in check_1() 127 CLIP_RECT != canvas->getDrawCommandAt(curCommand+2)->getType() || in check_1() 128 DRAW_BITMAP_RECT_TO_RECT != canvas->getDrawCommandAt(curCommand+3)->getType() || in check_1() 129 RESTORE != canvas->getDrawCommandAt(curCommand+4)->getType() || in check_1() 130 RESTORE != canvas->getDrawCommandAt(curCommand+5)->getType()) { in check_1() 190 if (SAVE != canvas->getDrawCommandAt(curCommand)->getType() || in check_2() [all …]
|
/external/skia/tools/ |
D | filtermain.cpp | 53 if (SAVE_LAYER != canvas->getDrawCommandAt(curCommand)->getType() || in check_0() 55 DRAW_BITMAP_RECT_TO_RECT != canvas->getDrawCommandAt(curCommand+1)->getType() || in check_0() 56 RESTORE != canvas->getDrawCommandAt(curCommand+2)->getType()) { in check_0() 125 if (SAVE_LAYER != canvas->getDrawCommandAt(curCommand)->getType() || in check_1() 127 SAVE != canvas->getDrawCommandAt(curCommand+1)->getType() || in check_1() 128 CLIP_RECT != canvas->getDrawCommandAt(curCommand+2)->getType() || in check_1() 129 DRAW_BITMAP_RECT_TO_RECT != canvas->getDrawCommandAt(curCommand+3)->getType() || in check_1() 130 RESTORE != canvas->getDrawCommandAt(curCommand+4)->getType() || in check_1() 131 RESTORE != canvas->getDrawCommandAt(curCommand+5)->getType()) { in check_1() 191 if (SAVE != canvas->getDrawCommandAt(curCommand)->getType() || in check_2() [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/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());
|