Home
last modified time | relevance | path

Searched refs:NewTy (Results 1 – 19 of 19) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DValueMapper.cpp48 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()
104 Type *NewTy = C->getType(); in MapValue() local
106 NewTy = TypeMapper->remapType(NewTy); in MapValue()
110 if (OpNo == NumOperands && NewTy == C->getType()) in MapValue()
131 return VM[V] = CE->getWithOperands(Ops, NewTy); in MapValue()
133 return VM[V] = ConstantArray::get(cast<ArrayType>(NewTy), Ops); in MapValue()
135 return VM[V] = ConstantStruct::get(cast<StructType>(NewTy), Ops); in MapValue()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DDynamicTypePropagation.cpp188 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/
Dnew.cpp288 typedef int MyClass::* NewTy; typedef
291 NewTy* f() { return new NewTy[2](); } in f()
/external/llvm/lib/Transforms/Scalar/
DSROA.cpp1846 static bool canConvertValue(const DataLayout &DL, Type *OldTy, Type *NewTy) { in canConvertValue() argument
1847 if (OldTy == NewTy) in canConvertValue()
1850 if (IntegerType *NewITy = dyn_cast<IntegerType>(NewTy)) in canConvertValue()
1853 if (DL.getTypeSizeInBits(NewTy) != DL.getTypeSizeInBits(OldTy)) in canConvertValue()
1855 if (!NewTy->isSingleValueType() || !OldTy->isSingleValueType()) in canConvertValue()
1861 NewTy = NewTy->getScalarType(); in canConvertValue()
1862 if (NewTy->isPointerTy() || OldTy->isPointerTy()) { in canConvertValue()
1863 if (NewTy->isPointerTy() && OldTy->isPointerTy()) in canConvertValue()
1865 if (NewTy->isIntegerTy() || OldTy->isIntegerTy()) in canConvertValue()
1880 Type *NewTy) { in convertValue() argument
[all …]
DScalarReplAggregates.cpp358 Type *NewTy; in TryConvert() local
363 NewTy = VectorTy; // Use the vector type. in TryConvert()
383 NewTy = IntegerType::get(AI->getContext(), BitWidth); in TryConvert()
385 AllocaInst *NewAI = new AllocaInst(NewTy, nullptr, "", in TryConvert()
2221 Type *NewTy = in RewriteMemIntrinUserOfAlloca() local
2224 if (OtherPtr->getType() != NewTy) in RewriteMemIntrinUserOfAlloca()
2225 OtherPtr = new BitCastInst(OtherPtr, NewTy, OtherPtr->getName(), MI); in RewriteMemIntrinUserOfAlloca()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp182 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize() local
183 AllocaInst *New = IC.Builder->CreateAlloca(NewTy, nullptr, AI.getName()); in simplifyAllocaArraySize()
317 static LoadInst *combineLoadToNewType(InstCombiner &IC, LoadInst &LI, Type *NewTy) { in combineLoadToNewType() argument
324 IC.Builder->CreateBitCast(Ptr, NewTy->getPointerTo(AS)), in combineLoadToNewType()
354 if (NewTy->isPointerTy()) { in combineLoadToNewType()
359 if (NewTy->isIntegerTy()) { in combineLoadToNewType()
360 auto *ITy = cast<IntegerType>(NewTy); in combineLoadToNewType()
/external/llvm/lib/Target/R600/
DAMDGPUPromoteAlloca.cpp347 PointerType *NewTy = PointerType::get(EltTy, AMDGPUAS::LOCAL_ADDRESS); in visitAlloca() local
355 V->mutateType(NewTy); in visitAlloca()
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp567 Type *NewTy = NewGlobals[Val]->getType(); in SRAGlobal() local
577 ConstantExpr::getGetElementPtr(NewTy, cast<Constant>(NewPtr), Idxs); in SRAGlobal()
578 NewTy = GetElementPtrInst::getIndexedType(NewTy, Idxs); in SRAGlobal()
2328 Type *NewTy = cast<PointerType>(Ptr->getType())->getElementType(); in EvaluateBlock() local
2333 while (!Val->getType()->canLosslesslyBitCastTo(NewTy)) { in EvaluateBlock()
2337 if (StructType *STy = dyn_cast<StructType>(NewTy)) { in EvaluateBlock()
2338 NewTy = STy->getTypeAtIndex(0U); in EvaluateBlock()
2340 IntegerType *IdxTy = IntegerType::get(NewTy->getContext(), 32); in EvaluateBlock()
2359 Val = ConstantExpr::getBitCast(Val, NewTy); in EvaluateBlock()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DProgramState.h345 DynamicTypeInfo NewTy) const;
349 QualType NewTy,
351 return setDynamicTypeInfo(Reg, DynamicTypeInfo(NewTy, CanBeSubClassed));
/external/llvm/lib/IR/
DDIBuilder.cpp471 auto NewTy = Ty->clone(); in createTypeWithFlags() local
472 NewTy->setFlags(NewTy->getFlags() | FlagsToSet); in createTypeWithFlags()
473 return MDNode::replaceWithUniqued(std::move(NewTy)); in createTypeWithFlags()
DVerifier.cpp2974 Type *NewTy = ArgTys[D.getArgumentNumber()]; in VerifyIntrinsicType() local
2975 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in VerifyIntrinsicType()
2976 NewTy = VectorType::getExtendedElementVectorType(VTy); in VerifyIntrinsicType()
2977 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in VerifyIntrinsicType()
2978 NewTy = IntegerType::get(ITy->getContext(), 2 * ITy->getBitWidth()); in VerifyIntrinsicType()
2982 return Ty != NewTy; in VerifyIntrinsicType()
2989 Type *NewTy = ArgTys[D.getArgumentNumber()]; in VerifyIntrinsicType() local
2990 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in VerifyIntrinsicType()
2991 NewTy = VectorType::getTruncatedElementVectorType(VTy); in VerifyIntrinsicType()
2992 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in VerifyIntrinsicType()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DProgramState.cpp782 DynamicTypeInfo NewTy) const { in setDynamicTypeInfo()
784 ProgramStateRef NewState = set<DynamicTypeMap>(Reg, NewTy); in setDynamicTypeInfo()
/external/llvm/lib/Transforms/Instrumentation/
DAddressSanitizer.cpp1297 StructType *NewTy = StructType::get(Ty, RightRedZoneTy, nullptr); in InstrumentGlobals() local
1299 ConstantStruct::get(NewTy, G->getInitializer(), in InstrumentGlobals()
1307 new GlobalVariable(M, NewTy, G->isConstant(), Linkage, NewInitializer, in InstrumentGlobals()
1317 ConstantExpr::getGetElementPtr(NewTy, NewGlobal, Indices2, true)); in InstrumentGlobals()
/external/llvm/lib/Linker/
DLinkModules.cpp888 StructType *NewTy = StructType::get(GV->getContext(), Tys, false); in upgradeGlobalArray() local
902 NewTy, Init->getOperand(0), Init->getOperand(1), Null, nullptr)); in upgradeGlobalArray()
909 ATy = ArrayType::get(NewTy, Initializers.size()); in upgradeGlobalArray()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp1838 TypeMutator(Instruction *Inst, Type *NewTy) in TypeMutator() argument
1840 DEBUG(dbgs() << "Do: MutateType: " << *Inst << " with " << *NewTy in TypeMutator()
1842 Inst->mutateType(NewTy); in TypeMutator()
1954 void mutateType(Instruction *Inst, Type *NewTy);
1988 void TypePromotionTransaction::mutateType(Instruction *Inst, Type *NewTy) { in mutateType() argument
1989 Actions.push_back(make_unique<TypePromotionTransaction::TypeMutator>(Inst, NewTy)); in mutateType()
/external/clang/lib/Sema/
DSemaDeclAttr.cpp3167 QualType NewTy; in handleModeAttr() local
3170 NewTy = S.Context.getIntTypeForBitwidth(DestWidth, in handleModeAttr()
3173 NewTy = S.Context.getRealTypeForBitwidth(DestWidth); in handleModeAttr()
3175 if (NewTy.isNull()) { in handleModeAttr()
3181 NewTy = S.Context.getComplexType(NewTy); in handleModeAttr()
3186 TD->setModedTypeSourceInfo(TD->getTypeSourceInfo(), NewTy); in handleModeAttr()
3188 cast<ValueDecl>(D)->setType(NewTy); in handleModeAttr()
DSemaDeclCXX.cpp12898 QualType NewTy = New->getType()->getAs<FunctionType>()->getReturnType(); in CheckOverridingFunctionReturnType() local
12901 if (Context.hasSameType(NewTy, OldTy) || in CheckOverridingFunctionReturnType()
12902 NewTy->isDependentType() || OldTy->isDependentType()) in CheckOverridingFunctionReturnType()
12909 if (const PointerType *NewPT = NewTy->getAs<PointerType>()) { in CheckOverridingFunctionReturnType()
12914 } else if (const ReferenceType *NewRT = NewTy->getAs<ReferenceType>()) { in CheckOverridingFunctionReturnType()
12927 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType()
12951 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType()
12976 if (NewTy.getLocalCVRQualifiers() != OldTy.getLocalCVRQualifiers()) { in CheckOverridingFunctionReturnType()
12979 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType()
12991 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType()
DSemaDecl.cpp13883 QualType NewTy; in ActOnEnumBody() local
13889 NewTy = Context.IntTy; in ActOnEnumBody()
13901 NewTy = BestType; in ActOnEnumBody()
13913 !Context.hasSameType(NewTy, ECD->getInitExpr()->getType())) in ActOnEnumBody()
13914 ECD->setInitExpr(ImplicitCastExpr::Create(Context, NewTy, in ActOnEnumBody()
13925 ECD->setType(NewTy); in ActOnEnumBody()
/external/clang/lib/CodeGen/
DCGExprScalar.cpp1454 llvm::Type *NewTy = ConvertType(E->getType()); in VisitCastExpr() local
1456 V, NewTy->getPointerTo(V->getType()->getPointerAddressSpace())); in VisitCastExpr()
1460 V = Builder.CreateStructGEP(NewTy, V, 0, "arraydecay"); in VisitCastExpr()