Home
last modified time | relevance | path

Searched refs:VTy (Results 1 – 25 of 44) sorted by relevance

12

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DDerivedTypes.h468 static VectorType *getInteger(VectorType *VTy) { in getInteger() argument
469 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getInteger()
471 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger()
472 return VectorType::get(EltTy, VTy->getElementCount()); in getInteger()
477 static VectorType *getExtendedElementVectorType(VectorType *VTy) { in getExtendedElementVectorType() argument
478 assert(VTy->isIntOrIntVectorTy() && "VTy expected to be a vector of ints."); in getExtendedElementVectorType()
479 auto *EltTy = cast<IntegerType>(VTy->getElementType()); in getExtendedElementVectorType()
480 return VectorType::get(EltTy->getExtendedType(), VTy->getElementCount()); in getExtendedElementVectorType()
486 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { in getTruncatedElementVectorType() argument
488 if (VTy->getElementType()->isFloatingPointTy()) { in getTruncatedElementVectorType()
[all …]
DGlobalObject.h46 GlobalObject(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps,
49 : GlobalValue(Ty, VTy, Ops, NumOps, Linkage, Name, AddressSpace), in GlobalValue() argument
DDataLayout.h657 VectorType *VTy = cast<VectorType>(Ty); in getTypeSizeInBits() local
658 auto EltCnt = VTy->getElementCount(); in getTypeSizeInBits()
660 getTypeSizeInBits(VTy->getElementType()).getFixedSize(); in getTypeSizeInBits()
DGlobalIndirectSymbol.h30 GlobalIndirectSymbol(Type *Ty, ValueTy VTy, unsigned AddressSpace,
DValue.h77 Type *VTy; variable
246 Type *getType() const { return VTy; } in getType()
664 VTy = Ty; in mutateType()
DGlobalValue.h76 GlobalValue(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, in GlobalValue() argument
78 : Constant(PointerType::get(Ty, AddressSpace), VTy, Ops, NumOps), in GlobalValue()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DDerivedTypes.h382 static VectorType *getInteger(VectorType *VTy) { in getInteger() argument
383 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getInteger()
385 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger()
386 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger()
391 static VectorType *getExtendedElementVectorType(VectorType *VTy) { in getExtendedElementVectorType() argument
392 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getExtendedElementVectorType()
393 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits * 2); in getExtendedElementVectorType()
394 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType()
399 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { in getTruncatedElementVectorType() argument
400 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getTruncatedElementVectorType()
[all …]
DGlobalObject.h32 GlobalObject(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps,
35 : GlobalValue(Ty, VTy, Ops, NumOps, Linkage, Name, AddressSpace), in GlobalValue() argument
DValue.h72 Type *VTy; variable
230 Type *getType() const { return VTy; } in getType()
558 VTy = Ty; in mutateType()
DGlobalValue.h77 GlobalValue(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, in GlobalValue() argument
79 : Constant(PointerType::get(Ty, AddressSpace), VTy, Ops, NumOps), in GlobalValue()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DInterleavedLoadCombinePass.cpp638 VectorInfo(const VectorInfo &c) : VTy(c.VTy) { in VectorInfo()
676 VectorType *const VTy; member
678 VectorInfo(VectorType *VTy) in VectorInfo()
679 : BB(nullptr), PV(nullptr), LIs(), Is(), SVI(nullptr), VTy(VTy) { in VectorInfo()
680 EI = new ElementInfo[VTy->getNumElements()]; in VectorInfo()
685 unsigned getDimension() const { return VTy->getNumElements(); } in getDimension()
695 unsigned Size = DL.getTypeAllocSize(VTy->getElementType()); in isInterleaved()
738 VectorType *VTy = dyn_cast<VectorType>(Op->getType()); in computeFromBCI() local
739 if (!VTy) in computeFromBCI()
743 if (Result.VTy->getNumElements() % VTy->getNumElements()) in computeFromBCI()
[all …]
DLowLevelType.cpp21 if (auto VTy = dyn_cast<VectorType>(&Ty)) { in getLLTForType() local
22 auto NumElements = VTy->getNumElements(); in getLLTForType()
23 LLT ScalarTy = getLLTForType(*VTy->getElementType(), DL); in getLLTForType()
DValueTypes.cpp109 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy)) in getExtendedSizeInBits() local
110 return VTy->getPrimitiveSizeInBits(); in getExtendedSizeInBits()
342 VectorType *VTy = cast<VectorType>(Ty); in getVT() local
344 getVT(VTy->getElementType(), /*HandleUnknown=*/ false), in getVT()
345 VTy->getElementCount()); in getVT()
360 VectorType *VTy = cast<VectorType>(Ty); in getEVT() local
362 getEVT(VTy->getElementType(), /*HandleUnknown=*/ false), in getEVT()
363 VTy->getElementCount()); in getEVT()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DFunction.cpp634 } else if (VectorType* VTy = dyn_cast<VectorType>(Ty)) { in getMangledTypeStr() local
635 if (VTy->isScalable()) in getMangledTypeStr()
637 Result += "v" + utostr(VTy->getVectorNumElements()) + in getMangledTypeStr()
638 getMangledTypeStr(VTy->getVectorElementType()); in getMangledTypeStr()
1000 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType() local
1001 return VectorType::getExtendedElementVectorType(VTy); in DecodeFixedType()
1007 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType() local
1008 return VectorType::getTruncatedElementVectorType(VTy); in DecodeFixedType()
1017 VectorType *VTy = dyn_cast<VectorType>(Ty); in DecodeFixedType() local
1018 assert(VTy && "Expected an argument of Vector Type"); in DecodeFixedType()
[all …]
DType.cpp127 const VectorType *VTy = cast<VectorType>(this); in getPrimitiveSizeInBits() local
128 return TypeSize(VTy->getBitWidth(), VTy->isScalable()); in getPrimitiveSizeInBits()
139 if (auto *VTy = dyn_cast<VectorType>(this)) in getFPMantissaWidth() local
140 return VTy->getElementType()->getFPMantissaWidth(); in getFPMantissaWidth()
155 if (auto *VTy = dyn_cast<VectorType>(this)) in isSizedDerivedType() local
156 return VTy->getElementType()->isSized(Visited); in isSizedDerivedType()
512 if (auto *VTy = dyn_cast<VectorType>(ElemTy)) in isValidElementType() local
513 return !VTy->isScalable(); in isValidElementType()
600 if (auto *VTy = dyn_cast<VectorType>(ElemTy)) in isValidElementType() local
601 return !VTy->isScalable(); in isValidElementType()
DValue.cpp54 : VTy(checkType(ty)), UseList(nullptr), SubclassID(scid), in Value()
63 assert((VTy->isFirstClassType() || VTy->isVoidTy() || VTy->isStructTy()) && in Value()
67 assert((VTy->isFirstClassType() || VTy->isVoidTy()) && in Value()
87 dbgs() << "While deleting: " << *VTy << " %" << getName() << "\n"; in ~Value()
744 LLVMContext &Value::getContext() const { return VTy->getContext(); } in getContext()
DConstants.cpp366 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getIntegerValue() local
367 C = ConstantVector::getSplat(VTy->getNumElements(), C); in getIntegerValue()
383 VectorType *VTy = cast<VectorType>(Ty); in getAllOnesValue() local
384 return ConstantVector::getSplat(VTy->getNumElements(), in getAllOnesValue()
385 getAllOnesValue(VTy->getElementType())); in getAllOnesValue()
677 if (auto *VTy = dyn_cast<VectorType>(Ty)) in getTrue() local
678 return ConstantVector::getSplat(VTy->getNumElements(), TrueC); in getTrue()
685 if (auto *VTy = dyn_cast<VectorType>(Ty)) in getFalse() local
686 return ConstantVector::getSplat(VTy->getNumElements(), FalseC); in getFalse()
708 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get() local
[all …]
DGlobals.cpp427 GlobalIndirectSymbol::GlobalIndirectSymbol(Type *Ty, ValueTy VTy, in GlobalIndirectSymbol() argument
430 : GlobalValue(Ty, VTy, &Op<0>(), 1, Linkage, Name, AddressSpace) { in GlobalIndirectSymbol()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyTargetTransformInfo.cpp55 if (auto *VTy = dyn_cast<VectorType>(Ty)) { in getArithmeticInstrCost() local
65 Cost = VTy->getNumElements() * in getArithmeticInstrCost()
67 getArithmeticInstrCost(Opcode, VTy->getElementType()) + in getArithmeticInstrCost()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp124 Type *VTy = V->getType(); in SimplifyDemandedUseBits() local
126 (!VTy->isIntOrIntVectorTy() || VTy->getScalarSizeInBits() == BitWidth) && in SimplifyDemandedUseBits()
137 return UndefValue::get(VTy); in SimplifyDemandedUseBits()
184 return Constant::getIntegerValue(VTy, IKnownOne); in SimplifyDemandedUseBits()
218 return Constant::getIntegerValue(VTy, IKnownOne); in SimplifyDemandedUseBits()
252 return Constant::getIntegerValue(VTy, IKnownOne); in SimplifyDemandedUseBits()
277 Constant *AndC = Constant::getIntegerValue(VTy, in SimplifyDemandedUseBits()
445 CastInst *NewCast = new ZExtInst(I->getOperand(0), VTy, I->getName()); in SimplifyDemandedUseBits()
767 return ConstantInt::getNullValue(VTy); in SimplifyDemandedUseBits()
785 return Constant::getIntegerValue(VTy, Known.One); in SimplifyDemandedUseBits()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DSROA.cpp1889 if (auto *VTy = dyn_cast<VectorType>(Ty)) { in isVectorPromotionViable() local
1893 if (DL.getTypeSizeInBits(VTy) != DL.getTypeSizeInBits(V)) { in isVectorPromotionViable()
1898 CandidateTys.push_back(VTy); in isVectorPromotionViable()
1900 CommonEltTy = VTy->getElementType(); in isVectorPromotionViable()
1901 else if (CommonEltTy != VTy->getElementType()) in isVectorPromotionViable()
1926 [](VectorType *VTy) { in isVectorPromotionViable() argument
1927 return !VTy->getElementType()->isIntegerTy(); in isVectorPromotionViable()
1955 for (VectorType *VTy : CandidateTys) { in isVectorPromotionViable()
1956 assert(VTy->getElementType() == CommonEltTy && in isVectorPromotionViable()
1958 assert(VTy == CandidateTys[0] && in isVectorPromotionViable()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DConstantFolding.cpp108 if (auto *VTy = dyn_cast<VectorType>(C->getType())) { in FoldBitCast() local
111 unsigned NumSrcElts = VTy->getNumElements(); in FoldBitCast()
112 Type *SrcEltTy = VTy->getElementType(); in FoldBitCast()
2393 VectorType *VTy, in ConstantFoldVectorCall() argument
2398 SmallVector<Constant *, 4> Result(VTy->getNumElements()); in ConstantFoldVectorCall()
2400 Type *Ty = VTy->getElementType(); in ConstantFoldVectorCall()
2407 Constant *VecData = ConstantFoldLoadFromConstPtr(SrcPtr, VTy, DL); in ConstantFoldVectorCall()
2410 for (unsigned I = 0, E = VTy->getNumElements(); I != E; ++I) { in ConstantFoldVectorCall()
2436 if (NewElements.size() != VTy->getNumElements()) in ConstantFoldVectorCall()
2441 for (unsigned I = 0, E = VTy->getNumElements(); I != E; ++I) { in ConstantFoldVectorCall()
[all …]
DVectorUtils.cpp264 VectorType *VTy = cast<VectorType>(V->getType()); in findScalarElement() local
265 unsigned Width = VTy->getNumElements(); in findScalarElement()
267 return UndefValue::get(VTy->getElementType()); in findScalarElement()
292 return UndefValue::get(VTy->getElementType()); in findScalarElement()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/AggressiveInstCombine/
DTruncInstCombine.cpp279 if (auto *VTy = dyn_cast<VectorType>(V->getType())) in getReducedType() local
280 return VectorType::get(Ty, VTy->getNumElements()); in getReducedType()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/
DExecutionEngine.cpp629 auto* VTy = cast<VectorType>(C->getType()); in getConstantValue() local
630 Type *ElemTy = VTy->getElementType(); in getConstantValue()
631 unsigned int elemNum = VTy->getNumElements(); in getConstantValue()
928 auto* VTy = cast<VectorType>(C->getType()); in getConstantValue() local
929 elemNum = VTy->getNumElements(); in getConstantValue()
930 ElemTy = VTy->getElementType(); in getConstantValue()

12