Searched defs:VTy (Results 1 - 18 of 18) sorted by relevance

/external/llvm/lib/IR/
H A DValueTypes.cpp100 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy))
101 return VTy->getBitWidth();
255 VectorType *VTy = cast<VectorType>(Ty); local
257 getVT(VTy->getElementType(), false), VTy->getNumElements());
272 VectorType *VTy = cast<VectorType>(Ty); local
273 return getVectorVT(Ty->getContext(), getEVT(VTy->getElementType(), false),
274 VTy->getNumElements());
H A DConstants.cpp160 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
161 C = ConstantVector::getSplat(VTy->getNumElements(), C);
177 VectorType *VTy = cast<VectorType>(Ty); local
178 return ConstantVector::getSplat(VTy->getNumElements(),
179 getAllOnesValue(VTy->getElementType()));
446 VectorType *VTy = dyn_cast<VectorType>(Ty); local
447 if (!VTy) {
451 assert(VTy->getElementType()->isIntegerTy(1) &&
453 return ConstantVector::getSplat(VTy->getNumElements(),
458 VectorType *VTy local
[all...]
/external/llvm/include/llvm/IR/
H A DDerivedTypes.h374 static VectorType *getInteger(VectorType *VTy) { argument
375 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits();
377 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits);
378 return VectorType::get(EltTy, VTy->getNumElements());
385 static VectorType *getExtendedElementVectorType(VectorType *VTy) { argument
386 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits();
387 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits * 2);
388 return VectorType::get(EltTy, VTy->getNumElements());
395 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { argument
396 unsigned EltBits = VTy
[all...]
H A DValue.h77 Type *VTy; member in class:llvm::Value
106 Type *getType() const { return VTy; }
312 VTy = Ty;
H A DIRBuilder.h1039 Type *VTy = V->getType(); local
1040 if (VTy->getScalarSizeInBits() < DestTy->getScalarSizeInBits())
1042 if (VTy->getScalarSizeInBits() > DestTy->getScalarSizeInBits())
1053 Type *VTy = V->getType(); local
1054 if (VTy->getScalarSizeInBits() < DestTy->getScalarSizeInBits())
1056 if (VTy->getScalarSizeInBits() > DestTy->getScalarSizeInBits())
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp63 VectorType *VTy = cast<VectorType>(V->getType()); local
64 unsigned Width = VTy->getNumElements();
66 return UndefValue::get(VTy->getElementType());
91 return UndefValue::get(VTy->getElementType());
H A DInstCombineSimplifyDemanded.cpp107 Type *VTy = V->getType(); local
108 assert((TD || !VTy->isPointerTy()) &&
110 assert((!TD || TD->getTypeSizeInBits(VTy->getScalarType()) == BitWidth) &&
111 (!VTy->isIntOrIntVectorTy() ||
112 VTy->getScalarSizeInBits() == BitWidth) &&
135 return UndefValue::get(VTy);
175 return Constant::getNullValue(VTy);
255 return Constant::getNullValue(VTy);
336 Constant *AndC = Constant::getIntegerValue(VTy,
481 CastInst *NewCast = new ZExtInst(I->getOperand(0), VTy,
1117 VectorType *VTy = dyn_cast<VectorType>(I->getOperand(0)->getType()); local
[all...]
/external/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp478 Type *VTy = V->getType(); local
482 if (VTy->isVectorTy()) {
483 VectorType *VecTy = cast<VectorType>(VTy);
488 if (VTy == DestTy) return;
491 if (VTy->isPointerTy()) {
498 unsigned VSize = VTy->getScalarType()->getPrimitiveSizeInBits();
508 if (VTy->getScalarType()->isIntegerTy() &&
523 if (VTy->getScalarType()->isFloatingPointTy() &&
532 if (VTy->getScalarType()->isIntegerTy() &&
542 if (VTy
[all...]
/external/llvm/lib/Analysis/
H A DConstantFolding.cpp57 VectorType *VTy = dyn_cast<VectorType>(C->getType()); local
58 if (VTy == 0)
61 unsigned NumSrcElts = VTy->getNumElements();
62 Type *SrcEltTy = VTy->getElementType();
/external/clang/lib/CodeGen/
H A DCGBuiltin.cpp1564 llvm::VectorType *VTy = cast<llvm::VectorType>(Ty); local
1565 llvm::Constant *C = ConstantInt::get(VTy->getElementType(), neg ? -SV : SV);
1566 return llvm::ConstantVector::getSplat(VTy->getNumElements(), C);
1798 llvm::VectorType *VTy = GetNeonType(this, Type); local
1799 llvm::Type *Ty = VTy;
1918 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i)
1942 if (VTy->getElementType()->isIntegerTy(64)) {
1949 Ty = llvm::VectorType::get(VTy->getElementType(), 1);
1962 Ty = llvm::PointerType::getUnqual(VTy->getElementType());
1971 Ty = llvm::PointerType::getUnqual(VTy
[all...]
H A DCodeGenFunction.cpp1313 llvm::Type *VTy = V->getType(); local
1323 if (VTy != CGM.Int8PtrTy)
1326 V = Builder.CreateBitCast(V, VTy);
H A DCGDebugInfo.cpp862 llvm::DIType VTy = getOrCreateType(Var->getType(), VUnit); local
865 if (VTy.getTag() == llvm::dwarf::DW_TAG_enumeration_type)
889 LineNumber, VTy, Flags, C);
H A DCGExpr.cpp1116 const llvm::VectorType *VTy = cast<llvm::VectorType>(EltTy); local
1119 if (VTy->getNumElements() == 3) {
1122 llvm::VectorType *vec4Ty = llvm::VectorType::get(VTy->getElementType(),
1560 if (const VectorType *VTy = Dst.getType()->getAs<VectorType>()) {
1561 unsigned NumSrcElts = VTy->getNumElements();
H A DCGExprScalar.cpp938 llvm::VectorType *VTy = cast<llvm::VectorType>(V1->getType()); local
942 if (VTy->getNumElements() == 3 && Idx > 3)
/external/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1401 const VectorType *VTy = dyn_cast<VectorType>(Ty); local
1402 if (VTy) {
1403 Type *ETy = VTy->getElementType();
1404 unsigned int numE = VTy->getNumElements();
/external/llvm/lib/Transforms/Vectorize/
H A DBBVectorize.cpp459 if (VectorType *VTy = dyn_cast<VectorType>(ElemTy)) {
460 numElem = VTy->getNumElements();
465 if (VectorType *VTy = dyn_cast<VectorType>(Elem2Ty)) {
466 numElem += VTy->getNumElements();
628 Type *VTy = cast<PointerType>(IPtr->getType())->getElementType(); local
629 int64_t VTyTSS = (int64_t) TD->getTypeStoreSize(VTy);
632 if (VTy != VTy2 && Offset < 0) {
1865 Type *VTy = getVecTypeForPair(Ty1, Ty2); local
1870 VTy, VTy);
1897 Type *VTy = getVecTypeForPair(Ty1, Ty2); local
1988 Type *VTy = getVecTypeForPair(Ty1, Ty2); local
[all...]
/external/clang/lib/AST/
H A DExprConstant.cpp3602 const VectorType *VTy = E->getType()->castAs<VectorType>(); local
3603 unsigned NElts = VTy->getNumElements();
3635 QualType EltTy = VTy->getElementType();
/external/clang/lib/Sema/
H A DSemaExpr.cpp3464 } else if (const VectorType *VTy = LHSTy->getAs<VectorType>()) {
3472 ResultType = VTy->getElementType();
4685 const VectorType *VTy = Ty->getAs<VectorType>(); local
4692 if (VTy->getVectorKind() == VectorType::AltiVecVector) {
4717 VTy->getVectorKind() == VectorType::GenericVector &&
7408 const VectorType *VTy = V->getAs<VectorType>(); local
7409 unsigned TypeSize = Context.getTypeSize(VTy->getElementType());
7411 return Context.getExtVectorType(Context.CharTy, VTy->getNumElements());
7413 return Context.getExtVectorType(Context.ShortTy, VTy->getNumElements());
7415 return Context.getExtVectorType(Context.IntTy, VTy
[all...]

Completed in 276 milliseconds