/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | DerivedTypes.h | 290 Type *getElementType(unsigned N) const { in getElementType() function 310 return cast<StructType>(this)->getElementType(N); in getStructElementType() 336 Type *getElementType() const { return ContainedType; } in getElementType() function 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() const { return PointeeTy; } in getElementType() function
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | DerivedTypes.h | 351 Type *getElementType(unsigned N) const { in getElementType() function 371 return cast<StructType>(this)->getElementType(N); in getStructElementType() 399 Type *getElementType() const { return ContainedType; } in getElementType() function 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(), EltCnt/2); in getHalfElementsVectorType() 534 return VectorType::get(VTy->getElementType(), EltCnt*2); in getDoubleElementsVectorType() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/FuzzMutate/ |
D | RandomIRBuilder.cpp | 57 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/ |
D | rsgVariableValue.hpp | 97 …t (int compNdx) const { return ConstStridedValueAccess(getType().getElementType(), m_value + S… in component() 98 … (int elementNdx) const { return ConstStridedValueAccess(getType().getElementType(), m_value + S… in arrayElement() 130 …mponent (int compNdx) { return StridedValueAccess(this->getType().getElementType(), this->m_val… in component() 131 …lement (int elementNdx) { return StridedValueAccess(this->getType().getElementType(), this->m_val… 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()
|
D | rsgVariableType.cpp | 127 return elementNdx * getElementType().getScalarSize(); in getElementScalarOffset() 180 const VariableType& VariableType::getElementType (void) const in getElementType() function in rsg::VariableType
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64LegalizerInfo.cpp | 68 (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().isPointer() || in legalizeLoadStore() 702 ValTy.getElementType().getAddressSpace() != 0) { in legalizeLoadStore() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | LowLevelType.cpp | 23 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/IR/ |
D | Type.cpp | 101 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()
|
D | ConstantFold.cpp | 57 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(0), DestTy, true); in getFoldedSizeOf() [all …]
|
D | IRBuilder.cpp | 63 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()
|
D | Constants.cpp | 47 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() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/ |
D | LegalizeMutations.cpp | 63 LLT::vector(NewNumElements, VecTy.getElementType())); in moreElementsToNextPow2() 69 return std::make_pair(TypeIdx, Query.Types[TypeIdx].getElementType()); in scalarize()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | Scalarizer.cpp | 254 Ty = PtrTy->getElementType(); in INITIALIZE_PASS_DEPENDENCY() 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(), NumOps, in visitPHINode() [all …]
|
D | LowerMatrixIntrinsics.cpp | 564 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()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | GCOVProfiling.cpp | 1108 {Builder.CreateLoad(StartFileCallArgsTy->getElementType(0), in insertCounterWriteout() 1111 Builder.CreateLoad(StartFileCallArgsTy->getElementType(1), in insertCounterWriteout() 1114 Builder.CreateLoad(StartFileCallArgsTy->getElementType(2), in insertCounterWriteout() 1120 Builder.CreateLoad(FileInfoTy->getElementType(1), in insertCounterWriteout() 1123 Builder.CreateLoad(FileInfoTy->getElementType(2), in insertCounterWriteout() 1126 Builder.CreateLoad(FileInfoTy->getElementType(3), in insertCounterWriteout() 1139 {Builder.CreateLoad(EmitFunctionCallArgsTy->getElementType(0), in insertCounterWriteout() 1142 Builder.CreateLoad(EmitFunctionCallArgsTy->getElementType(1), in insertCounterWriteout() 1145 Builder.CreateLoad(EmitFunctionCallArgsTy->getElementType(2), in insertCounterWriteout() 1148 Builder.CreateLoad(EmitFunctionCallArgsTy->getElementType(3), in insertCounterWriteout() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUCallLowering.cpp | 211 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()
|
D | AMDGPURewriteOutArguments.cpp | 220 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/vk-gl-cts/modules/gles31/functional/ |
D | es31fProgramInterfaceDefinitionUtil.cpp | 189 if (type.getElementType().isBasicType() && in generateVariableTypeResourceNames() 195 else if (type.getElementType().isBasicType() || in generateVariableTypeResourceNames() 198 generateVariableTypeResourceNames(resources, name + "[0]", type.getElementType(), childFlags); in generateVariableTypeResourceNames() 204 …eResourceNames(resources, name + "[" + de::toString(ndx) + "]", type.getElementType(), childFlags); in generateVariableTypeResourceNames() 320 return collectNamedStructureDefinitions(dst, type.getElementType()); in collectNamedStructureDefinitions() 469 varType.getElementType()); in writeVariableReadAccumulateExpression() 480 varType.getElementType()); in writeVariableReadAccumulateExpression() 495 varType.getElementType()); in writeVariableReadAccumulateExpression() 506 varType.getElementType()); in writeVariableReadAccumulateExpression() 520 varType.getElementType()); in writeVariableReadAccumulateExpression() [all …]
|
D | es31fProgramInterfaceDefinition.cpp | 75 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/IPO/ |
D | ArgumentPromotion.cpp | 144 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/ |
D | Mips16HardFloat.cpp | 80 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/lib/Transforms/Coroutines/ |
D | CoroInternal.h | 147 return cast<IntegerType>(FrameTy->getElementType(SwitchFieldIndex::Index)); in getIndexType() 156 return cast<PointerType>(FrameTy->getElementType(SwitchFieldIndex::Resume)); in getSwitchResumePointerType()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/ |
D | ExecutionEngine.cpp | 615 Type *ElemTy = STy->getElementType(i); in getConstantValue() 630 Type *ElemTy = VTy->getElementType(); in getConstantValue() 926 ElemTy = CDV->getElementType(); in getConstantValue() 930 ElemTy = VTy->getElementType(); in getConstantValue() 1003 CDV->getElementType()->getPrimitiveSizeInBits(), in getConstantValue() 1051 if (cast<VectorType>(Ty)->getElementType()->isDoubleTy()) in StoreValueToMemory() 1053 if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) in StoreValueToMemory() 1055 if (cast<VectorType>(Ty)->getElementType()->isIntegerTy()) { in StoreValueToMemory() 1101 Type *ElemT = VT->getElementType(); in LoadValueFromMemory() 1140 getDataLayout().getTypeAllocSize(CP->getType()->getElementType()); in InitializeMemory() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/ |
D | HexagonTargetTransformInfo.cpp | 51 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/include/llvm/DebugInfo/PDB/ |
D | PDBSymbolTypeArray.h | 32 FORWARD_SYMBOL_ID_METHOD_WITH_NAME(getType, getElementType)
|