Home
last modified time | relevance | path

Searched refs:EltTy (Results 1 – 25 of 136) 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()
24 CImpl->ASTypedPointerTypes[std::make_pair(EltTy, AddressSpace)]; in get()
27 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.cpp150 Type *EltTy = Ty->getScalarType(); in expandAbs() local
155 ConstantInt::get(EltTy, 0)) in expandAbs()
156 : ConstantInt::get(EltTy, 0); in expandAbs()
284 Type *EltTy = Ty->getScalarType(); in expandExpIntrinsic() local
289 ConstantFP::get(EltTy, numbers::log2ef)) in expandExpIntrinsic()
290 : ConstantFP::get(EltTy, numbers::log2ef); in expandExpIntrinsic()
356 Type *EltTy = Ty->getScalarType(); in expandAnyOrAllIntrinsic() local
368 Result = EltTy->isFloatingPointTy() in expandAnyOrAllIntrinsic()
369 ? Builder.CreateFCmpUNE(X, ConstantFP::get(EltTy, 0)) in expandAnyOrAllIntrinsic()
370 : Builder.CreateICmpNE(X, ConstantInt::get(EltTy, 0)); in expandAnyOrAllIntrinsic()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DScalarizeMaskedMemIntrin.cpp156 Type *EltTy = VecType->getElementType(); in scalarizeMaskedLoad() local
177 commonAlignment(AlignVal, EltTy->getPrimitiveSizeInBits() / 8); in scalarizeMaskedLoad()
187 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, Ptr, Idx); in scalarizeMaskedLoad()
188 LoadInst *Load = Builder.CreateAlignedLoad(EltTy, Gep, AdjustedAlignVal); in scalarizeMaskedLoad()
268 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, Ptr, Idx); in scalarizeMaskedLoad()
269 LoadInst *Load = Builder.CreateAlignedLoad(EltTy, Gep, AdjustedAlignVal); in scalarizeMaskedLoad()
329 Type *EltTy = VecType->getElementType(); in scalarizeMaskedStore() local
347 commonAlignment(AlignVal, EltTy->getPrimitiveSizeInBits() / 8); in scalarizeMaskedStore()
355 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, Ptr, Idx); in scalarizeMaskedStore()
428 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()
137 QualType EltTy = CTy->getElementType(); in detectFARsEligibleStructHelper() local
138 if (getContext().getTypeSize(EltTy) > FRLen) in detectFARsEligibleStructHelper()
140 Field1Ty = CGT.ConvertType(EltTy); in detectFARsEligibleStructHelper()
143 Field2Off = Field1Off + getContext().getTypeSizeInChars(EltTy); in detectFARsEligibleStructHelper()
149 QualType EltTy = ATy->getElementType(); in detectFARsEligibleStructHelper() local
152 if (const auto *RTy = EltTy->getAs<RecordType>()) { in detectFARsEligibleStructHelper()
154 isEmptyRecord(getContext(), EltTy, true, true)) in detectFARsEligibleStructHelper()
157 CharUnits EltSize = getContext().getTypeSizeInChars(EltTy); in detectFARsEligibleStructHelper()
[all …]
H A DRISCV.cpp154 QualType EltTy = RetTy->castAs<ComplexType>()->getElementType(); in computeInfo() local
155 IsRetIndirect = getContext().getTypeSize(EltTy) > FLen; in computeInfo()
215 QualType EltTy = CTy->getElementType(); in detectFPCCEligibleStructHelper() local
216 if (getContext().getTypeSize(EltTy) > FLen) in detectFPCCEligibleStructHelper()
218 Field1Ty = CGT.ConvertType(EltTy); in detectFPCCEligibleStructHelper()
221 Field2Off = Field1Off + getContext().getTypeSizeInChars(EltTy); in detectFPCCEligibleStructHelper()
227 QualType EltTy = ATy->getElementType(); in detectFPCCEligibleStructHelper() local
230 if (const auto *RTy = EltTy->getAs<RecordType>()) { in detectFPCCEligibleStructHelper()
232 isEmptyRecord(getContext(), EltTy, true, true)) in detectFPCCEligibleStructHelper()
235 CharUnits EltSize = getContext().getTypeSizeInChars(EltTy); in detectFPCCEligibleStructHelper()
[all …]
H A DCSKY.cpp109 QualType EltTy = Ty->castAs<ComplexType>()->getElementType(); in classifyArgumentType() local
110 if (getContext().getTypeSize(EltTy) <= FLen) { in classifyArgumentType()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGenTypes/
H A DMachineValueType.h43 #define GET_VT_ATTR(Ty, n, sz, Any, Int, FP, Vec, Sc, Tup, NF, NElem, EltTy) \ argument
184 #define GET_VT_ATTR(Ty, n, sz, Any, Int, FP, Vec, Sc, Tup, NF, NElem, EltTy) \ in isOverloaded() argument
198 MVT EltTy = getVectorElementType(); in changeVectorElementTypeToInteger() local
199 MVT IntTy = MVT::getIntegerVT(EltTy.getSizeInBits()); in changeVectorElementTypeToInteger()
267 #define GET_VT_ATTR(Ty, N, Sz, Any, Int, FP, Vec, Sc, Tup, NF, NElem, EltTy) \ in getVectorElementType() argument
268 EltTy, in getVectorElementType()
281 #define GET_VT_ATTR(Ty, N, Sz, Any, Int, FP, Vec, Sc, Tup, NF, NElem, EltTy) \ in getVectorMinNumElements() argument
311 #define GET_VT_ATTR(Ty, N, Sz, Any, Int, FP, Vec, Sc, Tup, NF, NElem, EltTy) \ in getSizeInBits() argument
434 #define GET_VT_ATTR(Ty, n, sz, Any, Int, FP, Vec, Sc, Tup, NF, NElem, EltTy) \ in getFloatingPointVT() argument
444 #define GET_VT_ATTR(Ty, n, sz, Any, Int, FP, Vec, Sc, Tup, NF, NElem, EltTy) \ in getIntegerVT() argument
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDerivedTypes.h484 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger() local
485 return VectorType::get(EltTy, VTy->getElementCount()); in getInteger()
492 auto *EltTy = cast<IntegerType>(VTy->getElementType()); in getExtendedElementVectorType() local
493 return VectorType::get(EltTy->getExtendedType(), VTy->getElementCount()); in getExtendedElementVectorType()
500 Type *EltTy; in getTruncatedElementVectorType() local
504 EltTy = Type::getFloatTy(VTy->getContext()); in getTruncatedElementVectorType()
507 EltTy = Type::getHalfTy(VTy->getContext()); in getTruncatedElementVectorType()
516 EltTy = IntegerType::get(VTy->getContext(), EltBits / 2); in getTruncatedElementVectorType()
518 return VectorType::get(EltTy, VTy->getElementCount()); in getTruncatedElementVectorType()
563 static VectorType *getWithSizeAndScalar(VectorType *SizeTy, Type *EltTy) { in getWithSizeAndScalar() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelDAGToDAG.cpp394 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatImm() local
399 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatImm()
400 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatImm()
419 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatUimmInvPow2() local
424 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatUimmInvPow2()
425 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatUimmInvPow2()
429 SplatImm = CurDAG->getSignedTargetConstant(Log2, SDLoc(N), EltTy); in selectVSplatUimmInvPow2()
440 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatUimmPow2() local
445 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatUimmPow2()
446 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatUimmPow2()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsSEISelDAGToDAG.cpp550 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatCommon() local
555 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatCommon()
556 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatCommon()
560 Imm = CurDAG->getTargetConstant(ImmValue, SDLoc(N), EltTy); in selectVSplatCommon()
580 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatUimmPow2() local
585 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatUimmPow2()
586 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatUimmPow2()
590 Imm = CurDAG->getTargetConstant(Log2, SDLoc(N), EltTy); in selectVSplatUimmPow2()
611 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatMaskL() local
616 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatMaskL()
[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/RISCV/GISel/
H A DRISCVCallLowering.cpp327 static bool isLegalElementTypeForRVV(Type *EltTy, in isLegalElementTypeForRVV() argument
329 if (EltTy->isPointerTy()) in isLegalElementTypeForRVV()
331 if (EltTy->isIntegerTy(1) || EltTy->isIntegerTy(8) || in isLegalElementTypeForRVV()
332 EltTy->isIntegerTy(16) || EltTy->isIntegerTy(32)) in isLegalElementTypeForRVV()
334 if (EltTy->isIntegerTy(64)) in isLegalElementTypeForRVV()
336 if (EltTy->isHalfTy()) in isLegalElementTypeForRVV()
338 if (EltTy->isBFloatTy()) in isLegalElementTypeForRVV()
340 if (EltTy->isFloatTy()) in isLegalElementTypeForRVV()
342 if (EltTy->isDoubleTy()) in isLegalElementTypeForRVV()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DModuleUtils.cpp37 StructType *EltTy; in appendToGlobalArray() local
39 EltTy = cast<StructType>(GVCtor->getValueType()->getArrayElementType()); in appendToGlobalArray()
48 EltTy = StructType::get( in appendToGlobalArray()
60 ConstantStruct::get(EltTy, ArrayRef(CSVals, EltTy->getNumElements())); in appendToGlobalArray()
65 ArrayType *AT = ArrayType::get(EltTy, CurrentCtors.size()); in appendToGlobalArray()
91 StructType *EltTy = in transformGlobalArray() local
109 ArrayType *AT = ArrayType::get(EltTy, CurrentCtors.size()); in transformGlobalArray()
/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()
286 bool SwiftABIInfo::isLegalVectorType(CharUnits VectorSize, llvm::Type *EltTy, in isLegalVectorType() argument
H A DCodeGenTypes.cpp522 auto *EltTy = Info.ElementType->isMFloat8Type() in ConvertType() local
525 auto *VTy = llvm::VectorType::get(EltTy, Info.EC); in ConvertType()
601 llvm::Type *EltTy = ConvertType(cast<ComplexType>(Ty)->getElementType()); in ConvertType() local
602 ResultType = llvm::StructType::get(EltTy, EltTy); in ConvertType()
647 llvm::Type *EltTy = ConvertTypeForMem(A->getElementType()); in ConvertType() local
651 if (!EltTy->isSized()) { in ConvertType()
653 EltTy = llvm::Type::getInt8Ty(getLLVMContext()); in ConvertType()
656 ResultType = llvm::ArrayType::get(EltTy, A->getZExtSize()); in ConvertType()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
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/include/llvm/CodeGen/GlobalISel/
H A DLegalizerInfo.h299 LLVM_ABI LegalityPredicate elementTypeIs(unsigned TypeIdx, LLT EltTy);
1219 LegalizeRuleSet &clampMinNumElements(unsigned TypeIdx, const LLT EltTy, in clampMinNumElements() argument
1227 return VecTy.isFixedVector() && VecTy.getElementType() == EltTy && in clampMinNumElements()
1238 LegalizeRuleSet &alignNumElementsTo(unsigned TypeIdx, const LLT EltTy, in alignNumElementsTo() argument
1245 return VecTy.isFixedVector() && VecTy.getElementType() == EltTy && in alignNumElementsTo()
1257 LegalizeRuleSet &clampMaxNumElements(unsigned TypeIdx, const LLT EltTy, in clampMaxNumElements() argument
1265 return VecTy.isFixedVector() && VecTy.getElementType() == EltTy && in clampMaxNumElements()
1289 const LLT EltTy = MinTy.getElementType(); in clampNumElements() local
1290 return clampMinNumElements(TypeIdx, EltTy, MinTy.getNumElements()) in clampNumElements()
1291 .clampMaxNumElements(TypeIdx, EltTy, MaxTy.getNumElements()); in clampNumElements()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64RegisterBankInfo.cpp628 Type *EltTy = nullptr; in isLoadFromFPType() local
630 EltTy = GV->getValueType(); in isLoadFromFPType()
633 while (StructType *StructEltTy = dyn_cast<StructType>(EltTy)) { in isLoadFromFPType()
636 EltTy = StructEltTy->getTypeAtIndex(0U); in isLoadFromFPType()
639 if (isa<ArrayType>(EltTy)) in isLoadFromFPType()
640 EltTy = EltTy->getArrayElementType(); in isLoadFromFPType()
646 EltTy = LdUser->getType(); in isLoadFromFPType()
650 EltTy = LdUser->getOperand(0)->getType(); in isLoadFromFPType()
655 return EltTy && EltTy->isFPOrFPVectorTy(); in isLoadFromFPType()
/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.h284 Type *EltTy = InVTy->getElementType(); in getSafeVectorConstantForBinop() local
285 auto *SafeC = ConstantExpr::getBinOpIdentity(Opcode, EltTy, IsRHSConstant); in getSafeVectorConstantForBinop()
293 SafeC = ConstantInt::get(EltTy, 1); in getSafeVectorConstantForBinop()
296 SafeC = ConstantFP::get(EltTy, 1.0); in getSafeVectorConstantForBinop()
315 SafeC = Constant::getNullValue(EltTy); in getSafeVectorConstantForBinop()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
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()
H A DAMDGPULateCodeGenPrepare.cpp115 Type *EltTy = VTy->getElementType(); in shouldReplace() local
118 if (!EltTy->isIntegerTy() || in shouldReplace()
119 EltTy->getScalarSizeInBits() > ConvertToScalar->getScalarSizeInBits()) in shouldReplace()
124 TLI->getTypeConversion(EltTy->getContext(), EVT::getEVT(EltTy, false)); in shouldReplace()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DInterpBuiltinBitCast.cpp230 QualType EltTy = VT->getElementType(); in CheckBitcastType() local
233 VT->isPackedVectorBoolType(ASTCtx) ? 1 : ASTCtx.getTypeSize(EltTy); in CheckBitcastType()
246 if (EltTy->isRealFloatingType() && in CheckBitcastType()
247 &ASTCtx.getFloatTypeSemantics(EltTy) == &APFloat::x87DoubleExtended()) { in CheckBitcastType()
252 S.FFDiag(E, diag::note_constexpr_bit_cast_unsupported_type) << EltTy; in CheckBitcastType()

123456