Home
last modified time | relevance | path

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

12

/openbsd/src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
DLegalizeMutations.cpp33 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()
DLegalizerInfo.cpp123 const LLT NewTy = Mutation.second; in mutationIsSane() local
134 if (NewTy.isVector()) { in mutationIsSane()
137 if (ElementCount::isKnownGE(NewTy.getElementCount(), OldElts)) in mutationIsSane()
141 if (ElementCount::isKnownLE(NewTy.getElementCount(), OldElts)) in mutationIsSane()
148 return NewTy.getScalarType() == OldTy.getScalarType(); in mutationIsSane()
154 if (!NewTy.isVector() || OldTy.getNumElements() != NewTy.getNumElements()) in mutationIsSane()
158 if (NewTy.isVector()) in mutationIsSane()
164 if (NewTy.getScalarSizeInBits() >= OldTy.getScalarSizeInBits()) in mutationIsSane()
168 if (NewTy.getScalarSizeInBits() <= OldTy.getScalarSizeInBits()) in mutationIsSane()
175 return OldTy != NewTy && OldTy.getSizeInBits() == NewTy.getSizeInBits(); in mutationIsSane()
DCallLowering.cpp410 LLT NewTy = PartLLT.changeElementType(LLTy.getElementType()) in buildCopyFromRegs() local
412 CastRegs[0] = B.buildBitcast(NewTy, Regs[0]).getReg(0); in buildCopyFromRegs()
413 PartLLT = NewTy; in buildCopyFromRegs()
DLegalizerHelper.cpp1423 LLT NewTy = LLT::scalar(Ty.getSizeInBits()); in coerceToScalar() local
1427 return MIRBuilder.buildPtrToInt(NewTy, Val).getReg(0); in coerceToScalar()
1435 NewVal = MIRBuilder.buildPtrToInt(NewTy, NewVal).getReg(0); in coerceToScalar()
1436 return MIRBuilder.buildBitcast(NewTy, NewVal).getReg(0); in coerceToScalar()
7487 LLT NewTy = DstTy.changeElementType(ScalarPtrTy); in lowerSelect() local
7488 Op1Reg = MIRBuilder.buildPtrToInt(NewTy, Op1Reg).getReg(0); in lowerSelect()
7489 Op2Reg = MIRBuilder.buildPtrToInt(NewTy, Op2Reg).getReg(0); in lowerSelect()
7490 DstTy = NewTy; in lowerSelect()
7636 LLT NewTy = Ty; in findGISelOptimalMemOpLowering() local
7639 if (NewTy.isVector()) in findGISelOptimalMemOpLowering()
[all …]
/openbsd/src/gnu/llvm/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DDynamicType.h50 DynamicTypeInfo NewTy);
54 QualType NewTy, bool CanBeSubClassed = true);
59 DynamicTypeInfo NewTy);
63 SymbolRef Sym, QualType NewTy,
DSMTConv.h682 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 …]
/openbsd/src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
DDynamicType.cpp100 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()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Utils/
DValueMapper.cpp364 FunctionType *NewTy = IA->getFunctionType(); in mapValue() local
366 NewTy = cast<FunctionType>(TypeMapper->remapType(NewTy)); in mapValue()
368 if (NewTy != IA->getFunctionType()) in mapValue()
369 V = InlineAsm::get(NewTy, IA->getAsmString(), IA->getConstraintString(), in mapValue()
449 Type *NewTy = E->getType(); in mapValue() local
451 NewTy = TypeMapper->remapType(NewTy); in mapValue()
453 DSOLocalEquivalent::get(Func), NewTy); in mapValue()
484 Type *NewTy = C->getType(); in mapValue() local
486 NewTy = TypeMapper->remapType(NewTy); in mapValue()
490 if (OpNo == NumOperands && NewTy == C->getType()) in mapValue()
[all …]
DLocal.cpp2893 auto *NewTy = NewLI.getType(); in copyNonnullMetadata() local
2896 if (NewTy->isPointerTy()) { in copyNonnullMetadata()
2903 if (!NewTy->isIntegerTy()) in copyNonnullMetadata()
2908 auto *ITy = cast<IntegerType>(NewTy); in copyNonnullMetadata()
2918 auto *NewTy = NewLI.getType(); in copyRangeMetadata() local
2920 if (NewTy == OldLI.getType()) { in copyRangeMetadata()
2929 if (!NewTy->isPointerTy()) in copyRangeMetadata()
2932 unsigned BitWidth = DL.getPointerTypeSizeInBits(NewTy); in copyRangeMetadata()
/openbsd/src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
DDynamicTypePropagation.cpp410 if (const Type *NewTy = getBetterObjCType(CE, C)) { in dynamicTypePropagationOnCasts() local
411 State = setDynamicTypeInfo(State, ToR, QualType(NewTy, 0)); in dynamicTypePropagationOnCasts()
441 const ObjCObjectPointerType *NewTy = in getBetterObjCType() local
443 if (!NewTy) in getBetterObjCType()
447 return NewTy; in getBetterObjCType()
455 if (OldTy->isObjCIdType() && !NewTy->isObjCIdType()) in getBetterObjCType()
456 return NewTy; in getBetterObjCType()
459 const ObjCInterfaceDecl *ToI = NewTy->getInterfaceDecl(); in getBetterObjCType()
462 return NewTy; in getBetterObjCType()
/openbsd/src/gnu/llvm/llvm/lib/IR/
DFunction.cpp1638 Type *NewTy = ArgTys[D.getArgumentNumber()]; in matchIntrinsicType() local
1639 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in matchIntrinsicType()
1640 NewTy = VectorType::getExtendedElementVectorType(VTy); in matchIntrinsicType()
1641 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in matchIntrinsicType()
1642 NewTy = IntegerType::get(ITy->getContext(), 2 * ITy->getBitWidth()); in matchIntrinsicType()
1646 return Ty != NewTy; in matchIntrinsicType()
1653 Type *NewTy = ArgTys[D.getArgumentNumber()]; in matchIntrinsicType() local
1654 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in matchIntrinsicType()
1655 NewTy = VectorType::getTruncatedElementVectorType(VTy); in matchIntrinsicType()
1656 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in matchIntrinsicType()
[all …]
/openbsd/src/gnu/llvm/llvm/lib/Target/AArch64/GISel/
DAArch64PostLegalizerCombiner.cpp319 LLT NewTy = LLT::scalar(64); in applySplitStoreZero128() local
321 auto Zero = B.buildConstant(NewTy, 0); in applySplitStoreZero128()
325 auto *LowMMO = MF.getMachineMemOperand(&Store.getMMO(), 0, NewTy); in applySplitStoreZero128()
326 auto *HighMMO = MF.getMachineMemOperand(&Store.getMMO(), 8, NewTy); in applySplitStoreZero128()
DAArch64LegalizerInfo.cpp1228 const LLT NewTy = LLT::vector(ValTy.getElementCount(), PtrSize); in legalizeLoadStore() local
1230 MMO.setType(NewTy); in legalizeLoadStore()
1233 auto Bitcast = MIRBuilder.buildBitcast(NewTy, ValReg); in legalizeLoadStore()
1236 auto NewLoad = MIRBuilder.buildLoad(NewTy, MI.getOperand(1), MMO); in legalizeLoadStore()
/openbsd/src/gnu/llvm/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp1041 PointerType *NewTy = PointerType::getWithSamePointeeType( in handleAlloca() local
1045 CI->setOperand(0, ConstantPointerNull::get(NewTy)); in handleAlloca()
1048 CI->setOperand(1, ConstantPointerNull::get(NewTy)); in handleAlloca()
1058 PointerType *NewTy = PointerType::getWithSamePointeeType( in handleAlloca() local
1063 V->mutateType(NewTy); in handleAlloca()
1068 SI->setOperand(1, ConstantPointerNull::get(NewTy)); in handleAlloca()
1071 SI->setOperand(2, ConstantPointerNull::get(NewTy)); in handleAlloca()
1075 Phi->setIncomingValue(I, ConstantPointerNull::get(NewTy)); in handleAlloca()
DAMDGPUInstCombineIntrinsic.cpp1176 Type *NewTy = in simplifyAMDGCNMemoryIntrinsicDemanded() local
1178 OverloadTys[0] = NewTy; in simplifyAMDGCNMemoryIntrinsicDemanded()
/openbsd/src/gnu/llvm/llvm/lib/CodeGen/
DAtomicExpandPass.cpp371 Type *NewTy = getCorrespondingIntegerType(LI->getType(), M->getDataLayout()); in convertAtomicLoadToIntegerType() local
376 Type *PT = PointerType::get(NewTy, Addr->getType()->getPointerAddressSpace()); in convertAtomicLoadToIntegerType()
379 auto *NewLI = Builder.CreateLoad(NewTy, NewAddr); in convertAtomicLoadToIntegerType()
394 Type *NewTy = in convertAtomicXchgToIntegerType() local
401 Type *PT = PointerType::get(NewTy, RMWI->getPointerAddressSpace()); in convertAtomicXchgToIntegerType()
404 ? Builder.CreatePtrToInt(Val, NewTy) in convertAtomicXchgToIntegerType()
405 : Builder.CreateBitCast(Val, NewTy); in convertAtomicXchgToIntegerType()
506 Type *NewTy = getCorrespondingIntegerType(SI->getValueOperand()->getType(), in convertAtomicStoreToIntegerType() local
508 Value *NewVal = Builder.CreateBitCast(SI->getValueOperand(), NewTy); in convertAtomicStoreToIntegerType()
511 Type *PT = PointerType::get(NewTy, Addr->getType()->getPointerAddressSpace()); in convertAtomicStoreToIntegerType()
[all …]
DRegisterBankInfo.cpp476 LLT NewTy = MRI.getType(NewReg); in applyDefaultMapping() local
477 if (OrigTy != NewTy) { in applyDefaultMapping()
482 assert(OrigTy.getSizeInBits() <= NewTy.getSizeInBits() && in applyDefaultMapping()
485 LLVM_DEBUG(dbgs() << "\nChange type of new opd from " << NewTy << " to " in applyDefaultMapping()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp205 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize() local
206 AllocaInst *New = IC.Builder.CreateAlloca(NewTy, AI.getAddressSpace(), in simplifyAllocaArraySize()
226 NewTy, New, Idx, New->getName() + ".sub"); in simplifyAllocaArraySize()
374 Type *NewTy = getReplacement(PHI->getIncomingValue(0))->getType(); in replace() local
375 auto *NewPHI = PHINode::Create(NewTy, PHI->getNumIncomingValues(), in replace()
552 LoadInst *InstCombinerImpl::combineLoadToNewType(LoadInst &LI, Type *NewTy, in combineLoadToNewType() argument
554 assert((!LI.isAtomic() || isSupportedAtomicType(NewTy)) && in combineLoadToNewType()
559 Type *NewPtrTy = NewTy->getPointerTo(AS); in combineLoadToNewType()
566 NewTy, NewPtr, LI.getAlign(), LI.isVolatile(), LI.getName() + Suffix); in combineLoadToNewType()
DInstCombineCalls.cpp925 Type *NewTy = Ty->getWithNewBitWidth(NewBitWidth); in matchSAddSubSat() local
943 Function *F = Intrinsic::getDeclaration(MinMax1.getModule(), IntrinsicID, NewTy); in matchSAddSubSat()
944 Value *AT = Builder.CreateTrunc(AddSub->getOperand(0), NewTy); in matchSAddSubSat()
945 Value *BT = Builder.CreateTrunc(AddSub->getOperand(1), NewTy); in matchSAddSubSat()
3215 PointerType *NewTy = cast<PointerType>(CI->getOperand(0)->getType()); in visitCallBase() local
3216 if (!NewTy->isOpaque() && Call.isByValArgument(ix)) { in visitCallBase()
3220 NewTy->getNonOpaquePointerElementType())); in visitCallBase()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Scalar/
DSROA.cpp1904 static bool canConvertValue(const DataLayout &DL, Type *OldTy, Type *NewTy) { in canConvertValue() argument
1905 if (OldTy == NewTy) in canConvertValue()
1911 if (isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) { in canConvertValue()
1913 cast<IntegerType>(NewTy)->getBitWidth() && in canConvertValue()
1918 if (DL.getTypeSizeInBits(NewTy).getFixedValue() != in canConvertValue()
1921 if (!NewTy->isSingleValueType() || !OldTy->isSingleValueType()) in canConvertValue()
1927 NewTy = NewTy->getScalarType(); in canConvertValue()
1928 if (NewTy->isPointerTy() || OldTy->isPointerTy()) { in canConvertValue()
1929 if (NewTy->isPointerTy() && OldTy->isPointerTy()) { in canConvertValue()
1931 unsigned NewAS = NewTy->getPointerAddressSpace(); in canConvertValue()
[all …]
DRewriteStatepointsForGC.cpp1548 Type *NewTy = Type::getInt8PtrTy(M->getContext(), AS); in CreateGCRelocates() local
1550 NewTy = FixedVectorType::get(NewTy, in CreateGCRelocates()
1553 {NewTy}); in CreateGCRelocates()
/openbsd/src/gnu/llvm/llvm/include/llvm/CodeGen/
DMachineMemOperand.h322 void setType(LLT NewTy) { in setType() argument
323 MemoryType = NewTy; in setType()
/openbsd/src/gnu/llvm/llvm/lib/Target/AArch64/
DAArch64StackTagging.cpp281 auto *NewTy = FixedVectorType::get( in flatten() local
284 V = IRB.CreatePointerCast(V, NewTy); in flatten()
/openbsd/src/gnu/llvm/llvm/include/llvm/CodeGen/GlobalISel/
DLegalizerInfo.h1144 LLT NewTy = LLT::scalarOrVector(ElementCount::getFixed(MaxElements), in clampMaxNumElements()
1146 return std::make_pair(TypeIdx, NewTy); in clampMaxNumElements()
/openbsd/src/gnu/llvm/llvm/include/llvm/IR/
DDebugInfoMetadata.h750 auto NewTy = clone(); in cloneWithFlags() local
751 NewTy->Flags = NewFlags; in cloneWithFlags()
752 return NewTy; in cloneWithFlags()
1344 auto NewTy = clone(); in cloneWithCC() local
1345 NewTy->CC = CC; in cloneWithCC()
1346 return NewTy; in cloneWithCC()

12