/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | DynamicTypeMap.h | 44 DynamicTypeInfo NewTy); 48 const MemRegion *Reg, QualType NewTy, 51 DynamicTypeInfo(NewTy, CanBeSubClassed));
|
/external/clang/test/CodeGenCXX/ |
D | new.cpp | 288 typedef int MyClass::* NewTy; typedef 291 NewTy* f() { return new NewTy[2](); } in f()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | ValueMapper.cpp | 367 FunctionType *NewTy = IA->getFunctionType(); in mapValue() local 369 NewTy = cast<FunctionType>(TypeMapper->remapType(NewTy)); in mapValue() 371 if (NewTy != IA->getFunctionType()) in mapValue() 372 V = InlineAsm::get(NewTy, IA->getAsmString(), IA->getConstraintString(), in mapValue() 441 Type *NewTy = C->getType(); in mapValue() local 443 NewTy = TypeMapper->remapType(NewTy); in mapValue() 447 if (OpNo == NumOperands && NewTy == C->getType()) in mapValue() 475 return getVM()[V] = CE->getWithOperands(Ops, NewTy, false, NewSrcTy); in mapValue() 477 return getVM()[V] = ConstantArray::get(cast<ArrayType>(NewTy), Ops); in mapValue() 479 return getVM()[V] = ConstantStruct::get(cast<StructType>(NewTy), Ops); in mapValue() [all …]
|
D | Evaluator.cpp | 336 Type *NewTy = cast<PointerType>(Ptr->getType())->getElementType(); in EvaluateBlock() local 342 while (!(NewVal = ConstantFoldLoadThroughBitcast(Val, NewTy, DL))) { in EvaluateBlock() 346 if (StructType *STy = dyn_cast<StructType>(NewTy)) { in EvaluateBlock() 347 NewTy = STy->getTypeAtIndex(0U); in EvaluateBlock() 349 IntegerType *IdxTy = IntegerType::get(NewTy->getContext(), 32); in EvaluateBlock()
|
D | Local.cpp | 2416 auto *NewTy = NewLI.getType(); in copyNonnullMetadata() local 2419 if (NewTy->isPointerTy()) { in copyNonnullMetadata() 2426 if (!NewTy->isIntegerTy()) in copyNonnullMetadata() 2431 auto *ITy = cast<IntegerType>(NewTy); in copyNonnullMetadata() 2441 auto *NewTy = NewLI.getType(); in copyRangeMetadata() local 2447 if (!NewTy->isPointerTy()) in copyRangeMetadata() 2450 unsigned BitWidth = DL.getIndexTypeSizeInBits(NewTy); in copyRangeMetadata()
|
/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/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/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 …]
|
D | DIBuilder.cpp | 449 auto NewTy = Ty->clone(); in createTypeWithFlags() local 450 NewTy->setFlags(NewTy->getFlags() | FlagsToSet); in createTypeWithFlags() 451 return MDNode::replaceWithUniqued(std::move(NewTy)); in createTypeWithFlags()
|
/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/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-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 811 PointerType *NewTy = PointerType::get(EltTy, AS.LOCAL_ADDRESS); in handleAlloca() local 814 CI->setOperand(0, ConstantPointerNull::get(NewTy)); in handleAlloca() 817 CI->setOperand(1, ConstantPointerNull::get(NewTy)); in handleAlloca() 828 PointerType *NewTy = PointerType::get(EltTy, AS.LOCAL_ADDRESS); in handleAlloca() local 832 V->mutateType(NewTy); in handleAlloca() 837 SI->setOperand(1, ConstantPointerNull::get(NewTy)); in handleAlloca() 840 SI->setOperand(2, ConstantPointerNull::get(NewTy)); in handleAlloca() 844 Phi->setIncomingValue(I, ConstantPointerNull::get(NewTy)); in handleAlloca()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | Function.cpp | 1092 Type *NewTy = ArgTys[D.getArgumentNumber()]; in matchIntrinsicType() local 1093 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in matchIntrinsicType() 1094 NewTy = VectorType::getExtendedElementVectorType(VTy); in matchIntrinsicType() 1095 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in matchIntrinsicType() 1096 NewTy = IntegerType::get(ITy->getContext(), 2 * ITy->getBitWidth()); in matchIntrinsicType() 1100 return Ty != NewTy; in matchIntrinsicType() 1107 Type *NewTy = ArgTys[D.getArgumentNumber()]; in matchIntrinsicType() local 1108 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in matchIntrinsicType() 1109 NewTy = VectorType::getTruncatedElementVectorType(VTy); in matchIntrinsicType() 1110 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in matchIntrinsicType() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 1675 static bool canConvertValue(const DataLayout &DL, Type *OldTy, Type *NewTy) { in canConvertValue() argument 1676 if (OldTy == NewTy) in canConvertValue() 1682 if (isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) { in canConvertValue() 1684 cast<IntegerType>(NewTy)->getBitWidth() && in canConvertValue() 1689 if (DL.getTypeSizeInBits(NewTy) != DL.getTypeSizeInBits(OldTy)) in canConvertValue() 1691 if (!NewTy->isSingleValueType() || !OldTy->isSingleValueType()) in canConvertValue() 1697 NewTy = NewTy->getScalarType(); in canConvertValue() 1698 if (NewTy->isPointerTy() || OldTy->isPointerTy()) { in canConvertValue() 1699 if (NewTy->isPointerTy() && OldTy->isPointerTy()) { in canConvertValue() 1700 return cast<PointerType>(NewTy)->getPointerAddressSpace() == in canConvertValue() [all …]
|
D | RewriteStatepointsForGC.cpp | 1299 Type *NewTy = Type::getInt8PtrTy(M->getContext(), AS); in CreateGCRelocates() local 1301 NewTy = VectorType::get(NewTy, VT->getNumElements()); in CreateGCRelocates() 1303 {NewTy}); in CreateGCRelocates()
|
/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 …]
|
D | RewriteStatepointsForGC.cpp | 1175 Type *NewTy = Type::getInt8PtrTy(M->getContext(), AS); in CreateGCRelocates() local 1177 NewTy = VectorType::get(NewTy, VT->getNumElements()); in CreateGCRelocates() 1179 {NewTy}); in CreateGCRelocates()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 185 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize() local 186 AllocaInst *New = IC.Builder->CreateAlloca(NewTy, nullptr, AI.getName()); in simplifyAllocaArraySize() 320 static LoadInst *combineLoadToNewType(InstCombiner &IC, LoadInst &LI, Type *NewTy, in combineLoadToNewType() argument 328 IC.Builder->CreateBitCast(Ptr, NewTy->getPointerTo(AS)), in combineLoadToNewType() 359 if (NewTy->isPointerTy()) { in combineLoadToNewType() 364 if (NewTy->isIntegerTy()) { in combineLoadToNewType() 365 auto *ITy = cast<IntegerType>(NewTy); in combineLoadToNewType() 378 if (NewTy->isPointerTy()) in combineLoadToNewType()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/GlobalISel/ |
D | RegisterBankInfo.cpp | 442 LLT NewTy = MRI.getType(NewReg); in applyDefaultMapping() local 443 if (OrigTy != NewTy) { in applyDefaultMapping() 448 assert(OrigTy.getSizeInBits() <= NewTy.getSizeInBits() && in applyDefaultMapping() 451 LLVM_DEBUG(dbgs() << "\nChange type of new opd from " << NewTy << " to " in applyDefaultMapping()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | AtomicExpandPass.cpp | 368 Type *NewTy = getCorrespondingIntegerType(LI->getType(), in convertAtomicLoadToIntegerType() local 374 Type *PT = PointerType::get(NewTy, in convertAtomicLoadToIntegerType() 452 Type *NewTy = getCorrespondingIntegerType(SI->getValueOperand()->getType(), in convertAtomicStoreToIntegerType() local 454 Value *NewVal = Builder.CreateBitCast(SI->getValueOperand(), NewTy); in convertAtomicStoreToIntegerType() 457 Type *PT = PointerType::get(NewTy, in convertAtomicStoreToIntegerType() 926 Type *NewTy = getCorrespondingIntegerType(CI->getCompareOperand()->getType(), in convertCmpXchgToIntegerType() local 932 Type *PT = PointerType::get(NewTy, in convertCmpXchgToIntegerType() 936 Value *NewCmp = Builder.CreatePtrToInt(CI->getCompareOperand(), NewTy); in convertCmpXchgToIntegerType() 937 Value *NewNewVal = Builder.CreatePtrToInt(CI->getNewValOperand(), NewTy); in convertCmpXchgToIntegerType()
|
/external/llvm/lib/CodeGen/ |
D | AtomicExpandPass.cpp | 358 Type *NewTy = getCorrespondingIntegerType(LI->getType(), in convertAtomicLoadToIntegerType() local 364 Type *PT = PointerType::get(NewTy, in convertAtomicLoadToIntegerType() 442 Type *NewTy = getCorrespondingIntegerType(SI->getValueOperand()->getType(), in convertAtomicStoreToIntegerType() local 444 Value *NewVal = Builder.CreateBitCast(SI->getValueOperand(), NewTy); in convertAtomicStoreToIntegerType() 447 Type *PT = PointerType::get(NewTy, in convertAtomicStoreToIntegerType() 917 Type *NewTy = getCorrespondingIntegerType(CI->getCompareOperand()->getType(), in convertCmpXchgToIntegerType() local 923 Type *PT = PointerType::get(NewTy, in convertCmpXchgToIntegerType() 927 Value *NewCmp = Builder.CreatePtrToInt(CI->getCompareOperand(), NewTy); in convertCmpXchgToIntegerType() 928 Value *NewNewVal = Builder.CreatePtrToInt(CI->getNewValOperand(), NewTy); in convertCmpXchgToIntegerType()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 200 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize() local 201 AllocaInst *New = IC.Builder.CreateAlloca(NewTy, nullptr, AI.getName()); in simplifyAllocaArraySize() 452 static LoadInst *combineLoadToNewType(InstCombiner &IC, LoadInst &LI, Type *NewTy, in combineLoadToNewType() argument 454 assert((!LI.isAtomic() || isSupportedAtomicType(NewTy)) && in combineLoadToNewType() 464 NewPtr->getType()->getPointerElementType() == NewTy && in combineLoadToNewType() 466 NewPtr = IC.Builder.CreateBitCast(Ptr, NewTy->getPointerTo(AS)); in combineLoadToNewType() 504 if (NewTy->isPointerTy()) in combineLoadToNewType()
|
D | InstCombineSimplifyDemanded.cpp | 988 Type *NewTy = (NewNumElts == 1) ? EltTy : VectorType::get(EltTy, NewNumElts); in simplifyAMDGCNMemoryIntrinsicDemanded() local 990 OverloadTys[0] = NewTy; in simplifyAMDGCNMemoryIntrinsicDemanded() 1022 Builder.CreateShuffleVector(NewCall, UndefValue::get(NewTy), EltMask); in simplifyAMDGCNMemoryIntrinsicDemanded()
|
/external/llvm/lib/Transforms/IPO/ |
D | LowerTypeTests.cpp | 523 StructType *NewTy = cast<StructType>(NewInit->getType()); in buildBitSetsFromGlobalVariables() local 524 const StructLayout *CombinedGlobalLayout = DL.getStructLayout(NewTy); in buildBitSetsFromGlobalVariables() 547 GlobalAlias *GAlias = GlobalAlias::create(NewTy->getElementType(I * 2), 0, in buildBitSetsFromGlobalVariables()
|