Home
last modified time | relevance | path

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

/NextBSD/contrib/llvm/lib/Transforms/Utils/
HDValueMapper.cpp49 FunctionType *NewTy = IA->getFunctionType(); in MapValue() local
51 NewTy = cast<FunctionType>(TypeMapper->remapType(NewTy)); in MapValue()
53 if (NewTy != IA->getFunctionType()) in MapValue()
54 V = InlineAsm::get(NewTy, IA->getAsmString(), IA->getConstraintString(), in MapValue()
105 Type *NewTy = C->getType(); in MapValue() local
107 NewTy = TypeMapper->remapType(NewTy); in MapValue()
111 if (OpNo == NumOperands && NewTy == C->getType()) in MapValue()
132 return VM[V] = CE->getWithOperands(Ops, NewTy); in MapValue()
134 return VM[V] = ConstantArray::get(cast<ArrayType>(NewTy), Ops); in MapValue()
136 return VM[V] = ConstantStruct::get(cast<StructType>(NewTy), Ops); in MapValue()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
HDDynamicTypePropagation.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()
/NextBSD/contrib/llvm/lib/Transforms/Scalar/
HDSROA.cpp1847 static bool canConvertValue(const DataLayout &DL, Type *OldTy, Type *NewTy) { in canConvertValue() argument
1848 if (OldTy == NewTy) in canConvertValue()
1854 if (isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) { in canConvertValue()
1856 cast<IntegerType>(NewTy)->getBitWidth() && in canConvertValue()
1861 if (DL.getTypeSizeInBits(NewTy) != DL.getTypeSizeInBits(OldTy)) in canConvertValue()
1863 if (!NewTy->isSingleValueType() || !OldTy->isSingleValueType()) in canConvertValue()
1869 NewTy = NewTy->getScalarType(); in canConvertValue()
1870 if (NewTy->isPointerTy() || OldTy->isPointerTy()) { in canConvertValue()
1871 if (NewTy->isPointerTy() && OldTy->isPointerTy()) in canConvertValue()
1873 if (NewTy->isIntegerTy() || OldTy->isIntegerTy()) in canConvertValue()
[all …]
HDScalarReplAggregates.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()
/NextBSD/contrib/llvm/lib/Transforms/InstCombine/
HDInstCombineLoadStoreAlloca.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
325 IC.Builder->CreateBitCast(Ptr, NewTy->getPointerTo(AS)), in combineLoadToNewType()
355 if (NewTy->isPointerTy()) { in combineLoadToNewType()
360 if (NewTy->isIntegerTy()) { in combineLoadToNewType()
361 auto *ITy = cast<IntegerType>(NewTy); in combineLoadToNewType()
/NextBSD/contrib/llvm/lib/Target/AMDGPU/
HDAMDGPUPromoteAlloca.cpp361 PointerType *NewTy = PointerType::get(EltTy, AMDGPUAS::LOCAL_ADDRESS); in visitAlloca() local
369 V->mutateType(NewTy); in visitAlloca()
/NextBSD/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
HDProgramState.h345 DynamicTypeInfo NewTy) const;
349 QualType NewTy,
351 return setDynamicTypeInfo(Reg, DynamicTypeInfo(NewTy, CanBeSubClassed));
/NextBSD/contrib/llvm/lib/IR/
HDDIBuilder.cpp477 auto NewTy = Ty->clone(); in createTypeWithFlags() local
478 NewTy->setFlags(NewTy->getFlags() | FlagsToSet); in createTypeWithFlags()
479 return MDNode::replaceWithUniqued(std::move(NewTy)); in createTypeWithFlags()
HDVerifier.cpp3053 Type *NewTy = ArgTys[D.getArgumentNumber()]; in VerifyIntrinsicType() local
3054 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in VerifyIntrinsicType()
3055 NewTy = VectorType::getExtendedElementVectorType(VTy); in VerifyIntrinsicType()
3056 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in VerifyIntrinsicType()
3057 NewTy = IntegerType::get(ITy->getContext(), 2 * ITy->getBitWidth()); in VerifyIntrinsicType()
3061 return Ty != NewTy; in VerifyIntrinsicType()
3068 Type *NewTy = ArgTys[D.getArgumentNumber()]; in VerifyIntrinsicType() local
3069 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in VerifyIntrinsicType()
3070 NewTy = VectorType::getTruncatedElementVectorType(VTy); in VerifyIntrinsicType()
3071 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in VerifyIntrinsicType()
[all …]
/NextBSD/contrib/llvm/lib/Transforms/IPO/
HDGlobalOpt.cpp567 Type *NewTy = NewGlobals[Val]->getValueType(); in SRAGlobal() local
577 ConstantExpr::getGetElementPtr(NewTy, cast<Constant>(NewPtr), Idxs); in SRAGlobal()
585 NewTy, NewPtr, Idxs, GEPI->getName() + "." + Twine(Val), GEPI); in SRAGlobal()
2324 Type *NewTy = cast<PointerType>(Ptr->getType())->getElementType(); in EvaluateBlock() local
2329 while (!Val->getType()->canLosslesslyBitCastTo(NewTy)) { in EvaluateBlock()
2333 if (StructType *STy = dyn_cast<StructType>(NewTy)) { in EvaluateBlock()
2334 NewTy = STy->getTypeAtIndex(0U); in EvaluateBlock()
2336 IntegerType *IdxTy = IntegerType::get(NewTy->getContext(), 32); in EvaluateBlock()
2355 Val = ConstantExpr::getBitCast(Val, NewTy); in EvaluateBlock()
/NextBSD/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
HDProgramState.cpp782 DynamicTypeInfo NewTy) const { in setDynamicTypeInfo()
784 ProgramStateRef NewState = set<DynamicTypeMap>(Reg, NewTy); in setDynamicTypeInfo()
/NextBSD/contrib/llvm/lib/Transforms/Instrumentation/
HDAddressSanitizer.cpp1283 StructType *NewTy = StructType::get(Ty, RightRedZoneTy, nullptr); in InstrumentGlobals() local
1285 ConstantStruct::get(NewTy, G->getInitializer(), in InstrumentGlobals()
1293 new GlobalVariable(M, NewTy, G->isConstant(), Linkage, NewInitializer, in InstrumentGlobals()
1303 ConstantExpr::getGetElementPtr(NewTy, NewGlobal, Indices2, true)); in InstrumentGlobals()
/NextBSD/contrib/llvm/lib/Linker/
HDLinkModules.cpp898 StructType *NewTy = StructType::get(GV->getContext(), Tys, false); in upgradeGlobalArray() local
912 NewTy, Init->getOperand(0), Init->getOperand(1), Null, nullptr)); in upgradeGlobalArray()
919 ATy = ArrayType::get(NewTy, Initializers.size()); in upgradeGlobalArray()
/NextBSD/contrib/llvm/lib/CodeGen/
HDCodeGenPrepare.cpp1895 TypeMutator(Instruction *Inst, Type *NewTy) in TypeMutator() argument
1897 DEBUG(dbgs() << "Do: MutateType: " << *Inst << " with " << *NewTy in TypeMutator()
1899 Inst->mutateType(NewTy); in TypeMutator()
2011 void mutateType(Instruction *Inst, Type *NewTy);
2045 void TypePromotionTransaction::mutateType(Instruction *Inst, Type *NewTy) { in mutateType() argument
2046 Actions.push_back(make_unique<TypePromotionTransaction::TypeMutator>(Inst, NewTy)); in mutateType()
/NextBSD/contrib/llvm/tools/clang/lib/Sema/
HDSemaDeclCXX.cpp12935 QualType NewTy = New->getType()->getAs<FunctionType>()->getReturnType(); in CheckOverridingFunctionReturnType() local
12938 if (Context.hasSameType(NewTy, OldTy) || in CheckOverridingFunctionReturnType()
12939 NewTy->isDependentType() || OldTy->isDependentType()) in CheckOverridingFunctionReturnType()
12946 if (const PointerType *NewPT = NewTy->getAs<PointerType>()) { in CheckOverridingFunctionReturnType()
12951 } else if (const ReferenceType *NewRT = NewTy->getAs<ReferenceType>()) { in CheckOverridingFunctionReturnType()
12964 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType()
12988 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType()
13013 if (NewTy.getLocalCVRQualifiers() != OldTy.getLocalCVRQualifiers()) { in CheckOverridingFunctionReturnType()
13016 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType()
13028 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType()
HDSemaDeclAttr.cpp3219 QualType NewTy = NewElemTy; in handleModeAttr() local
3229 NewTy = in handleModeAttr()
3233 if (NewTy.isNull()) { in handleModeAttr()
3240 TD->setModedTypeSourceInfo(TD->getTypeSourceInfo(), NewTy); in handleModeAttr()
3242 cast<ValueDecl>(D)->setType(NewTy); in handleModeAttr()
HDSemaDecl.cpp14156 QualType NewTy; in ActOnEnumBody() local
14162 NewTy = Context.IntTy; in ActOnEnumBody()
14174 NewTy = BestType; in ActOnEnumBody()
14186 !Context.hasSameType(NewTy, ECD->getInitExpr()->getType())) in ActOnEnumBody()
14187 ECD->setInitExpr(ImplicitCastExpr::Create(Context, NewTy, in ActOnEnumBody()
14198 ECD->setType(NewTy); in ActOnEnumBody()
/NextBSD/contrib/llvm/tools/clang/lib/CodeGen/
HDCGExprScalar.cpp1469 llvm::Type *NewTy = ConvertType(E->getType()); in VisitCastExpr() local
1471 V, NewTy->getPointerTo(V->getType()->getPointerAddressSpace())); in VisitCastExpr()
1475 V = Builder.CreateStructGEP(NewTy, V, 0, "arraydecay"); in VisitCastExpr()