Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Utils/
DValueMapper.cpp40 FunctionType *NewTy = IA->getFunctionType(); in MapValue() local
42 NewTy = cast<FunctionType>(TypeMapper->remapType(NewTy)); in MapValue()
44 if (NewTy != IA->getFunctionType()) in MapValue()
45 V = InlineAsm::get(NewTy, IA->getAsmString(), IA->getConstraintString(), in MapValue()
114 Type *NewTy = C->getType(); in MapValue() local
116 NewTy = TypeMapper->remapType(NewTy); in MapValue()
120 if (OpNo == NumOperands && NewTy == C->getType()) in MapValue()
141 return VM[V] = CE->getWithOperands(Ops, NewTy); in MapValue()
143 return VM[V] = ConstantArray::get(cast<ArrayType>(NewTy), Ops); in MapValue()
145 return VM[V] = ConstantStruct::get(cast<StructType>(NewTy), Ops); in MapValue()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DDynamicTypePropagation.cpp185 if (const Type *NewTy = getBetterObjCType(CastE, C)) in checkPostStmt() local
186 C.addTransition(C.getState()->setDynamicTypeInfo(ToR, QualType(NewTy,0))); in checkPostStmt()
236 const ObjCObjectPointerType *NewTy = in getBetterObjCType() local
238 if (!NewTy) in getBetterObjCType()
242 return NewTy; in getBetterObjCType()
250 if (OldTy->isObjCIdType() && !NewTy->isObjCIdType()) in getBetterObjCType()
251 return NewTy; in getBetterObjCType()
254 const ObjCInterfaceDecl *ToI = NewTy->getInterfaceDecl(); in getBetterObjCType()
257 return NewTy; in getBetterObjCType()
/external/clang/test/CodeGenCXX/
Dnew.cpp237 typedef int MyClass::* NewTy; typedef
240 NewTy* f() { return new NewTy[2](); } in f()
/external/clang/lib/Sema/
DSemaDeclAttr.cpp3284 QualType NewTy; in handleModeAttr() local
3298 NewTy = S.Context.SignedCharTy; in handleModeAttr()
3300 NewTy = S.Context.UnsignedCharTy; in handleModeAttr()
3308 NewTy = S.Context.ShortTy; in handleModeAttr()
3310 NewTy = S.Context.UnsignedShortTy; in handleModeAttr()
3314 NewTy = S.Context.FloatTy; in handleModeAttr()
3316 NewTy = S.Context.IntTy; in handleModeAttr()
3318 NewTy = S.Context.UnsignedIntTy; in handleModeAttr()
3322 NewTy = S.Context.DoubleTy; in handleModeAttr()
3325 NewTy = S.Context.LongTy; in handleModeAttr()
[all …]
DSemaDeclCXX.cpp10534 QualType NewTy = New->getType()->getAs<FunctionType>()->getResultType(); in CheckOverridingFunctionReturnType() local
10537 if (Context.hasSameType(NewTy, OldTy) || in CheckOverridingFunctionReturnType()
10538 NewTy->isDependentType() || OldTy->isDependentType()) in CheckOverridingFunctionReturnType()
10545 if (const PointerType *NewPT = NewTy->getAs<PointerType>()) { in CheckOverridingFunctionReturnType()
10550 } else if (const ReferenceType *NewRT = NewTy->getAs<ReferenceType>()) { in CheckOverridingFunctionReturnType()
10563 << New->getDeclName() << NewTy << OldTy; in CheckOverridingFunctionReturnType()
10586 << New->getDeclName() << NewTy << OldTy; in CheckOverridingFunctionReturnType()
10607 if (NewTy.getLocalCVRQualifiers() != OldTy.getLocalCVRQualifiers()) { in CheckOverridingFunctionReturnType()
10610 << New->getDeclName() << NewTy << OldTy; in CheckOverridingFunctionReturnType()
10620 << New->getDeclName() << NewTy << OldTy; in CheckOverridingFunctionReturnType()
DSemaDecl.cpp10952 QualType NewTy; in ActOnEnumBody() local
10958 NewTy = Context.IntTy; in ActOnEnumBody()
10970 NewTy = BestType; in ActOnEnumBody()
10982 !Context.hasSameType(NewTy, ECD->getInitExpr()->getType())) in ActOnEnumBody()
10983 ECD->setInitExpr(ImplicitCastExpr::Create(Context, NewTy, in ActOnEnumBody()
10994 ECD->setType(NewTy); in ActOnEnumBody()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DProgramState.h325 DynamicTypeInfo NewTy) const;
329 QualType NewTy,
331 return setDynamicTypeInfo(Reg, DynamicTypeInfo(NewTy, CanBeSubClassed));
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp352 Type *NewTy; in TryConvert() local
357 NewTy = VectorTy; // Use the vector type. in TryConvert()
377 NewTy = IntegerType::get(AI->getContext(), BitWidth); in TryConvert()
379 AllocaInst *NewAI = new AllocaInst(NewTy, 0, "", AI->getParent()->begin()); in TryConvert()
2210 Type *NewTy = in RewriteMemIntrinUserOfAlloca() local
2213 if (OtherPtr->getType() != NewTy) in RewriteMemIntrinUserOfAlloca()
2214 OtherPtr = new BitCastInst(OtherPtr, NewTy, OtherPtr->getName(), MI); in RewriteMemIntrinUserOfAlloca()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp188 Type *NewTy = in visitAllocaInst() local
190 AllocaInst *New = Builder->CreateAlloca(NewTy, 0, AI.getName()); in visitAllocaInst()
/external/clang/lib/StaticAnalyzer/Core/
DProgramState.cpp747 DynamicTypeInfo NewTy) const { in setDynamicTypeInfo()
749 ProgramStateRef NewState = set<DynamicTypeMap>(Reg, NewTy); in setDynamicTypeInfo()
/external/llvm/lib/Transforms/Instrumentation/
DAddressSanitizer.cpp650 StructType *NewTy = StructType::get(Ty, RightRedZoneTy, NULL); in insertGlobalRedzones() local
652 NewTy, G->getInitializer(), in insertGlobalRedzones()
663 M, NewTy, G->isConstant(), G->getLinkage(), in insertGlobalRedzones()
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp2603 Type *NewTy = cast<PointerType>(Ptr->getType())->getElementType(); in EvaluateBlock() local
2608 while (!Val->getType()->canLosslesslyBitCastTo(NewTy)) { in EvaluateBlock()
2612 if (StructType *STy = dyn_cast<StructType>(NewTy)) { in EvaluateBlock()
2613 NewTy = STy->getTypeAtIndex(0U); in EvaluateBlock()
2615 IntegerType *IdxTy = IntegerType::get(NewTy->getContext(), 32); in EvaluateBlock()
2632 Val = ConstantExpr::getBitCast(Val, NewTy); in EvaluateBlock()