/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | DynamicType.h | 51 DynamicTypeInfo NewTy); 55 QualType NewTy, bool CanBeSubClassed = true); 60 DynamicTypeInfo NewTy); 64 SymbolRef Sym, QualType NewTy,
|
D | SMTConv.h | 658 QualType NewTy = Ctx.getPromotedIntegerType(LTy); in doIntTypeConversion() local 659 uint64_t NewBitWidth = Ctx.getTypeSize(NewTy); in doIntTypeConversion() 660 LHS = (*doCast)(Solver, LHS, NewTy, NewBitWidth, LTy, LBitWidth); in doIntTypeConversion() 661 LTy = NewTy; in doIntTypeConversion() 665 QualType NewTy = Ctx.getPromotedIntegerType(RTy); in doIntTypeConversion() local 666 uint64_t NewBitWidth = Ctx.getTypeSize(NewTy); in doIntTypeConversion() 667 RHS = (*doCast)(Solver, RHS, NewTy, NewBitWidth, RTy, RBitWidth); in doIntTypeConversion() 668 RTy = NewTy; in doIntTypeConversion() 716 QualType NewTy = in doIntTypeConversion() local 719 RTy = NewTy; in doIntTypeConversion() [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/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
D | LegalizeMutations.cpp | 33 const LLT NewTy = Query.Types[FromTypeIdx]; in changeElementTo() local 34 return std::make_pair(TypeIdx, OldTy.changeElementType(NewTy)); in changeElementTo() 50 const LLT NewTy = Query.Types[FromTypeIdx]; in changeElementSizeTo() local 51 const LLT NewEltTy = LLT::scalar(NewTy.getScalarSizeInBits()); in changeElementSizeTo()
|
D | LegalizerInfo.cpp | 131 const LLT NewTy = Mutation.second; in mutationIsSane() local 141 if (NewTy.isVector()) { in mutationIsSane() 144 if (NewTy.getNumElements() >= OldElts) in mutationIsSane() 148 if (NewTy.getNumElements() <= OldElts) in mutationIsSane() 155 return NewTy.getScalarType() == OldTy.getScalarType(); in mutationIsSane() 161 if (!NewTy.isVector() || OldTy.getNumElements() != NewTy.getNumElements()) in mutationIsSane() 165 if (NewTy.isVector()) in mutationIsSane() 171 if (NewTy.getScalarSizeInBits() >= OldTy.getScalarSizeInBits()) in mutationIsSane() 175 if (NewTy.getScalarSizeInBits() <= OldTy.getScalarSizeInBits()) in mutationIsSane() 182 return OldTy != NewTy && OldTy.getSizeInBits() == NewTy.getSizeInBits(); in mutationIsSane()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | DynamicType.cpp | 100 DynamicTypeInfo NewTy) { in setDynamicTypeInfo() argument 101 State = State->set<DynamicTypeMap>(MR->StripCasts(), NewTy); in setDynamicTypeInfo() 107 QualType NewTy, bool CanBeSubClassed) { in setDynamicTypeInfo() argument 108 return setDynamicTypeInfo(State, MR, DynamicTypeInfo(NewTy, CanBeSubClassed)); in setDynamicTypeInfo() 146 DynamicTypeInfo NewTy) { in setClassObjectDynamicTypeInfo() argument 147 State = State->set<DynamicClassObjectMap>(Sym, NewTy); in setClassObjectDynamicTypeInfo() 152 SymbolRef Sym, QualType NewTy, in setClassObjectDynamicTypeInfo() argument 155 DynamicTypeInfo(NewTy, CanBeSubClassed)); in setClassObjectDynamicTypeInfo()
|
/external/llvm-project/clang/test/CodeGenCXX/ |
D | new.cpp | 286 typedef int MyClass::* NewTy; typedef 289 NewTy* f() { return new NewTy[2](); } in f()
|
/external/clang/test/CodeGenCXX/ |
D | new.cpp | 288 typedef int MyClass::* NewTy; typedef 291 NewTy* f() { return new NewTy[2](); } in f()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | ValueMapper.cpp | 362 FunctionType *NewTy = IA->getFunctionType(); in mapValue() local 364 NewTy = cast<FunctionType>(TypeMapper->remapType(NewTy)); in mapValue() 366 if (NewTy != IA->getFunctionType()) in mapValue() 367 V = InlineAsm::get(NewTy, IA->getAsmString(), IA->getConstraintString(), in mapValue() 437 Type *NewTy = C->getType(); in mapValue() local 439 NewTy = TypeMapper->remapType(NewTy); in mapValue() 443 if (OpNo == NumOperands && NewTy == C->getType()) in mapValue() 471 return getVM()[V] = CE->getWithOperands(Ops, NewTy, false, NewSrcTy); in mapValue() 473 return getVM()[V] = ConstantArray::get(cast<ArrayType>(NewTy), Ops); in mapValue() 475 return getVM()[V] = ConstantStruct::get(cast<StructType>(NewTy), Ops); in mapValue() [all …]
|
/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/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/ |
D | LegalizerInfo.cpp | 127 const LLT NewTy = Mutation.second; in mutationIsSane() local 137 if (NewTy.isVector()) { in mutationIsSane() 140 if (NewTy.getNumElements() >= OldElts) in mutationIsSane() 144 if (NewTy.getNumElements() <= OldElts) in mutationIsSane() 150 return NewTy.getScalarType() == OldTy.getScalarType(); in mutationIsSane() 156 if (!NewTy.isVector() || OldTy.getNumElements() != NewTy.getNumElements()) in mutationIsSane() 160 if (NewTy.isVector()) in mutationIsSane() 166 if (NewTy.getScalarSizeInBits() >= OldTy.getScalarSizeInBits()) in mutationIsSane() 170 if (NewTy.getScalarSizeInBits() <= OldTy.getScalarSizeInBits()) in mutationIsSane()
|
D | LegalizeMutations.cpp | 33 const LLT NewTy = Query.Types[FromTypeIdx]; in changeElementTo() local 34 return std::make_pair(TypeIdx, OldTy.changeElementType(NewTy)); in changeElementTo()
|
/external/llvm/lib/Transforms/Utils/ |
D | ValueMapper.cpp | 366 FunctionType *NewTy = IA->getFunctionType(); in mapValue() local 368 NewTy = cast<FunctionType>(TypeMapper->remapType(NewTy)); in mapValue() 370 if (NewTy != IA->getFunctionType()) in mapValue() 371 V = InlineAsm::get(NewTy, IA->getAsmString(), IA->getConstraintString(), in mapValue() 440 Type *NewTy = C->getType(); in mapValue() local 442 NewTy = TypeMapper->remapType(NewTy); in mapValue() 446 if (OpNo == NumOperands && NewTy == C->getType()) in mapValue() 474 return getVM()[V] = CE->getWithOperands(Ops, NewTy, false, NewSrcTy); in mapValue() 476 return getVM()[V] = ConstantArray::get(cast<ArrayType>(NewTy), Ops); in mapValue() 478 return getVM()[V] = ConstantStruct::get(cast<StructType>(NewTy), Ops); in mapValue() [all …]
|
D | Evaluator.cpp | 235 Type *NewTy = cast<PointerType>(Ptr->getType())->getElementType(); in EvaluateBlock() local 240 while (!Val->getType()->canLosslesslyBitCastTo(NewTy)) { in EvaluateBlock() 244 if (StructType *STy = dyn_cast<StructType>(NewTy)) { in EvaluateBlock() 245 NewTy = STy->getTypeAtIndex(0U); in EvaluateBlock() 247 IntegerType *IdxTy = IntegerType::get(NewTy->getContext(), 32); in EvaluateBlock() 266 Val = ConstantExpr::getBitCast(Val, NewTy); in EvaluateBlock()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | ValueMapper.cpp | 366 FunctionType *NewTy = IA->getFunctionType(); in mapValue() local 368 NewTy = cast<FunctionType>(TypeMapper->remapType(NewTy)); in mapValue() 370 if (NewTy != IA->getFunctionType()) in mapValue() 371 V = InlineAsm::get(NewTy, IA->getAsmString(), IA->getConstraintString(), in mapValue() 440 Type *NewTy = C->getType(); in mapValue() local 442 NewTy = TypeMapper->remapType(NewTy); in mapValue() 446 if (OpNo == NumOperands && NewTy == C->getType()) in mapValue() 474 return getVM()[V] = CE->getWithOperands(Ops, NewTy, false, NewSrcTy); in mapValue() 476 return getVM()[V] = ConstantArray::get(cast<ArrayType>(NewTy), Ops); in mapValue() 478 return getVM()[V] = ConstantStruct::get(cast<StructType>(NewTy), Ops); in mapValue() [all …]
|
D | CallPromotionUtils.cpp | 419 Type *NewTy = Callee->getParamByValType(ArgNo); in promoteCall() local 421 NewTy ? NewTy : cast<PointerType>(FormalTy)->getElementType()); in promoteCall()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 731 PointerType *NewTy = PointerType::get(EltTy, AMDGPUAS::LOCAL_ADDRESS); in handleAlloca() local 734 CI->setOperand(0, ConstantPointerNull::get(NewTy)); in handleAlloca() 737 CI->setOperand(1, ConstantPointerNull::get(NewTy)); in handleAlloca() 747 PointerType *NewTy = PointerType::get(EltTy, AMDGPUAS::LOCAL_ADDRESS); in handleAlloca() local 751 V->mutateType(NewTy); in handleAlloca() 756 SI->setOperand(1, ConstantPointerNull::get(NewTy)); in handleAlloca() 759 SI->setOperand(2, ConstantPointerNull::get(NewTy)); in handleAlloca() 763 Phi->setIncomingValue(I, ConstantPointerNull::get(NewTy)); in handleAlloca()
|
/external/llvm/lib/IR/ |
D | Function.cpp | 989 Type *NewTy = ArgTys[D.getArgumentNumber()]; in matchIntrinsicType() local 990 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in matchIntrinsicType() 991 NewTy = VectorType::getExtendedElementVectorType(VTy); in matchIntrinsicType() 992 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in matchIntrinsicType() 993 NewTy = IntegerType::get(ITy->getContext(), 2 * ITy->getBitWidth()); in matchIntrinsicType() 997 return Ty != NewTy; in matchIntrinsicType() 1004 Type *NewTy = ArgTys[D.getArgumentNumber()]; in matchIntrinsicType() local 1005 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in matchIntrinsicType() 1006 NewTy = VectorType::getTruncatedElementVectorType(VTy); in matchIntrinsicType() 1007 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in matchIntrinsicType() [all …]
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | DynamicTypePropagation.cpp | 412 if (const Type *NewTy = getBetterObjCType(CE, C)) { in dynamicTypePropagationOnCasts() local 413 State = setDynamicTypeInfo(State, ToR, QualType(NewTy, 0)); in dynamicTypePropagationOnCasts() 443 const ObjCObjectPointerType *NewTy = in getBetterObjCType() local 445 if (!NewTy) in getBetterObjCType() 449 return NewTy; in getBetterObjCType() 457 if (OldTy->isObjCIdType() && !NewTy->isObjCIdType()) in getBetterObjCType() 458 return NewTy; in getBetterObjCType() 461 const ObjCInterfaceDecl *ToI = NewTy->getInterfaceDecl(); in getBetterObjCType() 464 return NewTy; in getBetterObjCType()
|
/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/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 837 PointerType *NewTy = PointerType::get(EltTy, AMDGPUAS::LOCAL_ADDRESS); in handleAlloca() local 840 CI->setOperand(0, ConstantPointerNull::get(NewTy)); in handleAlloca() 843 CI->setOperand(1, ConstantPointerNull::get(NewTy)); in handleAlloca() 854 PointerType *NewTy = PointerType::get(EltTy, AMDGPUAS::LOCAL_ADDRESS); in handleAlloca() local 858 V->mutateType(NewTy); in handleAlloca() 863 SI->setOperand(1, ConstantPointerNull::get(NewTy)); in handleAlloca() 866 SI->setOperand(2, ConstantPointerNull::get(NewTy)); in handleAlloca() 870 Phi->setIncomingValue(I, ConstantPointerNull::get(NewTy)); in handleAlloca()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Function.cpp | 1219 Type *NewTy = ArgTys[D.getArgumentNumber()]; in matchIntrinsicType() local 1220 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in matchIntrinsicType() 1221 NewTy = VectorType::getExtendedElementVectorType(VTy); in matchIntrinsicType() 1222 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in matchIntrinsicType() 1223 NewTy = IntegerType::get(ITy->getContext(), 2 * ITy->getBitWidth()); in matchIntrinsicType() 1227 return Ty != NewTy; in matchIntrinsicType() 1234 Type *NewTy = ArgTys[D.getArgumentNumber()]; in matchIntrinsicType() local 1235 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in matchIntrinsicType() 1236 NewTy = VectorType::getTruncatedElementVectorType(VTy); in matchIntrinsicType() 1237 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in matchIntrinsicType() [all …]
|
/external/llvm-project/llvm/lib/IR/ |
D | Function.cpp | 1352 Type *NewTy = ArgTys[D.getArgumentNumber()]; in matchIntrinsicType() local 1353 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in matchIntrinsicType() 1354 NewTy = VectorType::getExtendedElementVectorType(VTy); in matchIntrinsicType() 1355 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in matchIntrinsicType() 1356 NewTy = IntegerType::get(ITy->getContext(), 2 * ITy->getBitWidth()); in matchIntrinsicType() 1360 return Ty != NewTy; in matchIntrinsicType() 1367 Type *NewTy = ArgTys[D.getArgumentNumber()]; in matchIntrinsicType() local 1368 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in matchIntrinsicType() 1369 NewTy = VectorType::getTruncatedElementVectorType(VTy); in matchIntrinsicType() 1370 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in matchIntrinsicType() [all …]
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 982 PointerType *NewTy = PointerType::get(EltTy, AMDGPUAS::LOCAL_ADDRESS); in handleAlloca() local 985 CI->setOperand(0, ConstantPointerNull::get(NewTy)); in handleAlloca() 988 CI->setOperand(1, ConstantPointerNull::get(NewTy)); in handleAlloca() 999 PointerType *NewTy = PointerType::get(EltTy, AMDGPUAS::LOCAL_ADDRESS); in handleAlloca() local 1003 V->mutateType(NewTy); in handleAlloca() 1008 SI->setOperand(1, ConstantPointerNull::get(NewTy)); in handleAlloca() 1011 SI->setOperand(2, ConstantPointerNull::get(NewTy)); in handleAlloca() 1015 Phi->setIncomingValue(I, ConstantPointerNull::get(NewTy)); in handleAlloca()
|
/external/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 1614 static bool canConvertValue(const DataLayout &DL, Type *OldTy, Type *NewTy) { in canConvertValue() argument 1615 if (OldTy == NewTy) in canConvertValue() 1621 if (isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) { in canConvertValue() 1623 cast<IntegerType>(NewTy)->getBitWidth() && in canConvertValue() 1628 if (DL.getTypeSizeInBits(NewTy) != DL.getTypeSizeInBits(OldTy)) in canConvertValue() 1630 if (!NewTy->isSingleValueType() || !OldTy->isSingleValueType()) in canConvertValue() 1636 NewTy = NewTy->getScalarType(); in canConvertValue() 1637 if (NewTy->isPointerTy() || OldTy->isPointerTy()) { in canConvertValue() 1638 if (NewTy->isPointerTy() && OldTy->isPointerTy()) { in canConvertValue() 1639 return cast<PointerType>(NewTy)->getPointerAddressSpace() == in canConvertValue() [all …]
|