Home
last modified time | relevance | path

Searched refs:getElementType (Results 1 - 25 of 222) sorted by relevance

123456789

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/
H A DDerivedTypes.h290 Type *getElementType(unsigned N) const { in getElementType() function in llvm::StructType
310 return cast<StructType>(this)->getElementType(N); in getStructElementType()
336 Type *getElementType() const { return ContainedType; } in getElementType() function in llvm::SequentialType
383 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getInteger()
392 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getExtendedElementVectorType()
400 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getTruncatedElementVectorType()
413 return VectorType::get(VTy->getElementType(), NumElts/2); in getHalfElementsVectorType()
420 return VectorType::get(VTy->getElementType(), NumElts*2); in getDoubleElementsVectorType()
429 return getNumElements() * getElementType()->getPrimitiveSizeInBits(); in getBitWidth()
462 Type *getElementType() cons function in llvm::PointerType
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
H A DDerivedTypes.h168 /// PointerType::getElementType() to access the function's type, since that's
351 Type *getElementType(unsigned N) const { in getElementType() function in llvm::StructType
371 return cast<StructType>(this)->getElementType(N); in getStructElementType()
399 Type *getElementType() const { return ContainedType; } in getElementType() function in llvm::SequentialType
469 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getInteger()
479 auto *EltTy = cast<IntegerType>(VTy->getElementType()); in getExtendedElementVectorType()
488 if (VTy->getElementType()->isFloatingPointTy()) { in getTruncatedElementVectorType()
489 switch(VTy->getElementType()->getTypeID()) { in getTruncatedElementVectorType()
500 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getTruncatedElementVectorType()
525 return VectorType::get(VTy->getElementType(), EltCn in getHalfElementsVectorType()
598 Type *getElementType() const { return PointeeTy; } getElementType() function in llvm::PointerType
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/FuzzMutate/
H A DRandomIRBuilder.cpp57 cast<PointerType>(Ptr->getType())->getElementType(), Ptr, "L", &*IP); in newSource()
144 if (!PtrTy->getElementType()->isSized() || in findPointer()
145 !PtrTy->getElementType()->isFirstClassType()) in findPointer()
149 return Pred.matches(Srcs, UndefValue::get(PtrTy->getElementType())); in findPointer()
/third_party/vk-gl-cts/framework/randomshaders/
H A DrsgVariableValue.hpp97 ConstStridedValueAccess component (int compNdx) const { return ConstStridedValueAccess(getType().getElementType(), m_value + Stride*compNdx); } in component()
98 ConstStridedValueAccess arrayElement (int elementNdx) const { return ConstStridedValueAccess(getType().getElementType(), m_value + Stride*getType().getElementScalarOffset(elementNdx)); } in arrayElement()
130 StridedValueAccess component (int compNdx) { return StridedValueAccess(this->getType().getElementType(), this->m_value + Stride*compNdx); } in component()
131 StridedValueAccess arrayElement (int elementNdx) { return StridedValueAccess(this->getType().getElementType(), this->m_value + Stride*this->getType().getElementScalarOffset(elementNdx)); } in arrayElement()
225 return ConstValueRangeAccess(m_type->getElementType(), m_min + compNdx, m_max + compNdx); in component()
231 return ConstValueRangeAccess(m_type->getElementType(), m_min + offset, m_max + offset); in arrayElement()
256 return ValueRangeAccess(m_type->getElementType(), m_min + compNdx, m_max + compNdx); in component()
262 return ValueRangeAccess(m_type->getElementType(), m_min + offset, m_max + offset); in arrayElement()
H A DrsgVariableType.cpp127 return elementNdx * getElementType().getScalarSize(); in getElementScalarOffset()
180 const VariableType& VariableType::getElementType (void) const in getElementType() function in rsg::VariableType
200 throw Exception("VariableType::getElementType(): unsupported type"); in getElementType()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
H A DAArch64LegalizerInfo.cpp68 (Query.Types[0].getElementType() != s64 || in AArch64LegalizerInfo()
72 LLT EltTy = Query.Types[0].getElementType(); in AArch64LegalizerInfo()
162 return Ty.isVector() && Ty.getElementType() == s16 && in AArch64LegalizerInfo()
243 const LLT EltTy = ValTy.getElementType(); in AArch64LegalizerInfo()
327 return Ty.isVector() && !SrcTy.getElementType().isPointer() && in AArch64LegalizerInfo()
328 Ty.getElementType() != SrcTy.getElementType(); in AArch64LegalizerInfo()
473 const LLT &EltTy = Ty.getElementType(); in AArch64LegalizerInfo()
544 const LLT &EltTy = Query.Types[1].getElementType(); in AArch64LegalizerInfo()
701 if (!ValTy.isVector() || !ValTy.getElementType() in legalizeLoadStore()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
H A DType.cpp101 return NumElements == 0 || ATy->getElementType()->isEmptyTy(); in isEmptyTy()
107 if (!STy->getElementType(i)->isEmptyTy()) in isEmptyTy()
140 return VTy->getElementType()->getFPMantissaWidth(); in getFPMantissaWidth()
153 return ATy->getElementType()->isSized(Visited); in isSizedDerivedType()
156 return VTy->getElementType()->isSized(Visited); in isSizedDerivedType()
541 return STy->getElementType(Idx); in getTypeAtIndex()
544 return cast<SequentialType>(this)->getElementType(); in getTypeAtIndex()
550 return STy->getElementType(Idx); in getTypeAtIndex()
553 return cast<SequentialType>(this)->getElementType(); in getTypeAtIndex()
H A DConstantFold.cpp57 Type *DstEltTy = DstTy->getElementType(); in BitCastConstantVector()
111 && PTy->getElementType()->isSized()) { in FoldBitCast()
116 Type *ElTy = PTy->getElementType(); in FoldBitCast()
117 while (ElTy != DPTy->getElementType()) { in FoldBitCast()
120 ElTy = STy->getElementType(0); in FoldBitCast()
124 ElTy = STy->getElementType(); in FoldBitCast()
131 if (ElTy == DPTy->getElementType()) in FoldBitCast()
133 return ConstantExpr::getInBoundsGetElementPtr(PTy->getElementType(), in FoldBitCast()
356 Constant *E = getFoldedSizeOf(ATy->getElementType(), DestTy, true); in getFoldedSizeOf()
368 getFoldedSizeOf(STy->getElementType( in getFoldedSizeOf()
[all...]
H A DConstants.cpp47 if (CV->getElementType()->isFloatingPointTy() && CV->isSplat()) in isNegativeZeroValue()
73 if (CV->getElementType()->isFloatingPointTy() && CV->isSplat()) in isZeroValue()
118 if (CV->getElementType()->isFloatingPointTy()) in isAllOnesValue()
144 if (CV->getElementType()->isFloatingPointTy()) in isOneValue()
194 if (CV->getElementType()->isFloatingPointTy()) in isMinSignedValue()
385 getAllOnesValue(VTy->getElementType())); in getAllOnesValue()
1077 assert(V[i]->getType() == Ty->getElementType() && in getImpl()
1893 Type *DstElemTy = DstScalarTy->getElementType(); in getAddrSpaceCast()
1894 if (SrcScalarTy->getElementType() != DstElemTy) { in getAddrSpaceCast()
2080 Ty = cast<PointerType>(C->getType()->getScalarType())->getElementType(); in getGetElementPtr()
2501 Type *ConstantDataSequential::getElementType() const { getElementType() function in ConstantDataSequential
[all...]
H A DIRBuilder.cpp63 if (PT->getElementType()->isIntegerTy(8)) in getCastedInt8PtrValue()
480 Type *DataTy = PtrTy->getElementType(); in CreateMaskedLoad()
500 Type *DataTy = PtrTy->getElementType(); in CreateMaskedStore()
532 auto PtrTy = cast<PointerType>(PtrsTy->getElementType()); in CreateMaskedGather()
534 Type *DataTy = VectorType::get(PtrTy->getElementType(), NumElts); in CreateMaskedGather()
566 auto PtrTy = cast<PointerType>(PtrsTy->getElementType()); in CreateMaskedScatter()
568 PtrTy->getElementType() == DataTy->getElementType() && in CreateMaskedScatter()
614 assert(isa<FunctionType>(FuncPtrType->getElementType()) && in CreateGCStatepointCallCommon()
665 assert(isa<FunctionType>(FuncPtrType->getElementType()) in CreateGCStatepointInvokeCommon()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
H A DLowLevelType.cpp23 LLT ScalarTy = getLLTForType(*VTy->getElementType(), DL); in getLLTForType()
50 MVT::getIntegerVT(Ty.getElementType().getSizeInBits()), in getMVTForLLT()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
H A DGCOVProfiling.cpp1108 {Builder.CreateLoad(StartFileCallArgsTy->getElementType(0),
1111 Builder.CreateLoad(StartFileCallArgsTy->getElementType(1),
1114 Builder.CreateLoad(StartFileCallArgsTy->getElementType(2),
1120 Builder.CreateLoad(FileInfoTy->getElementType(1),
1123 Builder.CreateLoad(FileInfoTy->getElementType(2),
1126 Builder.CreateLoad(FileInfoTy->getElementType(3),
1139 {Builder.CreateLoad(EmitFunctionCallArgsTy->getElementType(0),
1142 Builder.CreateLoad(EmitFunctionCallArgsTy->getElementType(1),
1145 Builder.CreateLoad(EmitFunctionCallArgsTy->getElementType(2),
1148 Builder.CreateLoad(EmitFunctionCallArgsTy->getElementType(
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
H A DLegalizeMutations.cpp63 LLT::vector(NewNumElements, VecTy.getElementType()));
69 return std::make_pair(TypeIdx, Query.Types[TypeIdx].getElementType());
/third_party/vk-gl-cts/modules/gles31/functional/
H A Des31fProgramInterfaceDefinitionUtil.cpp189 if (type.getElementType().isBasicType() &&
195 else if (type.getElementType().isBasicType() ||
198 generateVariableTypeResourceNames(resources, name + "[0]", type.getElementType(), childFlags);
204 generateVariableTypeResourceNames(resources, name + "[" + de::toString(ndx) + "]", type.getElementType(), childFlags);
320 return collectNamedStructureDefinitions(dst, type.getElementType());
469 varType.getElementType());
480 varType.getElementType());
495 varType.getElementType());
506 varType.getElementType());
520 varType.getElementType());
[all...]
H A Des31fProgramInterfaceDefinition.cpp75 return containsMatchingSubtype(varType.getElementType(), predicate); in containsMatchingSubtype()
156 return isIllegalVertexOutput(varType.getElementType(), insideAStruct, true); in isIllegalVertexOutput()
197 return isIllegalFragmentOutput(varType.getElementType(), true); in isIllegalFragmentOutput()
213 return isTypeIntegerOrContainsIntegers(varType.getElementType()); in isTypeIntegerOrContainsIntegers()
430 collectStructPtrs(dst, type.getElementType()); in collectStructPtrs()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp564 Value *EltPtr = createElementPtr(Ptr, VType->getElementType(), Builder); in LowerLoad()
570 VType->getElementType(), Builder); in LowerLoad()
571 Value *Column = createColumnLoad(GEP, VType->getElementType(), Builder); in LowerLoad()
592 Value *EltPtr = createElementPtr(Ptr, VType->getElementType(), Builder); in LowerStore()
597 Shape.NumRows, VType->getElementType(), Builder); in LowerStore()
598 createColumnStore(C.value(), GEP, VType->getElementType(), Builder); in LowerStore()
705 auto *EltType = cast<VectorType>(MatMul->getType())->getElementType(); in LowerMultiply()
766 VectorType::get(VectorTy->getElementType(), ArgShape.NumColumns)); in LowerTranspose()
H A DScalarizer.cpp254 Ty = PtrTy->getElementType(); in Scatterer()
272 Type *ElTy = PtrTy->getElementType()->getVectorElementType(); in operator []()
446 Layout.ElemTy = Layout.VecTy->getElementType(); in getVectorLayout()
676 Res[I] = Builder.CreateCast(CI.getOpcode(), Op0[I], VT->getElementType(), in visitCastInst()
697 Res[I] = Builder.CreateBitCast(Op0[I], DstVT->getElementType(), in visitBitCastInst()
703 Type *MidTy = VectorType::get(DstVT->getElementType(), FanOut); in visitBitCastInst()
721 Type *MidTy = VectorType::get(SrcVT->getElementType(), FanIn); in visitBitCastInst()
729 Res[ResI] = Builder.CreateBitCast(V, DstVT->getElementType(), in visitBitCastInst()
751 Res[I] = UndefValue::get(VT->getElementType()); in visitShuffleVectorInst()
773 Res[I] = Builder.CreatePHI(VT->getElementType(), NumOp in visitPHINode()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
H A DAMDGPUCallLowering.cpp211 OrigTy.getElementType()); in getMultipleType()
232 PartSize > SrcTy.getElementType().getSizeInBits()) { in unpackRegsToOrigType()
234 auto UnmergeToEltTy = B.buildUnmerge(SrcTy.getElementType(), in unpackRegsToOrigType()
500 assert(LLTy.getElementType() == PartLLT.getElementType()); in packSplitRegsToOrigType()
511 LLT RoundedDestTy = LLT::vector(RoundedElts, PartLLT.getElementType()); in packSplitRegsToOrigType()
523 LLT DstEltTy = LLTy.getElementType(); in packSplitRegsToOrigType()
527 LLT RealDstEltTy = MRI.getType(OrigRegs[0]).getElementType(); in packSplitRegsToOrigType()
H A DAMDGPURewriteOutArguments.cpp220 return DL->getTypeSizeInBits(VT0->getElementType()) == in isVec3ToVec4Shuffle()
221 DL->getTypeSizeInBits(VT1->getElementType()); in isVec3ToVec4Shuffle()
405 EffectiveEltTy = CT->getElementType(0); in runOnFunction()
455 auto *EltTy = ArgType->getElementType(); in runOnFunction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
H A DHexagonTargetTransformInfo.cpp51 if (!cast<VectorType>(VecTy)->getElementType()->isIntegerTy()) in isTypeForHVX()
184 VecTy->getElementType()->isFloatingPointTy() ? FloatFactor : 1; in getMemoryOpCost()
268 Type *ElemTy = Val->isVectorTy() ? cast<VectorType>(Val)->getElementType() in getVectorInstrCost()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp144 Type *AgTy = cast<PointerType>(I->getType())->getElementType(); in doPromotion()
200 cast<PointerType>(I->getType()->getScalarType())->getElementType(), in doPromotion()
261 Type *AgTy = cast<PointerType>(I->getType())->getElementType(); in doPromotion()
270 Args.push_back(IRB.CreateLoad(STy->getElementType(i), Idx, in doPromotion()
296 ElTy = ElPTy->getElementType(); in doPromotion()
389 Type *AgTy = cast<PointerType>(I->getType())->getElementType(); in doPromotion()
793 return isDenselyPacked(seqTy->getElementType(), DL); in isDenselyPacked()
800 Type *ElTy = StructTy->getElementType(i); in isDenselyPacked()
936 Type *AgTy = cast<PointerType>(PtrArg->getType())->getElementType(); in promoteArguments()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
H A DMips16HardFloat.cpp80 if ((ST->getElementType(0)->isFloatTy()) && in whichFPReturnVariant()
81 (ST->getElementType(1)->isFloatTy())) in whichFPReturnVariant()
83 if ((ST->getElementType(0)->isDoubleTy()) && in whichFPReturnVariant()
84 (ST->getElementType(1)->isDoubleTy())) in whichFPReturnVariant()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizerInfo.h827 T.isVector() ? T.getElementType() : T); in minScalarSameAs()
866 return VecTy.isVector() && VecTy.getElementType() == EltTy &&
872 TypeIdx, LLT::vector(MinElements, VecTy.getElementType()));
884 return VecTy.isVector() && VecTy.getElementType() == EltTy &&
889 LLT NewTy = LLT::scalarOrVector(MaxElements, VecTy.getElementType());
901 assert(MinTy.getElementType() == MaxTy.getElementType() &&
904 const LLT &EltTy = MinTy.getElementType();
/third_party/vk-gl-cts/modules/glshared/
H A DglsLifetimeTests.cpp276 Binder& binder = *getElementType().binder(); in initAttachment()
294 << "// Drew to " << getElementType().getName() << " " << element in initAttachment()
324 << "// Read pixels from " << m_attacher.getElementType().getName() << " " << element in drawAttachment()
1070 << "// Result of query for " << attacher.getElementType().getName() in getAttachment()
1079 Type& elemType = m_attacher.getElementType(); in testDeletedNames()
1151 Type& elementType = attacher.getElementType(); in iterate()
1232 Type& elementType = attacher.getElementType(); in iterate()
1340 os << attacher.getElementType().getName() << "_" << attacher.getContainerType().getName(); in attacherName()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp93 Type *CastElTy = PTy->getElementType(); in PromoteCastOfAllocation()
482 if (VecType->getElementType() != DestType) { in foldVecTruncToExtElt()
1872 if (SrcTy->getElementType() != DestTy->getElementType()) { in optimizeVectorResizeWithIntegerBitCasts()
1877 if (SrcTy->getElementType()->getPrimitiveSizeInBits() != in optimizeVectorResizeWithIntegerBitCasts()
1878 DestTy->getElementType()->getPrimitiveSizeInBits()) in optimizeVectorResizeWithIntegerBitCasts()
1881 SrcTy = VectorType::get(DestTy->getElementType(), SrcTy->getNumElements()); in optimizeVectorResizeWithIntegerBitCasts()
2073 DestVecTy->getElementType(), in optimizeIntegerToVectorInsertions()
2400 Type *DstElTy = DstPTy->getElementType(); in visitBitCast()
2401 Type *SrcElTy = SrcPTy->getElementType(); in visitBitCast()
[all...]

Completed in 35 milliseconds

123456789