Home
last modified time | relevance | path

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

12

/external/llvm/include/llvm/IR/
DDerivedTypes.h374 static VectorType *getInteger(VectorType *VTy) { in getInteger() argument
375 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getInteger()
377 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger()
378 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger()
385 static VectorType *getExtendedElementVectorType(VectorType *VTy) { in getExtendedElementVectorType() argument
386 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getExtendedElementVectorType()
387 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits * 2); in getExtendedElementVectorType()
388 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType()
395 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { in getTruncatedElementVectorType() argument
396 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getTruncatedElementVectorType()
[all …]
DGlobalObject.h30 GlobalObject(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps,
33 : GlobalValue(Ty, VTy, Ops, NumOps, Linkage, Name, AddressSpace), in GlobalValue() argument
DDataLayout.h544 VectorType *VTy = cast<VectorType>(Ty); in getTypeSizeInBits() local
545 return VTy->getNumElements() * getTypeSizeInBits(VTy->getElementType()); in getTypeSizeInBits()
DGlobalValue.h68 GlobalValue(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, in GlobalValue() argument
70 : Constant(PointerType::get(Ty, AddressSpace), VTy, Ops, NumOps), in GlobalValue()
DValue.h69 Type *VTy; variable
223 Type *getType() const { return VTy; } in getType()
528 VTy = Ty; in mutateType()
DIRBuilder.h1264 Type *VTy = V->getType(); variable
1265 if (VTy->getScalarSizeInBits() < DestTy->getScalarSizeInBits())
1267 if (VTy->getScalarSizeInBits() > DestTy->getScalarSizeInBits())
1278 Type *VTy = V->getType(); variable
1279 if (VTy->getScalarSizeInBits() < DestTy->getScalarSizeInBits())
1281 if (VTy->getScalarSizeInBits() > DestTy->getScalarSizeInBits())
/external/clang/lib/CodeGen/
DCGBuiltin.cpp2187 llvm::VectorType *VTy = cast<llvm::VectorType>(Ty); in EmitNeonRShiftImm() local
2190 int EltSize = VTy->getScalarSizeInBits(); in EmitNeonRShiftImm()
2199 return llvm::ConstantAggregateZero::get(VTy); in EmitNeonRShiftImm()
2204 Shift = ConstantInt::get(VTy->getElementType(), ShiftAmt); in EmitNeonRShiftImm()
2940 llvm::VectorType *VTy = GetNeonType(this, Type); in EmitCommonNeonBuiltinExpr() local
2941 llvm::Type *Ty = VTy; in EmitCommonNeonBuiltinExpr()
2957 if (VTy->getElementType()->isFloatingPointTy()) in EmitCommonNeonBuiltinExpr()
2962 llvm::VectorType::getExtendedElementVectorType(VTy); in EmitCommonNeonBuiltinExpr()
2975 return Builder.CreateTrunc(Ops[0], VTy, "vaddhn"); in EmitCommonNeonBuiltinExpr()
2987 VTy->getScalarSizeInBits() == 32 ? FloatTy : DoubleTy, in EmitCommonNeonBuiltinExpr()
[all …]
/external/llvm/lib/IR/
DValueTypes.cpp109 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy)) in getExtendedSizeInBits() local
110 return VTy->getBitWidth(); in getExtendedSizeInBits()
294 VectorType *VTy = cast<VectorType>(Ty); in getVT() local
296 getVT(VTy->getElementType(), false), VTy->getNumElements()); in getVT()
311 VectorType *VTy = cast<VectorType>(Ty); in getEVT() local
312 return getVectorVT(Ty->getContext(), getEVT(VTy->getElementType(), false), in getEVT()
313 VTy->getNumElements()); in getEVT()
DValue.cpp48 : VTy(checkType(ty)), UseList(nullptr), SubclassID(scid), in Value()
55 assert((VTy->isFirstClassType() || VTy->isVoidTy() || VTy->isStructTy()) && in Value()
59 assert((VTy->isFirstClassType() || VTy->isVoidTy()) && in Value()
77 dbgs() << "While deleting: " << *VTy << " %" << getName() << "\n"; in ~Value()
528 LLVMContext &Value::getContext() const { return VTy->getContext(); } in getContext()
DFunction.cpp790 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType() local
791 return VectorType::getExtendedElementVectorType(VTy); in DecodeFixedType()
797 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType() local
798 return VectorType::getTruncatedElementVectorType(VTy); in DecodeFixedType()
810 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) { in DecodeFixedType() local
811 return VectorType::get(EltTy, VTy->getNumElements()); in DecodeFixedType()
821 VectorType *VTy = dyn_cast<VectorType>(Ty); in DecodeFixedType() local
822 if (!VTy) in DecodeFixedType()
824 Type *EltTy = VTy->getVectorElementType(); in DecodeFixedType()
826 VTy->getNumElements()); in DecodeFixedType()
DConstants.cpp244 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getIntegerValue() local
245 C = ConstantVector::getSplat(VTy->getNumElements(), C); in getIntegerValue()
261 VectorType *VTy = cast<VectorType>(Ty); in getAllOnesValue() local
262 return ConstantVector::getSplat(VTy->getNumElements(), in getAllOnesValue()
263 getAllOnesValue(VTy->getElementType())); in getAllOnesValue()
544 VectorType *VTy = dyn_cast<VectorType>(Ty); in getTrue() local
545 if (!VTy) { in getTrue()
549 assert(VTy->getElementType()->isIntegerTy(1) && in getTrue()
551 return ConstantVector::getSplat(VTy->getNumElements(), in getTrue()
556 VectorType *VTy = dyn_cast<VectorType>(Ty); in getFalse() local
[all …]
DType.cpp47 if (auto *VTy = dyn_cast<VectorType>(this)) in getScalarType() local
48 return VTy->getElementType(); in getScalarType()
140 if (auto *VTy = dyn_cast<VectorType>(this)) in getFPMantissaWidth() local
141 return VTy->getElementType()->getFPMantissaWidth(); in getFPMantissaWidth()
159 if (auto *VTy = dyn_cast<VectorType>(this)) in isSizedDerivedType() local
160 return VTy->getElementType()->isSized(Visited); in isSizedDerivedType()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp111 Type *VTy = V->getType(); in SimplifyDemandedUseBits() local
113 (!VTy->isIntOrIntVectorTy() || VTy->getScalarSizeInBits() == BitWidth) && in SimplifyDemandedUseBits()
136 return UndefValue::get(VTy); in SimplifyDemandedUseBits()
178 return Constant::getNullValue(VTy); in SimplifyDemandedUseBits()
255 return Constant::getIntegerValue(VTy, RHSKnownOne & LHSKnownOne); in SimplifyDemandedUseBits()
268 return Constant::getNullValue(VTy); in SimplifyDemandedUseBits()
293 return Constant::getIntegerValue(VTy, RHSKnownOne | LHSKnownOne); in SimplifyDemandedUseBits()
341 return Constant::getIntegerValue(VTy, IKnownOne); in SimplifyDemandedUseBits()
367 Constant *AndC = Constant::getIntegerValue(VTy, in SimplifyDemandedUseBits()
518 CastInst *NewCast = new ZExtInst(I->getOperand(0), VTy, I->getName()); in SimplifyDemandedUseBits()
[all …]
DInstCombineCalls.cpp1004 Type *VTy = VectorType::get(Builder->getFloatTy(), in visitCallInst() local
1007 PointerType::getUnqual(VTy)); in visitCallInst()
1025 Type *VTy = VectorType::get(Builder->getFloatTy(), in visitCallInst() local
1027 Value *TOp = Builder->CreateFPTrunc(II->getArgOperand(0), VTy); in visitCallInst()
1028 Type *OpPtrTy = PointerType::getUnqual(VTy); in visitCallInst()
1393 auto *VTy = cast<VectorType>(V->getType()); in visitCallInst() local
1394 unsigned NumElts = VTy->getNumElements(); in visitCallInst()
/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp488 Type *VTy = V->getType(); in Act() local
492 if (VTy->isVectorTy()) { in Act()
493 VectorType *VecTy = cast<VectorType>(VTy); in Act()
498 if (VTy == DestTy) return; in Act()
501 if (VTy->isPointerTy()) { in Act()
508 unsigned VSize = VTy->getScalarType()->getPrimitiveSizeInBits(); in Act()
518 if (VTy->getScalarType()->isIntegerTy() && in Act()
533 if (VTy->getScalarType()->isFloatingPointTy() && in Act()
542 if (VTy->getScalarType()->isIntegerTy() && in Act()
552 if (VTy->getScalarType()->isFloatingPointTy() && in Act()
/external/llvm/lib/Transforms/Vectorize/
DBBVectorize.cpp477 if (VectorType *VTy = dyn_cast<VectorType>(ElemTy)) { in getVecTypeForPair() local
478 numElem = VTy->getNumElements(); in getVecTypeForPair()
483 if (VectorType *VTy = dyn_cast<VectorType>(Elem2Ty)) { in getVecTypeForPair() local
484 numElem += VTy->getNumElements(); in getVecTypeForPair()
650 Type *VTy = IPtr->getType()->getPointerElementType(); in getPairPtrInfo() local
651 int64_t VTyTSS = (int64_t)DL.getTypeStoreSize(VTy); in getPairPtrInfo()
654 if (VTy != VTy2 && Offset < 0) { in getPairPtrInfo()
1954 Type *VTy = getVecTypeForPair(Ty1, Ty2); in findBestDAGFor() local
1959 VTy, VTy); in findBestDAGFor()
1961 if (VTy->getVectorNumElements() == 2) { in findBestDAGFor()
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCCTRLoops.cpp370 MVT VTy = TLI->getSimpleValueType(DL, CI->getArgOperand(0)->getType(), in mightUseCTR() local
372 if (VTy == MVT::Other) in mightUseCTR()
375 if (TLI->isOperationLegalOrCustom(Opcode, VTy)) in mightUseCTR()
377 else if (VTy.isVector() && in mightUseCTR()
378 TLI->isOperationLegalOrCustom(Opcode, VTy.getScalarType())) in mightUseCTR()
/external/llvm/lib/Analysis/
DVectorUtils.cpp369 VectorType *VTy = cast<VectorType>(V->getType()); in findScalarElement() local
370 unsigned Width = VTy->getNumElements(); in findScalarElement()
372 return UndefValue::get(VTy->getElementType()); in findScalarElement()
397 return UndefValue::get(VTy->getElementType()); in findScalarElement()
DConstantFolding.cpp63 VectorType *VTy = dyn_cast<VectorType>(C->getType()); in FoldBitCast() local
64 if (!VTy) in FoldBitCast()
67 unsigned NumSrcElts = VTy->getNumElements(); in FoldBitCast()
68 Type *SrcEltTy = VTy->getElementType(); in FoldBitCast()
1792 VectorType *VTy, in ConstantFoldVectorCall() argument
1795 SmallVector<Constant *, 4> Result(VTy->getNumElements()); in ConstantFoldVectorCall()
1797 Type *Ty = VTy->getElementType(); in ConstantFoldVectorCall()
1799 for (unsigned I = 0, E = VTy->getNumElements(); I != E; ++I) { in ConstantFoldVectorCall()
1830 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in ConstantFoldCall() local
1831 return ConstantFoldVectorCall(Name, F->getIntrinsicID(), VTy, Operands, TLI); in ConstantFoldCall()
DValueTracking.cpp3167 Type *VTy = V->getType(); in isDereferenceableFromAttribute() local
3168 Type *Ty = VTy->getPointerElementType(); in isDereferenceableFromAttribute()
3172 APInt Offset(DL.getTypeStoreSizeInBits(VTy), 0); in isDereferenceableFromAttribute()
3245 Type *VTy = GEP->getType(); in isDereferenceableAndAlignedPointer() local
3246 Type *Ty = VTy->getPointerElementType(); in isDereferenceableAndAlignedPointer()
3257 APInt Offset(DL.getPointerTypeSizeInBits(VTy), 0); in isDereferenceableAndAlignedPointer()
3295 Type *VTy = V->getType(); in isDereferenceableAndAlignedPointer() local
3296 Type *Ty = VTy->getPointerElementType(); in isDereferenceableAndAlignedPointer()
3303 APInt Offset(DL.getTypeStoreSizeInBits(VTy), 0); in isDereferenceableAndAlignedPointer()
/external/llvm/lib/Transforms/Scalar/
DSROA.cpp1807 if (auto *VTy = dyn_cast<VectorType>(Ty)) { in isVectorPromotionViable() local
1808 CandidateTys.push_back(VTy); in isVectorPromotionViable()
1810 CommonEltTy = VTy->getElementType(); in isVectorPromotionViable()
1811 else if (CommonEltTy != VTy->getElementType()) in isVectorPromotionViable()
1835 [](VectorType *VTy) { in isVectorPromotionViable() argument
1836 return !VTy->getElementType()->isIntegerTy(); in isVectorPromotionViable()
1863 for (VectorType *VTy : CandidateTys) { in isVectorPromotionViable()
1864 assert(VTy->getElementType() == CommonEltTy && in isVectorPromotionViable()
1866 assert(VTy == CandidateTys[0] && in isVectorPromotionViable()
1874 auto CheckVectorTypeForPromotion = [&](VectorType *VTy) { in isVectorPromotionViable() argument
[all …]
DScalarReplAggregates.cpp780 if (VectorType *VTy = dyn_cast<VectorType>(FromType)) { in ConvertScalar_ExtractValue() local
789 unsigned EltSize = DL.getTypeAllocSizeInBits(VTy->getElementType()); in ConvertScalar_ExtractValue()
913 if (VectorType *VTy = dyn_cast<VectorType>(AllocaType)) { in ConvertScalar_InsertValue() local
914 uint64_t VecSize = DL.getTypeAllocSizeInBits(VTy); in ConvertScalar_InsertValue()
923 Type *EltTy = VTy->getElementType(); in ConvertScalar_InsertValue()
/external/llvm/lib/ExecutionEngine/
DExecutionEngine.cpp632 auto* VTy = dyn_cast<VectorType>(C->getType()); in getConstantValue() local
633 Type *ElemTy = VTy->getElementType(); in getConstantValue()
634 unsigned int elemNum = VTy->getNumElements(); in getConstantValue()
928 VectorType* VTy = dyn_cast<VectorType>(C->getType()); in getConstantValue() local
929 elemNum = VTy->getNumElements(); in getConstantValue()
930 ElemTy = VTy->getElementType(); in getConstantValue()
/external/llvm/lib/Target/X86/
DX86TargetTransformInfo.cpp954 if (VectorType *VTy = dyn_cast<VectorType>(Src)) { in getMemoryOpCost() local
955 unsigned NumElem = VTy->getVectorNumElements(); in getMemoryOpCost()
959 if (NumElem == 3 && VTy->getScalarSizeInBits() == 32) in getMemoryOpCost()
964 if (NumElem == 3 && VTy->getScalarSizeInBits() == 64) in getMemoryOpCost()
970 int Cost = BaseT::getMemoryOpCost(Opcode, VTy->getScalarType(), Alignment, in getMemoryOpCost()
/external/clang/lib/AST/
DASTDiagnostic.cpp300 const VectorType *VTy = Ty->getAs<VectorType>(); in ConvertTypeToDiagnosticString() local
303 const char *Values = VTy->getNumElements() > 1 ? "values" : "value"; in ConvertTypeToDiagnosticString()
304 OS << "'" << S << "' (vector of " << VTy->getNumElements() << " '" in ConvertTypeToDiagnosticString()
305 << VTy->getElementType().getAsString(Context.getPrintingPolicy()) in ConvertTypeToDiagnosticString()

12