Searched refs:VTy (Results 1 - 25 of 35) 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
[all...]
H A DDataLayout.h480 VectorType *VTy = cast<VectorType>(Ty); local
481 return VTy->getNumElements() * getTypeSizeInBits(VTy->getElementType());
H A DValue.h79 Type *VTy; member in class:llvm::Value
108 Type *getType() const { return VTy; }
324 VTy = Ty;
H A DIRBuilder.h1042 Type *VTy = V->getType(); local
1043 if (VTy->getScalarSizeInBits() < DestTy->getScalarSizeInBits())
1045 if (VTy->getScalarSizeInBits() > DestTy->getScalarSizeInBits())
1056 Type *VTy = V->getType(); local
1057 if (VTy->getScalarSizeInBits() < DestTy->getScalarSizeInBits())
1059 if (VTy->getScalarSizeInBits() > DestTy->getScalarSizeInBits())
/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 DValue.cpp46 SubclassOptionalData(0), SubclassData(0), VTy((Type*)checkType(ty)),
52 assert((VTy->isFirstClassType() || VTy->isVoidTy() || VTy->isStructTy()) &&
56 assert((VTy->isFirstClassType() || VTy->isVoidTy()) &&
73 dbgs() << "While deleting: " << *VTy << " %" << getName() << "\n";
480 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();
165 if (const VectorType *VTy = dyn_cast<VectorType>(this))
166 return VTy->getElementType()->isSized();
H A DConstants.cpp157 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
158 C = ConstantVector::getSplat(VTy->getNumElements(), C);
174 VectorType *VTy = cast<VectorType>(Ty); local
175 return ConstantVector::getSplat(VTy->getNumElements(),
176 getAllOnesValue(VTy->getElementType()));
453 VectorType *VTy = dyn_cast<VectorType>(Ty); local
454 if (!VTy) {
458 assert(VTy->getElementType()->isIntegerTy(1) &&
460 return ConstantVector::getSplat(VTy->getNumElements(),
465 VectorType *VTy local
[all...]
H A DConstantFold.cpp1136 } else if (VectorType *VTy = dyn_cast<VectorType>(C1->getType())) {
1139 Type *Ty = IntegerType::get(VTy->getContext(), 32);
1140 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) {
/external/llvm/lib/Transforms/InstCombine/
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...]
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 DInstCombineCasts.cpp979 if (VectorType *VTy = dyn_cast<VectorType>(CI.getType())) {
982 Type *EltTy = VTy->getElementType();
985 Constant *VSh = ConstantInt::get(VTy, EltTy->getScalarSizeInBits()-1);
/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/Target/PowerPC/
H A DPPCCTRLoops.cpp318 MVT VTy = local
320 if (VTy == MVT::Other)
323 if (TLI->isOperationLegalOrCustom(Opcode, VTy))
325 else if (VTy.isVector() &&
326 TLI->isOperationLegalOrCustom(Opcode, VTy.getScalarType()))
/external/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.cpp561 if (VectorType *VTy = dyn_cast<VectorType>(Src)) {
562 unsigned NumElem = VTy->getVectorNumElements();
566 if (NumElem == 3 && VTy->getScalarSizeInBits() == 32)
571 if (NumElem == 3 && VTy->getScalarSizeInBits() == 64)
578 VTy->getScalarType(),
/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/CodeGen/
H A DCGBuiltin.cpp1647 llvm::VectorType *VTy = cast<llvm::VectorType>(Ty); local
1648 llvm::Constant *C = ConstantInt::get(VTy->getElementType(), neg ? -SV : SV);
1649 return llvm::ConstantVector::getSplat(VTy->getNumElements(), C);
1738 llvm::VectorType *VTy = GetNeonType(this, Type); local
1739 llvm::Type *Ty = VTy;
1783 if (VTy->getElementType()->isIntegerTy(64))
1797 if (VTy->getElementType()->isIntegerTy(64))
2144 llvm::VectorType *VTy = GetNeonType(this, Type); local
2145 llvm::Type *Ty = VTy;
2264 for (unsigned i = 0, e = VTy
[all...]
H A DCodeGenFunction.cpp1445 llvm::Type *VTy = V->getType(); local
1455 if (VTy != CGM.Int8PtrTy)
1458 V = Builder.CreateBitCast(V, VTy);
H A DCGExpr.cpp1061 const llvm::VectorType *VTy = cast<llvm::VectorType>(EltTy); local
1064 if (VTy->getNumElements() == 3) {
1067 llvm::VectorType *vec4Ty = llvm::VectorType::get(VTy->getElementType(),
1513 if (const VectorType *VTy = Dst.getType()->getAs<VectorType>()) {
1514 unsigned NumSrcElts = VTy->getNumElements();
/external/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp561 const VectorType* VTy = dyn_cast<VectorType>(C->getType()); local
562 const Type *ElemTy = VTy->getElementType();
563 unsigned int elemNum = VTy->getNumElements();
861 VectorType* VTy = dyn_cast<VectorType>(C->getType()); local
862 elemNum = VTy->getNumElements();
863 ElemTy = VTy->getElementType();
/external/llvm/include/llvm/Target/
H A DTargetLowering.h574 VectorType *VTy = cast<VectorType>(Ty);
575 Type *Elm = VTy->getElementType();
580 VTy->getNumElements());
/external/llvm/lib/Analysis/
H A DConstantFolding.cpp58 VectorType *VTy = dyn_cast<VectorType>(C->getType()); local
59 if (VTy == 0)
62 unsigned NumSrcElts = VTy->getNumElements();
63 Type *SrcEltTy = VTy->getElementType();
/external/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1395 const VectorType *VTy = dyn_cast<VectorType>(Ty); local
1396 if (VTy) {
1397 Type *ETy = VTy->getElementType();
1398 unsigned int numE = VTy->getNumElements();
/external/llvm/lib/Transforms/Scalar/
H A DScalarReplAggregates.cpp772 if (VectorType *VTy = dyn_cast<VectorType>(FromType)) {
781 unsigned EltSize = TD.getTypeAllocSizeInBits(VTy->getElementType());
904 if (VectorType *VTy = dyn_cast<VectorType>(AllocaType)) {
905 uint64_t VecSize = TD.getTypeAllocSizeInBits(VTy);
914 Type *EltTy = VTy->getElementType();
/external/clang/lib/AST/
H A DDeclPrinter.cpp118 else if (const VectorType *VTy = BaseType->getAs<VectorType>())
119 BaseType = VTy->getElementType();

Completed in 592 milliseconds

12