Searched refs:ElemTy (Results 1 - 25 of 35) sorted by relevance

12

/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ADT/
H A DEquivalenceClasses.h57 template <class ElemTy>
73 ElemTy Data;
77 ECValue(const ElemTy &Elt)
107 const ElemTy &getData() const { return Data; }
117 /// TheMapping - This implicitly provides a mapping from ElemTy values to the
163 iterator findValue(const ElemTy &V) const {
170 const ElemTy &getLeaderValue(const ElemTy &V) const {
179 const ElemTy &getOrInsertLeaderValue(const ElemTy
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/
H A DType.cpp511 bool StructType::isValidElementType(Type *ElemTy) { argument
512 if (auto *VTy = dyn_cast<VectorType>(ElemTy))
514 return !ElemTy->isVoidTy() && !ElemTy->isLabelTy() &&
515 !ElemTy->isMetadataTy() && !ElemTy->isFunctionTy() &&
516 !ElemTy->isTokenTy();
599 bool ArrayType::isValidElementType(Type *ElemTy) { argument
600 if (auto *VTy = dyn_cast<VectorType>(ElemTy))
602 return !ElemTy
628 isValidElementType(Type *ElemTy) argument
663 isValidElementType(Type *ElemTy) argument
668 isLoadableOrStorableType(Type *ElemTy) argument
[all...]
H A DDataLayout.cpp806 int64_t DataLayout::getIndexedOffsetInType(Type *ElemTy,
811 GTI = gep_type_begin(ElemTy, Indices),
812 GTE = gep_type_end(ElemTy, Indices);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelLoweringHVX.cpp221 MVT ElemTy = Tys.first.getVectorElementType(); local
222 return MVT::getVectorVT(ElemTy, Tys.first.getVectorNumElements() +
237 MVT ElemTy = VecTy.getVectorElementType(); local
238 MVT NewElemTy = MVT::getIntegerVT(ElemTy.getSizeInBits() * Factor);
244 MVT ElemTy = VecTy.getVectorElementType(); local
245 MVT NewElemTy = MVT::getIntegerVT(ElemTy.getSizeInBits() / Factor);
250 HexagonTargetLowering::opCastElem(SDValue Vec, MVT ElemTy, argument
252 if (ty(Vec).getVectorElementType() == ElemTy)
254 MVT CastTy = tyVector(Vec.getValueType().getSimpleVT(), ElemTy);
287 HexagonTargetLowering::convertToByteIndex(SDValue ElemIdx, MVT ElemTy, argument
303 getIndexInWord32(SDValue Idx, MVT ElemTy, SelectionDAG &DAG) const argument
325 MVT ElemTy = OpTy.getVectorElementType(); local
355 MVT ElemTy = VecTy.getVectorElementType(); local
666 MVT ElemTy = ty(VecV).getVectorElementType(); local
709 MVT ElemTy = ty(VecV).getVectorElementType(); local
773 MVT ElemTy = VecTy.getVectorElementType(); local
882 MVT ElemTy = VecTy.getVectorElementType(); local
1145 MVT ElemTy = ty(VecV).getVectorElementType(); local
1161 MVT ElemTy = ty(VecV).getVectorElementType(); local
1180 MVT ElemTy = SrcTy.getVectorElementType(); local
1197 MVT ElemTy = VecTy.getVectorElementType(); local
1212 MVT ElemTy = ty(InpV).getVectorElementType(); local
1222 MVT ElemTy = ty(InpV).getVectorElementType(); local
1232 MVT ElemTy = ty(InpV).getVectorElementType(); local
1248 MVT ElemTy = ty(InpV).getVectorElementType(); local
1280 MVT ElemTy = ResTy.getVectorElementType(); local
1334 MVT ElemTy = ResTy.getVectorElementType(); local
[all...]
H A 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; });
H A DHexagonISelLowering.h388 MVT tyVector(MVT Ty, MVT ElemTy) const {
389 if (Ty.isVector() && Ty.getVectorElementType() == ElemTy)
392 unsigned ElemWidth = ElemTy.getSizeInBits();
394 return MVT::getVectorVT(ElemTy, TyWidth/ElemWidth);
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;
H A DHexagonTargetTransformInfo.cpp268 Type *ElemTy = Val->isVectorTy() ? cast<VectorType>(Val)->getElementType() local
273 if (ElemTy->isIntegerTy(32))
H A DHexagonISelLowering.cpp873 MVT ElemTy = OpTy.getVectorElementType(); local
874 assert(ElemTy.isScalarInteger());
875 MVT WideTy = MVT::getVectorVT(MVT::getIntegerVT(2*ElemTy.getSizeInBits()),
931 MVT ElemTy = OpTy.getVectorElementType(); local
932 assert(ElemTy.isScalarInteger());
933 MVT WideTy = MVT::getVectorVT(MVT::getIntegerVT(2*ElemTy.getSizeInBits()),
1927 MVT ElemTy = VT.getVectorElementType(); local
1938 if (llvm::find(Tys, ElemTy) != Tys.end()) {
1945 if (ElemTy == MVT::i1 && VecLen == 2*HwLen)
1950 if (ElemTy
2155 MVT ElemTy = VecTy.getVectorElementType(); local
2184 MVT ElemTy = VecTy.getVectorElementType(); local
2267 MVT ElemTy = VecTy.getVectorElementType(); local
2591 MVT ElemTy = VecTy.getVectorElementType(); local
2649 MVT ElemTy = ty(Vec).getVectorElementType(); local
[all...]
H A DHexagonISelDAGToDAGHVX.cpp816 MVT getSingleVT(MVT ElemTy) const {
817 unsigned NumElems = HwLen / (ElemTy.getSizeInBits()/8);
818 return MVT::getVectorVT(ElemTy, NumElems);
821 MVT getPairVT(MVT ElemTy) const {
822 unsigned NumElems = (2*HwLen) / (ElemTy.getSizeInBits()/8);
823 return MVT::getVectorVT(ElemTy, NumElems);
1365 MVT ElemTy = ResTy.getVectorElementType();
1366 assert(ElemTy == MVT::i8);
1391 MVT LegalTy = Lower.getTypeToTransformTo(Ctx, ElemTy).getSimpleVT();
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/Interp/
H A DProgram.cpp126 QualType ElemTy = PD->getType()->castAs<PointerType>()->getPointeeType(); local
127 QualType Ty = ASTCtx.getIncompleteArrayType(ElemTy, ArrayType::Normal, 0);
307 QualType ElemTy = ArrayType->getElementType(); local
311 if (llvm::Optional<PrimType> T = Ctx.classify(ElemTy)) {
323 createDescriptor(D, ElemTy.getTypePtr(), IsConst, IsTemporary);
337 if (llvm::Optional<PrimType> T = Ctx.classify(ElemTy)) {
342 createDescriptor(D, ElemTy.getTypePtr(), IsConst, IsTemporary);
359 PrimType ElemTy = *Ctx.classify(CT->getElementType()); local
360 return allocateDescriptor(D, ElemTy, 2, IsConst, IsTemporary, IsMutable);
H A DEvalEmitter.cpp173 QualType ElemTy = AT->getElementType();
180 if (llvm::Optional<PrimType> T = Ctx.classify(ElemTy)) {
183 Ok &= Composite(ElemTy, EP.narrow(), Slot);
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
H A DAPValue.cpp496 QualType ElemTy = Ty->castAs<VectorType>()->getElementType(); local
497 getVectorElt(0).printPretty(Out, Ctx, ElemTy);
500 getVectorElt(i).printPretty(Out, Ctx, ElemTy);
578 QualType ElemTy; local
581 ElemTy = VD->getType();
584 ElemTy = Base.getTypeInfoType();
589 ElemTy = Base.getDynamicAllocType();
596 ElemTy = E->getType();
602 if (ElemTy->getAs<RecordType>()) {
608 ElemTy
636 QualType ElemTy = AT->getElementType(); local
[all...]
H A DRecordLayoutBuilder.cpp442 QualType ElemTy = Context.getBaseElementType(AT); local
443 const RecordType *RT = ElemTy->getAs<RecordType>();
546 QualType ElemTy = Context.getBaseElementType(AT); local
547 const RecordType *RT = ElemTy->getAs<RecordType>();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp615 Type *ElemTy = STy->getElementType(i); local
616 if (ElemTy->isIntegerTy())
618 APInt(ElemTy->getPrimitiveSizeInBits(), 0);
619 else if (ElemTy->isAggregateType()) {
620 const Constant *ElemUndef = UndefValue::get(ElemTy);
630 Type *ElemTy = VTy->getElementType(); local
633 if (ElemTy->isIntegerTy())
636 APInt(ElemTy->getPrimitiveSizeInBits(), 0);
919 Type* ElemTy; local
926 ElemTy
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A 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);
H A DDataLayout.h555 int64_t getIndexedOffsetInType(Type *ElemTy, ArrayRef<Value *> Indices) const;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp167 Type *ElemTy = nullptr; member in struct:__anon2755::VectorLayout
446 Layout.ElemTy = Layout.VecTy->getElementType();
447 if (!DL.typeSizeEqualsStoreSize(Layout.ElemTy))
454 Layout.ElemSize = DL.getTypeStoreSize(Layout.ElemTy);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp530 Type *ElemTy = GV->getValueType(); local
533 DL.getTypeStoreSize(ElemTy)) {
/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaInit.cpp79 const QualType ElemTy = local
85 if (ElemTy->isChar8Type())
91 if (ElemTy->isCharType())
96 if (ElemTy->isChar8Type())
98 if (IsWideCharCompatible(ElemTy, Context))
107 if (Context.typesAreCompatible(Context.Char16Ty, ElemTy))
109 if (ElemTy->isCharType() || ElemTy->isChar8Type())
111 if (IsWideCharCompatible(ElemTy, Context))
115 if (Context.typesAreCompatible(Context.Char32Ty, ElemTy))
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp804 Constant *StripPtrCastKeepAS(Constant *Ptr, Type *&ElemTy) { argument
810 ElemTy = NewPtrTy->getPointerElementType();
814 NewPtrTy = ElemTy->getPointerTo(OldPtrTy->getAddressSpace());
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDecl.cpp1054 llvm::Type *ElemTy = STy->getElementType();
1058 OpValue = llvm::Constant::getNullValue(ElemTy);
1069 if (NewElemTy == ElemTy)
H A DTargetInfo.cpp6053 llvm::Type* ElemTy;
6058 ElemTy = llvm::Type::getInt32Ty(getVMContext());
6061 ElemTy = llvm::Type::getInt64Ty(getVMContext());
6065 return ABIArgInfo::getDirect(llvm::ArrayType::get(ElemTy, SizeRegs));
8395 llvm::Type *ElemTy = StrTy->getElementType(i);
8397 switch (ElemTy->getTypeID()) {
8399 addStruct(ElemOffset, cast<llvm::StructType>(ElemTy));
8402 addFloat(ElemOffset, ElemTy, 32);
8405 addFloat(ElemOffset, ElemTy, 64);
8408 addFloat(ElemOffset, ElemTy, 12
[all...]
H A DCGExprConstant.cpp623 llvm::Type *ElemTy = Emitter.CGM.getTypes().ConvertTypeForMem(ElemType); local
651 Const.condense(Offset, ElemTy);
H A DCGOpenMPRuntimeNVPTX.cpp4650 QualType ElemTy = CurField->getType();
4653 Src, CGF.ConvertTypeForMem(CGFContext.getPointerType(ElemTy)));
4656 CGFContext.getPointerType(ElemTy),
4660 Arg = castValueToType(CGF, Arg, ElemTy, CGFContext.getUIntPtrType(),
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp2157 QualType ElemTy = Context->getBaseElementType(T); local
2158 return needToScanForQualifiers(ElemTy);
3639 QualType ElemTy = Context->getBaseElementType(Type); local
3640 return RewriteObjCFieldDeclType(ElemTy, Result);

Completed in 302 milliseconds

12