Home
last modified time | relevance | path

Searched refs:EltTy (Results 1 – 25 of 130) sorted by relevance

123456

/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DTinyPtrVector.h28 template <typename EltTy>
31 using VecTy = SmallVector<EltTy, 4>;
37 using PtrUnion = PointerUnion<EltTy, VecTy *>;
65 if (isa<EltTy>(Val)) {
74 if (isa<EltTy>(RHS.Val)) {
84 RHS.Val = (EltTy)nullptr; in TinyPtrVector()
99 if (isa<EltTy>(RHS.Val)) {
102 RHS.Val = EltTy();
109 RHS.Val = EltTy();
113 TinyPtrVector(std::initializer_list<EltTy> IL) in TinyPtrVector()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DTypedPointerType.cpp17 TypedPointerType *TypedPointerType::get(Type *EltTy, unsigned AddressSpace) { in get() argument
18 assert(EltTy && "Can't get a pointer to <null> type!"); in get()
19 assert(isValidElementType(EltTy) && "Invalid type for pointer element!"); in get()
21 LLVMContextImpl *CImpl = EltTy->getContext().pImpl; in get()
25 CImpl->ASTypedPointerTypes[std::make_pair(EltTy, AddressSpace)]; in get()
28 Entry = new (CImpl->Alloc) TypedPointerType(EltTy, AddressSpace); in get()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DCBufferDataLayout.cpp41 TypeSize applyRowAlign(TypeSize Offset, Type *EltTy);
57 TypeSize LegacyCBufferLayout::applyRowAlign(TypeSize Offset, Type *EltTy) { in applyRowAlign() argument
63 if (isa<StructType>(EltTy) || isa<ArrayType>(EltTy)) in applyRowAlign()
65 TypeSize Size = DL.getTypeStoreSize(EltTy); in applyRowAlign()
101 for (Type *EltTy : ST->elements()) { in getStructLayout()
102 TypeSize EltSize = getTypeAllocSize(EltTy); in getStructLayout()
103 if (TypeSize ScalarSize = EltTy->getScalarType()->getPrimitiveSizeInBits()) in getStructLayout()
105 Offset = applyRowAlign(Offset, EltTy); in getStructLayout()
H A DDXILIntrinsicExpansion.cpp57 Type *EltTy = Ty->getScalarType(); in expandAbs() local
62 ConstantInt::get(EltTy, 0)) in expandAbs()
63 : ConstantInt::get(EltTy, 0); in expandAbs()
108 Type *EltTy = Ty->getScalarType(); in expandExpIntrinsic() local
113 ConstantFP::get(EltTy, numbers::log2ef)) in expandExpIntrinsic()
114 : ConstantFP::get(EltTy, numbers::log2ef); in expandExpIntrinsic()
130 Type *EltTy = Ty->getScalarType(); in expandAnyIntrinsic() local
133 Value *Cond = EltTy->isFloatingPointTy() in expandAnyIntrinsic()
134 ? Builder.CreateFCmpUNE(X, ConstantFP::get(EltTy, 0)) in expandAnyIntrinsic()
135 : Builder.CreateICmpNE(X, ConstantInt::get(EltTy, 0)); in expandAnyIntrinsic()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DScalarizeMaskedMemIntrin.cpp153 Type *EltTy = VecType->getElementType(); in scalarizeMaskedLoad() local
172 commonAlignment(AlignVal, EltTy->getPrimitiveSizeInBits() / 8); in scalarizeMaskedLoad()
182 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, Ptr, Idx); in scalarizeMaskedLoad()
183 LoadInst *Load = Builder.CreateAlignedLoad(EltTy, Gep, AdjustedAlignVal); in scalarizeMaskedLoad()
231 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, Ptr, Idx); in scalarizeMaskedLoad()
232 LoadInst *Load = Builder.CreateAlignedLoad(EltTy, Gep, AdjustedAlignVal); in scalarizeMaskedLoad()
291 Type *EltTy = VecType->getElementType(); in scalarizeMaskedStore() local
307 commonAlignment(AlignVal, EltTy->getPrimitiveSizeInBits() / 8); in scalarizeMaskedStore()
315 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, Ptr, Idx); in scalarizeMaskedStore()
362 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, Ptr, Idx); in scalarizeMaskedStore()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DLoongArch.cpp77 QualType EltTy = RetTy->castAs<ComplexType>()->getElementType(); in computeInfo() local
78 IsRetIndirect = getContext().getTypeSize(EltTy) > FRLen; in computeInfo()
138 QualType EltTy = CTy->getElementType(); in detectFARsEligibleStructHelper() local
139 if (getContext().getTypeSize(EltTy) > FRLen) in detectFARsEligibleStructHelper()
141 Field1Ty = CGT.ConvertType(EltTy); in detectFARsEligibleStructHelper()
144 Field2Off = Field1Off + getContext().getTypeSizeInChars(EltTy); in detectFARsEligibleStructHelper()
150 QualType EltTy = ATy->getElementType(); in detectFARsEligibleStructHelper() local
153 if (const auto *RTy = EltTy->getAs<RecordType>()) { in detectFARsEligibleStructHelper()
155 isEmptyRecord(getContext(), EltTy, true, true)) in detectFARsEligibleStructHelper()
158 CharUnits EltSize = getContext().getTypeSizeInChars(EltTy); in detectFARsEligibleStructHelper()
[all …]
H A DRISCV.cpp83 QualType EltTy = RetTy->castAs<ComplexType>()->getElementType(); in computeInfo() local
84 IsRetIndirect = getContext().getTypeSize(EltTy) > FLen; in computeInfo()
144 QualType EltTy = CTy->getElementType(); in detectFPCCEligibleStructHelper() local
145 if (getContext().getTypeSize(EltTy) > FLen) in detectFPCCEligibleStructHelper()
147 Field1Ty = CGT.ConvertType(EltTy); in detectFPCCEligibleStructHelper()
150 Field2Off = Field1Off + getContext().getTypeSizeInChars(EltTy); in detectFPCCEligibleStructHelper()
156 QualType EltTy = ATy->getElementType(); in detectFPCCEligibleStructHelper() local
159 if (const auto *RTy = EltTy->getAs<RecordType>()) { in detectFPCCEligibleStructHelper()
161 isEmptyRecord(getContext(), EltTy, true, true)) in detectFPCCEligibleStructHelper()
164 CharUnits EltSize = getContext().getTypeSizeInChars(EltTy); in detectFPCCEligibleStructHelper()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelDAGToDAG.cpp355 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatImm() local
360 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatImm()
361 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatImm()
380 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatUimmInvPow2() local
385 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatUimmInvPow2()
386 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatUimmInvPow2()
390 SplatImm = CurDAG->getTargetConstant(Log2, SDLoc(N), EltTy); in selectVSplatUimmInvPow2()
401 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatUimmPow2() local
406 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatUimmPow2()
407 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatUimmPow2()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGenTypes/
H A DMachineValueType.h41 #define GET_VT_ATTR(Ty, n, sz, Any, Int, FP, Vec, Sc, NElem, EltTy) Ty = n, argument
174 #define GET_VT_ATTR(Ty, n, sz, Any, Int, FP, Vec, Sc, NElem, EltTy) \ in isOverloaded() argument
188 MVT EltTy = getVectorElementType(); in changeVectorElementTypeToInteger() local
189 MVT IntTy = MVT::getIntegerVT(EltTy.getSizeInBits()); in changeVectorElementTypeToInteger()
257 #define GET_VT_ATTR(Ty, N, Sz, Any, Int, FP, Vec, Sc, NElem, EltTy) EltTy, in getVectorElementType() argument
270 #define GET_VT_ATTR(Ty, N, Sz, Any, Int, FP, Vec, Sc, NElem, EltTy) NElem, in getVectorMinNumElements() argument
299 #define GET_VT_ATTR(Ty, N, Sz, Any, Int, FP, Vec, Sc, NElem, EltTy) \ in getSizeInBits() argument
421 #define GET_VT_ATTR(Ty, n, sz, Any, Int, FP, Vec, Sc, NElem, EltTy) \ in getFloatingPointVT() argument
431 #define GET_VT_ATTR(Ty, n, sz, Any, Int, FP, Vec, Sc, NElem, EltTy) \ in getIntegerVT() argument
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDerivedTypes.h457 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger() local
458 return VectorType::get(EltTy, VTy->getElementCount()); in getInteger()
465 auto *EltTy = cast<IntegerType>(VTy->getElementType()); in getExtendedElementVectorType() local
466 return VectorType::get(EltTy->getExtendedType(), VTy->getElementCount()); in getExtendedElementVectorType()
473 Type *EltTy; in getTruncatedElementVectorType() local
477 EltTy = Type::getFloatTy(VTy->getContext()); in getTruncatedElementVectorType()
480 EltTy = Type::getHalfTy(VTy->getContext()); in getTruncatedElementVectorType()
489 EltTy = IntegerType::get(VTy->getContext(), EltBits / 2); in getTruncatedElementVectorType()
491 return VectorType::get(EltTy, VTy->getElementCount()); in getTruncatedElementVectorType()
697 Type *Type::getWithNewType(Type *EltTy) const { in getWithNewType() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/DirectXIRPasses/
H A DPointerTypeAnalysis.cpp148 Type *EltTy = classifyConstantWithOpaquePtr(Elt, Map); in classifyConstantWithOpaquePtr() local
149 EltTys.emplace_back(EltTy); in classifyConstantWithOpaquePtr()
156 Type *EltTy = classifyConstantWithOpaquePtr(cast<Constant>(&Elt), Map); in classifyConstantWithOpaquePtr() local
157 assert(TargetEltTy == EltTy || TargetEltTy == nullptr); in classifyConstantWithOpaquePtr()
158 TargetEltTy = EltTy; in classifyConstantWithOpaquePtr()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsSEISelDAGToDAG.cpp554 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatCommon() local
559 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatCommon()
560 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatCommon()
564 Imm = CurDAG->getTargetConstant(ImmValue, SDLoc(N), EltTy); in selectVSplatCommon()
630 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatUimmPow2() local
635 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatUimmPow2()
636 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatUimmPow2()
640 Imm = CurDAG->getTargetConstant(Log2, SDLoc(N), EltTy); in selectVSplatUimmPow2()
661 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatMaskL() local
666 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatMaskL()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandVectorPredication.cpp367 Type *EltTy) { in getNeutralReductionElement() argument
369 unsigned EltBits = EltTy->getScalarSizeInBits(); in getNeutralReductionElement()
378 return Constant::getNullValue(EltTy); in getNeutralReductionElement()
380 return ConstantInt::get(EltTy, 1, /*IsSigned*/ false); in getNeutralReductionElement()
383 return ConstantInt::getAllOnesValue(EltTy); in getNeutralReductionElement()
385 return ConstantInt::get(EltTy->getContext(), in getNeutralReductionElement()
388 return ConstantInt::get(EltTy->getContext(), in getNeutralReductionElement()
399 const fltSemantics &Semantics = EltTy->getFltSemantics(); in getNeutralReductionElement()
401 ? ConstantFP::getQNaN(EltTy, Negative) in getNeutralReductionElement()
403 ? ConstantFP::getInfinity(EltTy, Negative) in getNeutralReductionElement()
[all …]
H A DAnalysis.cpp54 Type *EltTy = ATy->getElementType(); in ComputeLinearIndex() local
57 unsigned EltLinearOffset = ComputeLinearIndex(EltTy, nullptr, nullptr, 0); in ComputeLinearIndex()
63 return ComputeLinearIndex(EltTy, Indices+1, IndicesEnd, CurIndex); in ComputeLinearIndex()
107 Type *EltTy = ATy->getElementType(); in ComputeValueVTs() local
108 TypeSize EltSize = DL.getTypeAllocSize(EltTy); in ComputeValueVTs()
110 ComputeValueVTs(TLI, DL, EltTy, ValueVTs, MemVTs, Offsets, in ComputeValueVTs()
160 Type *EltTy = ATy->getElementType(); in computeValueLLTs() local
161 uint64_t EltSize = DL.getTypeAllocSize(EltTy).getFixedValue(); in computeValueLLTs()
163 computeValueLLTs(DL, *EltTy, ValueTys, Offsets, in computeValueLLTs()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVCallLowering.cpp320 static bool isLegalElementTypeForRVV(Type *EltTy, in isLegalElementTypeForRVV() argument
322 if (EltTy->isPointerTy()) in isLegalElementTypeForRVV()
324 if (EltTy->isIntegerTy(1) || EltTy->isIntegerTy(8) || in isLegalElementTypeForRVV()
325 EltTy->isIntegerTy(16) || EltTy->isIntegerTy(32)) in isLegalElementTypeForRVV()
327 if (EltTy->isIntegerTy(64)) in isLegalElementTypeForRVV()
329 if (EltTy->isHalfTy()) in isLegalElementTypeForRVV()
331 if (EltTy->isBFloatTy()) in isLegalElementTypeForRVV()
333 if (EltTy->isFloatTy()) in isLegalElementTypeForRVV()
335 if (EltTy->isDoubleTy()) in isLegalElementTypeForRVV()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DABIInfo.cpp147 QualType EltTy = VT->getElementType(); in isHomogeneousAggregate() local
149 getContext().getTypeSize(VT) / getContext().getTypeSize(EltTy); in isHomogeneousAggregate()
151 .getVectorType(EltTy, NumElements, VT->getVectorKind()) in isHomogeneousAggregate()
278 bool SwiftABIInfo::isLegalVectorType(CharUnits VectorSize, llvm::Type *EltTy, in isLegalVectorType() argument
H A DCodeGenTypes.cpp576 llvm::Type *EltTy = llvm::ScalableVectorType::get( in ConvertType() local
578 llvm::SmallVector<llvm::Type *, 4> EltTys(Info.NumVectors, EltTy); in ConvertType()
610 llvm::Type *EltTy = ConvertType(cast<ComplexType>(Ty)->getElementType()); in ConvertType() local
611 ResultType = llvm::StructType::get(EltTy, EltTy); in ConvertType()
656 llvm::Type *EltTy = ConvertTypeForMem(A->getElementType()); in ConvertType() local
660 if (!EltTy->isSized()) { in ConvertType()
662 EltTy = llvm::Type::getInt8Ty(getLLVMContext()); in ConvertType()
665 ResultType = llvm::ArrayType::get(EltTy, A->getZExtSize()); in ConvertType()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizerInfo.h292 LegalityPredicate elementTypeIs(unsigned TypeIdx, LLT EltTy);
1134 LegalizeRuleSet &clampMinNumElements(unsigned TypeIdx, const LLT EltTy, in clampMinNumElements() argument
1142 return VecTy.isVector() && VecTy.getElementType() == EltTy && in clampMinNumElements()
1153 LegalizeRuleSet &alignNumElementsTo(unsigned TypeIdx, const LLT EltTy, in alignNumElementsTo() argument
1160 return VecTy.isVector() && VecTy.getElementType() == EltTy && in alignNumElementsTo()
1172 LegalizeRuleSet &clampMaxNumElements(unsigned TypeIdx, const LLT EltTy, in clampMaxNumElements() argument
1180 return VecTy.isVector() && VecTy.getElementType() == EltTy && in clampMaxNumElements()
1201 const LLT EltTy = MinTy.getElementType(); in clampNumElements() local
1202 return clampMinNumElements(TypeIdx, EltTy, MinTy.getNumElements()) in clampNumElements()
1203 .clampMaxNumElements(TypeIdx, EltTy, MaxTy.getNumElements()); in clampNumElements()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64RegisterBankInfo.cpp617 Type *EltTy = nullptr; in isLoadFromFPType() local
619 EltTy = GV->getValueType(); in isLoadFromFPType()
622 while (StructType *StructEltTy = dyn_cast<StructType>(EltTy)) { in isLoadFromFPType()
625 EltTy = StructEltTy->getTypeAtIndex(0U); in isLoadFromFPType()
628 if (isa<ArrayType>(EltTy)) in isLoadFromFPType()
629 EltTy = EltTy->getArrayElementType(); in isLoadFromFPType()
635 EltTy = LdUser->getType(); in isLoadFromFPType()
639 EltTy = LdUser->getOperand(0)->getType(); in isLoadFromFPType()
644 return EltTy && EltTy->isFPOrFPVectorTy(); in isLoadFromFPType()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLowerMemIntrinsics.cpp382 Type *EltTy = Type::getInt8Ty(F->getContext()); in createMemMoveLoop() local
408 unsigned PartSize = DL.getTypeStoreSize(EltTy); in createMemMoveLoop()
427 EltTy, LoopBuilder.CreateInBoundsGEP(EltTy, SrcAddr, IndexPtr), in createMemMoveLoop()
430 Element, LoopBuilder.CreateInBoundsGEP(EltTy, DstAddr, IndexPtr), in createMemMoveLoop()
445 Value *SrcGEP = FwdLoopBuilder.CreateInBoundsGEP(EltTy, SrcAddr, FwdCopyPhi); in createMemMoveLoop()
447 EltTy, SrcGEP, PartSrcAlign, SrcIsVolatile, "element"); in createMemMoveLoop()
448 Value *DstGEP = FwdLoopBuilder.CreateInBoundsGEP(EltTy, DstAddr, FwdCopyPhi); in createMemMoveLoop()
H A DModuleUtils.cpp37 StructType *EltTy; in appendToGlobalArray() local
39 EltTy = cast<StructType>(GVCtor->getValueType()->getArrayElementType()); in appendToGlobalArray()
48 EltTy = StructType::get(IRB.getInt32Ty(), in appendToGlobalArray()
60 ConstantStruct::get(EltTy, ArrayRef(CSVals, EltTy->getNumElements())); in appendToGlobalArray()
65 ArrayType *AT = ArrayType::get(EltTy, CurrentCtors.size()); in appendToGlobalArray()
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DOpDescriptor.cpp43 Type *EltTy = VecTy->getElementType(); in makeConstantsWithType() local
44 makeConstantsWithType(EltTy, EleCs); in makeConstantsWithType()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h288 Type *EltTy = InVTy->getElementType(); in getSafeVectorConstantForBinop() local
289 auto *SafeC = ConstantExpr::getBinOpIdentity(Opcode, EltTy, IsRHSConstant); in getSafeVectorConstantForBinop()
297 SafeC = ConstantInt::get(EltTy, 1); in getSafeVectorConstantForBinop()
300 SafeC = ConstantFP::get(EltTy, 1.0); in getSafeVectorConstantForBinop()
319 SafeC = Constant::getNullValue(EltTy); in getSafeVectorConstantForBinop()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULateCodeGenPrepare.cpp130 Type *EltTy = VTy->getElementType(); in shouldReplace() local
133 if (!EltTy->isIntegerTy() || in shouldReplace()
134 EltTy->getScalarSizeInBits() > ConvertToScalar->getScalarSizeInBits()) in shouldReplace()
139 TLI->getTypeConversion(EltTy->getContext(), EVT::getEVT(EltTy, false)); in shouldReplace()
H A DAMDGPUImageIntrinsicOptimizer.cpp198 Type *EltTy = IIList.front()->getType()->getScalarType(); in optimizeSection() local
199 Type *NewTy = FixedVectorType::get(EltTy, 4); in optimizeSection()
201 bool isD16 = EltTy->isHalfTy(); in optimizeSection()

123456