/external/llvm/include/llvm/IR/ |
H A D | GlobalObject.h | 30 GlobalObject(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, argument 32 : GlobalValue(Ty, VTy, Ops, NumOps, Linkage, Name), ObjComdat(nullptr) {
|
H A D | GlobalValue.h | 63 GlobalValue(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, argument 65 : Constant(Ty, VTy, Ops, NumOps), Linkage(Linkage),
|
H A D | DerivedTypes.h | 374 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 D | DataLayout.h | 554 VectorType *VTy = cast<VectorType>(Ty); local 555 return VTy->getNumElements() * getTypeSizeInBits(VTy->getElementType());
|
H A D | Value.h | 70 Type *VTy; member in class:llvm::Value 208 Type *getType() const { return VTy; } 456 VTy = Ty;
|
H A D | IRBuilder.h | 1110 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 D | ValueTypes.cpp | 100 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 D | Constants.cpp | 179 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...] |
/external/llvm/lib/Target/PowerPC/ |
H A D | PPCCTRLoops.cpp | 338 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/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 108 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 D | InstCombineVectorOps.cpp | 67 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 D | llvm-stress.cpp | 480 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/Analysis/ |
H A D | ConstantFolding.cpp | 63 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/ExecutionEngine/ |
H A D | ExecutionEngine.cpp | 610 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 D | ASTDiagnostic.cpp | 236 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/clang/lib/CodeGen/ |
H A D | CodeGenFunction.cpp | 1621 llvm::Type *VTy = V->getType(); local 1629 if (VTy != CGM.Int8PtrTy) 1632 V = Builder.CreateBitCast(V, VTy);
|
H A D | CGBuiltin.cpp | 1759 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 D | CGDebugInfo.cpp | 878 llvm::DIType VTy = getOrCreateType(Var->getType(), VUnit); local 901 RecordTy, VName, VUnit, LineNumber, VTy, Flags, C);
|
H A D | CGExpr.cpp | 1074 const auto *VTy = cast<llvm::VectorType>(EltTy); local 1077 if (VTy->getNumElements() == 3) { 1080 llvm::VectorType *vec4Ty = llvm::VectorType::get(VTy->getElementType(), 1555 if (const VectorType *VTy = Dst.getType()->getAs<VectorType>()) { 1556 unsigned NumSrcElts = VTy->getNumElements();
|
/external/llvm/include/llvm/Target/ |
H A D | TargetLowering.h | 644 VectorType *VTy = cast<VectorType>(Ty); local 645 Type *Elm = VTy->getElementType(); 653 VTy->getNumElements());
|
/external/llvm/lib/Target/NVPTX/ |
H A D | NVPTXAsmPrinter.cpp | 1714 const VectorType *VTy = dyn_cast<VectorType>(Ty); local 1715 if (VTy) { 1716 Type *ETy = VTy->getElementType(); 1717 unsigned int numE = VTy->getNumElements();
|
/external/llvm/lib/Transforms/Scalar/ |
H A D | SROA.cpp | 2365 IntegerType *VTy = cast<IntegerType>(V->getType()); local 2366 assert(VTy->getBitWidth() == 8 && "Expected an i8 value for the byte"); 2370 Type *SplatIntTy = Type::getIntNTy(VTy->getContext(), Size*8);
|
/external/llvm/lib/Transforms/Vectorize/ |
H A D | BBVectorize.cpp | 470 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/clang/lib/Sema/ |
H A D | SemaExpr.cpp | 3873 } else if (const VectorType *VTy = LHSTy->getAs<VectorType>()) { 3881 ResultType = VTy->getElementType(); 5310 const VectorType *VTy = Ty->getAs<VectorType>(); local 5317 if (VTy->getVectorKind() == VectorType::AltiVecVector) { 5342 VTy->getVectorKind() == VectorType::GenericVector && 8249 const VectorType *VTy = V->getAs<VectorType>(); local 8250 unsigned TypeSize = Context.getTypeSize(VTy->getElementType()); 8252 return Context.getExtVectorType(Context.CharTy, VTy->getNumElements()); 8254 return Context.getExtVectorType(Context.ShortTy, VTy->getNumElements()); 8256 return Context.getExtVectorType(Context.IntTy, VTy [all...] |