/external/llvm/lib/Transforms/Utils/ |
D | ValueMapper.cpp | 65 FunctionType *NewTy = IA->getFunctionType(); in MapValue() local 67 NewTy = cast<FunctionType>(TypeMapper->remapType(NewTy)); in MapValue() 69 if (NewTy != IA->getFunctionType()) in MapValue() 70 V = InlineAsm::get(NewTy, IA->getAsmString(), IA->getConstraintString(), in MapValue() 122 Type *NewTy = C->getType(); in MapValue() local 124 NewTy = TypeMapper->remapType(NewTy); in MapValue() 128 if (OpNo == NumOperands && NewTy == C->getType()) in MapValue() 153 return VM[V] = CE->getWithOperands(Ops, NewTy, false, NewSrcTy); in MapValue() 155 return VM[V] = ConstantArray::get(cast<ArrayType>(NewTy), Ops); in MapValue() 157 return VM[V] = ConstantStruct::get(cast<StructType>(NewTy), Ops); in MapValue() [all …]
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | DynamicTypeMap.h | 44 DynamicTypeInfo NewTy); 48 const MemRegion *Reg, QualType NewTy, 51 DynamicTypeInfo(NewTy, CanBeSubClassed));
|
/external/clang/test/CodeGenCXX/ |
D | new.cpp | 288 typedef int MyClass::* NewTy; typedef 291 NewTy* f() { return new NewTy[2](); } in f()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | DynamicTypeMap.cpp | 43 DynamicTypeInfo NewTy) { in setDynamicTypeInfo() argument 45 ProgramStateRef NewState = State->set<DynamicTypeMap>(Reg, NewTy); in setDynamicTypeInfo()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | DynamicTypePropagation.cpp | 287 if (const Type *NewTy = getBetterObjCType(CE, C)) { in dynamicTypePropagationOnCasts() local 288 State = setDynamicTypeInfo(State, ToR, QualType(NewTy, 0)); in dynamicTypePropagationOnCasts() 352 const ObjCObjectPointerType *NewTy = in getBetterObjCType() local 354 if (!NewTy) in getBetterObjCType() 358 return NewTy; in getBetterObjCType() 366 if (OldTy->isObjCIdType() && !NewTy->isObjCIdType()) in getBetterObjCType() 367 return NewTy; in getBetterObjCType() 370 const ObjCInterfaceDecl *ToI = NewTy->getInterfaceDecl(); in getBetterObjCType() 373 return NewTy; in getBetterObjCType()
|
/external/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 1632 static bool canConvertValue(const DataLayout &DL, Type *OldTy, Type *NewTy) { in canConvertValue() argument 1633 if (OldTy == NewTy) in canConvertValue() 1639 if (isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) { in canConvertValue() 1641 cast<IntegerType>(NewTy)->getBitWidth() && in canConvertValue() 1646 if (DL.getTypeSizeInBits(NewTy) != DL.getTypeSizeInBits(OldTy)) in canConvertValue() 1648 if (!NewTy->isSingleValueType() || !OldTy->isSingleValueType()) in canConvertValue() 1654 NewTy = NewTy->getScalarType(); in canConvertValue() 1655 if (NewTy->isPointerTy() || OldTy->isPointerTy()) { in canConvertValue() 1656 if (NewTy->isPointerTy() && OldTy->isPointerTy()) in canConvertValue() 1658 if (NewTy->isIntegerTy() || OldTy->isIntegerTy()) in canConvertValue() [all …]
|
D | ScalarReplAggregates.cpp | 359 Type *NewTy; in TryConvert() local 364 NewTy = VectorTy; // Use the vector type. in TryConvert() 384 NewTy = IntegerType::get(AI->getContext(), BitWidth); in TryConvert() 387 new AllocaInst(NewTy, nullptr, "", &AI->getParent()->front()); in TryConvert() 2222 Type *NewTy = in RewriteMemIntrinUserOfAlloca() local 2225 if (OtherPtr->getType() != NewTy) in RewriteMemIntrinUserOfAlloca() 2226 OtherPtr = new BitCastInst(OtherPtr, NewTy, OtherPtr->getName(), MI); in RewriteMemIntrinUserOfAlloca()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 183 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize() local 184 AllocaInst *New = IC.Builder->CreateAlloca(NewTy, nullptr, AI.getName()); in simplifyAllocaArraySize() 318 static LoadInst *combineLoadToNewType(InstCombiner &IC, LoadInst &LI, Type *NewTy, in combineLoadToNewType() argument 326 IC.Builder->CreateBitCast(Ptr, NewTy->getPointerTo(AS)), in combineLoadToNewType() 356 if (NewTy->isPointerTy()) { in combineLoadToNewType() 361 if (NewTy->isIntegerTy()) { in combineLoadToNewType() 362 auto *ITy = cast<IntegerType>(NewTy); in combineLoadToNewType() 375 if (NewTy->isPointerTy()) in combineLoadToNewType()
|
/external/llvm/lib/CodeGen/ |
D | AtomicExpandPass.cpp | 213 Type *NewTy = getCorrespondingIntegerType(LI->getType(), in convertAtomicLoadToIntegerType() local 219 Type *PT = PointerType::get(NewTy, in convertAtomicLoadToIntegerType() 296 Type *NewTy = getCorrespondingIntegerType(SI->getValueOperand()->getType(), in convertAtomicStoreToIntegerType() local 298 Value *NewVal = Builder.CreateBitCast(SI->getValueOperand(), NewTy); in convertAtomicStoreToIntegerType() 301 Type *PT = PointerType::get(NewTy, in convertAtomicStoreToIntegerType()
|
D | CodeGenPrepare.cpp | 2318 TypeMutator(Instruction *Inst, Type *NewTy) in TypeMutator() argument 2320 DEBUG(dbgs() << "Do: MutateType: " << *Inst << " with " << *NewTy in TypeMutator() 2322 Inst->mutateType(NewTy); in TypeMutator() 2434 void mutateType(Instruction *Inst, Type *NewTy); 2468 void TypePromotionTransaction::mutateType(Instruction *Inst, Type *NewTy) { in mutateType() argument 2469 Actions.push_back(make_unique<TypePromotionTransaction::TypeMutator>(Inst, NewTy)); in mutateType()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 364 PointerType *NewTy = PointerType::get(EltTy, AMDGPUAS::LOCAL_ADDRESS); in visitAlloca() local 372 V->mutateType(NewTy); in visitAlloca()
|
/external/llvm/lib/IR/ |
D | DIBuilder.cpp | 490 auto NewTy = Ty->clone(); in createTypeWithFlags() local 491 NewTy->setFlags(NewTy->getFlags() | FlagsToSet); in createTypeWithFlags() 492 return MDNode::replaceWithUniqued(std::move(NewTy)); in createTypeWithFlags()
|
D | Verifier.cpp | 3354 Type *NewTy = ArgTys[D.getArgumentNumber()]; in VerifyIntrinsicType() local 3355 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in VerifyIntrinsicType() 3356 NewTy = VectorType::getExtendedElementVectorType(VTy); in VerifyIntrinsicType() 3357 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in VerifyIntrinsicType() 3358 NewTy = IntegerType::get(ITy->getContext(), 2 * ITy->getBitWidth()); in VerifyIntrinsicType() 3362 return Ty != NewTy; in VerifyIntrinsicType() 3369 Type *NewTy = ArgTys[D.getArgumentNumber()]; in VerifyIntrinsicType() local 3370 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in VerifyIntrinsicType() 3371 NewTy = VectorType::getTruncatedElementVectorType(VTy); in VerifyIntrinsicType() 3372 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in VerifyIntrinsicType() [all …]
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 571 Type *NewTy = NewGlobals[Val]->getValueType(); in SRAGlobal() local 581 ConstantExpr::getGetElementPtr(NewTy, cast<Constant>(NewPtr), Idxs); in SRAGlobal() 589 NewTy, NewPtr, Idxs, GEPI->getName() + "." + Twine(Val), GEPI); in SRAGlobal() 2460 Type *NewTy = cast<PointerType>(Ptr->getType())->getElementType(); in EvaluateBlock() local 2465 while (!Val->getType()->canLosslesslyBitCastTo(NewTy)) { in EvaluateBlock() 2469 if (StructType *STy = dyn_cast<StructType>(NewTy)) { in EvaluateBlock() 2470 NewTy = STy->getTypeAtIndex(0U); in EvaluateBlock() 2472 IntegerType *IdxTy = IntegerType::get(NewTy->getContext(), 32); in EvaluateBlock() 2491 Val = ConstantExpr::getBitCast(Val, NewTy); in EvaluateBlock()
|
D | LowerBitSets.cpp | 559 StructType *NewTy = cast<StructType>(NewInit->getType()); in buildBitSetsFromGlobalVariables() local 560 const StructLayout *CombinedGlobalLayout = DL.getStructLayout(NewTy); in buildBitSetsFromGlobalVariables() 583 GlobalAlias *GAlias = GlobalAlias::create(NewTy->getElementType(I * 2), 0, in buildBitSetsFromGlobalVariables()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | AddressSanitizer.cpp | 1355 StructType *NewTy = StructType::get(Ty, RightRedZoneTy, nullptr); in InstrumentGlobals() local 1357 ConstantStruct::get(NewTy, G->getInitializer(), in InstrumentGlobals() 1365 new GlobalVariable(M, NewTy, G->isConstant(), Linkage, NewInitializer, in InstrumentGlobals() 1375 ConstantExpr::getGetElementPtr(NewTy, NewGlobal, Indices2, true)); in InstrumentGlobals()
|
/external/clang/lib/Sema/ |
D | SemaDeclAttr.cpp | 3446 QualType NewTy = NewElemTy; in handleModeAttr() local 3448 NewTy = S.Context.getVectorType(NewTy, VectorSize.getZExtValue(), in handleModeAttr() 3459 NewTy = in handleModeAttr() 3463 if (NewTy.isNull()) { in handleModeAttr() 3470 TD->setModedTypeSourceInfo(TD->getTypeSourceInfo(), NewTy); in handleModeAttr() 3472 cast<ValueDecl>(D)->setType(NewTy); in handleModeAttr()
|
D | SemaDeclCXX.cpp | 12953 QualType NewTy = New->getType()->getAs<FunctionType>()->getReturnType(); in CheckOverridingFunctionReturnType() local 12956 if (Context.hasSameType(NewTy, OldTy) || in CheckOverridingFunctionReturnType() 12957 NewTy->isDependentType() || OldTy->isDependentType()) in CheckOverridingFunctionReturnType() 12964 if (const PointerType *NewPT = NewTy->getAs<PointerType>()) { in CheckOverridingFunctionReturnType() 12969 } else if (const ReferenceType *NewRT = NewTy->getAs<ReferenceType>()) { in CheckOverridingFunctionReturnType() 12982 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType() 13006 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType() 13031 if (NewTy.getLocalCVRQualifiers() != OldTy.getLocalCVRQualifiers()) { in CheckOverridingFunctionReturnType() 13034 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType() 13046 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType()
|
D | SemaDecl.cpp | 14486 QualType NewTy; in ActOnEnumBody() local 14492 NewTy = Context.IntTy; in ActOnEnumBody() 14504 NewTy = BestType; in ActOnEnumBody() 14516 !Context.hasSameType(NewTy, ECD->getInitExpr()->getType())) in ActOnEnumBody() 14517 ECD->setInitExpr(ImplicitCastExpr::Create(Context, NewTy, in ActOnEnumBody() 14528 ECD->setType(NewTy); in ActOnEnumBody()
|
/external/clang/lib/CodeGen/ |
D | CGExpr.cpp | 2606 llvm::Type *NewTy = ConvertType(E->getType()); in EmitArrayToPointerDecay() local 2607 Addr = Builder.CreateElementBitCast(Addr, NewTy); in EmitArrayToPointerDecay()
|