/external/llvm/include/llvm/IR/ |
D | DerivedTypes.h | 379 static VectorType *getInteger(VectorType *VTy) { in getInteger() argument 380 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getInteger() 382 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger() 383 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger() 388 static VectorType *getExtendedElementVectorType(VectorType *VTy) { in getExtendedElementVectorType() argument 389 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getExtendedElementVectorType() 390 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits * 2); in getExtendedElementVectorType() 391 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType() 396 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { in getTruncatedElementVectorType() argument 397 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getTruncatedElementVectorType() [all …]
|
D | GlobalObject.h | 31 GlobalObject(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, 34 : GlobalValue(Ty, VTy, Ops, NumOps, Linkage, Name, AddressSpace), in GlobalValue() argument
|
D | DataLayout.h | 542 VectorType *VTy = cast<VectorType>(Ty); in getTypeSizeInBits() local 543 return VTy->getNumElements() * getTypeSizeInBits(VTy->getElementType()); in getTypeSizeInBits()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | DerivedTypes.h | 382 static VectorType *getInteger(VectorType *VTy) { in getInteger() argument 383 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getInteger() 385 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger() 386 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger() 391 static VectorType *getExtendedElementVectorType(VectorType *VTy) { in getExtendedElementVectorType() argument 392 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getExtendedElementVectorType() 393 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits * 2); in getExtendedElementVectorType() 394 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType() 399 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { in getTruncatedElementVectorType() argument 400 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getTruncatedElementVectorType() [all …]
|
D | GlobalObject.h | 32 GlobalObject(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, 35 : GlobalValue(Ty, VTy, Ops, NumOps, Linkage, Name, AddressSpace), in GlobalValue() argument
|
/external/swiftshader/third_party/LLVM/include/llvm/ |
D | DerivedTypes.h | 375 static VectorType *getInteger(VectorType *VTy) { in getInteger() argument 376 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getInteger() 377 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger() 378 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger() 385 static VectorType *getExtendedElementVectorType(VectorType *VTy) { in getExtendedElementVectorType() argument 386 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getExtendedElementVectorType() 387 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits * 2); in getExtendedElementVectorType() 388 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType() 395 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { in getTruncatedElementVectorType() argument 396 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getTruncatedElementVectorType() [all …]
|
D | Value.h | 79 Type *VTy; variable 108 Type *getType() const { return VTy; } in getType() 309 VTy = Ty; in mutateType()
|
/external/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyTargetTransformInfo.cpp | 54 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) { in getArithmeticInstrCost() local 64 Cost = VTy->getNumElements() * in getArithmeticInstrCost() 66 getArithmeticInstrCost(Opcode, VTy->getElementType()) + in getArithmeticInstrCost()
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | Value.cpp | 45 SubclassOptionalData(0), SubclassData(0), VTy((Type*)checkType(ty)), in Value() 49 assert((VTy->isFirstClassType() || VTy->isVoidTy() || VTy->isStructTy()) && in Value() 52 assert((VTy->isFirstClassType() || VTy->isVoidTy()) && in Value() 69 dbgs() << "While deleting: " << *VTy << " %" << getNameStr() << "\n"; in ~Value() 411 LLVMContext &Value::getContext() const { return VTy->getContext(); } in getContext()
|
D | ValueTypes.cpp | 88 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy)) in getExtendedSizeInBits() local 89 return VTy->getBitWidth(); in getExtendedSizeInBits() 213 VectorType *VTy = cast<VectorType>(Ty); in getEVT() local 214 return getVectorVT(Ty->getContext(), getEVT(VTy->getElementType(), false), in getEVT() 215 VTy->getNumElements()); in getEVT()
|
D | Constants.cpp | 124 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getIntegerValue() local 125 C = ConstantVector::get(std::vector<Constant *>(VTy->getNumElements(), C)); in getIntegerValue() 142 VectorType *VTy = cast<VectorType>(Ty); in getAllOnesValue() local 143 Elts.resize(VTy->getNumElements(), getAllOnesValue(VTy->getElementType())); in getAllOnesValue() 381 VectorType *VTy = dyn_cast<VectorType>(Ty); in getTrue() local 382 if (!VTy) { in getTrue() 386 assert(VTy->getElementType()->isIntegerTy(1) && in getTrue() 388 SmallVector<Constant*, 16> Splat(VTy->getNumElements(), in getTrue() 394 VectorType *VTy = dyn_cast<VectorType>(Ty); in getFalse() local 395 if (!VTy) { in getFalse() [all …]
|
D | ConstantFold.cpp | 703 VectorType *VTy = cast<VectorType>(V1->getType()); in ConstantFoldSelectInstruction() local 711 Type *EltTy = VTy->getElementType(); in ConstantFoldSelectInstruction() 712 unsigned NumElem = VTy->getNumElements(); in ConstantFoldSelectInstruction() 1271 } else if (VectorType *VTy = dyn_cast<VectorType>(C1->getType())) { in ConstantFoldBinaryInstruction() local 1277 Type* EltTy = VTy->getElementType(); in ConstantFoldBinaryInstruction() 1284 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) { in ConstantFoldBinaryInstruction() 1291 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) { in ConstantFoldBinaryInstruction() 1298 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) { in ConstantFoldBinaryInstruction() 1305 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) { in ConstantFoldBinaryInstruction() 1312 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) { in ConstantFoldBinaryInstruction() [all …]
|
D | Type.cpp | 44 if (VectorType *VTy = dyn_cast<VectorType>(this)) in getScalarType() local 45 return VTy->getElementType(); in getScalarType() 157 if (const VectorType *VTy = dyn_cast<VectorType>(this)) in getFPMantissaWidth() local 158 return VTy->getElementType()->getFPMantissaWidth(); in getFPMantissaWidth() 178 if (const VectorType *VTy = dyn_cast<VectorType>(this)) in isSizedDerivedType() local 179 return VTy->getElementType()->isSized(); in isSizedDerivedType()
|
/external/clang/lib/CodeGen/ |
D | CGBuiltin.cpp | 2596 llvm::VectorType *VTy = cast<llvm::VectorType>(Ty); in EmitNeonRShiftImm() local 2599 int EltSize = VTy->getScalarSizeInBits(); in EmitNeonRShiftImm() 2608 return llvm::ConstantAggregateZero::get(VTy); in EmitNeonRShiftImm() 2613 Shift = ConstantInt::get(VTy->getElementType(), ShiftAmt); in EmitNeonRShiftImm() 3349 llvm::VectorType *VTy = GetNeonType(this, Type); in EmitCommonNeonBuiltinExpr() local 3350 llvm::Type *Ty = VTy; in EmitCommonNeonBuiltinExpr() 3366 if (VTy->getElementType()->isFloatingPointTy()) in EmitCommonNeonBuiltinExpr() 3371 llvm::VectorType::getExtendedElementVectorType(VTy); in EmitCommonNeonBuiltinExpr() 3384 return Builder.CreateTrunc(Ops[0], VTy, "vaddhn"); in EmitCommonNeonBuiltinExpr() 3396 VTy->getScalarSizeInBits() == 32 ? FloatTy : DoubleTy, in EmitCommonNeonBuiltinExpr() [all …]
|
/external/llvm/lib/IR/ |
D | ValueTypes.cpp | 114 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy)) in getExtendedSizeInBits() local 115 return VTy->getBitWidth(); in getExtendedSizeInBits() 299 VectorType *VTy = cast<VectorType>(Ty); in getVT() local 301 getVT(VTy->getElementType(), false), VTy->getNumElements()); in getVT() 316 VectorType *VTy = cast<VectorType>(Ty); in getEVT() local 317 return getVectorVT(Ty->getContext(), getEVT(VTy->getElementType(), false), in getEVT() 318 VTy->getNumElements()); in getEVT()
|
D | Function.cpp | 817 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType() local 818 return VectorType::getExtendedElementVectorType(VTy); in DecodeFixedType() 824 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType() local 825 return VectorType::getTruncatedElementVectorType(VTy); in DecodeFixedType() 837 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) { in DecodeFixedType() local 838 return VectorType::get(EltTy, VTy->getNumElements()); in DecodeFixedType() 848 VectorType *VTy = dyn_cast<VectorType>(Ty); in DecodeFixedType() local 849 if (!VTy) in DecodeFixedType() 851 Type *EltTy = VTy->getVectorElementType(); in DecodeFixedType() 853 VTy->getNumElements()); in DecodeFixedType() [all …]
|
D | Value.cpp | 49 : VTy(checkType(ty)), UseList(nullptr), SubclassID(scid), in Value() 56 assert((VTy->isFirstClassType() || VTy->isVoidTy() || VTy->isStructTy()) && in Value() 60 assert((VTy->isFirstClassType() || VTy->isVoidTy()) && in Value() 80 dbgs() << "While deleting: " << *VTy << " %" << getName() << "\n"; in ~Value() 646 LLVMContext &Value::getContext() const { return VTy->getContext(); } in getContext()
|
D | Constants.cpp | 243 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getIntegerValue() local 244 C = ConstantVector::getSplat(VTy->getNumElements(), C); in getIntegerValue() 260 VectorType *VTy = cast<VectorType>(Ty); in getAllOnesValue() local 261 return ConstantVector::getSplat(VTy->getNumElements(), in getAllOnesValue() 262 getAllOnesValue(VTy->getElementType())); in getAllOnesValue() 523 VectorType *VTy = dyn_cast<VectorType>(Ty); in getTrue() local 524 if (!VTy) { in getTrue() 528 assert(VTy->getElementType()->isIntegerTy(1) && in getTrue() 530 return ConstantVector::getSplat(VTy->getNumElements(), in getTrue() 535 VectorType *VTy = dyn_cast<VectorType>(Ty); in getFalse() local [all …]
|
D | Type.cpp | 45 if (auto *VTy = dyn_cast<VectorType>(this)) in getScalarType() local 46 return VTy->getElementType(); in getScalarType() 128 if (auto *VTy = dyn_cast<VectorType>(this)) in getFPMantissaWidth() local 129 return VTy->getElementType()->getFPMantissaWidth(); in getFPMantissaWidth() 144 if (auto *VTy = dyn_cast<VectorType>(this)) in isSizedDerivedType() local 145 return VTy->getElementType()->isSized(Visited); in isSizedDerivedType()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 106 Type *VTy = V->getType(); in SimplifyDemandedUseBits() local 107 assert((TD || !VTy->isPointerTy()) && in SimplifyDemandedUseBits() 109 assert((!TD || TD->getTypeSizeInBits(VTy->getScalarType()) == BitWidth) && in SimplifyDemandedUseBits() 110 (!VTy->isIntOrIntVectorTy() || in SimplifyDemandedUseBits() 111 VTy->getScalarSizeInBits() == BitWidth) && in SimplifyDemandedUseBits() 134 return UndefValue::get(VTy); in SimplifyDemandedUseBits() 176 return Constant::getNullValue(VTy); in SimplifyDemandedUseBits() 245 return Constant::getNullValue(VTy); in SimplifyDemandedUseBits() 326 Constant *AndC = Constant::getIntegerValue(VTy, in SimplifyDemandedUseBits() 471 CastInst *NewCast = new ZExtInst(I->getOperand(0), VTy, I->getName()); in SimplifyDemandedUseBits() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 110 Type *VTy = V->getType(); in SimplifyDemandedUseBits() local 112 (!VTy->isIntOrIntVectorTy() || VTy->getScalarSizeInBits() == BitWidth) && in SimplifyDemandedUseBits() 135 return UndefValue::get(VTy); in SimplifyDemandedUseBits() 177 return Constant::getNullValue(VTy); in SimplifyDemandedUseBits() 254 return Constant::getIntegerValue(VTy, RHSKnownOne & LHSKnownOne); in SimplifyDemandedUseBits() 267 return Constant::getNullValue(VTy); in SimplifyDemandedUseBits() 292 return Constant::getIntegerValue(VTy, RHSKnownOne | LHSKnownOne); in SimplifyDemandedUseBits() 340 return Constant::getIntegerValue(VTy, IKnownOne); in SimplifyDemandedUseBits() 366 Constant *AndC = Constant::getIntegerValue(VTy, in SimplifyDemandedUseBits() 517 CastInst *NewCast = new ZExtInst(I->getOperand(0), VTy, I->getName()); in SimplifyDemandedUseBits() [all …]
|
/external/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 487 Type *VTy = V->getType(); in Act() local 491 if (VTy->isVectorTy()) { in Act() 492 VectorType *VecTy = cast<VectorType>(VTy); in Act() 497 if (VTy == DestTy) return; in Act() 500 if (VTy->isPointerTy()) { in Act() 507 unsigned VSize = VTy->getScalarType()->getPrimitiveSizeInBits(); in Act() 517 if (VTy->getScalarType()->isIntegerTy() && in Act() 532 if (VTy->getScalarType()->isFloatingPointTy() && in Act() 541 if (VTy->getScalarType()->isIntegerTy() && in Act() 551 if (VTy->getScalarType()->isFloatingPointTy() && in Act()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | BBVectorize.cpp | 477 if (VectorType *VTy = dyn_cast<VectorType>(ElemTy)) { in getVecTypeForPair() local 478 numElem = VTy->getNumElements(); in getVecTypeForPair() 483 if (VectorType *VTy = dyn_cast<VectorType>(Elem2Ty)) { in getVecTypeForPair() local 484 numElem += VTy->getNumElements(); in getVecTypeForPair() 650 Type *VTy = IPtr->getType()->getPointerElementType(); in getPairPtrInfo() local 651 int64_t VTyTSS = (int64_t)DL.getTypeStoreSize(VTy); in getPairPtrInfo() 654 if (VTy != VTy2 && Offset < 0) { in getPairPtrInfo() 1972 Type *VTy = getVecTypeForPair(Ty1, Ty2); in findBestDAGFor() local 1977 VTy, VTy); in findBestDAGFor() 1979 if (VTy->getVectorNumElements() == 2) { in findBestDAGFor() [all …]
|
/external/llvm/lib/Analysis/ |
D | VectorUtils.cpp | 236 VectorType *VTy = cast<VectorType>(V->getType()); in findScalarElement() local 237 unsigned Width = VTy->getNumElements(); in findScalarElement() 239 return UndefValue::get(VTy->getElementType()); in findScalarElement() 264 return UndefValue::get(VTy->getElementType()); in findScalarElement()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCCTRLoops.cpp | 382 MVT VTy = TLI->getSimpleValueType(DL, CI->getArgOperand(0)->getType(), in mightUseCTR() local 384 if (VTy == MVT::Other) in mightUseCTR() 387 if (TLI->isOperationLegalOrCustom(Opcode, VTy)) in mightUseCTR() 389 else if (VTy.isVector() && in mightUseCTR() 390 TLI->isOperationLegalOrCustom(Opcode, VTy.getScalarType())) in mightUseCTR()
|