Searched refs:NewTy (Results 1 - 17 of 17) sorted by relevance

/external/llvm/lib/Transforms/Utils/
H A DValueMapper.cpp48 FunctionType *NewTy = IA->getFunctionType(); local
50 NewTy = cast<FunctionType>(TypeMapper->remapType(NewTy));
52 if (NewTy != IA->getFunctionType())
53 V = InlineAsm::get(NewTy, IA->getAsmString(), IA->getConstraintString(),
137 Type *NewTy = C->getType(); local
139 NewTy = TypeMapper->remapType(NewTy);
143 if (OpNo == NumOperands && NewTy == C->getType())
164 return VM[V] = CE->getWithOperands(Ops, NewTy);
[all...]
/external/clang/lib/StaticAnalyzer/Checkers/
H A DDynamicTypePropagation.cpp188 if (const Type *NewTy = getBetterObjCType(CastE, C))
189 C.addTransition(C.getState()->setDynamicTypeInfo(ToR, QualType(NewTy,0)));
253 const ObjCObjectPointerType *NewTy = local
255 if (!NewTy)
259 return NewTy;
267 if (OldTy->isObjCIdType() && !NewTy->isObjCIdType())
268 return NewTy;
271 const ObjCInterfaceDecl *ToI = NewTy->getInterfaceDecl();
274 return NewTy;
/external/clang/test/CodeGenCXX/
H A Dnew.cpp257 typedef int MyClass::* NewTy; typedef in class:PR11523::MyClass
260 NewTy* f() { return new NewTy[2](); }
/external/llvm/lib/Transforms/Scalar/
H A DSROA.cpp1537 static bool canConvertValue(const DataLayout &DL, Type *OldTy, Type *NewTy) { argument
1538 if (OldTy == NewTy)
1541 if (IntegerType *NewITy = dyn_cast<IntegerType>(NewTy))
1544 if (DL.getTypeSizeInBits(NewTy) != DL.getTypeSizeInBits(OldTy))
1546 if (!NewTy->isSingleValueType() || !OldTy->isSingleValueType())
1552 NewTy = NewTy->getScalarType();
1553 if (NewTy->isPointerTy() || OldTy->isPointerTy()) {
1554 if (NewTy->isPointerTy() && OldTy->isPointerTy())
1556 if (NewTy
1570 convertValue(const DataLayout &DL, IRBuilderTy &IRB, Value *V, Type *NewTy) argument
[all...]
H A DScalarReplAggregates.cpp353 Type *NewTy; local
358 NewTy = VectorTy; // Use the vector type.
378 NewTy = IntegerType::get(AI->getContext(), BitWidth);
380 AllocaInst *NewAI = new AllocaInst(NewTy, nullptr, "",
2199 Type *NewTy = local
2202 if (OtherPtr->getType() != NewTy)
2203 OtherPtr = new BitCastInst(OtherPtr, NewTy, OtherPtr->getName(), MI);
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp181 Type *NewTy = local
183 AllocaInst *New = Builder->CreateAlloca(NewTy, nullptr, AI.getName());
347 PointerType *NewTy = dyn_cast<PointerType>(LI.getType()); local
348 if (OldTy && NewTy &&
349 OldTy->getAddressSpace() != NewTy->getAddressSpace()) {
/external/llvm/lib/IR/
H A DAutoUpgrade.cpp193 StructType *NewTy = local
206 ConstantStruct::get(NewTy, Init->getOperand(0), Init->getOperand(1),
214 ATy = ArrayType::get(NewTy, Initializers.size());
H A DVerifier.cpp2347 Type *NewTy = ArgTys[D.getArgumentNumber()];
2348 if (VectorType *VTy = dyn_cast<VectorType>(NewTy))
2349 NewTy = VectorType::getExtendedElementVectorType(VTy);
2350 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy))
2351 NewTy = IntegerType::get(ITy->getContext(), 2 * ITy->getBitWidth());
2355 return Ty != NewTy;
2362 Type *NewTy = ArgTys[D.getArgumentNumber()];
2363 if (VectorType *VTy = dyn_cast<VectorType>(NewTy))
2364 NewTy = VectorType::getTruncatedElementVectorType(VTy);
2365 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy))
[all...]
/external/llvm/lib/Target/R600/
H A DAMDGPUPromoteAlloca.cpp333 PointerType *NewTy = PointerType::get(EltTy, AMDGPUAS::LOCAL_ADDRESS); local
334 V->mutateType(NewTy);
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DProgramState.h344 DynamicTypeInfo NewTy) const;
348 QualType NewTy,
350 return setDynamicTypeInfo(Reg, DynamicTypeInfo(NewTy, CanBeSubClassed));
347 setDynamicTypeInfo(const MemRegion *Reg, QualType NewTy, bool CanBeSubClassed = true) const argument
/external/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp1302 /// \brief Mutate the type of \p Inst into \p NewTy.
1303 TypeMutator(Instruction *Inst, Type *NewTy) argument
1305 DEBUG(dbgs() << "Do: MutateType: " << *Inst << " with " << *NewTy local
1307 Inst->mutateType(NewTy);
1419 void mutateType(Instruction *Inst, Type *NewTy);
1451 void TypePromotionTransaction::mutateType(Instruction *Inst, Type *NewTy) { argument
1452 Actions.push_back(make_unique<TypePromotionTransaction::TypeMutator>(Inst, NewTy));
/external/clang/lib/StaticAnalyzer/Core/
H A DProgramState.cpp782 DynamicTypeInfo NewTy) const {
784 ProgramStateRef NewState = set<DynamicTypeMap>(Reg, NewTy);
/external/llvm/lib/Transforms/Instrumentation/
H A DAddressSanitizer.cpp1077 StructType *NewTy = StructType::get(Ty, RightRedZoneTy, NULL); local
1079 NewTy, G->getInitializer(),
1090 M, NewTy, G->isConstant(), Linkage,
/external/clang/lib/Sema/
H A DSemaDeclAttr.cpp2973 QualType NewTy; local
2976 NewTy = S.Context.getIntTypeForBitwidth(DestWidth,
2979 NewTy = S.Context.getRealTypeForBitwidth(DestWidth);
2981 if (NewTy.isNull()) {
2987 NewTy = S.Context.getComplexType(NewTy);
2992 TD->setModedTypeSourceInfo(TD->getTypeSourceInfo(), NewTy);
2994 cast<ValueDecl>(D)->setType(NewTy);
H A DSemaDeclCXX.cpp12297 QualType NewTy = New->getType()->getAs<FunctionType>()->getReturnType(); local
12300 if (Context.hasSameType(NewTy, OldTy) ||
12301 NewTy->isDependentType() || OldTy->isDependentType())
12308 if (const PointerType *NewPT = NewTy->getAs<PointerType>()) {
12313 } else if (const ReferenceType *NewRT = NewTy->getAs<ReferenceType>()) {
12326 << New->getDeclName() << NewTy << OldTy
12350 << New->getDeclName() << NewTy << OldTy
12375 if (NewTy.getLocalCVRQualifiers() != OldTy.getLocalCVRQualifiers()) {
12378 << New->getDeclName() << NewTy << OldTy
12390 << New->getDeclName() << NewTy << OldT
[all...]
H A DSemaDecl.cpp13263 QualType NewTy; local
13269 NewTy = Context.IntTy;
13281 NewTy = BestType;
13293 !Context.hasSameType(NewTy, ECD->getInitExpr()->getType()))
13294 ECD->setInitExpr(ImplicitCastExpr::Create(Context, NewTy,
13305 ECD->setType(NewTy);
/external/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp2335 Type *NewTy = cast<PointerType>(Ptr->getType())->getElementType(); local
2338 // from NewTy to Val's type must be legal. If it's not, we can try
2339 // introspecting NewTy to find a legal conversion.
2340 while (!Val->getType()->canLosslesslyBitCastTo(NewTy)) {
2341 // If NewTy is a struct, we can convert the pointer to the struct
2344 if (StructType *STy = dyn_cast<StructType>(NewTy)) {
2345 NewTy = STy->getTypeAtIndex(0U);
2347 IntegerType *IdxTy = IntegerType::get(NewTy->getContext(), 32);
2355 // If we can't improve the situation by introspecting NewTy,
2366 Val = ConstantExpr::getBitCast(Val, NewTy);
[all...]

Completed in 1538 milliseconds