Home
last modified time | relevance | path

Searched refs:ElemTy (Results 1 – 25 of 77) sorted by relevance

1234

/freebsd-14-stable/contrib/llvm-project/llvm/include/llvm/ADT/
HDEquivalenceClasses.h59 template <class ElemTy, class Compare = std::less<ElemTy>>
75 ElemTy Data;
79 ECValue(const ElemTy &Elt) in ECValue()
107 const ElemTy &getData() const { return Data; } in getData()
184 iterator findValue(const ElemTy &V) const { in findValue()
191 const ElemTy &getLeaderValue(const ElemTy &V) const { in getLeaderValue()
200 const ElemTy &getOrInsertLeaderValue(const ElemTy &V) { in getOrInsertLeaderValue()
220 iterator insert(const ElemTy &Data) { in insert()
232 member_iterator findLeader(const ElemTy &V) const { in findLeader()
238 member_iterator unionSets(const ElemTy &V1, const ElemTy &V2) { in unionSets()
[all …]
HDSetOperations.h110 using ElemTy = decltype(*S1.begin()); in set_subtract() local
111 if constexpr (detail::HasMemberContains<S2Ty, ElemTy>) { in set_subtract()
/freebsd-14-stable/contrib/llvm-project/llvm/lib/IR/
HDTypedPointerType.cpp39 bool TypedPointerType::isValidElementType(Type *ElemTy) { in isValidElementType() argument
40 return !ElemTy->isVoidTy() && !ElemTy->isLabelTy() && in isValidElementType()
41 !ElemTy->isMetadataTy() && !ElemTy->isTokenTy() && in isValidElementType()
42 !ElemTy->isX86_AMXTy(); in isValidElementType()
HDType.cpp597 bool StructType::isValidElementType(Type *ElemTy) { in isValidElementType() argument
598 return !ElemTy->isVoidTy() && !ElemTy->isLabelTy() && in isValidElementType()
599 !ElemTy->isMetadataTy() && !ElemTy->isFunctionTy() && in isValidElementType()
600 !ElemTy->isTokenTy(); in isValidElementType()
659 bool ArrayType::isValidElementType(Type *ElemTy) { in isValidElementType() argument
660 return !ElemTy->isVoidTy() && !ElemTy->isLabelTy() && in isValidElementType()
661 !ElemTy->isMetadataTy() && !ElemTy->isFunctionTy() && in isValidElementType()
662 !ElemTy->isTokenTy() && !ElemTy->isX86_AMXTy(); in isValidElementType()
683 bool VectorType::isValidElementType(Type *ElemTy) { in isValidElementType() argument
684 return ElemTy->isIntegerTy() || ElemTy->isFloatingPointTy() || in isValidElementType()
[all …]
HDDataLayout.cpp920 int64_t DataLayout::getIndexedOffsetInType(Type *ElemTy, in getIndexedOffsetInType() argument
925 GTI = gep_type_begin(ElemTy, Indices), in getIndexedOffsetInType()
926 GTE = gep_type_end(ElemTy, Indices); in getIndexedOffsetInType()
968 std::optional<APInt> DataLayout::getGEPIndexForOffset(Type *&ElemTy, in getGEPIndexForOffset() argument
970 if (auto *ArrTy = dyn_cast<ArrayType>(ElemTy)) { in getGEPIndexForOffset()
971 ElemTy = ArrTy->getElementType(); in getGEPIndexForOffset()
972 return getElementIndex(getTypeAllocSize(ElemTy), Offset); in getGEPIndexForOffset()
975 if (isa<VectorType>(ElemTy)) { in getGEPIndexForOffset()
982 if (auto *STy = dyn_cast<StructType>(ElemTy)) { in getGEPIndexForOffset()
990 ElemTy = STy->getElementType(Index); in getGEPIndexForOffset()
[all …]
/freebsd-14-stable/contrib/llvm-project/llvm/lib/Target/VE/
HDVETargetTransformInfo.h35 static bool isVectorLaneType(llvm::Type &ElemTy) { in isVectorLaneType() argument
37 if (ElemTy.isIntegerTy()) { in isVectorLaneType()
38 unsigned ScaBits = ElemTy.getScalarSizeInBits(); in isVectorLaneType()
41 if (ElemTy.isPointerTy()) { in isVectorLaneType()
44 if (ElemTy.isFloatTy() || ElemTy.isDoubleTy()) { in isVectorLaneType()
/freebsd-14-stable/contrib/llvm-project/llvm/lib/Target/DirectX/
HDDXILIntrinsicExpansion.cpp220 static Intrinsic::ID getMaxForClamp(Type *ElemTy, in getMaxForClamp() argument
225 if (ElemTy->isVectorTy()) in getMaxForClamp()
226 ElemTy = ElemTy->getScalarType(); in getMaxForClamp()
227 if (ElemTy->isIntegerTy()) in getMaxForClamp()
229 assert(ElemTy->isFloatingPointTy()); in getMaxForClamp()
233 static Intrinsic::ID getMinForClamp(Type *ElemTy, in getMinForClamp() argument
238 if (ElemTy->isVectorTy()) in getMinForClamp()
239 ElemTy = ElemTy->getScalarType(); in getMinForClamp()
240 if (ElemTy->isIntegerTy()) in getMinForClamp()
242 assert(ElemTy->isFloatingPointTy()); in getMinForClamp()
/freebsd-14-stable/contrib/llvm-project/llvm/lib/Target/SPIRV/
HDSPIRVUtils.h157 inline Type *getTypedPointerWrapper(Type *ElemTy, unsigned AS) { in getTypedPointerWrapper() argument
158 return TargetExtType::get(ElemTy->getContext(), TYPED_PTR_TARGET_EXT_NAME, in getTypedPointerWrapper()
159 {ElemTy}, {AS}); in getTypedPointerWrapper()
174 Type *ElemTy = VecTy->getElementType(); in applyWrappers() local
175 Type *NewElemTy = ElemTy->isTargetExtTy() ? applyWrappers(ElemTy) : ElemTy; in applyWrappers()
176 if (NewElemTy != ElemTy) in applyWrappers()
HDSPIRVEmitIntrinsics.cpp123 void buildAssignType(IRBuilder<> &B, Type *ElemTy, Value *Arg);
124 void buildAssignPtr(IRBuilder<> &B, Type *ElemTy, Value *Arg);
290 void SPIRVEmitIntrinsics::buildAssignPtr(IRBuilder<> &B, Type *ElemTy, in buildAssignPtr() argument
292 Value *OfType = PoisonValue::get(ElemTy); in buildAssignPtr()
299 GR->addDeducedElementType(AssignPtrTyCI, ElemTy); in buildAssignPtr()
300 GR->addDeducedElementType(Arg, ElemTy); in buildAssignPtr()
315 Type *ElemTy = OfType->getType(); in updateAssignType() local
316 GR->addDeducedElementType(AssignCI, ElemTy); in updateAssignType()
317 GR->addDeducedElementType(Arg, ElemTy); in updateAssignType()
353 if (auto ElemTy = getPointeeType(Op->getType())) in deduceElementTypeByUsersDeep() local
[all …]
HDSPIRVPreLegalizer.cpp188 Type *ElemTy = getMDOperandAsType(MI.getOperand(3).getMetadata(), 0); in insertBitcasts() local
189 SPIRVType *BaseTy = GR->getOrCreateSPIRVType(ElemTy, MIB); in insertBitcasts()
518 Type *ElemTy = nullptr; in generateAssignInstrs() local
523 ElemTy = ElemMI->getOperand(1).getCImm()->getType(); in generateAssignInstrs()
525 ElemTy = ElemMI->getOperand(1).getFPImm()->getType(); in generateAssignInstrs()
530 Ty = VectorType::get(ElemTy, NumElts, false); in generateAssignInstrs()
/freebsd-14-stable/contrib/llvm-project/clang/lib/CodeGen/
HDAddress.h100 RawAddress withElementType(llvm::Type *ElemTy) const { in withElementType() argument
101 return RawAddress(getPointer(), ElemTy, getAlignment(), isKnownNonNull()); in withElementType()
274 Address withElementType(llvm::Type *ElemTy) const { in withElementType() argument
276 return Address(getBasePointer(), ElemTy, getAlignment(), in withElementType()
280 A.ElementType = ElemTy; in withElementType()
310 ConstantAddress withElementType(llvm::Type *ElemTy) const { in withElementType() argument
311 return ConstantAddress(getPointer(), ElemTy, getAlignment()); in withElementType()
/freebsd-14-stable/contrib/llvm-project/llvm/include/llvm/IR/
HDGetElementPtrTypeIterator.h156 Type *ElemTy = getIndexedType(); in getSequentialElementStride() local
158 assert(DL.typeSizeEqualsStoreSize(ElemTy) && "Not byte-addressable"); in getSequentialElementStride()
159 return DL.getTypeStoreSize(ElemTy); in getSequentialElementStride()
161 return DL.getTypeAllocSize(ElemTy); in getSequentialElementStride()
HDDerivedTypes.h326 static bool isValidElementType(Type *ElemTy);
390 static bool isValidElementType(Type *ElemTy);
525 static bool isValidElementType(Type *ElemTy);
673 static bool isValidElementType(Type *ElemTy);
676 static bool isLoadableOrStorableType(Type *ElemTy);
HDTypedPointerType.h39 static bool isValidElementType(Type *ElemTy);
HDDataLayout.h588 int64_t getIndexedOffsetInType(Type *ElemTy, ArrayRef<Value *> Indices) const;
592 SmallVector<APInt> getGEPIndicesForOffset(Type *&ElemTy, APInt &Offset) const;
598 std::optional<APInt> getGEPIndexForOffset(Type *&ElemTy, APInt &Offset) const;
/freebsd-14-stable/contrib/llvm-project/clang/lib/AST/Interp/
HDProgram.cpp377 QualType ElemTy = ArrayType->getElementType(); in createDescriptor() local
381 if (std::optional<PrimType> T = Ctx.classify(ElemTy)) { in createDescriptor()
393 D, ElemTy.getTypePtr(), std::nullopt, IsConst, IsTemporary); in createDescriptor()
409 if (std::optional<PrimType> T = Ctx.classify(ElemTy)) { in createDescriptor()
413 const Descriptor *Desc = createDescriptor(D, ElemTy.getTypePtr(), in createDescriptor()
432 PrimType ElemTy = *Ctx.classify(CT->getElementType()); in createDescriptor() local
433 return allocateDescriptor(D, ElemTy, MDSize, 2, IsConst, IsTemporary, in createDescriptor()
439 PrimType ElemTy = *Ctx.classify(VT->getElementType()); in createDescriptor() local
440 return allocateDescriptor(D, ElemTy, MDSize, VT->getNumElements(), IsConst, in createDescriptor()
HDPointer.cpp472 QualType ElemTy = AT->getElementType(); in toRValue() local
479 if (std::optional<PrimType> T = Ctx.classify(ElemTy)) { in toRValue()
482 Ok &= Composite(ElemTy, EP.narrow(), Slot); in toRValue()
490 QualType ElemTy = CT->getElementType(); in toRValue() local
492 if (ElemTy->isIntegerType()) { in toRValue()
493 std::optional<PrimType> ElemT = Ctx.classify(ElemTy); in toRValue()
501 } else if (ElemTy->isFloatingType()) { in toRValue()
512 QualType ElemTy = VT->getElementType(); in toRValue() local
513 PrimType ElemT = *Ctx.classify(ElemTy); in toRValue()
/freebsd-14-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
HDHexagonISelLoweringHVX.cpp41 MVT ElemTy = Ty.getScalarType(); in getIEEEProperties() local
42 switch (ElemTy.SimpleTy) { in getIEEEProperties()
52 llvm_unreachable(("Unexpected type: " + EVT(ElemTy).getEVTString()).c_str()); in getIEEEProperties()
409 for (MVT ElemTy : Subtarget.getHVXElementTypes()) { in initializeHVXLowering() local
410 if (ElemTy == MVT::i1) in initializeHVXLowering()
412 int ElemWidth = ElemTy.getFixedSizeInBits(); in initializeHVXLowering()
415 MVT VecTy = MVT::getVectorVT(ElemTy, N); in initializeHVXLowering()
444 MVT ElemTy = VecTy.getVectorElementType(); in getPreferredHvxVectorAction() local
449 if (ElemTy == MVT::i1 && VecLen > HwLen) in getPreferredHvxVectorAction()
455 if (ElemTy == MVT::i1) { in getPreferredHvxVectorAction()
[all …]
HDHexagonISelLowering.h432 MVT tyVector(MVT Ty, MVT ElemTy) const { in tyVector() argument
433 if (Ty.isVector() && Ty.getVectorElementType() == ElemTy) in tyVector()
436 unsigned ElemWidth = ElemTy.getSizeInBits(); in tyVector()
438 return MVT::getVectorVT(ElemTy, TyWidth/ElemWidth); in tyVector()
453 SDValue opCastElem(SDValue Vec, MVT ElemTy, SelectionDAG &DAG) const;
488 SDValue convertToByteIndex(SDValue ElemIdx, MVT ElemTy,
490 SDValue getIndexInWord32(SDValue Idx, MVT ElemTy, SelectionDAG &DAG) const;
HDHexagonSubtarget.cpp188 MVT ElemTy = VecTy.getSimpleVT().getVectorElementType(); in isHVXVectorType() local
189 if (!IncludeBool && ElemTy == MVT::i1) in isHVXVectorType()
196 if (IncludeBool && ElemTy == MVT::i1) { in isHVXVectorType()
208 return llvm::is_contained(ElemTypes, ElemTy); in isHVXVectorType()
234 MVT ElemTy = Ty.getVectorElementType().getSimpleVT(); in isTypeForHVX() local
237 MVT SimpleTy = MVT::getVectorVT(ElemTy, VecLen); in isTypeForHVX()
HDHexagonISelLowering.cpp1056 MVT ElemTy = OpTy.getVectorElementType(); in LowerSETCC() local
1057 assert(ElemTy.isScalarInteger()); in LowerSETCC()
1058 MVT WideTy = MVT::getVectorVT(MVT::getIntegerVT(2*ElemTy.getSizeInBits()), in LowerSETCC()
1114 MVT ElemTy = OpTy.getVectorElementType(); in LowerVSELECT() local
1115 assert(ElemTy.isScalarInteger()); in LowerVSELECT()
1116 MVT WideTy = MVT::getVectorVT(MVT::getIntegerVT(2*ElemTy.getSizeInBits()), in LowerVSELECT()
2207 MVT ElemTy = VT.getVectorElementType(); in getPreferredVectorAction() local
2219 if (ElemTy == MVT::i1) in getPreferredVectorAction()
2493 MVT ElemTy = VecTy.getVectorElementType(); in getBuildVectorConstInts() local
2494 unsigned ElemWidth = ElemTy.getSizeInBits(); in getBuildVectorConstInts()
[all …]
/freebsd-14-stable/contrib/llvm-project/clang/lib/CodeGen/Targets/
HDSparc.cpp181 llvm::Type *ElemTy = StrTy->getElementType(i); in addStruct() local
183 switch (ElemTy->getTypeID()) { in addStruct()
185 addStruct(ElemOffset, cast<llvm::StructType>(ElemTy)); in addStruct()
188 addFloat(ElemOffset, ElemTy, 32); in addStruct()
191 addFloat(ElemOffset, ElemTy, 64); in addStruct()
194 addFloat(ElemOffset, ElemTy, 128); in addStruct()
199 Elems.push_back(ElemTy); in addStruct()
/freebsd-14-stable/contrib/llvm-project/clang/lib/AST/
HDAPValue.cpp158 ArrayRef<LValuePathEntry> Path, QualType ElemTy) in LValuePathSerializationHelper() argument
159 : Ty((const void *)ElemTy.getTypePtrOrNull()), Path(Path) {} in LValuePathSerializationHelper()
731 QualType ElemTy = Ty->castAs<VectorType>()->getElementType(); in printPretty() local
732 getVectorElt(0).printPretty(Out, Policy, ElemTy, Ctx); in printPretty()
735 getVectorElt(i).printPretty(Out, Policy, ElemTy, Ctx); in printPretty()
814 QualType ElemTy = Base.getType(); in printPretty() local
831 if (ElemTy->isRecordType()) { in printPretty()
845 ElemTy = VD->getType(); in printPretty()
847 } else if (ElemTy->isAnyComplexType()) { in printPretty()
850 ElemTy = ElemTy->castAs<ComplexType>()->getElementType(); in printPretty()
[all …]
/freebsd-14-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/
HDExecutionEngine.cpp606 Type *ElemTy = STy->getElementType(i); in getConstantValue() local
607 if (ElemTy->isIntegerTy()) in getConstantValue()
609 APInt(ElemTy->getPrimitiveSizeInBits(), 0); in getConstantValue()
610 else if (ElemTy->isAggregateType()) { in getConstantValue()
611 const Constant *ElemUndef = UndefValue::get(ElemTy); in getConstantValue()
623 Type *ElemTy = ArrTy->getElementType(); in getConstantValue() local
626 if (ElemTy->isIntegerTy()) in getConstantValue()
629 APInt(ElemTy->getPrimitiveSizeInBits(), 0); in getConstantValue()
635 Type *ElemTy = VTy->getElementType(); in getConstantValue() local
638 if (ElemTy->isIntegerTy()) in getConstantValue()
[all …]
/freebsd-14-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
HDScalarizer.cpp546 Type *ElemTy = Split.VecTy->getElementType(); in getVectorSplit() local
548 if (NumElems == 1 || ElemTy->isPointerTy() || in getVectorSplit()
549 2 * ElemTy->getScalarSizeInBits() > ScalarizeMinBits) { in getVectorSplit()
552 Split.SplitTy = ElemTy; in getVectorSplit()
554 Split.NumPacked = ScalarizeMinBits / ElemTy->getScalarSizeInBits(); in getVectorSplit()
559 Split.SplitTy = FixedVectorType::get(ElemTy, Split.NumPacked); in getVectorSplit()
563 Split.RemainderTy = FixedVectorType::get(ElemTy, RemainderElems); in getVectorSplit()
565 Split.RemainderTy = ElemTy; in getVectorSplit()

1234