Home
last modified time | relevance | path

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

1234

/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DEquivalenceClasses.h57 template <class ElemTy>
73 ElemTy Data;
77 ECValue(const ElemTy &Elt) in ECValue()
107 const ElemTy &getData() const { return Data; } in getData()
163 iterator findValue(const ElemTy &V) const { in findValue()
170 const ElemTy &getLeaderValue(const ElemTy &V) const { in getLeaderValue()
179 const ElemTy &getOrInsertLeaderValue(const ElemTy &V) { in getOrInsertLeaderValue()
199 iterator insert(const ElemTy &Data) { in insert()
211 member_iterator findLeader(const ElemTy &V) const { in findLeader()
217 member_iterator unionSets(const ElemTy &V1, const ElemTy &V2) { in unionSets()
[all …]
/external/llvm-project/llvm/include/llvm/ADT/
DEquivalenceClasses.h57 template <class ElemTy>
73 ElemTy Data;
77 ECValue(const ElemTy &Elt) in ECValue()
107 const ElemTy &getData() const { return Data; } in getData()
163 iterator findValue(const ElemTy &V) const { in findValue()
170 const ElemTy &getLeaderValue(const ElemTy &V) const { in getLeaderValue()
179 const ElemTy &getOrInsertLeaderValue(const ElemTy &V) { in getOrInsertLeaderValue()
199 iterator insert(const ElemTy &Data) { in insert()
211 member_iterator findLeader(const ElemTy &V) const { in findLeader()
217 member_iterator unionSets(const ElemTy &V1, const ElemTy &V2) { in unionSets()
[all …]
/external/llvm/include/llvm/ADT/
DEquivalenceClasses.h57 template <class ElemTy>
72 ElemTy Data;
75 ECValue(const ElemTy &Elt) in ECValue()
103 const ElemTy &getData() const { return Data; } in getData()
159 iterator findValue(const ElemTy &V) const { in findValue()
166 const ElemTy &getLeaderValue(const ElemTy &V) const { in getLeaderValue()
175 const ElemTy &getOrInsertLeaderValue(const ElemTy &V) { in getOrInsertLeaderValue()
196 iterator insert(const ElemTy &Data) { in insert()
209 member_iterator findLeader(const ElemTy &V) const { in findLeader()
216 member_iterator unionSets(const ElemTy &V1, const ElemTy &V2) { in unionSets()
[all …]
/external/llvm-project/llvm/lib/IR/
DType.cpp521 bool StructType::isValidElementType(Type *ElemTy) { in isValidElementType() argument
522 return !ElemTy->isVoidTy() && !ElemTy->isLabelTy() && in isValidElementType()
523 !ElemTy->isMetadataTy() && !ElemTy->isFunctionTy() && in isValidElementType()
524 !ElemTy->isTokenTy() && !isa<ScalableVectorType>(ElemTy); in isValidElementType()
583 bool ArrayType::isValidElementType(Type *ElemTy) { in isValidElementType() argument
584 return !ElemTy->isVoidTy() && !ElemTy->isLabelTy() && in isValidElementType()
585 !ElemTy->isMetadataTy() && !ElemTy->isFunctionTy() && in isValidElementType()
586 !ElemTy->isTokenTy() && !isa<ScalableVectorType>(ElemTy); in isValidElementType()
607 bool VectorType::isValidElementType(Type *ElemTy) { in isValidElementType() argument
608 return ElemTy->isIntegerTy() || ElemTy->isFloatingPointTy() || in isValidElementType()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DType.cpp511 bool StructType::isValidElementType(Type *ElemTy) { in isValidElementType() argument
512 if (auto *VTy = dyn_cast<VectorType>(ElemTy)) in isValidElementType()
514 return !ElemTy->isVoidTy() && !ElemTy->isLabelTy() && in isValidElementType()
515 !ElemTy->isMetadataTy() && !ElemTy->isFunctionTy() && in isValidElementType()
516 !ElemTy->isTokenTy(); in isValidElementType()
599 bool ArrayType::isValidElementType(Type *ElemTy) { in isValidElementType() argument
600 if (auto *VTy = dyn_cast<VectorType>(ElemTy)) in isValidElementType()
602 return !ElemTy->isVoidTy() && !ElemTy->isLabelTy() && in isValidElementType()
603 !ElemTy->isMetadataTy() && !ElemTy->isFunctionTy() && in isValidElementType()
604 !ElemTy->isTokenTy(); in isValidElementType()
[all …]
/external/llvm/lib/IR/
DType.cpp530 bool StructType::isValidElementType(Type *ElemTy) { in isValidElementType() argument
531 return !ElemTy->isVoidTy() && !ElemTy->isLabelTy() && in isValidElementType()
532 !ElemTy->isMetadataTy() && !ElemTy->isFunctionTy() && in isValidElementType()
533 !ElemTy->isTokenTy(); in isValidElementType()
620 bool ArrayType::isValidElementType(Type *ElemTy) { in isValidElementType() argument
621 return !ElemTy->isVoidTy() && !ElemTy->isLabelTy() && in isValidElementType()
622 !ElemTy->isMetadataTy() && !ElemTy->isFunctionTy() && in isValidElementType()
623 !ElemTy->isTokenTy(); in isValidElementType()
650 bool VectorType::isValidElementType(Type *ElemTy) { in isValidElementType() argument
651 return ElemTy->isIntegerTy() || ElemTy->isFloatingPointTy() || in isValidElementType()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonISelLoweringHVX.cpp221 MVT ElemTy = Tys.first.getVectorElementType(); in typeJoin() local
222 return MVT::getVectorVT(ElemTy, Tys.first.getVectorNumElements() + in typeJoin()
237 MVT ElemTy = VecTy.getVectorElementType(); in typeExtElem() local
238 MVT NewElemTy = MVT::getIntegerVT(ElemTy.getSizeInBits() * Factor); in typeExtElem()
244 MVT ElemTy = VecTy.getVectorElementType(); in typeTruncElem() local
245 MVT NewElemTy = MVT::getIntegerVT(ElemTy.getSizeInBits() / Factor); in typeTruncElem()
250 HexagonTargetLowering::opCastElem(SDValue Vec, MVT ElemTy, in opCastElem() argument
252 if (ty(Vec).getVectorElementType() == ElemTy) in opCastElem()
254 MVT CastTy = tyVector(Vec.getValueType().getSimpleVT(), ElemTy); in opCastElem()
287 HexagonTargetLowering::convertToByteIndex(SDValue ElemIdx, MVT ElemTy, in convertToByteIndex() argument
[all …]
DHexagonSubtarget.h233 MVT ElemTy = VecTy.getVectorElementType();
234 if (!IncludeBool && ElemTy == MVT::i1)
241 if (IncludeBool && ElemTy == MVT::i1) {
256 return llvm::any_of(ElemTypes, [ElemTy] (MVT T) { return ElemTy == T; });
DHexagonISelLowering.h388 MVT tyVector(MVT Ty, MVT ElemTy) const { in tyVector() argument
389 if (Ty.isVector() && Ty.getVectorElementType() == ElemTy) in tyVector()
392 unsigned ElemWidth = ElemTy.getSizeInBits(); in tyVector()
394 return MVT::getVectorVT(ElemTy, TyWidth/ElemWidth); in tyVector()
405 SDValue opCastElem(SDValue Vec, MVT ElemTy, SelectionDAG &DAG) const;
409 SDValue convertToByteIndex(SDValue ElemIdx, MVT ElemTy,
411 SDValue getIndexInWord32(SDValue Idx, MVT ElemTy, SelectionDAG &DAG) const;
/external/llvm-project/clang/lib/AST/Interp/
DProgram.cpp126 QualType ElemTy = PD->getType()->castAs<PointerType>()->getPointeeType(); in getOrCreateDummy() local
127 QualType Ty = ASTCtx.getIncompleteArrayType(ElemTy, ArrayType::Normal, 0); in getOrCreateDummy()
307 QualType ElemTy = ArrayType->getElementType(); in createDescriptor() local
311 if (llvm::Optional<PrimType> T = Ctx.classify(ElemTy)) { in createDescriptor()
323 createDescriptor(D, ElemTy.getTypePtr(), IsConst, IsTemporary); in createDescriptor()
337 if (llvm::Optional<PrimType> T = Ctx.classify(ElemTy)) { in createDescriptor()
342 createDescriptor(D, ElemTy.getTypePtr(), IsConst, IsTemporary); in createDescriptor()
359 PrimType ElemTy = *Ctx.classify(CT->getElementType()); in createDescriptor() local
360 return allocateDescriptor(D, ElemTy, 2, IsConst, IsTemporary, IsMutable); in createDescriptor()
DEvalEmitter.cpp173 QualType ElemTy = AT->getElementType(); in emitRetValue() local
180 if (llvm::Optional<PrimType> T = Ctx.classify(ElemTy)) { in emitRetValue()
183 Ok &= Composite(ElemTy, EP.narrow(), Slot); in emitRetValue()
/external/llvm-project/llvm/lib/Target/Hexagon/
DHexagonISelLoweringHVX.cpp246 for (MVT ElemTy : Subtarget.getHVXElementTypes()) { in initializeHVXLowering() local
247 if (ElemTy == MVT::i1) in initializeHVXLowering()
249 int ElemWidth = ElemTy.getFixedSizeInBits(); in initializeHVXLowering()
252 MVT VecTy = MVT::getVectorVT(ElemTy, N); in initializeHVXLowering()
271 MVT ElemTy = VecTy.getVectorElementType(); in getPreferredHvxVectorAction() local
276 if (ElemTy == MVT::i1 && VecLen == 2*HwLen) in getPreferredHvxVectorAction()
279 if (ElemTy == MVT::i1) in getPreferredHvxVectorAction()
280 ElemTy = MVT::i8; in getPreferredHvxVectorAction()
286 if (llvm::find(Tys, ElemTy) != Tys.end()) { in getPreferredHvxVectorAction()
314 MVT ElemTy = Tys.first.getVectorElementType(); in typeJoin() local
[all …]
DHexagonSubtarget.cpp142 MVT ElemTy = VecTy.getVectorElementType(); in isHVXVectorType() local
143 if (!IncludeBool && ElemTy == MVT::i1) in isHVXVectorType()
150 if (IncludeBool && ElemTy == MVT::i1) { in isHVXVectorType()
162 return llvm::find(ElemTypes, ElemTy) != ElemTypes.end(); in isHVXVectorType()
186 MVT ElemTy = Ty.getVectorElementType().getSimpleVT(); in isTypeForHVX() local
188 while (ElemTy.getSizeInBits() * VecLen > 64) { in isTypeForHVX()
189 MVT SimpleTy = MVT::getVectorVT(ElemTy, VecLen); in isTypeForHVX()
DHexagonISelLowering.h403 MVT tyVector(MVT Ty, MVT ElemTy) const { in tyVector() argument
404 if (Ty.isVector() && Ty.getVectorElementType() == ElemTy) in tyVector()
407 unsigned ElemWidth = ElemTy.getSizeInBits(); in tyVector()
409 return MVT::getVectorVT(ElemTy, TyWidth/ElemWidth); in tyVector()
420 SDValue opCastElem(SDValue Vec, MVT ElemTy, SelectionDAG &DAG) const;
431 SDValue convertToByteIndex(SDValue ElemIdx, MVT ElemTy,
433 SDValue getIndexInWord32(SDValue Idx, MVT ElemTy, SelectionDAG &DAG) const;
/external/clang/lib/AST/
DAPValue.cpp360 QualType ElemTy = Ty->getAs<VectorType>()->getElementType(); in printPretty() local
361 getVectorElt(0).printPretty(Out, Ctx, ElemTy); in printPretty()
364 getVectorElt(i).printPretty(Out, Ctx, ElemTy); in printPretty()
427 QualType ElemTy; in printPretty() local
430 ElemTy = VD->getType(); in printPretty()
435 ElemTy = E->getType(); in printPretty()
441 if (ElemTy->getAs<RecordType>()) { in printPretty()
448 ElemTy = Ctx.getRecordType(RD); in printPretty()
455 ElemTy = VD->getType(); in printPretty()
460 ElemTy = Ctx.getAsArrayType(ElemTy)->getElementType(); in printPretty()
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DDerivedTypes.h275 static bool isValidElementType(Type *ElemTy);
356 static bool isValidElementType(Type *ElemTy);
424 static bool isValidElementType(Type *ElemTy);
465 static bool isValidElementType(Type *ElemTy);
468 static bool isLoadableOrStorableType(Type *ElemTy);
/external/llvm/include/llvm/IR/
DDerivedTypes.h270 static bool isValidElementType(Type *ElemTy);
350 static bool isValidElementType(Type *ElemTy);
421 static bool isValidElementType(Type *ElemTy);
460 static bool isValidElementType(Type *ElemTy);
463 static bool isLoadableOrStorableType(Type *ElemTy);
/external/llvm-project/clang/lib/AST/
DAPValue.cpp655 QualType ElemTy = Ty->castAs<VectorType>()->getElementType(); in printPretty() local
656 getVectorElt(0).printPretty(Out, Policy, ElemTy, Ctx); in printPretty()
659 getVectorElt(i).printPretty(Out, Policy, ElemTy, Ctx); in printPretty()
736 QualType ElemTy = Base.getType(); in printPretty() local
753 if (ElemTy->isRecordType()) { in printPretty()
767 ElemTy = VD->getType(); in printPretty()
772 ElemTy = ElemTy->castAsArrayTypeUnsafe()->getElementType(); in printPretty()
788 QualType ElemTy = AT->getElementType(); in printPretty() local
791 getArrayInitializedElt(0).printPretty(Out, Policy, ElemTy, Ctx); in printPretty()
799 getArrayInitializedElt(I).printPretty(Out, Policy, ElemTy, Ctx); in printPretty()
/external/llvm-project/llvm/lib/ExecutionEngine/
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()
624 Type *ElemTy = VTy->getElementType(); in getConstantValue() local
627 if (ElemTy->isIntegerTy()) in getConstantValue()
630 APInt(ElemTy->getPrimitiveSizeInBits(), 0); in getConstantValue()
916 Type* ElemTy; in getConstantValue() local
923 ElemTy = CDV->getElementType(); in getConstantValue()
[all …]
/external/llvm/lib/ExecutionEngine/
DExecutionEngine.cpp613 Type *ElemTy = STy->getElementType(i); in getConstantValue() local
614 if (ElemTy->isIntegerTy()) in getConstantValue()
616 APInt(ElemTy->getPrimitiveSizeInBits(), 0); in getConstantValue()
617 else if (ElemTy->isAggregateType()) { in getConstantValue()
618 const Constant *ElemUndef = UndefValue::get(ElemTy); in getConstantValue()
628 Type *ElemTy = VTy->getElementType(); in getConstantValue() local
631 if (ElemTy->isIntegerTy()) in getConstantValue()
634 APInt(ElemTy->getPrimitiveSizeInBits(), 0); in getConstantValue()
914 Type* ElemTy; in getConstantValue() local
921 ElemTy = CDV->getElementType(); in getConstantValue()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/
DExecutionEngine.cpp615 Type *ElemTy = STy->getElementType(i); in getConstantValue() local
616 if (ElemTy->isIntegerTy()) in getConstantValue()
618 APInt(ElemTy->getPrimitiveSizeInBits(), 0); in getConstantValue()
619 else if (ElemTy->isAggregateType()) { in getConstantValue()
620 const Constant *ElemUndef = UndefValue::get(ElemTy); in getConstantValue()
630 Type *ElemTy = VTy->getElementType(); in getConstantValue() local
633 if (ElemTy->isIntegerTy()) in getConstantValue()
636 APInt(ElemTy->getPrimitiveSizeInBits(), 0); in getConstantValue()
919 Type* ElemTy; in getConstantValue() local
926 ElemTy = CDV->getElementType(); in getConstantValue()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DDerivedTypes.h335 static bool isValidElementType(Type *ElemTy);
419 static bool isValidElementType(Type *ElemTy);
538 static bool isValidElementType(Type *ElemTy);
601 static bool isValidElementType(Type *ElemTy);
604 static bool isLoadableOrStorableType(Type *ElemTy);
/external/llvm/lib/Target/AMDGPU/
DSITypeRewriter.cpp77 Type *ElemTy = PtrTy->getPointerElementType(); in visitLoadInst() local
79 if (ElemTy == v16i8) { in visitLoadInst()
/external/llvm-project/llvm/include/llvm/IR/
DDerivedTypes.h317 static bool isValidElementType(Type *ElemTy);
381 static bool isValidElementType(Type *ElemTy);
525 static bool isValidElementType(Type *ElemTy);
683 static bool isValidElementType(Type *ElemTy);
686 static bool isLoadableOrStorableType(Type *ElemTy);
/external/llvm/lib/Transforms/Scalar/
DScalarizer.cpp104 VectorLayout() : VecTy(nullptr), ElemTy(nullptr), VecAlign(0), ElemSize(0) {} in VectorLayout()
115 Type *ElemTy; member
361 Layout.ElemTy = Layout.VecTy->getElementType(); in getVectorLayout()
362 if (DL.getTypeSizeInBits(Layout.ElemTy) != in getVectorLayout()
363 DL.getTypeStoreSizeInBits(Layout.ElemTy)) in getVectorLayout()
370 Layout.ElemSize = DL.getTypeStoreSize(Layout.ElemTy); in getVectorLayout()

1234