/external/llvm/lib/Transforms/Utils/ |
D | ValueMapper.cpp | 48 FunctionType *NewTy = IA->getFunctionType(); in MapValue() local 50 NewTy = cast<FunctionType>(TypeMapper->remapType(NewTy)); in MapValue() 52 if (NewTy != IA->getFunctionType()) in MapValue() 53 V = InlineAsm::get(NewTy, IA->getAsmString(), IA->getConstraintString(), in MapValue() 137 Type *NewTy = C->getType(); in MapValue() local 139 NewTy = TypeMapper->remapType(NewTy); in MapValue() 143 if (OpNo == NumOperands && NewTy == C->getType()) in MapValue() 164 return VM[V] = CE->getWithOperands(Ops, NewTy); in MapValue() 166 return VM[V] = ConstantArray::get(cast<ArrayType>(NewTy), Ops); in MapValue() 168 return VM[V] = ConstantStruct::get(cast<StructType>(NewTy), Ops); in MapValue() [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | DynamicTypePropagation.cpp | 188 if (const Type *NewTy = getBetterObjCType(CastE, C)) in checkPostStmt() local 189 C.addTransition(C.getState()->setDynamicTypeInfo(ToR, QualType(NewTy,0))); in checkPostStmt() 253 const ObjCObjectPointerType *NewTy = in getBetterObjCType() local 255 if (!NewTy) in getBetterObjCType() 259 return NewTy; in getBetterObjCType() 267 if (OldTy->isObjCIdType() && !NewTy->isObjCIdType()) in getBetterObjCType() 268 return NewTy; in getBetterObjCType() 271 const ObjCInterfaceDecl *ToI = NewTy->getInterfaceDecl(); in getBetterObjCType() 274 return NewTy; in getBetterObjCType()
|
/external/clang/test/CodeGenCXX/ |
D | new.cpp | 257 typedef int MyClass::* NewTy; typedef 260 NewTy* f() { return new NewTy[2](); } in f()
|
/external/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 1537 static bool canConvertValue(const DataLayout &DL, Type *OldTy, Type *NewTy) { in canConvertValue() argument 1538 if (OldTy == NewTy) in canConvertValue() 1541 if (IntegerType *NewITy = dyn_cast<IntegerType>(NewTy)) in canConvertValue() 1544 if (DL.getTypeSizeInBits(NewTy) != DL.getTypeSizeInBits(OldTy)) in canConvertValue() 1546 if (!NewTy->isSingleValueType() || !OldTy->isSingleValueType()) in canConvertValue() 1552 NewTy = NewTy->getScalarType(); in canConvertValue() 1553 if (NewTy->isPointerTy() || OldTy->isPointerTy()) { in canConvertValue() 1554 if (NewTy->isPointerTy() && OldTy->isPointerTy()) in canConvertValue() 1556 if (NewTy->isIntegerTy() || OldTy->isIntegerTy()) in canConvertValue() 1571 Type *NewTy) { in convertValue() argument [all …]
|
D | ScalarReplAggregates.cpp | 353 Type *NewTy; in TryConvert() local 358 NewTy = VectorTy; // Use the vector type. in TryConvert() 378 NewTy = IntegerType::get(AI->getContext(), BitWidth); in TryConvert() 380 AllocaInst *NewAI = new AllocaInst(NewTy, nullptr, "", in TryConvert() 2199 Type *NewTy = in RewriteMemIntrinUserOfAlloca() local 2202 if (OtherPtr->getType() != NewTy) in RewriteMemIntrinUserOfAlloca() 2203 OtherPtr = new BitCastInst(OtherPtr, NewTy, OtherPtr->getName(), MI); in RewriteMemIntrinUserOfAlloca()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 181 Type *NewTy = in visitAllocaInst() local 183 AllocaInst *New = Builder->CreateAlloca(NewTy, nullptr, AI.getName()); in visitAllocaInst() 347 PointerType *NewTy = dyn_cast<PointerType>(LI.getType()); in InstCombineLoadCast() local 348 if (OldTy && NewTy && in InstCombineLoadCast() 349 OldTy->getAddressSpace() != NewTy->getAddressSpace()) { in InstCombineLoadCast()
|
/external/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 193 StructType *NewTy = in UpgradeGlobalStructors() local 206 ConstantStruct::get(NewTy, Init->getOperand(0), Init->getOperand(1), in UpgradeGlobalStructors() 214 ATy = ArrayType::get(NewTy, Initializers.size()); in UpgradeGlobalStructors()
|
D | Verifier.cpp | 2347 Type *NewTy = ArgTys[D.getArgumentNumber()]; in VerifyIntrinsicType() local 2348 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in VerifyIntrinsicType() 2349 NewTy = VectorType::getExtendedElementVectorType(VTy); in VerifyIntrinsicType() 2350 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in VerifyIntrinsicType() 2351 NewTy = IntegerType::get(ITy->getContext(), 2 * ITy->getBitWidth()); in VerifyIntrinsicType() 2355 return Ty != NewTy; in VerifyIntrinsicType() 2362 Type *NewTy = ArgTys[D.getArgumentNumber()]; in VerifyIntrinsicType() local 2363 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in VerifyIntrinsicType() 2364 NewTy = VectorType::getTruncatedElementVectorType(VTy); in VerifyIntrinsicType() 2365 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in VerifyIntrinsicType() [all …]
|
/external/llvm/lib/Target/R600/ |
D | AMDGPUPromoteAlloca.cpp | 333 PointerType *NewTy = PointerType::get(EltTy, AMDGPUAS::LOCAL_ADDRESS); in visitAlloca() local 334 V->mutateType(NewTy); in visitAlloca()
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | ProgramState.h | 344 DynamicTypeInfo NewTy) const; 348 QualType NewTy, 350 return setDynamicTypeInfo(Reg, DynamicTypeInfo(NewTy, CanBeSubClassed));
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 1303 TypeMutator(Instruction *Inst, Type *NewTy) in TypeMutator() argument 1305 DEBUG(dbgs() << "Do: MutateType: " << *Inst << " with " << *NewTy in TypeMutator() 1307 Inst->mutateType(NewTy); in TypeMutator() 1419 void mutateType(Instruction *Inst, Type *NewTy); 1451 void TypePromotionTransaction::mutateType(Instruction *Inst, Type *NewTy) { in mutateType() argument 1452 Actions.push_back(make_unique<TypePromotionTransaction::TypeMutator>(Inst, NewTy)); in mutateType()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | ProgramState.cpp | 782 DynamicTypeInfo NewTy) const { in setDynamicTypeInfo() 784 ProgramStateRef NewState = set<DynamicTypeMap>(Reg, NewTy); in setDynamicTypeInfo()
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 2335 Type *NewTy = cast<PointerType>(Ptr->getType())->getElementType(); in EvaluateBlock() local 2340 while (!Val->getType()->canLosslesslyBitCastTo(NewTy)) { in EvaluateBlock() 2344 if (StructType *STy = dyn_cast<StructType>(NewTy)) { in EvaluateBlock() 2345 NewTy = STy->getTypeAtIndex(0U); in EvaluateBlock() 2347 IntegerType *IdxTy = IntegerType::get(NewTy->getContext(), 32); in EvaluateBlock() 2366 Val = ConstantExpr::getBitCast(Val, NewTy); in EvaluateBlock()
|
/external/clang/lib/Sema/ |
D | SemaDeclAttr.cpp | 2973 QualType NewTy; in handleModeAttr() local 2976 NewTy = S.Context.getIntTypeForBitwidth(DestWidth, in handleModeAttr() 2979 NewTy = S.Context.getRealTypeForBitwidth(DestWidth); in handleModeAttr() 2981 if (NewTy.isNull()) { in handleModeAttr() 2987 NewTy = S.Context.getComplexType(NewTy); in handleModeAttr() 2992 TD->setModedTypeSourceInfo(TD->getTypeSourceInfo(), NewTy); in handleModeAttr() 2994 cast<ValueDecl>(D)->setType(NewTy); in handleModeAttr()
|
D | SemaDeclCXX.cpp | 12297 QualType NewTy = New->getType()->getAs<FunctionType>()->getReturnType(); in CheckOverridingFunctionReturnType() local 12300 if (Context.hasSameType(NewTy, OldTy) || in CheckOverridingFunctionReturnType() 12301 NewTy->isDependentType() || OldTy->isDependentType()) in CheckOverridingFunctionReturnType() 12308 if (const PointerType *NewPT = NewTy->getAs<PointerType>()) { in CheckOverridingFunctionReturnType() 12313 } else if (const ReferenceType *NewRT = NewTy->getAs<ReferenceType>()) { in CheckOverridingFunctionReturnType() 12326 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType() 12350 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType() 12375 if (NewTy.getLocalCVRQualifiers() != OldTy.getLocalCVRQualifiers()) { in CheckOverridingFunctionReturnType() 12378 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType() 12390 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType()
|
D | SemaDecl.cpp | 13263 QualType NewTy; in ActOnEnumBody() local 13269 NewTy = Context.IntTy; in ActOnEnumBody() 13281 NewTy = BestType; in ActOnEnumBody() 13293 !Context.hasSameType(NewTy, ECD->getInitExpr()->getType())) in ActOnEnumBody() 13294 ECD->setInitExpr(ImplicitCastExpr::Create(Context, NewTy, in ActOnEnumBody() 13305 ECD->setType(NewTy); in ActOnEnumBody()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | AddressSanitizer.cpp | 1077 StructType *NewTy = StructType::get(Ty, RightRedZoneTy, NULL); in InstrumentGlobals() local 1079 NewTy, G->getInitializer(), in InstrumentGlobals() 1090 M, NewTy, G->isConstant(), Linkage, in InstrumentGlobals()
|