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

/external/llvm/lib/VMCore/
H A DValueTypes.cpp92 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy))
93 return VTy->getBitWidth();
223 VectorType *VTy = cast<VectorType>(Ty); local
224 return getVectorVT(Ty->getContext(), getEVT(VTy->getElementType(), false),
225 VTy->getNumElements());
H A DConstants.cpp135 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
136 C = ConstantVector::getSplat(VTy->getNumElements(), C);
152 VectorType *VTy = cast<VectorType>(Ty); local
153 return ConstantVector::getSplat(VTy->getNumElements(),
154 getAllOnesValue(VTy->getElementType()));
394 VectorType *VTy = dyn_cast<VectorType>(Ty); local
395 if (!VTy) {
399 assert(VTy->getElementType()->isIntegerTy(1) &&
401 return ConstantVector::getSplat(VTy->getNumElements(),
406 VectorType *VTy local
[all...]
/external/llvm/include/llvm/
H A DDerivedTypes.h379 static VectorType *getInteger(VectorType *VTy) { argument
380 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits();
382 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits);
383 return VectorType::get(EltTy, VTy->getNumElements());
390 static VectorType *getExtendedElementVectorType(VectorType *VTy) { argument
391 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits();
392 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits * 2);
393 return VectorType::get(EltTy, VTy->getNumElements());
400 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { argument
401 unsigned EltBits = VTy
[all...]
H A DValue.h76 Type *VTy; member in class:llvm::Value
105 Type *getType() const { return VTy; }
316 VTy = Ty;
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp61 VectorType *VTy = cast<VectorType>(V->getType()); local
62 unsigned Width = VTy->getNumElements();
64 return UndefValue::get(VTy->getElementType());
89 return UndefValue::get(VTy->getElementType());
H A DInstCombineSimplifyDemanded.cpp106 Type *VTy = V->getType(); local
107 assert((TD || !VTy->isPointerTy()) &&
109 assert((!TD || TD->getTypeSizeInBits(VTy->getScalarType()) == BitWidth) &&
110 (!VTy->isIntOrIntVectorTy() ||
111 VTy->getScalarSizeInBits() == BitWidth) &&
134 return UndefValue::get(VTy);
174 return Constant::getNullValue(VTy);
241 return Constant::getNullValue(VTy);
322 Constant *AndC = Constant::getIntegerValue(VTy,
467 CastInst *NewCast = new ZExtInst(I->getOperand(0), VTy,
1017 VectorType *VTy = dyn_cast<VectorType>(I->getOperand(0)->getType()); local
[all...]
/external/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp476 Type *VTy = V->getType(); local
480 if (VTy->isVectorTy()) {
481 VectorType *VecTy = cast<VectorType>(VTy);
486 if (VTy == DestTy) return;
489 if (VTy->isPointerTy()) {
496 unsigned VSize = VTy->getScalarType()->getPrimitiveSizeInBits();
506 if (VTy->getScalarType()->isIntegerTy() &&
521 if (VTy->getScalarType()->isFloatingPointTy() &&
530 if (VTy->getScalarType()->isIntegerTy() &&
540 if (VTy
[all...]
/external/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1354 const VectorType *VTy = dyn_cast<VectorType>(Ty); local
1355 if (VTy) {
1356 Type *ETy = VTy->getElementType();
1357 unsigned int numE = VTy->getNumElements();
/external/llvm/lib/Transforms/Vectorize/
H A DBBVectorize.cpp387 if (VectorType *VTy = dyn_cast<VectorType>(ElemTy)) {
388 numElem = VTy->getNumElements();
393 if (VectorType *VTy = dyn_cast<VectorType>(Elem2Ty)) {
394 numElem += VTy->getNumElements();
482 Type *VTy = cast<PointerType>(IPtr->getType())->getElementType(); local
483 int64_t VTyTSS = (int64_t) TD->getTypeStoreSize(VTy);
486 if (VTy != VTy2 && Offset < 0) {
/external/clang/lib/CodeGen/
H A DCGBuiltin.cpp1468 llvm::VectorType *VTy = cast<llvm::VectorType>(Ty); local
1469 llvm::Constant *C = ConstantInt::get(VTy->getElementType(), neg ? -SV : SV);
1470 return llvm::ConstantVector::getSplat(VTy->getNumElements(), C);
1702 llvm::VectorType *VTy = GetNeonType(this, Type); local
1703 llvm::Type *Ty = VTy;
1818 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i)
1842 if (VTy->getElementType()->isIntegerTy(64)) {
1849 Ty = llvm::VectorType::get(VTy->getElementType(), 1);
1862 Ty = llvm::PointerType::getUnqual(VTy->getElementType());
1871 Ty = llvm::PointerType::getUnqual(VTy
[all...]
H A DCodeGenFunction.cpp1218 llvm::Type *VTy = V->getType(); local
1228 if (VTy != CGM.Int8PtrTy)
1231 V = Builder.CreateBitCast(V, VTy);
H A DCGDebugInfo.cpp732 llvm::DIType VTy = getOrCreateType(V->getType(), VUnit); local
734 if (VTy.getTag() != llvm::dwarf::DW_TAG_enumeration_type) {
737 VTy, true, CI);
H A DCGExpr.cpp984 const llvm::VectorType *VTy = cast<llvm::VectorType>(EltTy); local
987 if (VTy->getNumElements() == 3) {
990 llvm::VectorType *vec4Ty = llvm::VectorType::get(VTy->getElementType(),
1473 if (const VectorType *VTy = Dst.getType()->getAs<VectorType>()) {
1474 unsigned NumSrcElts = VTy->getNumElements();
H A DCGExprScalar.cpp777 llvm::VectorType *VTy = cast<llvm::VectorType>(V1->getType()); local
781 if (VTy->getNumElements() == 3 && Idx > 3)
/external/clang/lib/AST/
H A DExprConstant.cpp3599 const VectorType *VTy = E->getType()->castAs<VectorType>(); local
3600 unsigned NElts = VTy->getNumElements();
3632 QualType EltTy = VTy->getElementType();
/external/clang/lib/Sema/
H A DSemaExpr.cpp3329 } else if (const VectorType *VTy = LHSTy->getAs<VectorType>()) {
3337 ResultType = VTy->getElementType();
4546 const VectorType *VTy = Ty->getAs<VectorType>(); local
4553 if (VTy->getVectorKind() == VectorType::AltiVecVector) {
4578 VTy->getVectorKind() == VectorType::GenericVector &&
7266 const VectorType *VTy = V->getAs<VectorType>(); local
7267 unsigned TypeSize = Context.getTypeSize(VTy->getElementType());
7269 return Context.getExtVectorType(Context.CharTy, VTy->getNumElements());
7271 return Context.getExtVectorType(Context.ShortTy, VTy->getNumElements());
7273 return Context.getExtVectorType(Context.IntTy, VTy
[all...]

Completed in 346 milliseconds