Home
last modified time | relevance | path

Searched refs:getElementType (Results 1 – 25 of 329) sorted by relevance

12345678910>>...14

/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuilder.h69 Addr.getElementType(), emitRawPointerFromAddress(Addr), Idx0, Idx1, in createConstGEP2_32()
73 Addr.getElementType(), emitRawPointerFromAddress(Addr), Idx0, Idx1, in createConstGEP2_32()
108 return CreateAlignedLoad(Addr.getElementType(),
115 return CreateAlignedLoad(Addr.getElementType(), in CreateLoad()
122 Addr.getElementType(), emitRawPointerFromAddress(Addr),
220 llvm::StructType *ElTy = cast<llvm::StructType>(Addr.getElementType());
225 return Address(CreateStructGEP(Addr.getElementType(), Addr.getBasePointer(),
227 ElTy->getElementType(Index),
242 llvm::ArrayType *ElTy = cast<llvm::ArrayType>(Addr.getElementType());
245 CharUnits::fromQuantity(DL.getTypeAllocSize(ElTy->getElementType()));
[all …]
H A DAddress.h77 llvm::Type *getElementType() const { in getElementType() function
172 ElementType(RawAddr.isValid() ? RawAddr.getElementType() : nullptr), in Address()
207 llvm::Type *getElementType() const { in getElementType() function
261 return Address(NewPointer, getElementType(), getAlignment(), in withPointer()
268 return Address(Pointer.getPointer(), getElementType(), NewAlignment, in withAlignment()
289 ElementType(Addr.isValid() ? Addr.getElementType() : nullptr), in RawAddress()
319 addr.getElementType(), addr.getAlignment()); in castImpl()
H A DABIInfo.cpp67 if (!isHomogeneousAggregate(AT->getElementType(), Base, Members)) in isHomogeneousAggregate()
103 FT = AT->getElementType(); in isHomogeneousAggregate()
131 Ty = CT->getElementType(); in isHomogeneousAggregate()
147 QualType EltTy = VT->getElementType(); in isHomogeneousAggregate()
H A DCGExprComplex.cpp248 QualType Elem = E->getType()->castAs<ComplexType>()->getElementType(); in VisitCXXScalarValueInitExpr()
254 QualType Elem = E->getType()->castAs<ComplexType>()->getElementType(); in VisitImplicitValueInitExpr()
334 QualType ElementType = CT->getElementType(); in getPromotionType()
488 CGF.ConvertType(getComplexType(E->getType())->getElementType()); in VisitExpr()
521 SrcType = SrcType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast()
522 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast()
539 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitScalarToComplexCast()
765 Op.Ty->castAs<ComplexType>()->getElementType()); in EmitComplexBinOpLibCall()
767 Op.Ty->castAs<ComplexType>()->getElementType()); in EmitComplexBinOpLibCall()
769 Op.Ty->castAs<ComplexType>()->getElementType()); in EmitComplexBinOpLibCall()
[all …]
H A DSwiftCallingConv.cpp47 if (auto commonTy = getCommonType(firstVecTy->getElementType(), in getCommonType()
48 secondVecTy->getElementType())) { in getCommonType()
49 return (commonTy == firstVecTy->getElementType() ? first : second); in getCommonType()
79 QualType eltType = arrayType->getElementType(); in addTypedData()
87 auto eltType = complexType->getElementType(); in addTypedData()
337 auto eltTy = vecTy->getElementType(); in addEntry()
691 CGM, vectorSize, vectorTy->getElementType(), in isLegalVectorType()
705 auto eltTy = vectorTy->getElementType(); in splitLegalVectorType()
727 auto eltTy = origVectorTy->getElementType(); in legalizeVectorType()
H A DPatternInit.cpp68 initializationPatternFor(CGM, ArrTy->getElementType())); in initializationPatternFor()
81 Struct[El] = initializationPatternFor(CGM, StructTy->getElementType(El)); in initializationPatternFor()
H A DCGAtomic.cpp110 ValueTy = lvalue.getType()->castAs<VectorType>()->getElementType(); in AtomicInfo()
122 lvalue.getExtVectorAddress().getElementType()) in AtomicInfo()
153 ElTy = LVal.getAddress().getElementType(); in getAtomicAddress()
155 ElTy = LVal.getBitFieldAddress().getElementType(); in getAtomicAddress()
157 ElTy = LVal.getVectorAddress().getElementType(); in getAtomicAddress()
159 ElTy = LVal.getExtVectorAddress().getElementType(); in getAtomicAddress()
311 getAtomicAddress().getElementType()); in CreateTempAlloca()
367 if (!requiresMemSetZero(addr.getElementType())) in emitMemSetZeroIfNecessary()
1359 llvm::Type *Ty = Addr.getElementType(); in convertToAtomicIntPointer()
1431 : getAtomicAddress().getElementType(); in ConvertToValueOrAtomic()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDerivedTypes.h342 Type *getElementType(unsigned N) const { in getElementType() function
348 Type *getTypeAtIndex(unsigned N) const { return getElementType(N); } in getTypeAtIndex()
367 return cast<StructType>(this)->getElementType(N); in getStructElementType()
384 Type *getElementType() const { return ContainedType; } in getElementType() function
436 Type *getElementType() const { return ContainedType; } in getElementType() function
455 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getInteger()
465 auto *EltTy = cast<IntegerType>(VTy->getElementType()); in getExtendedElementVectorType()
474 if (VTy->getElementType()->isFloatingPointTy()) { in getTruncatedElementVectorType()
475 switch(VTy->getElementType()->getTypeID()) { in getTruncatedElementVectorType()
486 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getTruncatedElementVectorType()
[all …]
H A DMatrixBuilder.h114 FixedVectorType::get(OpType->getElementType(), Rows * Columns);
133 FixedVectorType::get(LHSType->getElementType(), LHSRows * RHSColumns);
174 ->getElementType() in CreateAdd()
199 ->getElementType() in CreateSub()
224 ->getElementType() in CreateScalarDiv()
H A DGetElementPtrTypeIterator.h106 return VT->getElementType();
115 CurTy = ATy->getElementType();
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DTypePrinter.cpp266 cast<ArrayType>(UnderlyingType)->getElementType().getTypePtr(), in canPrefixQualifiers()
397 printBefore(T->getElementType(), OS); in printComplexBefore()
401 printAfter(T->getElementType(), OS); in printComplexAfter()
527 printBefore(T->getElementType(), OS); in printConstantArrayBefore()
543 printAfter(T->getElementType(), OS); in printConstantArrayAfter()
549 printBefore(T->getElementType(), OS); in printIncompleteArrayBefore()
555 printAfter(T->getElementType(), OS); in printIncompleteArrayAfter()
561 printBefore(T->getElementType(), OS); in printVariableArrayBefore()
581 printAfter(T->getElementType(), OS); in printVariableArrayAfter()
617 printBefore(T->getElementType(), OS); in printDependentSizedArrayBefore()
[all …]
H A DType.cpp88 getElementType().getBaseTypeIdentifier(); in getBaseTypeIdentifier()
110 return AT->getElementType().isConstant(Ctx); in isConstant()
215 return getNumAddressingBits(Context, getElementType(), getSize()); in getNumAddressingBits()
430 return ATy->getElementType().getTypePtr(); in getArrayElementTypeNoTypeQual()
439 ->getElementType().getTypePtr(); in getArrayElementTypeNoTypeQual()
679 return CT->getElementType()->isFloatingType(); in isComplexType()
700 if (Complex->getElementType()->isIntegerType()) in getAsComplexIntegerType()
968 QualType elementType = recurse(T->getElementType()); in TRIVIAL_TYPE_CLASS()
972 if (elementType.getAsOpaquePtr() == T->getElementType().getAsOpaquePtr()) in TRIVIAL_TYPE_CLASS()
1036 QualType elementType = recurse(T->getElementType()); in VisitConstantArrayType()
[all …]
H A DStmtIterator.cpp31 t = vt->getElementType().getTypePtr(); in FindVA()
41 p = FindVA(p->getElementType().getTypePtr()); in NextVA()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DLowLevelTypeUtils.cpp23 LLT ScalarTy = getLLTForType(*VTy->getElementType(), DL); in getLLTForType()
53 MVT::getIntegerVT(Ty.getElementType().getSizeInBits()), in getMVTForLLT()
60 EVT EltVT = getApproximateEVTForLLT(Ty.getElementType(), DL, Ctx); in getApproximateEVTForLLT()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DARM.cpp470 return isIntegerLikeType(CT->getElementType(), Context, VMContext); in isIntegerLikeType()
546 (VT->getElementType()->isFloat16Type() || in classifyReturnType()
547 VT->getElementType()->isHalfType())) || in classifyReturnType()
549 VT->getElementType()->isBFloat16Type())) in classifyReturnType()
646 (VT->getElementType()->isFloat16Type() || in isIllegalVectorType()
647 VT->getElementType()->isHalfType())) || in isIllegalVectorType()
649 VT->getElementType()->isBFloat16Type())) in isIllegalVectorType()
681 return containsAnyFP16Vectors(AT->getElementType()); in containsAnyFP16Vectors()
700 return (VT->getElementType()->isFloat16Type() || in containsAnyFP16Vectors()
701 VT->getElementType()->isBFloat16Type() || in containsAnyFP16Vectors()
[all …]
H A DRISCV.cpp83 QualType EltTy = RetTy->castAs<ComplexType>()->getElementType(); in computeInfo()
144 QualType EltTy = CTy->getElementType(); in detectFPCCEligibleStructHelper()
156 QualType EltTy = ATy->getElementType(); in detectFPCCEligibleStructHelper()
324 assert(VT->getElementType()->isBuiltinType() && "expected builtin type!"); in coerceVLSVector()
337 EltType = CGT.ConvertType(VT->getElementType()); in coerceVLSVector()
381 QualType EltTy = Ty->castAs<ComplexType>()->getElementType(); in classifyArgumentType()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DMachineIRBuilder.cpp247 assert((ResTy.getElementType() == Op0Ty.getElementType()) && in buildPadVectorWithUndefElements()
251 auto Unmerge = buildUnmerge(Op0Ty.getElementType(), Op0); in buildPadVectorWithUndefElements()
261 buildUndef(Op0Ty.isVector() ? Op0Ty.getElementType() : Op0Ty).getReg(0); in buildPadVectorWithUndefElements()
275 assert(((ResTy.isScalar() && (ResTy == Op0Ty.getElementType())) || in buildDeleteTrailingVectorElements()
277 (ResTy.getElementType() == Op0Ty.getElementType()))) && in buildDeleteTrailingVectorElements()
283 auto Unmerge = buildUnmerge(Op0Ty.getElementType(), Op0); in buildDeleteTrailingVectorElements()
724 LLT EltTy = Res.getLLTTy(*getMRI()).getElementType(); in buildBuildVectorConstant()
744 Res.getLLTTy(*getMRI()).getElementType().getSizeInBits()) in buildBuildVectorTrunc()
752 assert(Src.getLLTTy(*getMRI()) == DstTy.getElementType() && in buildShuffleSplat()
763 assert(Src.getLLTTy(*getMRI()) == Res.getLLTTy(*getMRI()).getElementType() && in buildSplatVector()
[all …]
H A DLegalizeMutations.cpp104 TypeIdx, LLT::fixed_vector(NewNumElements, VecTy.getElementType())); in moreElementsToNextPow2()
110 return std::make_pair(TypeIdx, Query.Types[TypeIdx].getElementType()); in scalarize()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp309 if (!(VTy->getElementType()->isIntegerTy() || in isElementWiseEqual()
310 VTy->getElementType()->isFloatingPointTy())) in isElementWiseEqual()
429 getAllOnesValue(VTy->getElementType())); in getAllOnesValue()
805 Type *EltTy = VTy->getElementType(); in mergeUndefsWith()
1115 return Constant::getNullValue(AT->getElementType()); in getSequentialElement()
1116 return Constant::getNullValue(cast<VectorType>(getType())->getElementType()); in getSequentialElement()
1150 return UndefValue::get(ATy->getElementType()); in getSequentialElement()
1151 return UndefValue::get(cast<VectorType>(getType())->getElementType()); in getSequentialElement()
1185 return PoisonValue::get(ATy->getElementType()); in getSequentialElement()
1186 return PoisonValue::get(cast<VectorType>(getType())->getElementType()); in getSequentialElement()
[all …]
H A DType.cpp62 return ATy->getElementType()->isScalableTy(); in isScalableTy()
152 return NumElements == 0 || ATy->getElementType()->isEmptyTy(); in isEmptyTy()
158 if (!STy->getElementType(i)->isEmptyTy()) in isEmptyTy()
192 TypeSize ETS = VTy->getElementType()->getPrimitiveSizeInBits(); in getPrimitiveSizeInBits()
208 return VTy->getElementType()->getFPMantissaWidth(); in getFPMantissaWidth()
222 return ATy->getElementType()->isSized(Visited); in isSizedDerivedType()
225 return VTy->getElementType()->isSized(Visited); in isSizedDerivedType()
615 return getElementType(Idx); in getTypeAtIndex()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGenTypes/
H A DLowLevelType.h209 return isVector() ? getElementType() : *this; in getScalarType()
244 getElementType()); in divide()
257 getElementType()); in multiplyElements()
290 constexpr LLT getElementType() const { in getElementType() function
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMips16HardFloat.cpp81 if ((ST->getElementType(0)->isFloatTy()) && in whichFPReturnVariant()
82 (ST->getElementType(1)->isFloatTy())) in whichFPReturnVariant()
84 if ((ST->getElementType(0)->isDoubleTy()) && in whichFPReturnVariant()
85 (ST->getElementType(1)->isDoubleTy())) in whichFPReturnVariant()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp388 Type *getElementType() const { return getVectorTy()->getElementType(); } in getElementType() function in __anon821fcdb70111::LowerMatrixIntrinsics::MatrixTy
1127 Type *EltTy = VType->getElementType(); in loadMatrix()
1215 Stride, StoreVal.getStride(), VType->getElementType(), Builder); in storeMatrix()
1218 VType->getElementType(), in storeMatrix()
1347 Type *ElementType = cast<VectorType>(LHS->getType())->getElementType(); in lowerDotProduct()
1375 Type *EltTy = VecTy->getElementType(); in lowerDotProduct()
1502 ConstantFP::get(cast<VectorType>(LHS->getType())->getElementType(), in lowerDotProduct()
1529 Result.getElementType()->getPrimitiveSizeInBits().getFixedValue(), in emitMatrixMultiply()
1535 bool IsFP = Result.getElementType()->isFloatingPointTy(); in emitMatrixMultiply()
1671 auto *ArrayTy = ArrayType::get(VT->getElementType(), VT->getNumElements()); in getNonAliasingPointer()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DGCOVProfiling.cpp1231 {Builder.CreateLoad(StartFileCallArgsTy->getElementType(0), in insertCounterWriteout()
1235 Builder.CreateLoad(StartFileCallArgsTy->getElementType(1), in insertCounterWriteout()
1239 Builder.CreateLoad(StartFileCallArgsTy->getElementType(2), in insertCounterWriteout()
1246 FileInfoTy->getElementType(1), in insertCounterWriteout()
1249 Builder.CreateLoad(FileInfoTy->getElementType(2), in insertCounterWriteout()
1253 FileInfoTy->getElementType(3), in insertCounterWriteout()
1267 {Builder.CreateLoad(EmitFunctionCallArgsTy->getElementType(0), in insertCounterWriteout()
1271 Builder.CreateLoad(EmitFunctionCallArgsTy->getElementType(1), in insertCounterWriteout()
1275 Builder.CreateLoad(EmitFunctionCallArgsTy->getElementType(2), in insertCounterWriteout()
1289 EmitArcsCallArgsTy->getElementType( in insertCounterWriteout()
[all...]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp606 Type *ElemTy = STy->getElementType(i); in getConstantValue()
623 Type *ElemTy = ArrTy->getElementType(); in getConstantValue()
635 Type *ElemTy = VTy->getElementType(); in getConstantValue()
941 ElemTy = CDV->getElementType(); in getConstantValue()
945 ElemTy = VTy->getElementType(); in getConstantValue()
1018 CDV->getElementType()->getPrimitiveSizeInBits(), in getConstantValue()
1071 if (cast<VectorType>(Ty)->getElementType()->isDoubleTy()) in StoreValueToMemory()
1073 if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) in StoreValueToMemory()
1075 if (cast<VectorType>(Ty)->getElementType()->isIntegerTy()) { in StoreValueToMemory()
1127 Type *ElemT = VT->getElementType(); in LoadValueFromMemory()
[all …]

12345678910>>...14