Home
last modified time | relevance | path

Searched refs:OldTy (Results 1 – 6 of 6) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DSROA.cpp1675 static bool canConvertValue(const DataLayout &DL, Type *OldTy, Type *NewTy) { in canConvertValue() argument
1676 if (OldTy == NewTy) in canConvertValue()
1682 if (isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) { in canConvertValue()
1683 assert(cast<IntegerType>(OldTy)->getBitWidth() != in canConvertValue()
1689 if (DL.getTypeSizeInBits(NewTy) != DL.getTypeSizeInBits(OldTy)) in canConvertValue()
1691 if (!NewTy->isSingleValueType() || !OldTy->isSingleValueType()) in canConvertValue()
1696 OldTy = OldTy->getScalarType(); in canConvertValue()
1698 if (NewTy->isPointerTy() || OldTy->isPointerTy()) { in canConvertValue()
1699 if (NewTy->isPointerTy() && OldTy->isPointerTy()) { in canConvertValue()
1701 cast<PointerType>(OldTy)->getPointerAddressSpace(); in canConvertValue()
[all …]
/external/llvm/lib/Transforms/Scalar/
DSROA.cpp1614 static bool canConvertValue(const DataLayout &DL, Type *OldTy, Type *NewTy) { in canConvertValue() argument
1615 if (OldTy == NewTy) in canConvertValue()
1621 if (isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) { in canConvertValue()
1622 assert(cast<IntegerType>(OldTy)->getBitWidth() != in canConvertValue()
1628 if (DL.getTypeSizeInBits(NewTy) != DL.getTypeSizeInBits(OldTy)) in canConvertValue()
1630 if (!NewTy->isSingleValueType() || !OldTy->isSingleValueType()) in canConvertValue()
1635 OldTy = OldTy->getScalarType(); in canConvertValue()
1637 if (NewTy->isPointerTy() || OldTy->isPointerTy()) { in canConvertValue()
1638 if (NewTy->isPointerTy() && OldTy->isPointerTy()) { in canConvertValue()
1640 cast<PointerType>(OldTy)->getPointerAddressSpace(); in canConvertValue()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DDynamicTypePropagation.cpp360 const ObjCObjectPointerType *OldTy = in getBetterObjCType() local
362 if (!OldTy) in getBetterObjCType()
366 if (OldTy->isObjCIdType() && !NewTy->isObjCIdType()) in getBetterObjCType()
371 const ObjCInterfaceDecl *FromI = OldTy->getInterfaceDecl(); in getBetterObjCType()
/external/clang/lib/Sema/
DSemaDeclAttr.cpp3481 QualType OldTy; in AddModeAttr() local
3483 OldTy = TD->getUnderlyingType(); in AddModeAttr()
3487 OldTy = ED->getIntegerType(); in AddModeAttr()
3488 if (OldTy.isNull()) in AddModeAttr()
3489 OldTy = Context.IntTy; in AddModeAttr()
3491 OldTy = cast<ValueDecl>(D)->getType(); in AddModeAttr()
3493 if (OldTy->isDependentType()) { in AddModeAttr()
3501 QualType OldElemTy = OldTy; in AddModeAttr()
3502 if (const VectorType *VT = OldTy->getAs<VectorType>()) in AddModeAttr()
3551 } else if (const VectorType *OldVT = OldTy->getAs<VectorType>()) { in AddModeAttr()
DSemaDeclCXX.cpp13170 QualType OldTy = Old->getType()->getAs<FunctionType>()->getReturnType(); in CheckOverridingFunctionReturnType() local
13172 if (Context.hasSameType(NewTy, OldTy) || in CheckOverridingFunctionReturnType()
13173 NewTy->isDependentType() || OldTy->isDependentType()) in CheckOverridingFunctionReturnType()
13181 if (const PointerType *OldPT = OldTy->getAs<PointerType>()) { in CheckOverridingFunctionReturnType()
13186 if (const ReferenceType *OldRT = OldTy->getAs<ReferenceType>()) { in CheckOverridingFunctionReturnType()
13198 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType()
13223 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType()
13248 if (NewTy.getLocalCVRQualifiers() != OldTy.getLocalCVRQualifiers()) { in CheckOverridingFunctionReturnType()
13251 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType()
13263 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType()
/external/clang/lib/Driver/
DDriver.cpp1282 types::ID OldTy = Ty; in BuildInputs() local
1285 if (Ty != OldTy) in BuildInputs()
1287 << getTypeName(OldTy) << getTypeName(Ty); in BuildInputs()