Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DEquivalenceClasses.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 …]
H A DSetOperations.h110 using ElemTy = decltype(*S1.begin()); in set_subtract() local
111 if constexpr (detail::HasMemberContains<S2Ty, ElemTy>) { in set_subtract()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DTypedPointerType.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()
H A DType.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 …]
H A DDataLayout.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/contrib/llvm-project/llvm/lib/Target/VE/
H A DVETargetTransformInfo.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/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILIntrinsicExpansion.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/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVUtils.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()
H A DSPIRVEmitIntrinsics.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 …]
H A DSPIRVPreLegalizer.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/contrib/llvm-project/clang/lib/CodeGen/
H A DAddress.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/contrib/llvm-project/clang/lib/AST/Interp/
H A DProgram.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()
H A DPointer.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/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelLoweringHVX.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 in getPreferredHvxVectorAction()
510 MVT ElemTy = Tys.first.getVectorElementType(); typeJoin() local
526 MVT ElemTy = VecTy.getVectorElementType(); typeExtElem() local
533 MVT ElemTy = VecTy.getVectorElementType(); typeTruncElem() local
539 opCastElem(SDValue Vec,MVT ElemTy,SelectionDAG & DAG) const opCastElem() argument
717 convertToByteIndex(SDValue ElemIdx,MVT ElemTy,SelectionDAG & DAG) const convertToByteIndex() argument
733 getIndexInWord32(SDValue Idx,MVT ElemTy,SelectionDAG & DAG) const getIndexInWord32() argument
755 MVT ElemTy = OpTy.getVectorElementType(); getByteShuffle() local
785 MVT ElemTy = VecTy.getVectorElementType(); buildHvxVectorReg() local
1154 MVT ElemTy = ty(VecV).getVectorElementType(); extractHvxElementReg() local
1197 MVT ElemTy = ty(VecV).getVectorElementType(); insertHvxElementReg() local
1261 MVT ElemTy = VecTy.getVectorElementType(); extractHvxSubvectorReg() local
1365 MVT ElemTy = VecTy.getVectorElementType(); insertHvxSubvectorReg() local
1766 MVT ElemTy = ty(VecV).getVectorElementType(); LowerHvxExtractElement() local
1783 MVT ElemTy = ty(VecV).getVectorElementType(); LowerHvxInsertElement() local
1810 MVT ElemTy = SrcTy.getVectorElementType(); LowerHvxExtractSubvector() local
1827 MVT ElemTy = VecTy.getVectorElementType(); LowerHvxInsertSubvector() local
1842 MVT ElemTy = ty(InpV).getVectorElementType(); LowerHvxAnyExt() local
1852 MVT ElemTy = ty(InpV).getVectorElementType(); LowerHvxSignExt() local
1862 MVT ElemTy = ty(InpV).getVectorElementType(); LowerHvxZeroExt() local
1878 MVT ElemTy = ty(InpV).getVectorElementType(); LowerHvxCttz() local
2085 MVT ElemTy = InpTy.getVectorElementType(); LowerHvxFunnelShift() local
2394 MVT ElemTy = Ty.getScalarType(); typeWidenToHvx() local
2449 MVT ElemTy = MVT::getIntegerVT(ElemWidth); emitHvxShiftRightRnd() local
3116 MVT ElemTy = ty(Op0).getVectorElementType(); WidenHvxSetCC() local
[all...]
H A DHexagonISelLowering.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;
H A DHexagonSubtarget.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()
H A DHexagonISelLowering.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 in getBuildVectorConstInts()
2522 MVT ElemTy = VecTy.getVectorElementType(); buildVector32() local
2613 MVT ElemTy = VecTy.getVectorElementType(); buildVector64() local
2924 MVT ElemTy = ty(Hi); getCombine() local
3007 MVT ElemTy = VecTy.getVectorElementType(); LowerCONCAT_VECTORS() local
3062 MVT ElemTy = ty(Vec).getVectorElementType(); LowerEXTRACT_VECTOR_ELT() local
[all...]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DSparc.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()
H A DARM.cpp429 llvm::Type* ElemTy; in classifyArgumentType() local
434 ElemTy = llvm::Type::getInt32Ty(getVMContext()); in classifyArgumentType()
437 ElemTy = llvm::Type::getInt64Ty(getVMContext()); in classifyArgumentType()
441 return ABIArgInfo::getDirect(llvm::ArrayType::get(ElemTy, SizeRegs)); in classifyArgumentType()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DAPValue.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/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.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/contrib/llvm-project/llvm/include/llvm/IR/
H A DDerivedTypes.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);
H A DTypedPointerType.h39 static bool isValidElementType(Type *ElemTy);
H A DDataLayout.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/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DScalarizer.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()

123