Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A 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()
H A DLegalizerInfo.cpp132 const LLT NewTy = Mutation.second; in mutationIsSane() local
143 if (NewTy.isVector()) { in mutationIsSane()
146 if (ElementCount::isKnownGE(NewTy.getElementCount(), OldElts)) in mutationIsSane()
150 if (ElementCount::isKnownLE(NewTy.getElementCount(), OldElts)) in mutationIsSane()
157 return NewTy.getScalarType() == OldTy.getScalarType(); in mutationIsSane()
163 if (!NewTy.isVector() || in mutationIsSane()
164 OldTy.getElementCount() != NewTy.getElementCount()) in mutationIsSane()
168 if (NewTy.isVector()) in mutationIsSane()
174 if (NewTy.getScalarSizeInBits() >= OldTy.getScalarSizeInBits()) in mutationIsSane()
178 if (NewTy.getScalarSizeInBits() <= OldTy.getScalarSizeInBits()) in mutationIsSane()
[all …]
H A DCallLowering.cpp447 LLT NewTy = PartLLT.changeElementType(LLTy.getElementType()) in buildCopyFromRegs() local
449 CastRegs[0] = B.buildBitcast(NewTy, Regs[0]).getReg(0); in buildCopyFromRegs()
450 PartLLT = NewTy; in buildCopyFromRegs()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DDynamicType.cpp99 DynamicTypeInfo NewTy) { in setDynamicTypeInfo() argument
100 State = State->set<DynamicTypeMap>(MR->StripCasts(), NewTy); in setDynamicTypeInfo()
106 QualType NewTy, bool CanBeSubClassed) { in setDynamicTypeInfo() argument
107 return setDynamicTypeInfo(State, MR, DynamicTypeInfo(NewTy, CanBeSubClassed)); in setDynamicTypeInfo()
145 DynamicTypeInfo NewTy) { in setClassObjectDynamicTypeInfo() argument
146 State = State->set<DynamicClassObjectMap>(Sym, NewTy); in setClassObjectDynamicTypeInfo()
151 SymbolRef Sym, QualType NewTy, in setClassObjectDynamicTypeInfo() argument
154 DynamicTypeInfo(NewTy, CanBeSubClassed)); in setClassObjectDynamicTypeInfo()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DValueMapper.cpp368 FunctionType *NewTy = IA->getFunctionType(); in mapValue() local
370 NewTy = cast<FunctionType>(TypeMapper->remapType(NewTy)); in mapValue()
372 if (NewTy != IA->getFunctionType()) in mapValue()
373 V = InlineAsm::get(NewTy, IA->getAsmString(), IA->getConstraintString(), in mapValue()
452 Type *NewTy = E->getType(); in mapValue() local
454 NewTy = TypeMapper->remapType(NewTy); in mapValue()
456 DSOLocalEquivalent::get(Func), NewTy); in mapValue()
487 Type *NewTy = C->getType(); in mapValue() local
489 NewTy = TypeMapper->remapType(NewTy); in mapValue()
493 if (OpNo == NumOperands && NewTy == C->getType()) in mapValue()
[all …]
H A DLocal.cpp3652 auto *NewTy = NewLI.getType(); in copyNonnullMetadata() local
3655 if (NewTy->isPointerTy()) { in copyNonnullMetadata()
3662 if (!NewTy->isIntegerTy()) in copyNonnullMetadata()
3667 auto *ITy = cast<IntegerType>(NewTy); in copyNonnullMetadata()
3677 auto *NewTy = NewLI.getType(); in copyRangeMetadata() local
3679 if (NewTy == OldLI.getType()) { in copyRangeMetadata()
3688 if (!NewTy->isPointerTy()) in copyRangeMetadata()
3691 unsigned BitWidth = DL.getPointerTypeSizeInBits(NewTy); in copyRangeMetadata()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DHLSLBufferLayoutBuilder.cpp205 llvm::Type *NewTy = in layoutField() local
207 if (!NewTy) in layoutField()
209 assert(isa<llvm::TargetExtType>(NewTy) && "expected target type"); in layoutField()
210 ElemSize = cast<llvm::TargetExtType>(NewTy)->getIntParameter(0); in layoutField()
212 CGM, cast<ConstantArrayType>(FieldTy.getTypePtr()), NewTy); in layoutField()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DIntrinsics.cpp922 Type *NewTy = ArgTys[D.getArgumentNumber()]; in matchIntrinsicType() local
923 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in matchIntrinsicType()
924 NewTy = VectorType::getExtendedElementVectorType(VTy); in matchIntrinsicType()
925 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in matchIntrinsicType()
926 NewTy = IntegerType::get(ITy->getContext(), 2 * ITy->getBitWidth()); in matchIntrinsicType()
930 return Ty != NewTy; in matchIntrinsicType()
937 Type *NewTy = ArgTys[D.getArgumentNumber()]; in matchIntrinsicType() local
938 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in matchIntrinsicType()
939 NewTy = VectorType::getTruncatedElementVectorType(VTy); in matchIntrinsicType()
940 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in matchIntrinsicType()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSMTConv.h699 QualType NewTy = Ctx.getPromotedIntegerType(LTy); in doIntTypeConversion() local
700 uint64_t NewBitWidth = Ctx.getTypeSize(NewTy); in doIntTypeConversion()
701 LHS = (*doCast)(Solver, LHS, NewTy, NewBitWidth, LTy, LBitWidth); in doIntTypeConversion()
702 LTy = NewTy; in doIntTypeConversion()
706 QualType NewTy = Ctx.getPromotedIntegerType(RTy); in doIntTypeConversion() local
707 uint64_t NewBitWidth = Ctx.getTypeSize(NewTy); in doIntTypeConversion()
708 RHS = (*doCast)(Solver, RHS, NewTy, NewBitWidth, RTy, RBitWidth); in doIntTypeConversion()
709 RTy = NewTy; in doIntTypeConversion()
757 QualType NewTy = in doIntTypeConversion() local
760 RTy = NewTy; in doIntTypeConversion()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DDynamicTypePropagation.cpp405 if (const Type *NewTy = getBetterObjCType(CE, C)) { in dynamicTypePropagationOnCasts() local
406 State = setDynamicTypeInfo(State, ToR, QualType(NewTy, 0)); in dynamicTypePropagationOnCasts()
436 const ObjCObjectPointerType *NewTy = in getBetterObjCType() local
438 if (!NewTy) in getBetterObjCType()
442 return NewTy; in getBetterObjCType()
450 if (OldTy->isObjCIdType() && !NewTy->isObjCIdType()) in getBetterObjCType()
451 return NewTy; in getBetterObjCType()
454 const ObjCInterfaceDecl *ToI = NewTy->getInterfaceDecl(); in getBetterObjCType()
457 return NewTy; in getBetterObjCType()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerBufferFatPointers.cpp555 Type *NewTy = TypeMap->remapType(Ty); in visitAllocaInst() local
556 if (Ty == NewTy) in visitAllocaInst()
558 I.setAllocatedType(NewTy); in visitAllocaInst()
565 Type *NewTy = TypeMap->remapType(Ty); in visitGetElementPtrInst() local
566 if (Ty == NewTy) in visitGetElementPtrInst()
570 I.setSourceElementType(NewTy); in visitGetElementPtrInst()
1222 auto *NewTy = dyn_cast<StructType>(TypeMap->remapType(SrcTy)); in materializeBufferFatPtrConst() local
1224 return ConstantAggregateZero::getNullValue(NewTy); in materializeBufferFatPtrConst()
1226 return ConstantStruct::get(NewTy, in materializeBufferFatPtrConst()
1227 {PoisonValue::get(NewTy->getElementType(0)), in materializeBufferFatPtrConst()
[all …]
H A DAMDGPULateCodeGenPrepare.cpp218 Type *NewTy = calculateConvertType(V->getType()); in convertToOptType() local
221 TypeSize NewSize = DL.getTypeSizeInBits(NewTy); in convertToOptType()
227 return Builder.CreateBitCast(V, NewTy, V->getName() + ".bc"); in convertToOptType()
242 return Builder.CreateBitCast(ExpandedVec, NewTy, V->getName() + ".bc"); in convertToOptType()
H A DAMDGPUImageIntrinsicOptimizer.cpp199 Type *NewTy = FixedVectorType::get(EltTy, 4); in optimizeSection() local
200 OverloadTys[0] = NewTy; in optimizeSection()
H A DAMDGPUPromoteAlloca.cpp1584 Type *NewTy = LHS->getType()->getWithNewType(NewPtrTy); in tryPromoteAllocaToLDS() local
1586 CI->setOperand(0, Constant::getNullValue(NewTy)); in tryPromoteAllocaToLDS()
1589 CI->setOperand(1, Constant::getNullValue(NewTy)); in tryPromoteAllocaToLDS()
1601 Type *NewTy = V->getType()->getWithNewType(NewPtrTy); in tryPromoteAllocaToLDS() local
1602 V->mutateType(NewTy); in tryPromoteAllocaToLDS()
1607 SI->setOperand(1, Constant::getNullValue(NewTy)); in tryPromoteAllocaToLDS()
1610 SI->setOperand(2, Constant::getNullValue(NewTy)); in tryPromoteAllocaToLDS()
1615 Phi->setIncomingValue(I, Constant::getNullValue(NewTy)); in tryPromoteAllocaToLDS()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp1933 static bool canConvertValue(const DataLayout &DL, Type *OldTy, Type *NewTy, in canConvertValue() argument
1935 if (OldTy == NewTy) in canConvertValue()
1941 if (isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) { in canConvertValue()
1943 cast<IntegerType>(NewTy)->getBitWidth() && in canConvertValue()
1948 TypeSize NewSize = DL.getTypeSizeInBits(NewTy); in canConvertValue()
1951 if ((isa<ScalableVectorType>(NewTy) && isa<FixedVectorType>(OldTy)) || in canConvertValue()
1952 (isa<ScalableVectorType>(OldTy) && isa<FixedVectorType>(NewTy))) { in canConvertValue()
1961 auto NewVTy = NewTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(NewTy) : NewTy; in canConvertValue()
1963 if (isa<ScalableVectorType>(NewTy)) { in canConvertValue()
1978 if (!NewTy->isSingleValueType() || !OldTy->isSingleValueType()) in canConvertValue()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineMemOperand.h334 void setType(LLT NewTy) { in setType() argument
335 MemoryType = NewTy; in setType()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVUtils.h386 if (Type *NewTy = applyWrappers(Ty); NewTy != Ty) in toTypedPointer() local
387 return NewTy; in toTypedPointer()
H A DSPIRVEmitIntrinsics.cpp760 Type *NewTy = StructType::create(Tys); in deduceNestedTypeHelper() local
761 GR->addDeducedCompositeType(U, NewTy); in deduceNestedTypeHelper()
762 return NewTy; in deduceNestedTypeHelper()
777 Type *NewTy = ArrayType::get(Ty, ArrTy->getNumElements()); in deduceNestedTypeHelper() local
778 GR->addDeducedCompositeType(U, NewTy); in deduceNestedTypeHelper()
779 return NewTy; in deduceNestedTypeHelper()
795 Type *NewTy = VectorType::get(Ty, VecTy->getElementCount()); in deduceNestedTypeHelper() local
796 GR->addDeducedCompositeType(U, normalizeType(NewTy)); in deduceNestedTypeHelper()
797 return NewTy; in deduceNestedTypeHelper()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DRegisterBankInfo.cpp479 LLT NewTy = MRI.getType(NewReg); in applyDefaultMapping() local
480 if (OrigTy != NewTy) { in applyDefaultMapping()
486 TypeSize::isKnownLE(OrigTy.getSizeInBits(), NewTy.getSizeInBits()) && in applyDefaultMapping()
489 LLVM_DEBUG(dbgs() << "\nChange type of new opd from " << NewTy << " to " in applyDefaultMapping()
H A DAtomicExpandPass.cpp474 Type *NewTy = getCorrespondingIntegerType(LI->getType(), M->getDataLayout()); in convertAtomicLoadToIntegerType() local
480 auto *NewLI = Builder.CreateLoad(NewTy, Addr); in convertAtomicLoadToIntegerType()
497 Type *NewTy = in convertAtomicXchgToIntegerType() local
505 ? Builder.CreatePtrToInt(Val, NewTy) in convertAtomicXchgToIntegerType()
506 : Builder.CreateBitCast(Val, NewTy); in convertAtomicXchgToIntegerType()
608 Type *NewTy = getCorrespondingIntegerType(SI->getValueOperand()->getType(), in convertAtomicStoreToIntegerType() local
610 Value *NewVal = Builder.CreateBitCast(SI->getValueOperand(), NewTy); in convertAtomicStoreToIntegerType()
1306 Type *NewTy = getCorrespondingIntegerType(CI->getCompareOperand()->getType(), in convertCmpXchgToIntegerType() local
1313 Value *NewCmp = Builder.CreatePtrToInt(CI->getCompareOperand(), NewTy); in convertCmpXchgToIntegerType()
1314 Value *NewNewVal = Builder.CreatePtrToInt(CI->getNewValOperand(), NewTy); in convertCmpXchgToIntegerType()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64PostLegalizerCombiner.cpp332 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()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp200 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize() local
201 AllocaInst *New = IC.Builder.CreateAlloca(NewTy, AI.getAddressSpace(), in simplifyAllocaArraySize()
577 LoadInst *InstCombinerImpl::combineLoadToNewType(LoadInst &LI, Type *NewTy, in combineLoadToNewType() argument
579 assert((!LI.isAtomic() || isSupportedAtomicType(NewTy)) && in combineLoadToNewType()
583 Builder.CreateAlignedLoad(NewTy, LI.getPointerOperand(), LI.getAlign(), in combineLoadToNewType()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizerInfo.h1051 LLT NewTy = LLT::fixed_vector(NumElts, LLT::scalar(MinSize)); in widenVectorEltsToVectorMinSize()
1052 return std::make_pair(TypeIdx, NewTy); in widenVectorEltsToVectorMinSize()
1270 LLT NewTy = LLT::scalarOrVector(ElementCount::getFixed(MaxElements), in clampMaxNumElements()
1272 return std::make_pair(TypeIdx, NewTy); in clampMaxNumElements()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64StackTagging.cpp290 auto *NewTy = FixedVectorType::get( in flatten() local
293 V = IRB.CreatePointerCast(V, NewTy); in flatten()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaHLSL.cpp568 QualType NewTy = in createHostLayoutStructForBuffer() local
570 VD->setType(NewTy); in createHostLayoutStructForBuffer()
950 QualType NewTy = Ctx.getExtVectorType( in handleIntegerVectorBinOpConversion() local
952 (void)castElement<CK_IntegralCast>(SemaRef, RHS, NewTy); in handleIntegerVectorBinOpConversion()
954 return castElement<CK_IntegralCast>(SemaRef, LHS, NewTy); in handleIntegerVectorBinOpConversion()
3595 QualType NewTy = getASTContext().getAddrSpaceQualType( in ActOnVariableDeclarator() local
3597 VD->setType(NewTy); in ActOnVariableDeclarator()

12