/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A 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 changeElementCountTo() local 52 NewTy.isVector() ? NewTy.getElementCount() : ElementCount::getFixed(1); in changeElementCountTo() 71 const LLT NewTy = Query.Types[FromTypeIdx]; in changeElementSizeTo() local 72 const LLT NewEltTy = LLT::scalar(NewTy.getScalarSizeInBits()); in changeElementSizeTo()
|
H A D | LegalizerInfo.cpp | 126 const LLT NewTy = Mutation.second; in mutationIsSane() local 137 if (NewTy.isVector()) { in mutationIsSane() 140 if (ElementCount::isKnownGE(NewTy.getElementCount(), OldElts)) in mutationIsSane() 144 if (ElementCount::isKnownLE(NewTy.getElementCount(), OldElts)) in mutationIsSane() 151 return NewTy.getScalarType() == OldTy.getScalarType(); in mutationIsSane() 157 if (!NewTy.isVector() || in mutationIsSane() 158 OldTy.getElementCount() != NewTy.getElementCount()) in mutationIsSane() 162 if (NewTy.isVector()) in mutationIsSane() 168 if (NewTy.getScalarSizeInBits() >= OldTy.getScalarSizeInBits()) in mutationIsSane() 172 if (NewTy.getScalarSizeInBits() <= OldTy.getScalarSizeInBits()) in mutationIsSane() [all …]
|
H A D | CallLowering.cpp | 448 LLT NewTy = PartLLT.changeElementType(LLTy.getElementType()) in buildCopyFromRegs() local 450 CastRegs[0] = B.buildBitcast(NewTy, Regs[0]).getReg(0); in buildCopyFromRegs() 451 PartLLT = NewTy; in buildCopyFromRegs()
|
H A D | LegalizerHelper.cpp | 1767 LLT NewTy = LLT::scalar(Ty.getSizeInBits()); in coerceToScalar() local 1771 return MIRBuilder.buildPtrToInt(NewTy, Val).getReg(0); in coerceToScalar() 1778 NewVal = MIRBuilder.buildPtrToInt(NewTy, NewVal).getReg(0); in coerceToScalar() 1779 return MIRBuilder.buildBitcast(NewTy, NewVal).getReg(0); in coerceToScalar() 5650 LLT NewTy = SrcTy.changeElementCount( in moreElementsVector() local 5653 moreElementsVectorSrc(MI, NewTy, 1); in moreElementsVector() 8476 LLT NewTy = DstTy.changeElementType(ScalarPtrTy); in lowerSelect() local 8477 Op1Reg = MIRBuilder.buildPtrToInt(NewTy, Op1Reg).getReg(0); in lowerSelect() 8478 Op2Reg = MIRBuilder.buildPtrToInt(NewTy, Op2Reg).getReg(0); in lowerSelect() 8479 DstTy = NewTy; in lowerSelect() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A 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()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A 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() 451 Type *NewTy = E->getType(); in mapValue() local 453 NewTy = TypeMapper->remapType(NewTy); in mapValue() 455 DSOLocalEquivalent::get(Func), NewTy); in mapValue() 486 Type *NewTy = C->getType(); in mapValue() local 488 NewTy = TypeMapper->remapType(NewTy); in mapValue() 492 if (OpNo == NumOperands && NewTy == C->getType()) in mapValue() [all …]
|
H A D | Local.cpp | 3554 auto *NewTy = NewLI.getType(); in copyNonnullMetadata() local 3557 if (NewTy->isPointerTy()) { in copyNonnullMetadata() 3564 if (!NewTy->isIntegerTy()) in copyNonnullMetadata() 3569 auto *ITy = cast<IntegerType>(NewTy); in copyNonnullMetadata() 3579 auto *NewTy = NewLI.getType(); in copyRangeMetadata() local 3581 if (NewTy == OldLI.getType()) { in copyRangeMetadata() 3590 if (!NewTy->isPointerTy()) in copyRangeMetadata() 3593 unsigned BitWidth = DL.getPointerTypeSizeInBits(NewTy); in copyRangeMetadata()
|
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | SMTConv.h | 682 QualType NewTy = Ctx.getPromotedIntegerType(LTy); in doIntTypeConversion() local 683 uint64_t NewBitWidth = Ctx.getTypeSize(NewTy); in doIntTypeConversion() 684 LHS = (*doCast)(Solver, LHS, NewTy, NewBitWidth, LTy, LBitWidth); in doIntTypeConversion() 685 LTy = NewTy; in doIntTypeConversion() 689 QualType NewTy = Ctx.getPromotedIntegerType(RTy); in doIntTypeConversion() local 690 uint64_t NewBitWidth = Ctx.getTypeSize(NewTy); in doIntTypeConversion() 691 RHS = (*doCast)(Solver, RHS, NewTy, NewBitWidth, RTy, RBitWidth); in doIntTypeConversion() 692 RTy = NewTy; in doIntTypeConversion() 740 QualType NewTy = in doIntTypeConversion() local 743 RTy = NewTy; in doIntTypeConversion() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPULowerBufferFatPointers.cpp | 525 Type *NewTy = TypeMap->remapType(Ty); in visitAllocaInst() local 526 if (Ty == NewTy) in visitAllocaInst() 528 I.setAllocatedType(NewTy); in visitAllocaInst() 534 Type *NewTy = TypeMap->remapType(Ty); in visitGetElementPtrInst() local 535 if (Ty == NewTy) in visitGetElementPtrInst() 539 I.setSourceElementType(NewTy); in visitGetElementPtrInst() 614 auto *NewTy = dyn_cast<StructType>(TypeMap->remapType(SrcTy)); in materializeBufferFatPtrConst() local 616 return ConstantAggregateZero::getNullValue(NewTy); in materializeBufferFatPtrConst() 618 return ConstantStruct::get(NewTy, in materializeBufferFatPtrConst() 619 {PoisonValue::get(NewTy->getElementType(0)), in materializeBufferFatPtrConst() [all …]
|
H A D | AMDGPULateCodeGenPrepare.cpp | 212 Type *NewTy = calculateConvertType(V->getType()); in convertToOptType() local 215 TypeSize NewSize = DL->getTypeSizeInBits(NewTy); in convertToOptType() 221 return Builder.CreateBitCast(V, NewTy, V->getName() + ".bc"); in convertToOptType() 236 return Builder.CreateBitCast(ExpandedVec, NewTy, V->getName() + ".bc"); in convertToOptType()
|
H A D | AMDGPUPromoteAlloca.cpp | 1500 PointerType *NewTy = PointerType::get(Context, AMDGPUAS::LOCAL_ADDRESS); in tryPromoteAllocaToLDS() local 1503 CI->setOperand(0, ConstantPointerNull::get(NewTy)); in tryPromoteAllocaToLDS() 1506 CI->setOperand(1, ConstantPointerNull::get(NewTy)); in tryPromoteAllocaToLDS() 1516 PointerType *NewTy = PointerType::get(Context, AMDGPUAS::LOCAL_ADDRESS); in tryPromoteAllocaToLDS() local 1520 V->mutateType(NewTy); in tryPromoteAllocaToLDS() 1525 SI->setOperand(1, ConstantPointerNull::get(NewTy)); in tryPromoteAllocaToLDS() 1528 SI->setOperand(2, ConstantPointerNull::get(NewTy)); in tryPromoteAllocaToLDS() 1532 Phi->setIncomingValue(I, ConstantPointerNull::get(NewTy)); in tryPromoteAllocaToLDS()
|
H A D | AMDGPUImageIntrinsicOptimizer.cpp | 199 Type *NewTy = FixedVectorType::get(EltTy, 4); in optimizeSection() local 200 OverloadTys[0] = NewTy; in optimizeSection()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVUtils.h | 209 if (Type *NewTy = applyWrappers(Ty); NewTy != Ty) in toTypedPointer() local 210 return NewTy; in toTypedPointer()
|
H A D | SPIRVEmitIntrinsics.cpp | 539 Type *NewTy = StructType::create(Tys); in deduceNestedTypeHelper() local 540 GR->addDeducedCompositeType(U, NewTy); in deduceNestedTypeHelper() 541 return NewTy; in deduceNestedTypeHelper() 556 Type *NewTy = ArrayType::get(Ty, ArrTy->getNumElements()); in deduceNestedTypeHelper() local 557 GR->addDeducedCompositeType(U, NewTy); in deduceNestedTypeHelper() 558 return NewTy; in deduceNestedTypeHelper() 574 Type *NewTy = VectorType::get(Ty, VecTy->getElementCount()); in deduceNestedTypeHelper() local 575 GR->addDeducedCompositeType(U, NewTy); in deduceNestedTypeHelper() 576 return NewTy; in deduceNestedTypeHelper()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Function.cpp | 1650 Type *NewTy = ArgTys[D.getArgumentNumber()]; in matchIntrinsicType() local 1651 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in matchIntrinsicType() 1652 NewTy = VectorType::getExtendedElementVectorType(VTy); in matchIntrinsicType() 1653 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in matchIntrinsicType() 1654 NewTy = IntegerType::get(ITy->getContext(), 2 * ITy->getBitWidth()); in matchIntrinsicType() 1658 return Ty != NewTy; in matchIntrinsicType() 1665 Type *NewTy = ArgTys[D.getArgumentNumber()]; in matchIntrinsicType() local 1666 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in matchIntrinsicType() 1667 NewTy = VectorType::getTruncatedElementVectorType(VTy); in matchIntrinsicType() 1668 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in matchIntrinsicType() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | SROA.cpp | 1906 static bool canConvertValue(const DataLayout &DL, Type *OldTy, Type *NewTy) { in canConvertValue() argument 1907 if (OldTy == NewTy) in canConvertValue() 1913 if (isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) { in canConvertValue() 1915 cast<IntegerType>(NewTy)->getBitWidth() && in canConvertValue() 1920 if (DL.getTypeSizeInBits(NewTy).getFixedValue() != in canConvertValue() 1923 if (!NewTy->isSingleValueType() || !OldTy->isSingleValueType()) in canConvertValue() 1929 NewTy = NewTy->getScalarType(); in canConvertValue() 1930 if (NewTy->isPointerTy() || OldTy->isPointerTy()) { in canConvertValue() 1931 if (NewTy->isPointerTy() && OldTy->isPointerTy()) { in canConvertValue() 1933 unsigned NewAS = NewTy->getPointerAddressSpace(); in canConvertValue() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | MachineMemOperand.h | 330 void setType(LLT NewTy) { in setType() argument 331 MemoryType = NewTy; in setType()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | RegisterBankInfo.cpp | 481 LLT NewTy = MRI.getType(NewReg); in applyDefaultMapping() local 482 if (OrigTy != NewTy) { in applyDefaultMapping() 488 TypeSize::isKnownLE(OrigTy.getSizeInBits(), NewTy.getSizeInBits()) && in applyDefaultMapping() 491 LLVM_DEBUG(dbgs() << "\nChange type of new opd from " << NewTy << " to " in applyDefaultMapping()
|
H A D | AtomicExpandPass.cpp | 406 Type *NewTy = getCorrespondingIntegerType(LI->getType(), M->getDataLayout()); in convertAtomicLoadToIntegerType() local 412 auto *NewLI = Builder.CreateLoad(NewTy, Addr); in convertAtomicLoadToIntegerType() 427 Type *NewTy = in convertAtomicXchgToIntegerType() local 435 ? Builder.CreatePtrToInt(Val, NewTy) in convertAtomicXchgToIntegerType() 436 : Builder.CreateBitCast(Val, NewTy); in convertAtomicXchgToIntegerType() 537 Type *NewTy = getCorrespondingIntegerType(SI->getValueOperand()->getType(), in convertAtomicStoreToIntegerType() local 539 Value *NewVal = Builder.CreateBitCast(SI->getValueOperand(), NewTy); in convertAtomicStoreToIntegerType() 1257 Type *NewTy = getCorrespondingIntegerType(CI->getCompareOperand()->getType(), in convertCmpXchgToIntegerType() local 1264 Value *NewCmp = Builder.CreatePtrToInt(CI->getCompareOperand(), NewTy); in convertCmpXchgToIntegerType() 1265 Value *NewNewVal = Builder.CreatePtrToInt(CI->getNewValOperand(), NewTy); in convertCmpXchgToIntegerType()
|
H A D | ComplexDeinterleavingPass.cpp | 1954 auto *NewTy = VectorType::getDoubleElementsVectorType( in replaceNode() local 1963 NewTy, {Node->Real, Node->Imag}); in replaceNode() 1966 Intrinsic::vector_interleave2, NewTy, {Node->Real, Node->Imag}); in replaceNode()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 212 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize() local 213 AllocaInst *New = IC.Builder.CreateAlloca(NewTy, AI.getAddressSpace(), in simplifyAllocaArraySize() 379 Type *NewTy = getReplacement(PHI->getIncomingValue(0))->getType(); in replace() local 380 auto *NewPHI = PHINode::Create(NewTy, PHI->getNumIncomingValues(), in replace() 562 LoadInst *InstCombinerImpl::combineLoadToNewType(LoadInst &LI, Type *NewTy, in combineLoadToNewType() argument 564 assert((!LI.isAtomic() || isSupportedAtomicType(NewTy)) && in combineLoadToNewType() 568 Builder.CreateAlignedLoad(NewTy, LI.getPointerOperand(), LI.getAlign(), in combineLoadToNewType()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
H A D | AArch64PostLegalizerCombiner.cpp | 332 LLT NewTy = LLT::scalar(64); in applySplitStoreZero128() local 334 auto Zero = B.buildConstant(NewTy, 0); in applySplitStoreZero128() 338 auto *LowMMO = MF.getMachineMemOperand(&Store.getMMO(), 0, NewTy); in applySplitStoreZero128() 339 auto *HighMMO = MF.getMachineMemOperand(&Store.getMMO(), 8, NewTy); in applySplitStoreZero128()
|
H A D | AArch64LegalizerInfo.cpp | 1807 const LLT NewTy = LLT::vector(ValTy.getElementCount(), PtrSize); in legalizeLoadStore() local 1809 MMO.setType(NewTy); in legalizeLoadStore() 1812 auto Bitcast = MIRBuilder.buildBitcast(NewTy, ValReg); in legalizeLoadStore() 1815 auto NewLoad = MIRBuilder.buildLoad(NewTy, MI.getOperand(1), MMO); in legalizeLoadStore()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | LegalizerInfo.h | 980 LLT NewTy = LLT::fixed_vector(NumElts, LLT::scalar(MinSize)); in widenVectorEltsToVectorMinSize() 981 return std::make_pair(TypeIdx, NewTy); in widenVectorEltsToVectorMinSize() 1185 LLT NewTy = LLT::scalarOrVector(ElementCount::getFixed(MaxElements), in clampMaxNumElements() 1187 return std::make_pair(TypeIdx, NewTy); in clampMaxNumElements()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64StackTagging.cpp | 300 auto *NewTy = FixedVectorType::get( in flatten() local 303 V = IRB.CreatePointerCast(V, NewTy); in flatten()
|