/third_party/skia/third_party/externals/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()
|
D | Local.cpp | 2560 auto *NewTy = NewLI.getType(); in copyNonnullMetadata() local 2563 if (NewTy->isPointerTy()) { in copyNonnullMetadata() 2570 if (!NewTy->isIntegerTy()) in copyNonnullMetadata() 2575 auto *ITy = cast<IntegerType>(NewTy); in copyNonnullMetadata() 2585 auto *NewTy = NewLI.getType(); in copyRangeMetadata() local 2591 if (!NewTy->isPointerTy()) in copyRangeMetadata() 2594 unsigned BitWidth = DL.getPointerTypeSizeInBits(NewTy); in copyRangeMetadata()
|
/third_party/skia/third_party/externals/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()
|
D | CombinerHelper.cpp | 892 LLT NewTy = Ty; in findGISelOptimalMemOpLowering() local 895 if (NewTy.isVector()) in findGISelOptimalMemOpLowering() 896 NewTy = NewTy.getSizeInBits() > 64 ? LLT::scalar(64) : LLT::scalar(32); in findGISelOptimalMemOpLowering() 897 NewTy = LLT::scalar(PowerOf2Floor(NewTy.getSizeInBits() - 1)); in findGISelOptimalMemOpLowering() 898 unsigned NewTySize = NewTy.getSizeInBytes(); in findGISelOptimalMemOpLowering() 912 Ty = NewTy; in findGISelOptimalMemOpLowering()
|
D | RegisterBankInfo.cpp | 477 LLT NewTy = MRI.getType(NewReg); in applyDefaultMapping() local 478 if (OrigTy != NewTy) { in applyDefaultMapping() 483 assert(OrigTy.getSizeInBits() <= NewTy.getSizeInBits() && in applyDefaultMapping() 486 LLVM_DEBUG(dbgs() << "\nChange type of new opd from " << NewTy << " to " in applyDefaultMapping()
|
/third_party/skia/third_party/externals/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 …]
|
D | DIBuilder.cpp | 546 auto NewTy = Ty->cloneWithFlags(Ty->getFlags() | FlagsToSet); in createTypeWithFlags() local 547 return MDNode::replaceWithUniqued(std::move(NewTy)); in createTypeWithFlags()
|
/third_party/skia/third_party/externals/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()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 1706 static bool canConvertValue(const DataLayout &DL, Type *OldTy, Type *NewTy) { in canConvertValue() argument 1707 if (OldTy == NewTy) in canConvertValue() 1713 if (isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) { in canConvertValue() 1715 cast<IntegerType>(NewTy)->getBitWidth() && in canConvertValue() 1720 if (DL.getTypeSizeInBits(NewTy) != DL.getTypeSizeInBits(OldTy)) in canConvertValue() 1722 if (!NewTy->isSingleValueType() || !OldTy->isSingleValueType()) in canConvertValue() 1728 NewTy = NewTy->getScalarType(); in canConvertValue() 1729 if (NewTy->isPointerTy() || OldTy->isPointerTy()) { in canConvertValue() 1730 if (NewTy->isPointerTy() && OldTy->isPointerTy()) { in canConvertValue() 1731 return cast<PointerType>(NewTy)->getPointerAddressSpace() == in canConvertValue() [all …]
|
D | RewriteStatepointsForGC.cpp | 1296 Type *NewTy = Type::getInt8PtrTy(M->getContext(), AS); in CreateGCRelocates() local 1298 NewTy = VectorType::get(NewTy, VT->getNumElements()); in CreateGCRelocates() 1300 {NewTy}); in CreateGCRelocates()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 198 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize() local 199 AllocaInst *New = IC.Builder.CreateAlloca(NewTy, nullptr, AI.getName()); in simplifyAllocaArraySize() 216 NewTy, New, Idx, New->getName() + ".sub"); in simplifyAllocaArraySize() 452 LoadInst *InstCombiner::combineLoadToNewType(LoadInst &LI, Type *NewTy, in combineLoadToNewType() argument 454 assert((!LI.isAtomic() || isSupportedAtomicType(NewTy)) && in combineLoadToNewType() 461 NewPtr->getType()->getPointerElementType() == NewTy && in combineLoadToNewType() 463 NewPtr = Builder.CreateBitCast(Ptr, NewTy->getPointerTo(AS)); in combineLoadToNewType() 473 NewTy, NewPtr, Align, LI.isVolatile(), LI.getName() + Suffix); in combineLoadToNewType()
|
D | InstCombineSimplifyDemanded.cpp | 1067 Type *NewTy = (NewNumElts == 1) ? EltTy : VectorType::get(EltTy, NewNumElts); in simplifyAMDGCNMemoryIntrinsicDemanded() local 1069 OverloadTys[0] = NewTy; in simplifyAMDGCNMemoryIntrinsicDemanded() 1101 Builder.CreateShuffleVector(NewCall, UndefValue::get(NewTy), EltMask); in simplifyAMDGCNMemoryIntrinsicDemanded()
|
D | InstCombineSelect.cpp | 2187 Type *NewTy = Ty->getWithNewBitWidth(NewBitWidth); in matchSAddSubSat() local 2208 Function *F = Intrinsic::getDeclaration(MinMax1.getModule(), IntrinsicID, NewTy); in matchSAddSubSat() 2209 Value *AT = Builder.CreateSExt(A, NewTy); in matchSAddSubSat() 2210 Value *BT = Builder.CreateSExt(B, NewTy); in matchSAddSubSat()
|
D | InstCombineInternal.h | 470 LoadInst *combineLoadToNewType(LoadInst &LI, Type *NewTy,
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | AtomicExpandPass.cpp | 375 Type *NewTy = getCorrespondingIntegerType(LI->getType(), in convertAtomicLoadToIntegerType() local 381 Type *PT = PointerType::get(NewTy, in convertAtomicLoadToIntegerType() 385 auto *NewLI = Builder.CreateLoad(NewTy, NewAddr); in convertAtomicLoadToIntegerType() 463 Type *NewTy = getCorrespondingIntegerType(SI->getValueOperand()->getType(), in convertAtomicStoreToIntegerType() local 465 Value *NewVal = Builder.CreateBitCast(SI->getValueOperand(), NewTy); in convertAtomicStoreToIntegerType() 468 Type *PT = PointerType::get(NewTy, in convertAtomicStoreToIntegerType() 1056 Type *NewTy = getCorrespondingIntegerType(CI->getCompareOperand()->getType(), in convertCmpXchgToIntegerType() local 1062 Type *PT = PointerType::get(NewTy, in convertCmpXchgToIntegerType() 1066 Value *NewCmp = Builder.CreatePtrToInt(CI->getCompareOperand(), NewTy); in convertCmpXchgToIntegerType() 1067 Value *NewNewVal = Builder.CreatePtrToInt(CI->getNewValOperand(), NewTy); in convertCmpXchgToIntegerType()
|
D | CodeGenPrepare.cpp | 2593 TypeMutator(Instruction *Inst, Type *NewTy) in TypeMutator() argument 2595 LLVM_DEBUG(dbgs() << "Do: MutateType: " << *Inst << " with " << *NewTy in TypeMutator() 2597 Inst->mutateType(NewTy); in TypeMutator() 2745 void mutateType(Instruction *Inst, Type *NewTy); 2790 void TypePromotionTransaction::mutateType(Instruction *Inst, Type *NewTy) { in mutateType() argument 2792 std::make_unique<TypePromotionTransaction::TypeMutator>(Inst, NewTy)); in mutateType()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64LegalizerInfo.cpp | 709 const LLT NewTy = LLT::vector(ValTy.getNumElements(), PtrSize); in legalizeLoadStore() local 712 auto Bitcast = MIRBuilder.buildBitcast({NewTy}, {ValReg}); in legalizeLoadStore() 715 Register NewReg = MRI.createGenericVirtualRegister(NewTy); in legalizeLoadStore()
|
D | AArch64StackTagging.cpp | 259 Type *NewTy = VectorType::get(IntegerType::get(Ctx, EltSize), in flatten() local 261 V = IRB.CreatePointerCast(V, NewTy); in flatten()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/ |
D | LegalizerInfo.h | 889 LLT NewTy = LLT::scalarOrVector(MaxElements, VecTy.getElementType()); in clampMaxNumElements() 890 return std::make_pair(TypeIdx, NewTy); in clampMaxNumElements()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | AddressSanitizer.cpp | 2284 StructType *NewTy = StructType::get(Ty, RightRedZoneTy); in InstrumentGlobals() local 2286 NewTy, G->getInitializer(), Constant::getNullValue(RightRedZoneTy)); in InstrumentGlobals() 2293 new GlobalVariable(M, NewTy, G->isConstant(), Linkage, NewInitializer, in InstrumentGlobals() 2323 ConstantExpr::getGetElementPtr(NewTy, NewGlobal, Indices2, true)); in InstrumentGlobals()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 586 Type *NewTy = NewGlobals[ElementIdx]->getValueType(); in SRAGlobal() local 596 ConstantExpr::getGetElementPtr(NewTy, cast<Constant>(NewPtr), Idxs); in SRAGlobal() 604 NewTy, NewPtr, Idxs, GEPI->getName() + "." + Twine(ElementIdx), in SRAGlobal()
|
D | LowerTypeTests.cpp | 864 StructType *NewTy = cast<StructType>(NewInit->getType()); in buildBitSetsFromGlobalVariables() local 880 GlobalAlias::create(NewTy->getElementType(I * 2), 0, GV->getLinkage(), in buildBitSetsFromGlobalVariables()
|
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/ |
D | IceTargetLoweringX8664.cpp | 3001 Type NewTy = IceType_NUM; in lowerIcmpVector() local 3007 NewTy = IceType_v4i32; in lowerIcmpVector() 3010 NewTy = IceType_v8i16; in lowerIcmpVector() 3013 NewTy = IceType_v16i8; in lowerIcmpVector() 3016 Variable *NewSrc0 = Func->makeVariable(NewTy); in lowerIcmpVector() 3017 Variable *NewSrc1 = Func->makeVariable(NewTy); in lowerIcmpVector() 3022 Ty = NewTy; in lowerIcmpVector()
|