Home
last modified time | relevance | path

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

12

/external/llvm/include/llvm/
DDerivedTypes.h379 static VectorType *getInteger(VectorType *VTy) { in getInteger() argument
380 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getInteger()
382 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger()
383 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger()
390 static VectorType *getExtendedElementVectorType(VectorType *VTy) { in getExtendedElementVectorType() argument
391 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getExtendedElementVectorType()
392 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits * 2); in getExtendedElementVectorType()
393 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType()
400 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { in getTruncatedElementVectorType() argument
401 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getTruncatedElementVectorType()
[all …]
DValue.h76 Type *VTy; variable
105 Type *getType() const { return VTy; } in getType()
316 VTy = Ty; in mutateType()
/external/llvm/lib/VMCore/
DValue.cpp45 SubclassOptionalData(0), SubclassData(0), VTy((Type*)checkType(ty)), in Value()
49 assert((VTy->isFirstClassType() || VTy->isVoidTy() || VTy->isStructTy()) && in Value()
52 assert((VTy->isFirstClassType() || VTy->isVoidTy()) && in Value()
69 dbgs() << "While deleting: " << *VTy << " %" << getName() << "\n"; in ~Value()
468 LLVMContext &Value::getContext() const { return VTy->getContext(); } in getContext()
DValueTypes.cpp92 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy)) in getExtendedSizeInBits() local
93 return VTy->getBitWidth(); in getExtendedSizeInBits()
223 VectorType *VTy = cast<VectorType>(Ty); in getEVT() local
224 return getVectorVT(Ty->getContext(), getEVT(VTy->getElementType(), false), in getEVT()
225 VTy->getNumElements()); in getEVT()
DConstants.cpp135 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getIntegerValue() local
136 C = ConstantVector::getSplat(VTy->getNumElements(), C); in getIntegerValue()
152 VectorType *VTy = cast<VectorType>(Ty); in getAllOnesValue() local
153 return ConstantVector::getSplat(VTy->getNumElements(), in getAllOnesValue()
154 getAllOnesValue(VTy->getElementType())); in getAllOnesValue()
394 VectorType *VTy = dyn_cast<VectorType>(Ty); in getTrue() local
395 if (!VTy) { in getTrue()
399 assert(VTy->getElementType()->isIntegerTy(1) && in getTrue()
401 return ConstantVector::getSplat(VTy->getNumElements(), in getTrue()
406 VectorType *VTy = dyn_cast<VectorType>(Ty); in getFalse() local
[all …]
DType.cpp45 if (VectorType *VTy = dyn_cast<VectorType>(this)) in getScalarType() local
46 return VTy->getElementType(); in getScalarType()
160 if (const VectorType *VTy = dyn_cast<VectorType>(this)) in getFPMantissaWidth() local
161 return VTy->getElementType()->getFPMantissaWidth(); in getFPMantissaWidth()
182 if (const VectorType *VTy = dyn_cast<VectorType>(this)) in isSizedDerivedType() local
183 return VTy->getElementType()->isSized(); in isSizedDerivedType()
DConstantFold.cpp1137 } else if (VectorType *VTy = dyn_cast<VectorType>(C1->getType())) { in ConstantFoldBinaryInstruction() local
1140 Type *Ty = IntegerType::get(VTy->getContext(), 32); in ConstantFoldBinaryInstruction()
1141 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) { in ConstantFoldBinaryInstruction()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp106 Type *VTy = V->getType(); in SimplifyDemandedUseBits() local
107 assert((TD || !VTy->isPointerTy()) && in SimplifyDemandedUseBits()
109 assert((!TD || TD->getTypeSizeInBits(VTy->getScalarType()) == BitWidth) && in SimplifyDemandedUseBits()
110 (!VTy->isIntOrIntVectorTy() || in SimplifyDemandedUseBits()
111 VTy->getScalarSizeInBits() == BitWidth) && in SimplifyDemandedUseBits()
134 return UndefValue::get(VTy); in SimplifyDemandedUseBits()
174 return Constant::getNullValue(VTy); in SimplifyDemandedUseBits()
241 return Constant::getNullValue(VTy); in SimplifyDemandedUseBits()
322 Constant *AndC = Constant::getIntegerValue(VTy, in SimplifyDemandedUseBits()
467 CastInst *NewCast = new ZExtInst(I->getOperand(0), VTy, I->getName()); in SimplifyDemandedUseBits()
[all …]
DInstCombineVectorOps.cpp61 VectorType *VTy = cast<VectorType>(V->getType()); in FindScalarElement() local
62 unsigned Width = VTy->getNumElements(); in FindScalarElement()
64 return UndefValue::get(VTy->getElementType()); in FindScalarElement()
89 return UndefValue::get(VTy->getElementType()); in FindScalarElement()
DInstCombineCasts.cpp960 if (VectorType *VTy = dyn_cast<VectorType>(CI.getType())) { in transformSExtICmp() local
963 Type *EltTy = VTy->getElementType(); in transformSExtICmp()
966 Constant *VSh = ConstantInt::get(VTy, EltTy->getScalarSizeInBits()-1); in transformSExtICmp()
DInstCombineCompares.cpp61 if (VectorType *VTy = dyn_cast<VectorType>(In1->getType())) { in AddWithOverflow() local
62 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) { in AddWithOverflow()
96 if (VectorType *VTy = dyn_cast<VectorType>(In1->getType())) { in SubWithOverflow() local
97 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) { in SubWithOverflow()
/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp476 Type *VTy = V->getType(); in Act() local
480 if (VTy->isVectorTy()) { in Act()
481 VectorType *VecTy = cast<VectorType>(VTy); in Act()
486 if (VTy == DestTy) return; in Act()
489 if (VTy->isPointerTy()) { in Act()
496 unsigned VSize = VTy->getScalarType()->getPrimitiveSizeInBits(); in Act()
506 if (VTy->getScalarType()->isIntegerTy() && in Act()
521 if (VTy->getScalarType()->isFloatingPointTy() && in Act()
530 if (VTy->getScalarType()->isIntegerTy() && in Act()
540 if (VTy->getScalarType()->isFloatingPointTy() && in Act()
/external/clang/lib/CodeGen/
DCGBuiltin.cpp1468 llvm::VectorType *VTy = cast<llvm::VectorType>(Ty); in EmitNeonShiftVector() local
1469 llvm::Constant *C = ConstantInt::get(VTy->getElementType(), neg ? -SV : SV); in EmitNeonShiftVector()
1470 return llvm::ConstantVector::getSplat(VTy->getNumElements(), C); in EmitNeonShiftVector()
1702 llvm::VectorType *VTy = GetNeonType(this, Type); in EmitARMBuiltinExpr() local
1703 llvm::Type *Ty = VTy; in EmitARMBuiltinExpr()
1818 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) in EmitARMBuiltinExpr()
1842 if (VTy->getElementType()->isIntegerTy(64)) { in EmitARMBuiltinExpr()
1849 Ty = llvm::VectorType::get(VTy->getElementType(), 1); in EmitARMBuiltinExpr()
1862 Ty = llvm::PointerType::getUnqual(VTy->getElementType()); in EmitARMBuiltinExpr()
1871 Ty = llvm::PointerType::getUnqual(VTy->getElementType()); in EmitARMBuiltinExpr()
[all …]
DCodeGenFunction.cpp1218 llvm::Type *VTy = V->getType(); in EmitFieldAnnotations() local
1228 if (VTy != CGM.Int8PtrTy) in EmitFieldAnnotations()
1231 V = Builder.CreateBitCast(V, VTy); in EmitFieldAnnotations()
DCGExpr.cpp984 const llvm::VectorType *VTy = cast<llvm::VectorType>(EltTy); in EmitLoadOfScalar() local
987 if (VTy->getNumElements() == 3) { in EmitLoadOfScalar()
990 llvm::VectorType *vec4Ty = llvm::VectorType::get(VTy->getElementType(), in EmitLoadOfScalar()
1473 if (const VectorType *VTy = Dst.getType()->getAs<VectorType>()) { in EmitStoreThroughExtVectorComponentLValue() local
1474 unsigned NumSrcElts = VTy->getNumElements(); in EmitStoreThroughExtVectorComponentLValue()
DCGDebugInfo.cpp732 llvm::DIType VTy = getOrCreateType(V->getType(), VUnit); in CollectRecordStaticVars() local
734 if (VTy.getTag() != llvm::dwarf::DW_TAG_enumeration_type) { in CollectRecordStaticVars()
737 VTy, true, CI); in CollectRecordStaticVars()
DCGExprScalar.cpp777 llvm::VectorType *VTy = cast<llvm::VectorType>(V1->getType()); in VisitShuffleVectorExpr() local
781 if (VTy->getNumElements() == 3 && Idx > 3) in VisitShuffleVectorExpr()
/external/llvm/include/llvm/Target/
DTargetLowering.h547 VectorType *VTy = cast<VectorType>(Ty); variable
548 Type *Elm = VTy->getElementType();
553 VTy->getNumElements());
/external/llvm/lib/Transforms/Vectorize/
DBBVectorize.cpp387 if (VectorType *VTy = dyn_cast<VectorType>(ElemTy)) { in getVecTypeForPair() local
388 numElem = VTy->getNumElements(); in getVecTypeForPair()
393 if (VectorType *VTy = dyn_cast<VectorType>(Elem2Ty)) { in getVecTypeForPair() local
394 numElem += VTy->getNumElements(); in getVecTypeForPair()
482 Type *VTy = cast<PointerType>(IPtr->getType())->getElementType(); in getPairPtrInfo() local
483 int64_t VTyTSS = (int64_t) TD->getTypeStoreSize(VTy); in getPairPtrInfo()
486 if (VTy != VTy2 && Offset < 0) { in getPairPtrInfo()
/external/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp1354 const VectorType *VTy = dyn_cast<VectorType>(Ty); in getOpenCLAlignment() local
1355 if (VTy) { in getOpenCLAlignment()
1356 Type *ETy = VTy->getElementType(); in getOpenCLAlignment()
1357 unsigned int numE = VTy->getNumElements(); in getOpenCLAlignment()
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp772 if (VectorType *VTy = dyn_cast<VectorType>(FromType)) { in ConvertScalar_ExtractValue() local
781 unsigned EltSize = TD.getTypeAllocSizeInBits(VTy->getElementType()); in ConvertScalar_ExtractValue()
904 if (VectorType *VTy = dyn_cast<VectorType>(AllocaType)) { in ConvertScalar_InsertValue() local
905 uint64_t VecSize = TD.getTypeAllocSizeInBits(VTy); in ConvertScalar_InsertValue()
914 Type *EltTy = VTy->getElementType(); in ConvertScalar_InsertValue()
/external/clang/lib/AST/
DDeclPrinter.cpp112 else if (const VectorType *VTy = BaseType->getAs<VectorType>()) in GetBaseType() local
113 BaseType = VTy->getElementType(); in GetBaseType()
DASTContext.cpp6838 if (const VectorType *VTy = T->getAs<VectorType>()) in getCorrespondingUnsignedType() local
6839 return getVectorType(getCorrespondingUnsignedType(VTy->getElementType()), in getCorrespondingUnsignedType()
6840 VTy->getNumElements(), VTy->getVectorKind()); in getCorrespondingUnsignedType()
/external/clang/lib/Sema/
DSemaExpr.cpp3329 } else if (const VectorType *VTy = LHSTy->getAs<VectorType>()) { in CreateBuiltinArraySubscriptExpr() local
3337 ResultType = VTy->getElementType(); in CreateBuiltinArraySubscriptExpr()
4546 const VectorType *VTy = Ty->getAs<VectorType>(); in BuildVectorLiteral() local
4553 if (VTy->getVectorKind() == VectorType::AltiVecVector) { in BuildVectorLiteral()
4578 VTy->getVectorKind() == VectorType::GenericVector && in BuildVectorLiteral()
7266 const VectorType *VTy = V->getAs<VectorType>(); in GetSignedVectorType() local
7267 unsigned TypeSize = Context.getTypeSize(VTy->getElementType()); in GetSignedVectorType()
7269 return Context.getExtVectorType(Context.CharTy, VTy->getNumElements()); in GetSignedVectorType()
7271 return Context.getExtVectorType(Context.ShortTy, VTy->getNumElements()); in GetSignedVectorType()
7273 return Context.getExtVectorType(Context.IntTy, VTy->getNumElements()); in GetSignedVectorType()
[all …]
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp1051 } else if (VectorType *VTy = dyn_cast<VectorType>(CurTy)) { in ParseConstants() local
1052 Type *EltTy = VTy->getElementType(); in ParseConstants()

12