Searched refs:VTy (Results 1 - 25 of 39) sorted by relevance

12

/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
407 getHalfElementsVectorType(VectorType *VTy) argument
418 getDoubleElementsVectorType(VectorType *VTy) argument
[all...]
H A DGlobalObject.h30 GlobalObject(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, argument
32 : GlobalValue(Ty, VTy, Ops, NumOps, Linkage, Name), ObjComdat(nullptr) {
H A DDataLayout.h554 VectorType *VTy = cast<VectorType>(Ty); local
555 return VTy->getNumElements() * getTypeSizeInBits(VTy->getElementType());
H A DGlobalValue.h63 GlobalValue(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, argument
65 : Constant(Ty, VTy, Ops, NumOps), Linkage(Linkage),
H A DValue.h70 Type *VTy; member in class:llvm::Value
208 Type *getType() const { return VTy; }
456 VTy = Ty;
H A DIRBuilder.h1110 Type *VTy = V->getType(); local
1111 if (VTy->getScalarSizeInBits() < DestTy->getScalarSizeInBits())
1113 if (VTy->getScalarSizeInBits() > DestTy->getScalarSizeInBits())
1124 Type *VTy = V->getType(); local
1125 if (VTy->getScalarSizeInBits() < DestTy->getScalarSizeInBits())
1127 if (VTy->getScalarSizeInBits() > DestTy->getScalarSizeInBits())
/external/llvm/lib/IR/
H A DValueTypes.cpp100 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy))
101 return VTy->getBitWidth();
265 VectorType *VTy = cast<VectorType>(Ty); local
267 getVT(VTy->getElementType(), false), VTy->getNumElements());
282 VectorType *VTy = cast<VectorType>(Ty); local
283 return getVectorVT(Ty->getContext(), getEVT(VTy->getElementType(), false),
284 VTy->getNumElements());
H A DValue.cpp46 : VTy(checkType(ty)), UseList(nullptr), Name(nullptr), SubclassID(scid),
52 assert((VTy->isFirstClassType() || VTy->isVoidTy() || VTy->isStructTy()) &&
56 assert((VTy->isFirstClassType() || VTy->isVoidTy()) &&
73 dbgs() << "While deleting: " << *VTy << " %" << getName() << "\n";
569 LLVMContext &Value::getContext() const { return VTy->getContext(); }
H A DType.cpp46 if (VectorType *VTy = dyn_cast<VectorType>(this))
47 return VTy->getElementType();
52 if (const VectorType *VTy = dyn_cast<VectorType>(this))
53 return VTy->getElementType();
143 if (const VectorType *VTy = dyn_cast<VectorType>(this))
144 return VTy->getElementType()->getFPMantissaWidth();
162 if (const VectorType *VTy = dyn_cast<VectorType>(this))
163 return VTy->getElementType()->isSized(Visited);
H A DConstants.cpp179 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
180 C = ConstantVector::getSplat(VTy->getNumElements(), C);
196 VectorType *VTy = cast<VectorType>(Ty); local
197 return ConstantVector::getSplat(VTy->getNumElements(),
198 getAllOnesValue(VTy->getElementType()));
489 VectorType *VTy = dyn_cast<VectorType>(Ty); local
490 if (!VTy) {
494 assert(VTy->getElementType()->isIntegerTy(1) &&
496 return ConstantVector::getSplat(VTy->getNumElements(),
501 VectorType *VTy local
[all...]
H A DFunction.cpp676 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
677 return VectorType::getExtendedElementVectorType(VTy);
683 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
684 return VectorType::getTruncatedElementVectorType(VTy);
H A DConstantFold.cpp1150 } else if (VectorType *VTy = dyn_cast<VectorType>(C1->getType())) {
1153 Type *Ty = IntegerType::get(VTy->getContext(), 32);
1154 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) {
1940 else if (const VectorType *VTy = dyn_cast<VectorType>(STy))
1941 NumElements = VTy->getNumElements();
/external/clang/lib/CodeGen/
H A DCGBuiltin.cpp1759 llvm::VectorType *VTy = cast<llvm::VectorType>(Ty); local
1760 llvm::Constant *C = ConstantInt::get(VTy->getElementType(), neg ? -SV : SV);
1761 return llvm::ConstantVector::getSplat(VTy->getNumElements(), C);
1768 llvm::VectorType *VTy = cast<llvm::VectorType>(Ty); local
1771 int EltSize = VTy->getScalarSizeInBits();
1780 llvm::Constant *Zero = ConstantInt::get(VTy->getElementType(), 0);
1781 return llvm::ConstantVector::getSplat(VTy->getNumElements(), Zero);
1786 Shift = ConstantInt::get(VTy->getElementType(), ShiftAmt);
2550 llvm::VectorType *VTy = GetNeonType(this, Type); local
2551 llvm::Type *Ty = VTy;
3381 llvm::VectorType *VTy = GetNeonType(this, Type); local
3633 llvm::VectorType *VTy = GetNeonType(&CGF, Type); local
3752 llvm::Type *VTy = llvm::VectorType::get(Int16Ty, 4); local
3761 llvm::Type *VTy = llvm::VectorType::get(Int8Ty, 8); local
3779 llvm::Type *VTy = llvm::VectorType::get(Int8Ty, 8); local
3795 llvm::Type *VTy = llvm::VectorType::get(Int16Ty, 4); local
4306 llvm::Type *VTy = llvm::VectorType::get(Int32Ty, 4); local
4403 llvm::Type *VTy = llvm::VectorType::get(Int32Ty, 4); local
4452 llvm::VectorType *VTy = GetNeonType(this, Type); local
4510 llvm::VectorType *VTy = cast<llvm::VectorType>(Ty); local
4515 llvm::Type *VTy = GetNeonType(this, local
4856 llvm::Type *VTy = GetNeonType(this, local
[all...]
H A DCodeGenFunction.cpp1621 llvm::Type *VTy = V->getType(); local
1629 if (VTy != CGM.Int8PtrTy)
1632 V = Builder.CreateBitCast(V, VTy);
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp108 Type *VTy = V->getType(); local
109 assert((DL || !VTy->isPointerTy()) &&
111 assert((!DL || DL->getTypeSizeInBits(VTy->getScalarType()) == BitWidth) &&
112 (!VTy->isIntOrIntVectorTy() ||
113 VTy->getScalarSizeInBits() == BitWidth) &&
136 return UndefValue::get(VTy);
176 return Constant::getNullValue(VTy);
256 return Constant::getNullValue(VTy);
337 Constant *AndC = Constant::getIntegerValue(VTy,
482 CastInst *NewCast = new ZExtInst(I->getOperand(0), VTy,
1122 VectorType *VTy = dyn_cast<VectorType>(I->getOperand(0)->getType()); local
[all...]
H A DInstCombineVectorOps.cpp67 VectorType *VTy = cast<VectorType>(V->getType()); local
68 unsigned Width = VTy->getNumElements();
70 return UndefValue::get(VTy->getElementType());
95 return UndefValue::get(VTy->getElementType());
/external/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp480 Type *VTy = V->getType(); variable
484 if (VTy->isVectorTy()) {
485 VectorType *VecTy = cast<VectorType>(VTy);
490 if (VTy == DestTy) return;
493 if (VTy->isPointerTy()) {
500 unsigned VSize = VTy->getScalarType()->getPrimitiveSizeInBits();
510 if (VTy->getScalarType()->isIntegerTy() &&
525 if (VTy->getScalarType()->isFloatingPointTy() &&
534 if (VTy->getScalarType()->isIntegerTy() &&
544 if (VTy
[all...]
/external/llvm/lib/Target/PowerPC/
H A DPPCCTRLoops.cpp338 MVT VTy = local
340 if (VTy == MVT::Other)
343 if (TLI->isOperationLegalOrCustom(Opcode, VTy))
345 else if (VTy.isVector() &&
346 TLI->isOperationLegalOrCustom(Opcode, VTy.getScalarType()))
/external/llvm/lib/Transforms/Vectorize/
H A DBBVectorize.cpp470 if (VectorType *VTy = dyn_cast<VectorType>(ElemTy)) {
471 numElem = VTy->getNumElements();
476 if (VectorType *VTy = dyn_cast<VectorType>(Elem2Ty)) {
477 numElem += VTy->getNumElements();
643 Type *VTy = IPtr->getType()->getPointerElementType(); local
644 int64_t VTyTSS = (int64_t) DL->getTypeStoreSize(VTy);
647 if (VTy != VTy2 && Offset < 0) {
1944 Type *VTy = getVecTypeForPair(Ty1, Ty2); local
1949 VTy, VTy);
1976 Type *VTy = getVecTypeForPair(Ty1, Ty2); local
2065 Type *VTy = getVecTypeForPair(Ty1, Ty2); local
[all...]
/external/llvm/lib/Analysis/
H A DConstantFolding.cpp63 VectorType *VTy = dyn_cast<VectorType>(C->getType()); local
64 if (!VTy)
67 unsigned NumSrcElts = VTy->getNumElements();
68 Type *SrcEltTy = VTy->getElementType();
1737 VectorType *VTy,
1740 SmallVector<Constant *, 4> Result(VTy->getNumElements());
1742 Type *Ty = VTy->getElementType();
1744 for (unsigned I = 0, E = VTy->getNumElements(); I != E; ++I) {
1775 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
1776 return ConstantFoldVectorCall(Name, F->getIntrinsicID(), VTy, Operand
1736 ConstantFoldVectorCall(StringRef Name, unsigned IntrinsicID, VectorType *VTy, ArrayRef<Constant *> Operands, const TargetLibraryInfo *TLI) argument
[all...]
/external/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.cpp781 if (VectorType *VTy = dyn_cast<VectorType>(Src)) {
782 unsigned NumElem = VTy->getVectorNumElements();
786 if (NumElem == 3 && VTy->getScalarSizeInBits() == 32)
791 if (NumElem == 3 && VTy->getScalarSizeInBits() == 64)
798 VTy->getScalarType(),
/external/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp610 const VectorType* VTy = dyn_cast<VectorType>(C->getType()); local
611 const Type *ElemTy = VTy->getElementType();
612 unsigned int elemNum = VTy->getNumElements();
910 VectorType* VTy = dyn_cast<VectorType>(C->getType()); local
911 elemNum = VTy->getNumElements();
912 ElemTy = VTy->getElementType();
/external/clang/lib/AST/
H A DASTDiagnostic.cpp236 const VectorType *VTy = Ty->getAs<VectorType>(); local
239 const char *Values = VTy->getNumElements() > 1 ? "values" : "value";
240 OS << "'" << S << "' (vector of " << VTy->getNumElements() << " '"
241 << VTy->getElementType().getAsString(Context.getPrintingPolicy())
/external/llvm/lib/Transforms/Scalar/
H A DScalarReplAggregates.cpp774 if (VectorType *VTy = dyn_cast<VectorType>(FromType)) {
783 unsigned EltSize = DL.getTypeAllocSizeInBits(VTy->getElementType());
907 if (VectorType *VTy = dyn_cast<VectorType>(AllocaType)) {
908 uint64_t VecSize = DL.getTypeAllocSizeInBits(VTy);
917 Type *EltTy = VTy->getElementType();
/external/llvm/include/llvm/Target/
H A DTargetLowering.h644 VectorType *VTy = cast<VectorType>(Ty); local
645 Type *Elm = VTy->getElementType();
653 VTy->getNumElements());

Completed in 534 milliseconds

12