|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
include/llvm/IR/Constants.h 49 class VectorType;
lib/Target/AArch64/AArch64TargetTransformInfo.h 39 class VectorType;
lib/Target/ARM/ARMISelLowering.h 50 class VectorType;
tools/clang/include/clang/CodeGen/SwiftCallingConv.h 26 class VectorType;
References
gen/tools/clang/include/clang/Basic/arm_mve_builtin_cg.inc 7 Param0 = llvm::VectorType::get(FloatTy, 4);
10 Param0 = llvm::VectorType::get(Int32Ty, 4);
13 Param0 = llvm::VectorType::get(Int32Ty, 4);
19 Value *Val3 = Builder.CreateCall(CGM.getIntrinsic(Intrinsic::arm_mve_vldr_gather_base_wb, llvm::SmallVector<llvm::Type *, 2> {Param0, llvm::VectorType::get(Int32Ty, 4)}), llvm::SmallVector<Value *, 2> {Val1, Val2});
31 Value *Val5 = Builder.CreateCall(CGM.getIntrinsic(Intrinsic::arm_mve_pred_i2v, llvm::SmallVector<llvm::Type *, 1> {llvm::VectorType::get(Builder.getInt1Ty(), 4)}), llvm::SmallVector<Value *, 1> {Val4});
32 Value *Val6 = Builder.CreateCall(CGM.getIntrinsic(Intrinsic::arm_mve_vldr_gather_base_wb_predicated, llvm::SmallVector<llvm::Type *, 3> {llvm::VectorType::get(Int64Ty, 2), llvm::VectorType::get(Int64Ty, 2), llvm::VectorType::get(Builder.getInt1Ty(), 4)}), llvm::SmallVector<Value *, 3> {Val1, Val2, Val5});
32 Value *Val6 = Builder.CreateCall(CGM.getIntrinsic(Intrinsic::arm_mve_vldr_gather_base_wb_predicated, llvm::SmallVector<llvm::Type *, 3> {llvm::VectorType::get(Int64Ty, 2), llvm::VectorType::get(Int64Ty, 2), llvm::VectorType::get(Builder.getInt1Ty(), 4)}), llvm::SmallVector<Value *, 3> {Val1, Val2, Val5});
32 Value *Val6 = Builder.CreateCall(CGM.getIntrinsic(Intrinsic::arm_mve_vldr_gather_base_wb_predicated, llvm::SmallVector<llvm::Type *, 3> {llvm::VectorType::get(Int64Ty, 2), llvm::VectorType::get(Int64Ty, 2), llvm::VectorType::get(Builder.getInt1Ty(), 4)}), llvm::SmallVector<Value *, 3> {Val1, Val2, Val5});
112 Param1 = llvm::VectorType::get(Int16Ty, 8);
118 Param1 = llvm::VectorType::get(Int8Ty, 16);
124 Param1 = llvm::VectorType::get(Int16Ty, 8);
130 Param1 = llvm::VectorType::get(Int8Ty, 16);
136 Param1 = llvm::VectorType::get(Int16Ty, 8);
142 Param1 = llvm::VectorType::get(Int8Ty, 16);
148 Param1 = llvm::VectorType::get(Int16Ty, 8);
154 Param1 = llvm::VectorType::get(Int8Ty, 16);
173 Value *Val6 = Builder.CreateCall(CGM.getIntrinsic(Intrinsic::arm_mve_vadc, llvm::SmallVector<llvm::Type *, 1> {llvm::VectorType::get(Int32Ty, 4)}), llvm::SmallVector<Value *, 3> {Val0, Val1, Val5});
208 Value *Val2 = Builder.CreateCall(CGM.getIntrinsic(Param0, llvm::SmallVector<llvm::Type *, 1> {llvm::VectorType::get(Int32Ty, 4)}), llvm::SmallVector<Value *, 2> {Val0, Val1});
222 Value *Val9 = Builder.CreateCall(CGM.getIntrinsic(Intrinsic::arm_mve_pred_i2v, llvm::SmallVector<llvm::Type *, 1> {llvm::VectorType::get(Builder.getInt1Ty(), 4)}), llvm::SmallVector<Value *, 1> {Val8});
223 Value *Val10 = Builder.CreateCall(CGM.getIntrinsic(Intrinsic::arm_mve_vadc_predicated, llvm::SmallVector<llvm::Type *, 2> {llvm::VectorType::get(Int32Ty, 4), llvm::VectorType::get(Builder.getInt1Ty(), 4)}), llvm::SmallVector<Value *, 5> {Val0, Val1, Val2, Val6, Val9});
223 Value *Val10 = Builder.CreateCall(CGM.getIntrinsic(Intrinsic::arm_mve_vadc_predicated, llvm::SmallVector<llvm::Type *, 2> {llvm::VectorType::get(Int32Ty, 4), llvm::VectorType::get(Builder.getInt1Ty(), 4)}), llvm::SmallVector<Value *, 5> {Val0, Val1, Val2, Val6, Val9});
240 Value *Val6 = Builder.CreateCall(CGM.getIntrinsic(Intrinsic::arm_mve_pred_i2v, llvm::SmallVector<llvm::Type *, 1> {llvm::VectorType::get(Builder.getInt1Ty(), 4)}), llvm::SmallVector<Value *, 1> {Val5});
241 Value *Val7 = Builder.CreateCall(CGM.getIntrinsic(Intrinsic::arm_mve_vadc_predicated, llvm::SmallVector<llvm::Type *, 2> {llvm::VectorType::get(Int32Ty, 4), llvm::VectorType::get(Builder.getInt1Ty(), 4)}), llvm::SmallVector<Value *, 5> {Val0, Val1, Val2, Val3, Val6});
241 Value *Val7 = Builder.CreateCall(CGM.getIntrinsic(Intrinsic::arm_mve_vadc_predicated, llvm::SmallVector<llvm::Type *, 2> {llvm::VectorType::get(Int32Ty, 4), llvm::VectorType::get(Builder.getInt1Ty(), 4)}), llvm::SmallVector<Value *, 5> {Val0, Val1, Val2, Val3, Val6});
256 Value *Val3 = Builder.CreateCall(CGM.getIntrinsic(Intrinsic::arm_mve_vadc, llvm::SmallVector<llvm::Type *, 1> {llvm::VectorType::get(Int32Ty, 4)}), llvm::SmallVector<Value *, 3> {Val0, Val1, Val2});
282 Value *Val5 = Builder.CreateCall(CGM.getIntrinsic(Intrinsic::arm_mve_pred_i2v, llvm::SmallVector<llvm::Type *, 1> {llvm::VectorType::get(Builder.getInt1Ty(), 4)}), llvm::SmallVector<Value *, 1> {Val4});
370 Param0 = llvm::VectorType::get(Builder.getInt1Ty(), 8);
372 Param2 = llvm::VectorType::get(HalfTy, 8);
375 Param0 = llvm::VectorType::get(Builder.getInt1Ty(), 4);
377 Param2 = llvm::VectorType::get(FloatTy, 4);
380 Param0 = llvm::VectorType::get(Builder.getInt1Ty(), 8);
382 Param2 = llvm::VectorType::get(Int16Ty, 8);
385 Param0 = llvm::VectorType::get(Builder.getInt1Ty(), 4);
387 Param2 = llvm::VectorType::get(Int32Ty, 4);
390 Param0 = llvm::VectorType::get(Builder.getInt1Ty(), 16);
392 Param2 = llvm::VectorType::get(Int8Ty, 16);
395 Param0 = llvm::VectorType::get(Builder.getInt1Ty(), 8);
397 Param2 = llvm::VectorType::get(Int16Ty, 8);
400 Param0 = llvm::VectorType::get(Builder.getInt1Ty(), 4);
402 Param2 = llvm::VectorType::get(Int32Ty, 4);
405 Param0 = llvm::VectorType::get(Builder.getInt1Ty(), 16);
407 Param2 = llvm::VectorType::get(Int8Ty, 16);
410 Param0 = llvm::VectorType::get(Builder.getInt1Ty(), 8);
412 Param2 = llvm::VectorType::get(HalfTy, 8);
415 Param0 = llvm::VectorType::get(Builder.getInt1Ty(), 4);
417 Param2 = llvm::VectorType::get(FloatTy, 4);
420 Param0 = llvm::VectorType::get(Builder.getInt1Ty(), 8);
422 Param2 = llvm::VectorType::get(Int16Ty, 8);
425 Param0 = llvm::VectorType::get(Builder.getInt1Ty(), 4);
427 Param2 = llvm::VectorType::get(Int32Ty, 4);
430 Param0 = llvm::VectorType::get(Builder.getInt1Ty(), 16);
432 Param2 = llvm::VectorType::get(Int8Ty, 16);
435 Param0 = llvm::VectorType::get(Builder.getInt1Ty(), 8);
437 Param2 = llvm::VectorType::get(Int16Ty, 8);
440 Param0 = llvm::VectorType::get(Builder.getInt1Ty(), 4);
442 Param2 = llvm::VectorType::get(Int32Ty, 4);
445 Param0 = llvm::VectorType::get(Builder.getInt1Ty(), 16);
447 Param2 = llvm::VectorType::get(Int8Ty, 16);
include/llvm/Analysis/TargetTransformInfo.h 915 int getExtractWithExtendCost(unsigned Opcode, Type *Dst, VectorType *VecTy,
1108 VectorType *VecTy) const;
1114 VectorType *VecTy) const;
1303 VectorType *VecTy, unsigned Index) = 0;
1368 VectorType *VecTy) const = 0;
1371 VectorType *VecTy) const = 0;
1701 int getExtractWithExtendCost(unsigned Opcode, Type *Dst, VectorType *VecTy,
1830 VectorType *VecTy) const override {
1835 VectorType *VecTy) const override {
include/llvm/Analysis/TargetTransformInfoImpl.h 435 VectorType *VecTy, unsigned Index) {
580 VectorType *VecTy) const {
586 VectorType *VecTy) const {
612 auto *VT = cast<VectorType>(Val->getType());
612 auto *VT = cast<VectorType>(Val->getType());
911 if (VectorType *VectorTy = dyn_cast<VectorType>(DstTy))
911 if (VectorType *VectorTy = dyn_cast<VectorType>(DstTy))
include/llvm/CodeGen/BasicTTIImpl.h 593 VecTy = VectorType::get(A->getType(), VF);
778 Type *SplitDst = VectorType::get(Dst->getVectorElementType(),
780 Type *SplitSrc = VectorType::get(Src->getVectorElementType(),
813 VectorType *VecTy, unsigned Index) {
910 VectorType *VT = dyn_cast<VectorType>(VecTy);
910 VectorType *VT = dyn_cast<VectorType>(VecTy);
917 VectorType *SubVT = VectorType::get(VT->getElementType(), NumSubElts);
917 VectorType *SubVT = VectorType::get(VT->getElementType(), NumSubElts);
1026 VectorType *MaskVT = VectorType::get(I8Type, NumElts);
1026 VectorType *MaskVT = VectorType::get(I8Type, NumElts);
1027 SubVT = VectorType::get(I8Type, NumSubElts);
1074 Types.push_back(VF == 1 ? OpTy : VectorType::get(OpTy, VF));
1078 RetTy = VectorType::get(RetTy, VF);
1611 Type *SubTy = VectorType::get(ScalarTy, NumVecElts);
1670 Type *SubTy = VectorType::get(ScalarTy, NumVecElts);
1671 CondTy = VectorType::get(ScalarCondTy, NumVecElts);
include/llvm/CodeGen/TargetLowering.h 1243 if (auto *VTy = dyn_cast<VectorType>(Ty)) {
1243 if (auto *VTy = dyn_cast<VectorType>(Ty)) {
1262 else if (VectorType *VTy = dyn_cast<VectorType>(Ty)) {
1262 else if (VectorType *VTy = dyn_cast<VectorType>(Ty)) {
include/llvm/IR/Constants.h 503 ConstantVector(VectorType *T, ArrayRef<Constant *> Val);
521 inline VectorType *getType() const {
522 return cast<VectorType>(Value::getType());
804 inline VectorType *getType() const {
805 return cast<VectorType>(Value::getType());
include/llvm/IR/DataLayout.h 657 VectorType *VTy = cast<VectorType>(Ty);
657 VectorType *VTy = cast<VectorType>(Ty);
include/llvm/IR/DerivedTypes.h 455 VectorType(const VectorType &) = delete;
456 VectorType &operator=(const VectorType &) = delete;
456 VectorType &operator=(const VectorType &) = delete;
459 static VectorType *get(Type *ElementType, ElementCount EC);
460 static VectorType *get(Type *ElementType, unsigned NumElements,
462 return VectorType::get(ElementType, {NumElements, Scalable});
468 static VectorType *getInteger(VectorType *VTy) {
468 static VectorType *getInteger(VectorType *VTy) {
472 return VectorType::get(EltTy, VTy->getElementCount());
477 static VectorType *getExtendedElementVectorType(VectorType *VTy) {
477 static VectorType *getExtendedElementVectorType(VectorType *VTy) {
480 return VectorType::get(EltTy->getExtendedType(), VTy->getElementCount());
486 static VectorType *getTruncatedElementVectorType(VectorType *VTy) {
486 static VectorType *getTruncatedElementVectorType(VectorType *VTy) {
505 return VectorType::get(EltTy, VTy->getElementCount());
511 static VectorType *getSubdividedVectorType(VectorType *VTy, int NumSubdivs) {
511 static VectorType *getSubdividedVectorType(VectorType *VTy, int NumSubdivs) {
513 VTy = VectorType::getDoubleElementsVectorType(VTy);
514 VTy = VectorType::getTruncatedElementVectorType(VTy);
521 static VectorType *getHalfElementsVectorType(VectorType *VTy) {
521 static VectorType *getHalfElementsVectorType(VectorType *VTy) {
525 return VectorType::get(VTy->getElementType(), EltCnt/2);
530 static VectorType *getDoubleElementsVectorType(VectorType *VTy) {
530 static VectorType *getDoubleElementsVectorType(VectorType *VTy) {
534 return VectorType::get(VTy->getElementType(), EltCnt*2);
567 return cast<VectorType>(this)->getNumElements();
571 return cast<VectorType>(this)->isScalable();
575 return cast<VectorType>(this)->getElementCount();
619 if (auto *VTy = dyn_cast<VectorType>(this))
620 return VectorType::getExtendedElementVectorType(
631 NewType = VectorType::get(NewType, getVectorElementCount());
include/llvm/IR/IRBuilder.h 2491 Value *Undef = UndefValue::get(VectorType::get(V->getType(), NumElts));
2496 Value *Zeros = ConstantAggregateZero::get(VectorType::get(I32Ty, NumElts));
include/llvm/IR/InstrTypes.h 976 if (VectorType* vt = dyn_cast<VectorType>(opnd_type)) {
976 if (VectorType* vt = dyn_cast<VectorType>(opnd_type)) {
977 return VectorType::get(Type::getInt1Ty(opnd_type->getContext()),
include/llvm/IR/Instructions.h 1054 return VectorType::get(PtrTy, NumElem);
1059 return VectorType::get(PtrTy, NumElem);
1884 VectorType *getVectorOperandType() const {
1885 return cast<VectorType>(getVectorOperand()->getType());
1947 VectorType *getType() const {
1948 return cast<VectorType>(Instruction::getType());
2007 VectorType *getType() const {
2008 return cast<VectorType>(Instruction::getType());
include/llvm/Support/Casting.h 58 return To::classof(&Val);
66 static inline bool doit(const From &) { return true; }
104 static inline bool doit(const From *Val) {
106 return isa_impl<To, From>::doit(*Val);
106 return isa_impl<To, From>::doit(*Val);
122 return isa_impl_wrap<To, SimpleFrom,
132 return isa_impl_cl<To,FromTy>::doit(Val);
142 return isa_impl_wrap<X, const Y,
172 using ret_type = To *; // Pointer arg case, return Ty*
176 using ret_type = const To *; // Constant pointer arg case, return const Ty*
198 using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
204 using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
210 To, From, typename simplify_type<From>::SimpleType>::ret_type;
227 static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
228 typename cast_retty<To, FromTy>::ret_type Res2
256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
265 return cast_convert_val<X, Y*,
265 return cast_convert_val<X, Y*,
266 typename simplify_type<Y*>::SimpleType>::doit(Val);
337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
lib/Analysis/ConstantFolding.cpp 106 if (auto *VTy = dyn_cast<VectorType>(C->getType())) {
106 if (auto *VTy = dyn_cast<VectorType>(C->getType())) {
117 VectorType::get(IntegerType::get(C->getContext(), FPWidth), NumSrcElts);
136 auto *DestVTy = dyn_cast<VectorType>(DestTy);
136 auto *DestVTy = dyn_cast<VectorType>(DestTy);
174 VectorType::get(IntegerType::get(C->getContext(), FPWidth), NumDstElt);
187 VectorType::get(IntegerType::get(C->getContext(), FPWidth), NumSrcElt);
2391 VectorType *VTy,
2479 if (auto *VTy = dyn_cast<VectorType>(Ty))
2479 if (auto *VTy = dyn_cast<VectorType>(Ty))
lib/Analysis/InstructionSimplify.cpp 4001 if (VectorType *VT = dyn_cast<VectorType>(Ops[0]->getType()))
4001 if (VectorType *VT = dyn_cast<VectorType>(Ops[0]->getType()))
4002 GEPTy = VectorType::get(GEPTy, VT->getNumElements());
4003 else if (VectorType *VT = dyn_cast<VectorType>(Ops[1]->getType()))
4003 else if (VectorType *VT = dyn_cast<VectorType>(Ops[1]->getType()))
4004 GEPTy = VectorType::get(GEPTy, VT->getNumElements());
4151 uint64_t NumElements = cast<VectorType>(Vec->getType())->getNumElements();
lib/Analysis/Lint.cpp 555 VectorType *VecTy = dyn_cast<VectorType>(V->getType());
555 VectorType *VecTy = dyn_cast<VectorType>(V->getType());
lib/Analysis/TargetTransformInfo.cpp 612 VectorType *VecTy,
821 VectorType *VecTy) const {
828 VectorType *VecTy) const {
lib/Analysis/ValueTracking.cpp 2019 if (auto *VecTy = dyn_cast<VectorType>(C->getType())) {
2019 if (auto *VecTy = dyn_cast<VectorType>(C->getType())) {
lib/Analysis/VectorUtils.cpp 263 VectorType *VTy = cast<VectorType>(V->getType());
263 VectorType *VTy = cast<VectorType>(V->getType());
314 if (isa<VectorType>(V->getType()))
335 if (isa<VectorType>(V->getType())) {
704 VectorType *VecTy1 = dyn_cast<VectorType>(V1->getType());
704 VectorType *VecTy1 = dyn_cast<VectorType>(V1->getType());
705 VectorType *VecTy2 = dyn_cast<VectorType>(V2->getType());
705 VectorType *VecTy2 = dyn_cast<VectorType>(V2->getType());
789 const unsigned VWidth = cast<VectorType>(Mask->getType())->getNumElements();
lib/AsmParser/LLParser.cpp 2814 if (!VectorType::isValidElementType(EltTy))
2816 Result = VectorType::get(EltTy, unsigned(Size), Scalable);
lib/Bitcode/Reader/BitcodeReader.cpp 1907 ResultTy = VectorType::get(ResultTy, Record[0], Scalable);
2446 } else if (VectorType *VTy = dyn_cast<VectorType>(CurTy)) {
2446 } else if (VectorType *VTy = dyn_cast<VectorType>(CurTy)) {
2473 if (isa<VectorType>(CurTy))
2479 if (isa<VectorType>(CurTy))
2485 if (isa<VectorType>(CurTy))
2491 if (isa<VectorType>(CurTy))
2497 if (isa<VectorType>(CurTy))
2503 if (isa<VectorType>(CurTy))
2509 if (isa<VectorType>(CurTy))
2632 if (VectorType *VTy = dyn_cast<VectorType>(CurTy))
2632 if (VectorType *VTy = dyn_cast<VectorType>(CurTy))
2635 SelectorTy = VectorType::get(SelectorTy, VTy->getNumElements());
2647 VectorType *OpTy =
2648 dyn_cast_or_null<VectorType>(getTypeByID(Record[0]));
2667 VectorType *OpTy = dyn_cast<VectorType>(CurTy);
2667 VectorType *OpTy = dyn_cast<VectorType>(CurTy);
2687 VectorType *OpTy = dyn_cast<VectorType>(CurTy);
2687 VectorType *OpTy = dyn_cast<VectorType>(CurTy);
2692 Type *ShufTy = VectorType::get(Type::getInt32Ty(Context),
2699 VectorType *RTy = dyn_cast<VectorType>(CurTy);
2699 VectorType *RTy = dyn_cast<VectorType>(CurTy);
2700 VectorType *OpTy =
2701 dyn_cast_or_null<VectorType>(getTypeByID(Record[0]));
2706 Type *ShufTy = VectorType::get(Type::getInt32Ty(Context),
4105 if (VectorType* vector_type =
4106 dyn_cast<VectorType>(Cond->getType())) {
4148 cast<VectorType>(Vec->getType())->getElementType(), Elt) ||
4168 FullTy = VectorType::get(FullTy->getVectorElementType(),
lib/Bitcode/Writer/BitcodeWriter.cpp 949 VectorType *VT = cast<VectorType>(T);
949 VectorType *VT = cast<VectorType>(T);
lib/CodeGen/Analysis.cpp 258 (isa<VectorType>(T1) && isa<VectorType>(T2) &&
258 (isa<VectorType>(T1) && isa<VectorType>(T2) &&
298 if (!isa<VectorType>(I->getType()) &&
306 if (!isa<VectorType>(I->getType()) &&
lib/CodeGen/GlobalISel/CombinerHelper.cpp 885 return VectorType::get(IntegerType::get(C, Ty.getScalarSizeInBits()),
lib/CodeGen/InterleavedLoadCombinePass.cpp 675 VectorType *const VTy;
677 VectorInfo(VectorType *VTy)
737 VectorType *VTy = dyn_cast<VectorType>(Op->getType());
737 VectorType *VTy = dyn_cast<VectorType>(Op->getType());
787 VectorType *ArgTy = dyn_cast<VectorType>(SVI->getOperand(0)->getType());
787 VectorType *ArgTy = dyn_cast<VectorType>(SVI->getOperand(0)->getType());
1203 VectorType *ILTy = VectorType::get(ETy, Factor * ElementsPerSVI);
1203 VectorType *ILTy = VectorType::get(ETy, Factor * ElementsPerSVI);
lib/CodeGen/LowLevelType.cpp 21 if (auto VTy = dyn_cast<VectorType>(&Ty)) {
lib/CodeGen/MIRParser/MIParser.cpp 2325 VectorType *VT = VectorType::get(I32Ty, ShufMask.size());
2325 VectorType *VT = VectorType::get(I32Ty, ShufMask.size());
lib/CodeGen/MachineVerifier.cpp 1412 auto *MaskVT = dyn_cast<VectorType>(Mask->getType());
1412 auto *MaskVT = dyn_cast<VectorType>(Mask->getType());
lib/CodeGen/ScalarizeMaskedMemIntrin.cpp 133 VectorType *VecType = cast<VectorType>(CI->getType());
133 VectorType *VecType = cast<VectorType>(CI->getType());
271 VectorType *VecType = cast<VectorType>(Src->getType());
271 VectorType *VecType = cast<VectorType>(Src->getType());
395 VectorType *VecType = cast<VectorType>(CI->getType());
395 VectorType *VecType = cast<VectorType>(CI->getType());
603 VectorType *VecType = cast<VectorType>(CI->getType());
603 VectorType *VecType = cast<VectorType>(CI->getType());
716 VectorType *VecType = cast<VectorType>(Src->getType());
716 VectorType *VecType = cast<VectorType>(Src->getType());
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp 1529 VectorType *VecTy = cast<VectorType>(V->getType());
1529 VectorType *VecTy = cast<VectorType>(V->getType());
3882 if (C && isa<VectorType>(C->getType()))
4356 if (isa<VectorType>(C->getType()))
4848 if (VectorType *PTy = dyn_cast<VectorType>(I.getType())) {
4848 if (VectorType *PTy = dyn_cast<VectorType>(I.getType())) {
7207 LoadTy = VectorType::get(LoadTy, LoadVT.getVectorNumElements());
lib/CodeGen/TargetLoweringObjectFileImpl.cpp 1620 if (isa<VectorType>(Ty))
lib/CodeGen/ValueTypes.cpp 37 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), NumElements);
96 return EVT::getEVT(cast<VectorType>(LLVMTy)->getElementType());
101 return cast<VectorType>(LLVMTy)->getNumElements();
108 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy))
108 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy))
283 case MVT::v1i1: return VectorType::get(Type::getInt1Ty(Context), 1);
284 case MVT::v2i1: return VectorType::get(Type::getInt1Ty(Context), 2);
285 case MVT::v4i1: return VectorType::get(Type::getInt1Ty(Context), 4);
286 case MVT::v8i1: return VectorType::get(Type::getInt1Ty(Context), 8);
287 case MVT::v16i1: return VectorType::get(Type::getInt1Ty(Context), 16);
288 case MVT::v32i1: return VectorType::get(Type::getInt1Ty(Context), 32);
289 case MVT::v64i1: return VectorType::get(Type::getInt1Ty(Context), 64);
290 case MVT::v128i1: return VectorType::get(Type::getInt1Ty(Context), 128);
291 case MVT::v256i1: return VectorType::get(Type::getInt1Ty(Context), 256);
292 case MVT::v512i1: return VectorType::get(Type::getInt1Ty(Context), 512);
293 case MVT::v1024i1: return VectorType::get(Type::getInt1Ty(Context), 1024);
294 case MVT::v1i8: return VectorType::get(Type::getInt8Ty(Context), 1);
295 case MVT::v2i8: return VectorType::get(Type::getInt8Ty(Context), 2);
296 case MVT::v4i8: return VectorType::get(Type::getInt8Ty(Context), 4);
297 case MVT::v8i8: return VectorType::get(Type::getInt8Ty(Context), 8);
298 case MVT::v16i8: return VectorType::get(Type::getInt8Ty(Context), 16);
299 case MVT::v32i8: return VectorType::get(Type::getInt8Ty(Context), 32);
300 case MVT::v64i8: return VectorType::get(Type::getInt8Ty(Context), 64);
301 case MVT::v128i8: return VectorType::get(Type::getInt8Ty(Context), 128);
302 case MVT::v256i8: return VectorType::get(Type::getInt8Ty(Context), 256);
303 case MVT::v1i16: return VectorType::get(Type::getInt16Ty(Context), 1);
304 case MVT::v2i16: return VectorType::get(Type::getInt16Ty(Context), 2);
305 case MVT::v3i16: return VectorType::get(Type::getInt16Ty(Context), 3);
306 case MVT::v4i16: return VectorType::get(Type::getInt16Ty(Context), 4);
307 case MVT::v8i16: return VectorType::get(Type::getInt16Ty(Context), 8);
308 case MVT::v16i16: return VectorType::get(Type::getInt16Ty(Context), 16);
309 case MVT::v32i16: return VectorType::get(Type::getInt16Ty(Context), 32);
310 case MVT::v64i16: return VectorType::get(Type::getInt16Ty(Context), 64);
311 case MVT::v128i16: return VectorType::get(Type::getInt16Ty(Context), 128);
312 case MVT::v1i32: return VectorType::get(Type::getInt32Ty(Context), 1);
313 case MVT::v2i32: return VectorType::get(Type::getInt32Ty(Context), 2);
314 case MVT::v3i32: return VectorType::get(Type::getInt32Ty(Context), 3);
315 case MVT::v4i32: return VectorType::get(Type::getInt32Ty(Context), 4);
316 case MVT::v5i32: return VectorType::get(Type::getInt32Ty(Context), 5);
317 case MVT::v8i32: return VectorType::get(Type::getInt32Ty(Context), 8);
318 case MVT::v16i32: return VectorType::get(Type::getInt32Ty(Context), 16);
319 case MVT::v32i32: return VectorType::get(Type::getInt32Ty(Context), 32);
320 case MVT::v64i32: return VectorType::get(Type::getInt32Ty(Context), 64);
321 case MVT::v128i32: return VectorType::get(Type::getInt32Ty(Context), 128);
322 case MVT::v256i32: return VectorType::get(Type::getInt32Ty(Context), 256);
323 case MVT::v512i32: return VectorType::get(Type::getInt32Ty(Context), 512);
324 case MVT::v1024i32:return VectorType::get(Type::getInt32Ty(Context), 1024);
325 case MVT::v2048i32:return VectorType::get(Type::getInt32Ty(Context), 2048);
326 case MVT::v1i64: return VectorType::get(Type::getInt64Ty(Context), 1);
327 case MVT::v2i64: return VectorType::get(Type::getInt64Ty(Context), 2);
328 case MVT::v4i64: return VectorType::get(Type::getInt64Ty(Context), 4);
329 case MVT::v8i64: return VectorType::get(Type::getInt64Ty(Context), 8);
330 case MVT::v16i64: return VectorType::get(Type::getInt64Ty(Context), 16);
331 case MVT::v32i64: return VectorType::get(Type::getInt64Ty(Context), 32);
332 case MVT::v1i128: return VectorType::get(Type::getInt128Ty(Context), 1);
333 case MVT::v2f16: return VectorType::get(Type::getHalfTy(Context), 2);
334 case MVT::v3f16: return VectorType::get(Type::getHalfTy(Context), 3);
335 case MVT::v4f16: return VectorType::get(Type::getHalfTy(Context), 4);
336 case MVT::v8f16: return VectorType::get(Type::getHalfTy(Context), 8);
337 case MVT::v16f16: return VectorType::get(Type::getHalfTy(Context), 16);
338 case MVT::v32f16: return VectorType::get(Type::getHalfTy(Context), 32);
339 case MVT::v1f32: return VectorType::get(Type::getFloatTy(Context), 1);
340 case MVT::v2f32: return VectorType::get(Type::getFloatTy(Context), 2);
341 case MVT::v3f32: return VectorType::get(Type::getFloatTy(Context), 3);
342 case MVT::v4f32: return VectorType::get(Type::getFloatTy(Context), 4);
343 case MVT::v5f32: return VectorType::get(Type::getFloatTy(Context), 5);
344 case MVT::v8f32: return VectorType::get(Type::getFloatTy(Context), 8);
345 case MVT::v16f32: return VectorType::get(Type::getFloatTy(Context), 16);
346 case MVT::v32f32: return VectorType::get(Type::getFloatTy(Context), 32);
347 case MVT::v64f32: return VectorType::get(Type::getFloatTy(Context), 64);
348 case MVT::v128f32: return VectorType::get(Type::getFloatTy(Context), 128);
349 case MVT::v256f32: return VectorType::get(Type::getFloatTy(Context), 256);
350 case MVT::v512f32: return VectorType::get(Type::getFloatTy(Context), 512);
351 case MVT::v1024f32:return VectorType::get(Type::getFloatTy(Context), 1024);
352 case MVT::v2048f32:return VectorType::get(Type::getFloatTy(Context), 2048);
353 case MVT::v1f64: return VectorType::get(Type::getDoubleTy(Context), 1);
354 case MVT::v2f64: return VectorType::get(Type::getDoubleTy(Context), 2);
355 case MVT::v4f64: return VectorType::get(Type::getDoubleTy(Context), 4);
356 case MVT::v8f64: return VectorType::get(Type::getDoubleTy(Context), 8);
358 return VectorType::get(Type::getInt1Ty(Context), 1, /*Scalable=*/ true);
360 return VectorType::get(Type::getInt1Ty(Context), 2, /*Scalable=*/ true);
362 return VectorType::get(Type::getInt1Ty(Context), 4, /*Scalable=*/ true);
364 return VectorType::get(Type::getInt1Ty(Context), 8, /*Scalable=*/ true);
366 return VectorType::get(Type::getInt1Ty(Context), 16, /*Scalable=*/ true);
368 return VectorType::get(Type::getInt1Ty(Context), 32, /*Scalable=*/ true);
370 return VectorType::get(Type::getInt8Ty(Context), 1, /*Scalable=*/ true);
372 return VectorType::get(Type::getInt8Ty(Context), 2, /*Scalable=*/ true);
374 return VectorType::get(Type::getInt8Ty(Context), 4, /*Scalable=*/ true);
376 return VectorType::get(Type::getInt8Ty(Context), 8, /*Scalable=*/ true);
378 return VectorType::get(Type::getInt8Ty(Context), 16, /*Scalable=*/ true);
380 return VectorType::get(Type::getInt8Ty(Context), 32, /*Scalable=*/ true);
382 return VectorType::get(Type::getInt16Ty(Context), 1, /*Scalable=*/ true);
384 return VectorType::get(Type::getInt16Ty(Context), 2, /*Scalable=*/ true);
386 return VectorType::get(Type::getInt16Ty(Context), 4, /*Scalable=*/ true);
388 return VectorType::get(Type::getInt16Ty(Context), 8, /*Scalable=*/ true);
390 return VectorType::get(Type::getInt16Ty(Context), 16, /*Scalable=*/ true);
392 return VectorType::get(Type::getInt16Ty(Context), 32, /*Scalable=*/ true);
394 return VectorType::get(Type::getInt32Ty(Context), 1, /*Scalable=*/ true);
396 return VectorType::get(Type::getInt32Ty(Context), 2, /*Scalable=*/ true);
398 return VectorType::get(Type::getInt32Ty(Context), 4, /*Scalable=*/ true);
400 return VectorType::get(Type::getInt32Ty(Context), 8, /*Scalable=*/ true);
402 return VectorType::get(Type::getInt32Ty(Context), 16,/*Scalable=*/ true);
404 return VectorType::get(Type::getInt32Ty(Context), 32,/*Scalable=*/ true);
406 return VectorType::get(Type::getInt64Ty(Context), 1, /*Scalable=*/ true);
408 return VectorType::get(Type::getInt64Ty(Context), 2, /*Scalable=*/ true);
410 return VectorType::get(Type::getInt64Ty(Context), 4, /*Scalable=*/ true);
412 return VectorType::get(Type::getInt64Ty(Context), 8, /*Scalable=*/ true);
414 return VectorType::get(Type::getInt64Ty(Context), 16, /*Scalable=*/ true);
416 return VectorType::get(Type::getInt64Ty(Context), 32, /*Scalable=*/ true);
418 return VectorType::get(Type::getHalfTy(Context), 2, /*Scalable=*/ true);
420 return VectorType::get(Type::getHalfTy(Context), 4, /*Scalable=*/ true);
422 return VectorType::get(Type::getHalfTy(Context), 8, /*Scalable=*/ true);
424 return VectorType::get(Type::getFloatTy(Context), 1, /*Scalable=*/ true);
426 return VectorType::get(Type::getFloatTy(Context), 2, /*Scalable=*/ true);
428 return VectorType::get(Type::getFloatTy(Context), 4, /*Scalable=*/ true);
430 return VectorType::get(Type::getFloatTy(Context), 8, /*Scalable=*/ true);
432 return VectorType::get(Type::getFloatTy(Context), 16, /*Scalable=*/ true);
434 return VectorType::get(Type::getDoubleTy(Context), 1, /*Scalable=*/ true);
436 return VectorType::get(Type::getDoubleTy(Context), 2, /*Scalable=*/ true);
438 return VectorType::get(Type::getDoubleTy(Context), 4, /*Scalable=*/ true);
440 return VectorType::get(Type::getDoubleTy(Context), 8, /*Scalable=*/ true);
466 VectorType *VTy = cast<VectorType>(Ty);
466 VectorType *VTy = cast<VectorType>(Ty);
484 VectorType *VTy = cast<VectorType>(Ty);
484 VectorType *VTy = cast<VectorType>(Ty);
lib/ExecutionEngine/ExecutionEngine.cpp 629 auto* VTy = cast<VectorType>(C->getType());
629 auto* VTy = cast<VectorType>(C->getType());
928 auto* VTy = cast<VectorType>(C->getType());
928 auto* VTy = cast<VectorType>(C->getType());
1051 if (cast<VectorType>(Ty)->getElementType()->isDoubleTy())
1053 if (cast<VectorType>(Ty)->getElementType()->isFloatTy())
1055 if (cast<VectorType>(Ty)->getElementType()->isIntegerTy()) {
1100 auto *VT = cast<VectorType>(Ty);
1100 auto *VT = cast<VectorType>(Ty);
lib/ExecutionEngine/Interpreter/Execution.cpp 77 if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) {
80 } else if (cast<VectorType>(Ty)->getElementType()->isDoubleTy()) {
592 if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) {
623 if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) {
801 if (cast<VectorType>(Ty)->getElementType()->isFloatTy())
806 if (cast<VectorType>(Ty)->getElementType()->isDoubleTy())
1834 VectorType *Ty = cast<VectorType>(I.getType());
1834 VectorType *Ty = cast<VectorType>(I.getType());
1867 VectorType *Ty = cast<VectorType>(I.getType());
1867 VectorType *Ty = cast<VectorType>(I.getType());
lib/FuzzMutate/Operations.cpp 301 auto *FirstTy = cast<VectorType>(Cur[0]->getType());
301 auto *FirstTy = cast<VectorType>(Cur[0]->getType());
306 UndefValue::get(VectorType::get(Int32Ty, FirstTy->getNumElements()))};
lib/IR/AsmWriter.cpp 624 VectorType *PTy = cast<VectorType>(Ty);
624 VectorType *PTy = cast<VectorType>(Ty);
lib/IR/AutoUpgrade.cpp 42 if (Arg0Type != VectorType::get(Type::getFloatTy(F->getContext()), 4))
566 VectorType *ArgTy = dyn_cast<VectorType>(fArgs[0]);
566 VectorType *ArgTy = dyn_cast<VectorType>(fArgs[0]);
876 Type *VecTy = VectorType::get(Builder.getInt8Ty(), NumElts);
910 Type *VecTy = VectorType::get(Builder.getInt8Ty(), NumElts);
938 llvm::VectorType *MaskTy = llvm::VectorType::get(Builder.getInt1Ty(),
938 llvm::VectorType *MaskTy = llvm::VectorType::get(Builder.getInt1Ty(),
974 llvm::VectorType *MaskTy =
975 llvm::VectorType::get(Builder.getInt1Ty(),
1219 Aligned ? cast<VectorType>(Data->getType())->getBitWidth() / 8 : 1;
1239 Aligned ? cast<VectorType>(Passthru->getType())->getBitWidth() / 8 : 1;
1338 Cmp = Constant::getNullValue(llvm::VectorType::get(Builder.getInt1Ty(), NumElts));
1340 Cmp = Constant::getAllOnesValue(llvm::VectorType::get(Builder.getInt1Ty(), NumElts));
1680 Type *SrcEltTy = cast<VectorType>(Arg1->getType())->getElementType();
1709 VectorType *VTy = cast<VectorType>(Arg1->getType());
1709 VectorType *VTy = cast<VectorType>(Arg1->getType());
1723 Type *NewVecTy = VectorType::get(Type::getInt64Ty(C), 2);
2252 VectorType *SrcTy = cast<VectorType>(CI->getArgOperand(0)->getType());
2252 VectorType *SrcTy = cast<VectorType>(CI->getArgOperand(0)->getType());
2253 VectorType *DstTy = cast<VectorType>(CI->getType());
2253 VectorType *DstTy = cast<VectorType>(CI->getType());
2284 Type *VT = VectorType::get(EltTy, NumSrcElts);
2338 Type *MaskTy = VectorType::get(Type::getInt32Ty(C), NumElts);
2409 VectorType *VecTy = cast<VectorType>(CI->getType());
2409 VectorType *VecTy = cast<VectorType>(CI->getType());
2491 VectorType *VecTy = cast<VectorType>(CI->getType());
2491 VectorType *VecTy = cast<VectorType>(CI->getType());
2545 VectorType *VecTy = cast<VectorType>(CI->getType());
2545 VectorType *VecTy = cast<VectorType>(CI->getType());
2682 VectorType *FTy = cast<VectorType>(CI->getType());
2682 VectorType *FTy = cast<VectorType>(CI->getType());
2683 VectorType *ITy = VectorType::getInteger(FTy);
2683 VectorType *ITy = VectorType::getInteger(FTy);
2691 VectorType *FTy = cast<VectorType>(CI->getType());
2691 VectorType *FTy = cast<VectorType>(CI->getType());
2692 VectorType *ITy = VectorType::getInteger(FTy);
2692 VectorType *ITy = VectorType::getInteger(FTy);
2701 VectorType *FTy = cast<VectorType>(CI->getType());
2701 VectorType *FTy = cast<VectorType>(CI->getType());
2702 VectorType *ITy = VectorType::getInteger(FTy);
2702 VectorType *ITy = VectorType::getInteger(FTy);
2710 VectorType *FTy = cast<VectorType>(CI->getType());
2710 VectorType *FTy = cast<VectorType>(CI->getType());
2711 VectorType *ITy = VectorType::getInteger(FTy);
2711 VectorType *ITy = VectorType::getInteger(FTy);
3028 VectorType *VTy = cast<VectorType>(CI->getType());
3028 VectorType *VTy = cast<VectorType>(CI->getType());
3595 VectorType *FltIdxTy = cast<VectorType>(Args[2]->getType());
3595 VectorType *FltIdxTy = cast<VectorType>(Args[2]->getType());
3596 VectorType *IntIdxTy = VectorType::getInteger(FltIdxTy);
3596 VectorType *IntIdxTy = VectorType::getInteger(FltIdxTy);
3610 if (Arg0->getType() != VectorType::get(Type::getFloatTy(C), 4))
3616 Type *NewVecTy = VectorType::get(Type::getInt64Ty(C), 2);
lib/IR/ConstantFold.cpp 45 static Constant *BitCastConstantVector(Constant *CV, VectorType *DstTy) {
139 if (VectorType *DestPTy = dyn_cast<VectorType>(DestTy)) {
139 if (VectorType *DestPTy = dyn_cast<VectorType>(DestTy)) {
140 if (VectorType *SrcTy = dyn_cast<VectorType>(V->getType())) {
140 if (VectorType *SrcTy = dyn_cast<VectorType>(V->getType())) {
576 VectorType *DestVecTy = cast<VectorType>(DestTy);
576 VectorType *DestVecTy = cast<VectorType>(DestTy);
865 return UndefValue::get(VectorType::get(EltTy, MaskNumElts));
969 } else if (VectorType *VTy = dyn_cast<VectorType>(C->getType())) {
969 } else if (VectorType *VTy = dyn_cast<VectorType>(C->getType())) {
1307 } else if (VectorType *VTy = dyn_cast<VectorType>(C1->getType())) {
1307 } else if (VectorType *VTy = dyn_cast<VectorType>(C1->getType())) {
1788 if (VectorType *VT = dyn_cast<VectorType>(C1->getType()))
1788 if (VectorType *VT = dyn_cast<VectorType>(C1->getType()))
1789 ResultTy = VectorType::get(Type::getInt1Ty(C1->getContext()),
2180 cast<VectorType>(GEPTy)->getNumElements(), C)
2198 if (VectorType *VT = dyn_cast<VectorType>(C->getType()))
2198 if (VectorType *VT = dyn_cast<VectorType>(C->getType()))
2199 GEPTy = VectorType::get(OrigGEPTy, VT->getNumElements());
2204 if (auto *VT = dyn_cast<VectorType>(Idxs[i]->getType())) {
2204 if (auto *VT = dyn_cast<VectorType>(Idxs[i]->getType())) {
2205 GEPTy = VectorType::get(OrigGEPTy, VT->getNumElements());
2358 if (isa<VectorType>(STy)) {
2438 ExtendedTy = VectorType::get(
lib/IR/Constants.cpp 337 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
337 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
354 VectorType *VTy = cast<VectorType>(Ty);
354 VectorType *VTy = cast<VectorType>(Ty);
626 if (auto *VTy = dyn_cast<VectorType>(Ty))
626 if (auto *VTy = dyn_cast<VectorType>(Ty))
634 if (auto *VTy = dyn_cast<VectorType>(Ty))
634 if (auto *VTy = dyn_cast<VectorType>(Ty))
657 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
657 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
681 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
681 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
726 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
726 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
738 if (auto *VTy = dyn_cast<VectorType>(Ty))
738 if (auto *VTy = dyn_cast<VectorType>(Ty))
751 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
751 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
762 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
762 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
773 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
773 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
784 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
784 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
795 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
795 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
843 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
843 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
892 if (auto *VT = dyn_cast<VectorType>(Ty))
892 if (auto *VT = dyn_cast<VectorType>(Ty))
1103 ConstantVector::ConstantVector(VectorType *T, ArrayRef<Constant *> V)
1113 VectorType *Ty = VectorType::get(V.front()->getType(), V.size());
1113 VectorType *Ty = VectorType::get(V.front()->getType(), V.size());
1119 VectorType *T = VectorType::get(V.front()->getType(), V.size());
1119 VectorType *T = VectorType::get(V.front()->getType(), V.size());
1785 if (isa<VectorType>(C->getType()))
1798 if (isa<VectorType>(C->getType()))
1828 if (VectorType *VT = dyn_cast<VectorType>(DstTy)) {
1828 if (VectorType *VT = dyn_cast<VectorType>(DstTy)) {
1830 MidTy = VectorType::get(MidTy, VT->getNumElements());
2035 ReqTy = VectorType::get(ReqTy, NumVecElts);
2083 if (VectorType *VT = dyn_cast<VectorType>(LHS->getType()))
2083 if (VectorType *VT = dyn_cast<VectorType>(LHS->getType()))
2084 ResultTy = VectorType::get(ResultTy, VT->getNumElements());
2108 if (VectorType *VT = dyn_cast<VectorType>(LHS->getType()))
2108 if (VectorType *VT = dyn_cast<VectorType>(LHS->getType()))
2109 ResultTy = VectorType::get(ResultTy, VT->getNumElements());
2170 Type *ShufTy = VectorType::get(EltTy, NElts);
2596 Type *Ty = VectorType::get(Type::getInt8Ty(Context), Elts.size());
2601 Type *Ty = VectorType::get(Type::getInt16Ty(Context), Elts.size());
2606 Type *Ty = VectorType::get(Type::getInt32Ty(Context), Elts.size());
2611 Type *Ty = VectorType::get(Type::getInt64Ty(Context), Elts.size());
2616 Type *Ty = VectorType::get(Type::getFloatTy(Context), Elts.size());
2621 Type *Ty = VectorType::get(Type::getDoubleTy(Context), Elts.size());
2633 Type *Ty = VectorType::get(Type::getHalfTy(Context), Elts.size());
2639 Type *Ty = VectorType::get(Type::getFloatTy(Context), Elts.size());
2645 Type *Ty = VectorType::get(Type::getDoubleTy(Context), Elts.size());
lib/IR/ConstantsContext.h 107 : ConstantExpr(cast<VectorType>(C1->getType())->getElementType(),
150 : ConstantExpr(VectorType::get(
151 cast<VectorType>(C1->getType())->getElementType(),
152 cast<VectorType>(C3->getType())->getNumElements()),
369 using TypeClass = VectorType;
lib/IR/Core.cpp 752 return wrap(VectorType::get(unwrap(ElementType), ElementCount));
775 return unwrap<VectorType>(VectorTy)->getNumElements();
lib/IR/DataLayout.cpp 561 getTypeAllocSize(cast<VectorType>(Ty)->getElementType());
562 Alignment *= cast<VectorType>(Ty)->getNumElements();
779 if (VectorType *VecTy = dyn_cast<VectorType>(Ty))
779 if (VectorType *VecTy = dyn_cast<VectorType>(Ty))
780 return VectorType::get(IntTy, VecTy->getNumElements());
801 if (VectorType *VecTy = dyn_cast<VectorType>(Ty))
801 if (VectorType *VecTy = dyn_cast<VectorType>(Ty))
802 return VectorType::get(IntTy, VecTy->getNumElements());
lib/IR/Function.cpp 615 } else if (VectorType* VTy = dyn_cast<VectorType>(Ty)) {
615 } else if (VectorType* VTy = dyn_cast<VectorType>(Ty)) {
967 return VectorType::get(DecodeFixedType(Infos, Tys, Context),D.Vector_Width);
981 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
981 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
982 return VectorType::getExtendedElementVectorType(VTy);
988 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
988 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
989 return VectorType::getTruncatedElementVectorType(VTy);
998 VectorType *VTy = dyn_cast<VectorType>(Ty);
998 VectorType *VTy = dyn_cast<VectorType>(Ty);
1001 return VectorType::getSubdividedVectorType(VTy, SubDivs);
1004 return VectorType::getHalfElementsVectorType(cast<VectorType>(
1004 return VectorType::getHalfElementsVectorType(cast<VectorType>(
1009 if (auto *VTy = dyn_cast<VectorType>(Ty))
1009 if (auto *VTy = dyn_cast<VectorType>(Ty))
1010 return VectorType::get(EltTy, VTy->getElementCount());
1019 VectorType *VTy = dyn_cast<VectorType>(Ty);
1019 VectorType *VTy = dyn_cast<VectorType>(Ty);
1027 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
1027 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
1033 VectorType *VTy = dyn_cast<VectorType>(Ty);
1033 VectorType *VTy = dyn_cast<VectorType>(Ty);
1035 return VectorType::getInteger(VTy);
1042 return VectorType::get(Ty->getVectorElementType(),
1147 VectorType *VT = dyn_cast<VectorType>(Ty);
1147 VectorType *VT = dyn_cast<VectorType>(Ty);
1189 case IITDescriptor::AK_AnyVector: return !isa<VectorType>(Ty);
1201 if (VectorType *VTy = dyn_cast<VectorType>(NewTy))
1201 if (VectorType *VTy = dyn_cast<VectorType>(NewTy))
1202 NewTy = VectorType::getExtendedElementVectorType(VTy);
1216 if (VectorType *VTy = dyn_cast<VectorType>(NewTy))
1216 if (VectorType *VTy = dyn_cast<VectorType>(NewTy))
1217 NewTy = VectorType::getTruncatedElementVectorType(VTy);
1229 return !isa<VectorType>(ArgTys[D.getArgumentNumber()]) ||
1230 VectorType::getHalfElementsVectorType(
1231 cast<VectorType>(ArgTys[D.getArgumentNumber()])) != Ty;
1238 auto *ReferenceType = dyn_cast<VectorType>(ArgTys[D.getArgumentNumber()]);
1238 auto *ReferenceType = dyn_cast<VectorType>(ArgTys[D.getArgumentNumber()]);
1239 auto *ThisArgType = dyn_cast<VectorType>(Ty);
1239 auto *ThisArgType = dyn_cast<VectorType>(Ty);
1263 VectorType * ReferenceType =
1264 dyn_cast<VectorType> (ArgTys[D.getArgumentNumber()]);
1290 VectorType *ReferenceType = dyn_cast<VectorType>(ArgTys[RefArgNumber]);
1290 VectorType *ReferenceType = dyn_cast<VectorType>(ArgTys[RefArgNumber]);
1291 VectorType *ThisArgVecTy = dyn_cast<VectorType>(Ty);
1291 VectorType *ThisArgVecTy = dyn_cast<VectorType>(Ty);
1306 auto *ReferenceType = dyn_cast<VectorType>(ArgTys[D.getArgumentNumber()]);
1306 auto *ReferenceType = dyn_cast<VectorType>(ArgTys[D.getArgumentNumber()]);
1316 if (auto *VTy = dyn_cast<VectorType>(NewTy)) {
1316 if (auto *VTy = dyn_cast<VectorType>(NewTy)) {
1318 NewTy = VectorType::getSubdividedVectorType(VTy, SubDivs);
1324 VectorType *VTy = dyn_cast<VectorType>(Ty);
1324 VectorType *VTy = dyn_cast<VectorType>(Ty);
1333 auto *ReferenceType = dyn_cast<VectorType>(ArgTys[D.getArgumentNumber()]);
1333 auto *ReferenceType = dyn_cast<VectorType>(ArgTys[D.getArgumentNumber()]);
1334 auto *ThisArgVecTy = dyn_cast<VectorType>(Ty);
1334 auto *ThisArgVecTy = dyn_cast<VectorType>(Ty);
1337 return ThisArgVecTy != VectorType::getInteger(ReferenceType);
lib/IR/IRBuilder.cpp 525 auto PtrsTy = cast<VectorType>(Ptrs->getType());
528 Type *DataTy = VectorType::get(PtrTy->getElementType(), NumElts);
531 Mask = Constant::getAllOnesValue(VectorType::get(Type::getInt1Ty(Context),
555 auto PtrsTy = cast<VectorType>(Ptrs->getType());
556 auto DataTy = cast<VectorType>(Data->getType());
567 Mask = Constant::getAllOnesValue(VectorType::get(Type::getInt1Ty(Context),
lib/IR/Instructions.cpp 86 if (VectorType *VT = dyn_cast<VectorType>(Op0->getType())) {
86 if (VectorType *VT = dyn_cast<VectorType>(Op0->getType())) {
90 VectorType *ET = dyn_cast<VectorType>(Op1->getType());
90 VectorType *ET = dyn_cast<VectorType>(Op1->getType());
1707 : Instruction(cast<VectorType>(Val->getType())->getElementType(),
1721 : Instruction(cast<VectorType>(Val->getType())->getElementType(),
1777 if (Elt->getType() != cast<VectorType>(Vec->getType())->getElementType())
1792 : Instruction(VectorType::get(cast<VectorType>(V1->getType())->getElementType(),
1792 : Instruction(VectorType::get(cast<VectorType>(V1->getType())->getElementType(),
1793 cast<VectorType>(Mask->getType())->getElementCount()),
1809 : Instruction(VectorType::get(cast<VectorType>(V1->getType())->getElementType(),
1809 : Instruction(VectorType::get(cast<VectorType>(V1->getType())->getElementType(),
1810 cast<VectorType>(Mask->getType())->getElementCount()),
1850 auto *MaskTy = dyn_cast<VectorType>(Mask->getType());
1850 auto *MaskTy = dyn_cast<VectorType>(Mask->getType());
1859 unsigned V1Size = cast<VectorType>(V1->getType())->getNumElements();
1872 unsigned V1Size = cast<VectorType>(V1->getType())->getNumElements();
2596 if ((IsFirstBitcast && isa<VectorType>(SrcTy) != isa<VectorType>(MidTy)) ||
2596 if ((IsFirstBitcast && isa<VectorType>(SrcTy) != isa<VectorType>(MidTy)) ||
2597 (IsSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy)))
2597 (IsSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy)))
2974 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy))
2974 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy))
2975 if (VectorType *DestVecTy = dyn_cast<VectorType>(DestTy))
2975 if (VectorType *DestVecTy = dyn_cast<VectorType>(DestTy))
3029 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy)) {
3029 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy)) {
3030 if (VectorType *DestVecTy = dyn_cast<VectorType>(DestTy)) {
3030 if (VectorType *DestVecTy = dyn_cast<VectorType>(DestTy)) {
3096 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy))
3096 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy))
3097 if (VectorType *DestVecTy = dyn_cast<VectorType>(DestTy))
3097 if (VectorType *DestVecTy = dyn_cast<VectorType>(DestTy))
3204 cast<VectorType>(SrcTy)->getNumElements() : 0;
3206 cast<VectorType>(DstTy)->getNumElements() : 0;
3235 if (isa<VectorType>(SrcTy) != isa<VectorType>(DstTy))
3235 if (isa<VectorType>(SrcTy) != isa<VectorType>(DstTy))
3237 if (VectorType *VT = dyn_cast<VectorType>(SrcTy))
3237 if (VectorType *VT = dyn_cast<VectorType>(SrcTy))
3238 if (VT->getNumElements() != cast<VectorType>(DstTy)->getNumElements())
3242 if (isa<VectorType>(SrcTy) != isa<VectorType>(DstTy))
3242 if (isa<VectorType>(SrcTy) != isa<VectorType>(DstTy))
3244 if (VectorType *VT = dyn_cast<VectorType>(SrcTy))
3244 if (VectorType *VT = dyn_cast<VectorType>(SrcTy))
3245 if (VT->getNumElements() != cast<VectorType>(DstTy)->getNumElements())
3267 VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy);
3267 VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy);
3268 VectorType *DstVecTy = dyn_cast<VectorType>(DstTy);
3268 VectorType *DstVecTy = dyn_cast<VectorType>(DstTy);
3290 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy)) {
3290 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy)) {
3291 if (VectorType *DstVecTy = dyn_cast<VectorType>(DstTy))
3291 if (VectorType *DstVecTy = dyn_cast<VectorType>(DstTy))
lib/IR/LLVMContextImpl.h 1337 DenseMap<std::pair<Type *, ElementCount>, VectorType*> VectorTypes;
lib/IR/SafepointIRVerifier.cpp 265 if (VectorType *VT = dyn_cast<VectorType>(Ty))
265 if (VectorType *VT = dyn_cast<VectorType>(Ty))
lib/IR/Type.cpp 73 if (auto *thisPTy = dyn_cast<VectorType>(this)) {
74 if (auto *thatPTy = dyn_cast<VectorType>(Ty))
74 if (auto *thatPTy = dyn_cast<VectorType>(Ty))
82 if (auto *thatPTy = dyn_cast<VectorType>(Ty))
82 if (auto *thatPTy = dyn_cast<VectorType>(Ty))
127 const VectorType *VTy = cast<VectorType>(this);
127 const VectorType *VTy = cast<VectorType>(this);
139 if (auto *VTy = dyn_cast<VectorType>(this))
155 if (auto *VTy = dyn_cast<VectorType>(this))
512 if (auto *VTy = dyn_cast<VectorType>(ElemTy))
512 if (auto *VTy = dyn_cast<VectorType>(ElemTy))
600 if (auto *VTy = dyn_cast<VectorType>(ElemTy))
600 if (auto *VTy = dyn_cast<VectorType>(ElemTy))
614 VectorType *VectorType::get(Type *ElementType, ElementCount EC) {
621 VectorType *&Entry = ElementType->getContext().pImpl
624 Entry = new (pImpl->Alloc) VectorType(ElementType, EC);
lib/IR/Verifier.cpp 702 if (auto *VTy = dyn_cast<VectorType>(GV.getValueType()))
702 if (auto *VTy = dyn_cast<VectorType>(GV.getValueType()))
2735 VectorType *VSrc = cast<VectorType>(SrcTy);
2735 VectorType *VSrc = cast<VectorType>(SrcTy);
2736 VectorType *VDest = cast<VectorType>(DestTy);
2736 VectorType *VDest = cast<VectorType>(DestTy);
2760 VectorType *VSrc = cast<VectorType>(SrcTy);
2760 VectorType *VSrc = cast<VectorType>(SrcTy);
2761 VectorType *VDest = cast<VectorType>(DestTy);
2761 VectorType *VDest = cast<VectorType>(DestTy);
4839 if (auto *OperandT = dyn_cast<VectorType>(Operand->getType())) {
4839 if (auto *OperandT = dyn_cast<VectorType>(Operand->getType())) {
4848 if (auto *OperandT = dyn_cast<VectorType>(Operand->getType())) {
4848 if (auto *OperandT = dyn_cast<VectorType>(Operand->getType())) {
4879 auto *OperandVecTy = cast<VectorType>(OperandTy);
4879 auto *OperandVecTy = cast<VectorType>(OperandTy);
4880 auto *ResultVecTy = cast<VectorType>(ResultTy);
4880 auto *ResultVecTy = cast<VectorType>(ResultTy);
lib/Linker/IRMover.cpp 307 return *Entry = VectorType::get(ElementTypes[0],
308 cast<VectorType>(Ty)->getNumElements());
lib/Target/AArch64/AArch64ISelLowering.cpp 8626 auto *FullVT = cast<VectorType>(FullV->getType());
8626 auto *FullVT = cast<VectorType>(FullV->getType());
8627 auto *HalfVT = cast<VectorType>(HalfV->getType());
8627 auto *HalfVT = cast<VectorType>(HalfV->getType());
8632 auto *FullVT = cast<VectorType>(FullV->getType());
8632 auto *FullVT = cast<VectorType>(FullV->getType());
8633 auto *HalfVT = cast<VectorType>(HalfV->getType());
8633 auto *HalfVT = cast<VectorType>(HalfV->getType());
8653 int NumElements = cast<VectorType>(Op1->getType())->getNumElements() * 2;
8740 AArch64TargetLowering::getNumInterleavedAccesses(VectorType *VecTy,
8754 VectorType *VecTy, const DataLayout &DL) const {
8794 VectorType *VecTy = Shuffles[0]->getType();
8809 VectorType::get(DL.getIntPtrType(EltTy), VecTy->getVectorNumElements());
8819 VecTy = VectorType::get(VecTy->getVectorElementType(),
8865 SubVec, VectorType::get(SVI->getType()->getVectorElementType(),
8917 VectorType *VecTy = SVI->getType();
8923 VectorType *SubVecTy = VectorType::get(EltTy, LaneLen);
8923 VectorType *SubVecTy = VectorType::get(EltTy, LaneLen);
8946 Type *IntVecTy = VectorType::get(IntTy, NumOpElts);
8950 SubVecTy = VectorType::get(IntTy, LaneLen);
8960 SubVecTy = VectorType::get(SubVecTy->getVectorElementType(), LaneLen);
lib/Target/AArch64/AArch64ISelLowering.h 557 bool isLegalInterleavedAccessType(VectorType *VecTy,
562 unsigned getNumInterleavedAccesses(VectorType *VecTy,
lib/Target/AArch64/AArch64StackTagging.cpp 253 if (VectorType *VecTy = dyn_cast<VectorType>(V->getType())) {
253 if (VectorType *VecTy = dyn_cast<VectorType>(V->getType())) {
258 Type *NewTy = VectorType::get(IntegerType::get(Ctx, EltSize),
lib/Target/AArch64/AArch64TargetTransformInfo.cpp 204 return VectorType::get(ArgTy->getScalarType(),
399 VectorType *VecTy,
685 auto *SubVecTy = VectorType::get(VecTy->getScalarType(), NumElts / Factor);
685 auto *SubVecTy = VectorType::get(VecTy->getScalarType(), NumElts / Factor);
lib/Target/AArch64/AArch64TargetTransformInfo.h 116 int getExtractWithExtendCost(unsigned Opcode, Type *Dst, VectorType *VecTy,
151 if (!isa<VectorType>(DataType) || !ST->hasSVE())
lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp 440 Type *const VecTy = VectorType::get(B.getInt32Ty(), 2);
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp 207 return cast<VectorType>(T)->getElementType()->getIntegerBitWidth();
215 return VectorType::get(B.getInt32Ty(), cast<VectorType>(T)->getNumElements());
215 return VectorType::get(B.getInt32Ty(), cast<VectorType>(T)->getNumElements());
233 if (const VectorType *VT = dyn_cast<VectorType>(T)) {
233 if (const VectorType *VT = dyn_cast<VectorType>(T)) {
437 VectorType *VT = dyn_cast<VectorType>(V->getType());
437 VectorType *VT = dyn_cast<VectorType>(V->getType());
578 if (VectorType *VT = dyn_cast<VectorType>(Ty)) {
578 if (VectorType *VT = dyn_cast<VectorType>(Ty)) {
905 if (VectorType *VT = dyn_cast<VectorType>(Ty)) {
905 if (VectorType *VT = dyn_cast<VectorType>(Ty)) {
lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp 189 auto VecTy = cast<VectorType>(Ty);
630 auto VecTy = cast<VectorType>(Ty);
lib/Target/AMDGPU/AMDGPULibCalls.cpp 604 PtrElemTy = VectorType::get(Type::getInt64Ty(Ctx), Size / 8);
890 VectorType *VTy = dyn_cast<VectorType>(opr0->getType());
890 VectorType *VTy = dyn_cast<VectorType>(opr0->getType());
1132 if (const VectorType *vTy = dyn_cast<VectorType>(rTy))
1132 if (const VectorType *vTy = dyn_cast<VectorType>(rTy))
1133 nTy = VectorType::get(nTyS, vTy->getNumElements());
lib/Target/AMDGPU/AMDGPULibFunc.cpp 906 T = VectorType::get(T, P.VectorSize);
lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp 123 VectorType *VT = dyn_cast<VectorType>(ArgTy);
123 VectorType *VT = dyn_cast<VectorType>(ArgTy);
127 VectorType *V4Ty = nullptr;
155 V4Ty = VectorType::get(VT->getVectorElementType(), 4);
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp 220 VectorType *LLVMVecType = llvm::dyn_cast<llvm::VectorType>(ArgType);
220 VectorType *LLVMVecType = llvm::dyn_cast<llvm::VectorType>(ArgType);
223 ResType = llvm::VectorType::get(ResType, NumElem);
482 uint32_t EleCount = cast<VectorType>(ArgType)->getNumElements();
525 IType = dyn_cast<Type>(VectorType::get(IType, EleCount));
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp 298 static VectorType *arrayTypeToVecType(ArrayType *ArrayTy) {
299 return VectorType::get(ArrayTy->getElementType(),
336 isa<VectorType>(LI->getType()))
349 isa<VectorType>(SI->getValueOperand()->getType()))
377 !VectorType::isValidElementType(AllocaTy->getElementType())) {
413 VectorType *VectorTy = dyn_cast<VectorType>(AllocaTy);
413 VectorType *VectorTy = dyn_cast<VectorType>(AllocaTy);
lib/Target/AMDGPU/AMDGPURewriteOutArguments.cpp 210 VectorType *VT0 = dyn_cast<VectorType>(Ty0);
210 VectorType *VT0 = dyn_cast<VectorType>(Ty0);
211 VectorType *VT1 = dyn_cast<VectorType>(Ty1);
211 VectorType *VT1 = dyn_cast<VectorType>(Ty1);
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp 237 VectorType *VecTy) const {
248 VectorType *VecTy) const {
498 = DL.getTypeSizeInBits(cast<VectorType>(ValTy)->getElementType());
651 VectorType *VT = cast<VectorType>(Tp);
651 VectorType *VT = cast<VectorType>(Tp);
810 = DL.getTypeSizeInBits(cast<VectorType>(ValTy)->getElementType());
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h 152 VectorType *VecTy) const;
155 VectorType *VecTy) const;
lib/Target/AMDGPU/SIISelLowering.cpp 871 VectorType *VecComponent = cast<VectorType>(Ty->getContainedType(0));
871 VectorType *VecComponent = cast<VectorType>(Ty->getContainedType(0));
lib/Target/ARM/ARMISelLowering.cpp16584 unsigned BitWidth = cast<VectorType>(VectorTy)->getBitWidth();
16691 ARMTargetLowering::getNumInterleavedAccesses(VectorType *VecTy,
16697 VectorType *VecTy, const DataLayout &DL) const {
16747 VectorType *VecTy = Shuffles[0]->getType();
16764 VectorType::get(DL.getIntPtrType(EltTy), VecTy->getVectorNumElements());
16774 VecTy = VectorType::get(VecTy->getVectorElementType(),
16825 SubVec, VectorType::get(SV->getType()->getVectorElementType(),
16878 VectorType *VecTy = SVI->getType();
16884 VectorType *SubVecTy = VectorType::get(EltTy, LaneLen);
16884 VectorType *SubVecTy = VectorType::get(EltTy, LaneLen);
16907 VectorType::get(IntTy, Op0->getType()->getVectorNumElements());
16911 SubVecTy = VectorType::get(IntTy, LaneLen);
16921 SubVecTy = VectorType::get(SubVecTy->getVectorElementType(), LaneLen);
17018 } else if (auto *VT = dyn_cast<VectorType>(Ty)) {
17018 } else if (auto *VT = dyn_cast<VectorType>(Ty)) {
lib/Target/ARM/ARMISelLowering.h 607 bool isLegalInterleavedAccessType(VectorType *VecTy,
614 unsigned getNumInterleavedAccesses(VectorType *VecTy,
lib/Target/ARM/ARMTargetTransformInfo.cpp 498 if (auto *VecTy = dyn_cast<VectorType>(DataTy)) {
498 if (auto *VecTy = dyn_cast<VectorType>(DataTy)) {
772 auto *SubVecTy = VectorType::get(VecTy->getScalarType(), NumElts / Factor);
772 auto *SubVecTy = VectorType::get(VecTy->getScalarType(), NumElts / Factor);
lib/Target/ARM/MVETailPredication.cpp 83 Value *ComputeElements(Value *TripCount, VectorType *VecTy);
274 unsigned Lanes = cast<VectorType>(Insert->getType())->getNumElements();
283 static VectorType* getVectorType(IntrinsicInst *I) {
286 return cast<VectorType>(PtrTy->getElementType());
296 VectorType *VecTy = getVectorType(cast<IntrinsicInst>(&I));
307 if (isa<VectorType>(U->getType()))
318 VectorType *VecTy) {
462 VectorType *VecTy = getVectorType(I);
lib/Target/Hexagon/HexagonTargetObjectFile.cpp 312 const VectorType *PTy = cast<const VectorType>(Ty);
312 const VectorType *PTy = cast<const VectorType>(Ty);
lib/Target/Hexagon/HexagonTargetTransformInfo.cpp 48 if (cast<VectorType>(VecTy)->isScalable())
51 if (!cast<VectorType>(VecTy)->getElementType()->isIntegerTy())
163 VectorType *VecTy = cast<VectorType>(Src);
163 VectorType *VecTy = cast<VectorType>(Src);
267 Type *ElemTy = Val->isVectorTy() ? cast<VectorType>(Val)->getElementType()
lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp 731 if (!isa<VectorType>(PN->getType()))
lib/Target/Mips/MipsISelLowering.cpp 3816 cast<VectorType>(type)->getBitWidth() == 128)
lib/Target/PowerPC/PPCISelLowering.cpp 1250 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) {
1250 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) {
lib/Target/SystemZ/SystemZTargetTransformInfo.cpp 646 return VectorType::get(ElTy, VF);
lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.cpp 54 if (auto *VTy = dyn_cast<VectorType>(Ty)) {
54 if (auto *VTy = dyn_cast<VectorType>(Ty)) {
lib/Target/X86/X86ISelLowering.cpp 2031 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) {
2031 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) {
27311 : (Type *)VectorType::get(ArgTy, 4);
lib/Target/X86/X86InstrInfo.cpp 5326 Ty = VectorType::get(Type::getInt32Ty(MF.getFunction().getContext()),16);
5329 Ty = VectorType::get(Type::getInt32Ty(MF.getFunction().getContext()), 8);
5331 Ty = VectorType::get(Type::getInt32Ty(MF.getFunction().getContext()), 2);
5333 Ty = VectorType::get(Type::getInt32Ty(MF.getFunction().getContext()), 4);
lib/Target/X86/X86InterleavedAccess.cpp 72 void decompose(Instruction *Inst, unsigned NumSubVectors, VectorType *T,
129 VectorType *ShuffleVecTy = Shuffles[0]->getType();
168 Instruction *VecInst, unsigned NumSubVectors, VectorType *SubVecTy,
204 VecBaseTy = VectorType::get(Type::getInt8Ty(LI->getContext()), 16);
724 VectorType *ShuffleTy = Shuffles[0]->getType();
765 decompose(Shuffles[0], Factor, VectorType::get(ShuffleEltTy, NumSubVecElems),
lib/Target/X86/X86TargetTransformInfo.cpp 930 Type *VecTy = VectorType::get(Tp->getVectorElementType(),
932 Type *SubTy = VectorType::get(Tp->getVectorElementType(),
968 Type *SingleOpTy = VectorType::get(Tp->getVectorElementType(),
2411 if (VectorType *VTy = dyn_cast<VectorType>(Src)) {
2411 if (VectorType *VTy = dyn_cast<VectorType>(Src)) {
2457 VectorType *SrcVTy = dyn_cast<VectorType>(SrcTy);
2457 VectorType *SrcVTy = dyn_cast<VectorType>(SrcTy);
2463 VectorType *MaskTy =
2464 VectorType::get(Type::getInt8Ty(SrcVTy->getContext()), NumElem);
2493 VectorType *NewMaskTy = VectorType::get(MaskTy->getVectorElementType(),
2493 VectorType *NewMaskTy = VectorType::get(MaskTy->getVectorElementType(),
3150 Type *IndexVTy = VectorType::get(IntegerType::get(SrcVTy->getContext(),
3157 Type *SplitSrcTy = VectorType::get(SrcVTy->getScalarType(), VF / SplitFactor);
3186 VectorType *MaskTy =
3187 VectorType::get(Type::getInt1Ty(SrcVTy->getContext()), VF);
3267 if (isa<VectorType>(DataTy) && DataTy->getVectorNumElements() == 1)
3325 if (!isa<VectorType>(DataTy))
3371 if (isa<VectorType>(DataTy)) {
3522 Type *SingleMemOpTy = VectorType::get(VecTy->getVectorElementType(),
3527 VectorType *VT = VectorType::get(ScalarTy, VF);
3527 VectorType *VT = VectorType::get(ScalarTy, VF);
3622 Type *SingleMemOpTy = VectorType::get(VecTy->getVectorElementType(),
3659 Type *ResultTy = VectorType::get(VecTy->getVectorElementType(),
lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp 279 if (auto *VTy = dyn_cast<VectorType>(V->getType()))
279 if (auto *VTy = dyn_cast<VectorType>(V->getType()))
280 return VectorType::get(Ty, VTy->getNumElements());
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp 1701 if (!isa<VectorType>(Ty) && !shouldChangeType(Ty, X->getType()))
lib/Transforms/InstCombine/InstCombineCalls.cpp 368 auto VT = cast<VectorType>(CDV->getType());
385 auto VT = cast<VectorType>(Vec->getType());
472 auto VT = cast<VectorType>(II.getType());
630 Type *IntegerVecTy = VectorType::getInteger(cast<VectorType>(ArgTy));
630 Type *IntegerVecTy = VectorType::getInteger(cast<VectorType>(ArgTy));
673 VectorType *VecTy = cast<VectorType>(II.getType());
673 VectorType *VecTy = cast<VectorType>(II.getType());
775 VectorType *ShufTy = VectorType::get(IntTy8, 16);
775 VectorType *ShufTy = VectorType::get(IntTy8, 16);
855 VectorType *ShufTy = VectorType::get(IntTy8, 16);
855 VectorType *ShufTy = VectorType::get(IntTy8, 16);
921 auto *VecTy = cast<VectorType>(II.getType());
921 auto *VecTy = cast<VectorType>(II.getType());
968 auto *VecTy = cast<VectorType>(II.getType());
968 auto *VecTy = cast<VectorType>(II.getType());
1018 auto *VecTy = cast<VectorType>(II.getType());
1018 auto *VecTy = cast<VectorType>(II.getType());
1407 auto *VecTy = cast<VectorType>(II.getType());
1407 auto *VecTy = cast<VectorType>(II.getType());
2370 Type *VTy = VectorType::get(Builder.getFloatTy(),
2391 Type *VTy = VectorType::get(Builder.getFloatTy(),
2459 auto ArgType = cast<VectorType>(Arg->getType());
2460 auto RetType = cast<VectorType>(II->getType());
2485 VectorType::get(Type::getHalfTy(II->getContext()), RetWidth);
2710 auto *MaskTy = VectorType::get(Builder.getInt1Ty(),
2710 auto *MaskTy = VectorType::get(Builder.getInt1Ty(),
3271 VectorType *NewVT = cast<VectorType>(II->getType());
3271 VectorType *NewVT = cast<VectorType>(II->getType());
lib/Transforms/InstCombine/InstCombineCasts.cpp 467 !isa<VectorType>(VecInput->getType()))
470 VectorType *VecType = cast<VectorType>(VecInput->getType());
470 VectorType *VecType = cast<VectorType>(VecInput->getType());
482 VecType = VectorType::get(DestType, NumVecElts);
582 if (!isa<VectorType>(SrcTy) && !shouldChangeType(SrcTy, DestTy))
1500 return VectorType::get(MinType, NumElts);
1766 Ty = VectorType::get(Ty, CI.getType()->getVectorNumElements());
1816 PtrTy = VectorType::get(PtrTy, Ty->getVectorNumElements());
1827 static Instruction *optimizeVectorResize(Value *InVal, VectorType *DestTy,
1832 VectorType *SrcTy = cast<VectorType>(InVal->getType());
1832 VectorType *SrcTy = cast<VectorType>(InVal->getType());
1843 SrcTy = VectorType::get(DestTy->getElementType(), SrcTy->getNumElements());
2008 VectorType *DestVecTy = cast<VectorType>(CI.getType());
2008 VectorType *DestVecTy = cast<VectorType>(CI.getType());
2045 if (!VectorType::isValidElementType(DestType))
2049 auto *NewVecType = VectorType::get(DestType, NumElts);
2049 auto *NewVecType = VectorType::get(DestType, NumElts);
2361 if (VectorType *DestVTy = dyn_cast<VectorType>(DestTy)) {
2361 if (VectorType *DestVTy = dyn_cast<VectorType>(DestTy)) {
2376 if (isa<VectorType>(BCIn->getOperand(0)->getType()))
2378 cast<VectorType>(DestTy), *this))
2390 if (VectorType *SrcVTy = dyn_cast<VectorType>(SrcTy)) {
2390 if (VectorType *SrcVTy = dyn_cast<VectorType>(SrcTy)) {
2482 if (VectorType *VT = dyn_cast<VectorType>(CI.getType())) {
2482 if (VectorType *VT = dyn_cast<VectorType>(CI.getType())) {
2484 MidTy = VectorType::get(MidTy, VT->getNumElements());
lib/Transforms/InstCombine/InstCombineCompares.cpp 1867 NTy = VectorType::get(NTy, And->getType()->getVectorNumElements());
2153 TruncTy = VectorType::get(TruncTy, ShType->getVectorNumElements());
2800 auto *VecTy = cast<VectorType>(BCSrcOp->getType());
2800 auto *VecTy = cast<VectorType>(BCSrcOp->getType());
4405 if (isa<VectorType>(SrcTy)) {
4406 SrcTy = cast<VectorType>(SrcTy)->getElementType();
4407 DestTy = cast<VectorType>(DestTy)->getElementType();
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp 1095 auto *UT = cast<VectorType>(U->getType());
1095 auto *UT = cast<VectorType>(U->getType());
lib/Transforms/InstCombine/InstCombineSelect.cpp 2634 if (VectorType *VecTy = dyn_cast<VectorType>(SelType)) {
2634 if (VectorType *VecTy = dyn_cast<VectorType>(SelType)) {
lib/Transforms/InstCombine/InstCombineShifts.cpp 703 if (VectorType *VT = dyn_cast<VectorType>(X->getType()))
703 if (VectorType *VT = dyn_cast<VectorType>(X->getType()))
738 if (VectorType *VT = dyn_cast<VectorType>(X->getType()))
738 if (VectorType *VT = dyn_cast<VectorType>(X->getType()))
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp 378 if (VectorType *DstVTy = dyn_cast<VectorType>(I->getType())) {
378 if (VectorType *DstVTy = dyn_cast<VectorType>(I->getType())) {
379 if (VectorType *SrcVTy =
380 dyn_cast<VectorType>(I->getOperand(0)->getType())) {
729 auto ArgType = cast<VectorType>(Arg->getType());
1037 Type *NewTy = (NewNumElts == 1) ? EltTy : VectorType::get(EltTy, NewNumElts);
1116 Type *EltTy = cast<VectorType>(V->getType())->getElementType();
1397 VectorType *VTy = dyn_cast<VectorType>(I->getOperand(0)->getType());
1397 VectorType *VTy = dyn_cast<VectorType>(I->getOperand(0)->getType());
lib/Transforms/InstCombine/InstCombineVectorOps.cpp 525 VectorType *InsVecType = InsElt->getType();
526 VectorType *ExtVecType = ExtElt->getVectorOperandType();
753 auto *VecTy = cast<VectorType>(InsElt.getType());
753 auto *VecTy = cast<VectorType>(InsElt.getType());
1271 VectorType::get(I->getType()->getScalarType(),
1296 return UndefValue::get(VectorType::get(EltTy, Mask.size()));
1299 return ConstantAggregateZero::get(VectorType::get(EltTy, Mask.size()));
1999 VectorType *SrcTy = cast<VectorType>(V->getType());
1999 VectorType *SrcTy = cast<VectorType>(V->getType());
2022 if (!VectorType::isValidElementType(TgtTy))
2024 VectorType *CastSrcTy = VectorType::get(TgtTy, TgtNumElems);
2024 VectorType *CastSrcTy = VectorType::get(TgtTy, TgtNumElems);
lib/Transforms/InstCombine/InstructionCombining.cpp 874 VectorType *DestTy = dyn_cast<VectorType>(BC->getDestTy());
874 VectorType *DestTy = dyn_cast<VectorType>(BC->getDestTy());
875 VectorType *SrcTy = dyn_cast<VectorType>(BC->getSrcTy());
875 VectorType *SrcTy = dyn_cast<VectorType>(BC->getSrcTy());
1406 unsigned NumElts = cast<VectorType>(Inst.getType())->getNumElements();
1663 ? VectorType::get(NewScalarIndexTy, IndexTy->getVectorNumElements())
1829 if (!isa<VectorType>(GEPType) || // case 3
1830 isa<VectorType>(SO0Ty)) { // case 4
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp 1353 VectorType *ShadowVecTy = VectorType::get(DFS.ShadowTy, ShadowVecSize);
1353 VectorType *ShadowVecTy = VectorType::get(DFS.ShadowTy, ShadowVecSize);
1464 if (isa<VectorType>(I.getCondition()->getType())) {
lib/Transforms/Instrumentation/MemorySanitizer.cpp 1346 if (VectorType *VT = dyn_cast<VectorType>(OrigTy)) {
1346 if (VectorType *VT = dyn_cast<VectorType>(OrigTy)) {
1348 return VectorType::get(IntegerType::get(*MS.C, EltSize),
1369 if (VectorType *vt = dyn_cast<VectorType>(ty))
1369 if (VectorType *vt = dyn_cast<VectorType>(ty))
1544 if (isa<IntegerType>(ShadowTy) || isa<VectorType>(ShadowTy))
2735 return VectorType::get(IntegerType::get(*MS.C, EltSizeInBits),
lib/Transforms/Instrumentation/ThreadSanitizer.cpp 541 if (isa<VectorType>(StoredValue->getType()))
lib/Transforms/Scalar/Float2Int.cpp 130 if (isa<VectorType>(I.getType()))
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp 331 if (auto VT = dyn_cast<VectorType>(T))
343 if (VectorType *VT = dyn_cast<VectorType>(Ty))
343 if (VectorType *VT = dyn_cast<VectorType>(Ty))
941 isa<VectorType>(State.getBaseValue()->getType())) {
1296 if (auto *VT = dyn_cast<VectorType>(Ty))
1296 if (auto *VT = dyn_cast<VectorType>(Ty))
1297 NewTy = VectorType::get(NewTy, VT->getNumElements());
lib/Transforms/Scalar/SROA.cpp 1441 } else if (VectorType *VectorTy = dyn_cast<VectorType>(ElementTy)) {
1441 } else if (VectorType *VectorTy = dyn_cast<VectorType>(ElementTy)) {
1480 if (VectorType *VecTy = dyn_cast<VectorType>(Ty)) {
1480 if (VectorType *VecTy = dyn_cast<VectorType>(Ty)) {
1811 VectorType *Ty,
1831 : VectorType::get(Ty->getElementType(), NumElements);
1885 static VectorType *isVectorPromotionViable(Partition &P, const DataLayout &DL) {
1888 SmallVector<VectorType *, 4> CandidateTys;
1892 if (auto *VTy = dyn_cast<VectorType>(Ty)) {
1892 if (auto *VTy = dyn_cast<VectorType>(Ty)) {
1895 VectorType *V = CandidateTys[0];
1958 for (VectorType *VTy : CandidateTys) {
1990 for (VectorType *VTy : CandidateTys)
2031 if (!isa<VectorType>(LI->getType()) && RelBegin == 0 && RelEnd == Size)
2056 if (!isa<VectorType>(ValueTy) && RelBegin == 0 && RelEnd == Size)
2186 VectorType *VecTy = cast<VectorType>(V->getType());
2186 VectorType *VecTy = cast<VectorType>(V->getType());
2212 VectorType *VecTy = cast<VectorType>(Old->getType());
2212 VectorType *VecTy = cast<VectorType>(Old->getType());
2215 VectorType *Ty = dyn_cast<VectorType>(V->getType());
2215 VectorType *Ty = dyn_cast<VectorType>(V->getType());
2292 VectorType *VecTy;
2324 VectorType *PromotableVecTy,
2608 : VectorType::get(ElementTy, NumElements);
2791 auto *SrcTy = VectorType::get(Int8Ty, Len);
2791 auto *SrcTy = VectorType::get(Int8Ty, Len);
2862 if (VectorType *AllocaVecTy = dyn_cast<VectorType>(AllocaTy))
2862 if (VectorType *AllocaVecTy = dyn_cast<VectorType>(AllocaTy))
3012 OtherTy = VectorType::get(VecTy->getElementType(), NumElements);
4137 VectorType *VecTy =
lib/Transforms/Scalar/Scalarizer.cpp 162 VectorType *VecTy = nullptr;
421 Layout.VecTy = dyn_cast<VectorType>(Ty);
442 VectorType *VT = dyn_cast<VectorType>(I.getType());
442 VectorType *VT = dyn_cast<VectorType>(I.getType());
462 VectorType *VT = dyn_cast<VectorType>(I.getType());
462 VectorType *VT = dyn_cast<VectorType>(I.getType());
488 VectorType *Ty) {
495 VectorType *VT = dyn_cast<VectorType>(CI.getType());
495 VectorType *VT = dyn_cast<VectorType>(CI.getType());
553 VectorType *VT = dyn_cast<VectorType>(SI.getType());
553 VectorType *VT = dyn_cast<VectorType>(SI.getType());
599 VectorType *VT = dyn_cast<VectorType>(GEPI.getType());
599 VectorType *VT = dyn_cast<VectorType>(GEPI.getType());
645 VectorType *VT = dyn_cast<VectorType>(CI.getDestTy());
645 VectorType *VT = dyn_cast<VectorType>(CI.getDestTy());
663 VectorType *DstVT = dyn_cast<VectorType>(BCI.getDestTy());
663 VectorType *DstVT = dyn_cast<VectorType>(BCI.getDestTy());
664 VectorType *SrcVT = dyn_cast<VectorType>(BCI.getSrcTy());
664 VectorType *SrcVT = dyn_cast<VectorType>(BCI.getSrcTy());
683 Type *MidTy = VectorType::get(DstVT->getElementType(), FanOut);
701 Type *MidTy = VectorType::get(SrcVT->getElementType(), FanIn);
718 VectorType *VT = dyn_cast<VectorType>(SVI.getType());
718 VectorType *VT = dyn_cast<VectorType>(SVI.getType());
742 VectorType *VT = dyn_cast<VectorType>(PHI.getType());
742 VectorType *VT = dyn_cast<VectorType>(PHI.getType());
lib/Transforms/Utils/FunctionComparator.cpp 229 if (auto *VecTyL = dyn_cast<VectorType>(TyL))
229 if (auto *VecTyL = dyn_cast<VectorType>(TyL))
231 if (auto *VecTyR = dyn_cast<VectorType>(TyR))
231 if (auto *VecTyR = dyn_cast<VectorType>(TyR))
331 unsigned NumElementsL = cast<VectorType>(TyL)->getNumElements();
332 unsigned NumElementsR = cast<VectorType>(TyR)->getNumElements();
lib/Transforms/Utils/LowerMemIntrinsics.cpp 18 if (VectorType *VTy = dyn_cast<VectorType>(Type)) {
18 if (VectorType *VTy = dyn_cast<VectorType>(Type)) {
lib/Transforms/Utils/SimplifyLibCalls.cpp 2084 ? static_cast<Type *>(VectorType::get(ArgTy, 2))
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp 758 if (!VectorType::isValidElementType(Ty->getScalarType()))
779 VectorType *VecTy = dyn_cast<VectorType>(Ty);
779 VectorType *VecTy = dyn_cast<VectorType>(Ty);
787 if (isa<VectorType>(Ty) && !llvm::all_of(LI->users(), [](const User *U) {
805 if (!VectorType::isValidElementType(Ty->getScalarType()))
826 VectorType *VecTy = dyn_cast<VectorType>(Ty);
826 VectorType *VecTy = dyn_cast<VectorType>(Ty);
833 if (isa<VectorType>(Ty) && !llvm::all_of(SI->users(), [](const User *U) {
991 VectorType *VecTy;
992 VectorType *VecStoreTy = dyn_cast<VectorType>(StoreTy);
992 VectorType *VecStoreTy = dyn_cast<VectorType>(StoreTy);
994 VecTy = VectorType::get(StoreTy->getScalarType(),
997 VecTy = VectorType::get(StoreTy, Chain.size());
1141 VectorType *VecTy;
1142 VectorType *VecLoadTy = dyn_cast<VectorType>(LoadTy);
1142 VectorType *VecLoadTy = dyn_cast<VectorType>(LoadTy);
1144 VecTy = VectorType::get(LoadTy->getScalarType(),
1147 VecTy = VectorType::get(LoadTy, Chain.size());
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp 719 if ((!VectorType::isValidElementType(I.getType()) &&
731 if (!VectorType::isValidElementType(T)) {
742 Type *VecTy = VectorType::get(T, /*NumElements=*/2);
759 Type *VecTy = VectorType::get(I.getType(), /*NumElements=*/2);
lib/Transforms/Vectorize/LoopVectorize.cpp 303 return VectorType::get(Scalar, VF);
322 auto *VectorTy = VectorType::get(Ty, VF);
322 auto *VectorTy = VectorType::get(Ty, VF);
619 Value *createBitOrPointerCast(Value *V, VectorType *DstVTy,
2044 Value *Undef = UndefValue::get(VectorType::get(V->getType(), VF));
2174 Type *VecTy = VectorType::get(ScalarTy, InterleaveFactor * VF);
2282 VectorType *OtherVTy = VectorType::get(Member->getType(), VF);
2282 VectorType *OtherVTy = VectorType::get(Member->getType(), VF);
2296 VectorType *SubVT = VectorType::get(ScalarTy, VF);
2296 VectorType *SubVT = VectorType::get(ScalarTy, VF);
2361 Type *DataTy = VectorType::get(ScalarDataTy, VF);
2647 Value *InnerLoopVectorizer::createBitOrPointerCast(Value *V, VectorType *DstVTy,
2651 VectorType *SrcVecTy = cast<VectorType>(V->getType());
2651 VectorType *SrcVecTy = cast<VectorType>(V->getType());
2672 VectorType *VecIntTy = VectorType::get(IntTy, VF);
2672 VectorType *VecIntTy = VectorType::get(IntTy, VF);
3307 Type *TruncatedTy = VectorType::get(ScalarTruncatedTy,
3360 SI->getOperand(0), VectorType::get(ScalarTruncatedTy, Elements0));
3363 SI->getOperand(1), VectorType::get(ScalarTruncatedTy, Elements1));
3372 IE->getOperand(0), VectorType::get(ScalarTruncatedTy, Elements));
3378 EE->getOperand(0), VectorType::get(ScalarTruncatedTy, Elements));
3536 UndefValue::get(VectorType::get(VectorInit->getType(), VF)), VectorInit,
3746 Type *RdxVecTy = VectorType::get(RdxDesc.getRecurrenceType(), VF);
3973 (VF == 1) ? PN->getType() : VectorType::get(PN->getType(), VF);
3992 (VF == 1) ? PN->getType() : VectorType::get(PN->getType(), VF);
4246 (VF == 1) ? CI->getType() : VectorType::get(CI->getType(), VF);
4301 TysForDecl[0] = VectorType::get(CI->getType()->getScalarType(), VF);
5839 Type *WideVecTy = VectorType::get(ValTy, VF * InterleaveFactor);
6123 VectorType::get(IntegerType::getInt1Ty(RetTy->getContext()), VF);
6143 VectorTy, VF - 1, VectorType::get(RetTy, 1));
6232 CondTy = VectorType::get(CondTy, VF);
7354 UndefValue::get(VectorType::get(Ingredient->getType(), State.VF));
lib/Transforms/Vectorize/SLPVectorizer.cpp 175 return VectorType::isValidElementType(Ty) && !Ty->isX86_FP80Ty() &&
1180 Value *Gather(ArrayRef<Value *> VL, VectorType *Ty);
2821 uint64_t VTSize = DL.getTypeStoreSizeInBits(VectorType::get(EltTy, N));
2915 VectorType *VecTy = VectorType::get(ScalarTy, VL.size());
2915 VectorType *VecTy = VectorType::get(ScalarTy, VL.size());
2920 VecTy = VectorType::get(
3057 VectorType *SrcVecTy = VectorType::get(SrcTy, VL.size());
3057 VectorType *SrcVecTy = VectorType::get(SrcTy, VL.size());
3075 VectorType *MaskTy = VectorType::get(Builder.getInt1Ty(), VL.size());
3075 VectorType *MaskTy = VectorType::get(Builder.getInt1Ty(), VL.size());
3259 VectorType *Src0Ty = VectorType::get(Src0SclTy, VL.size());
3259 VectorType *Src0Ty = VectorType::get(Src0SclTy, VL.size());
3260 VectorType *Src1Ty = VectorType::get(Src1SclTy, VL.size());
3260 VectorType *Src1Ty = VectorType::get(Src1SclTy, VL.size());
3412 V.push_back(VectorType::get(II->getType(), BundleWidth));
3475 auto *VecTy = VectorType::get(EU.Scalar->getType(), BundleWidth);
3475 auto *VecTy = VectorType::get(EU.Scalar->getType(), BundleWidth);
3481 VecTy = VectorType::get(MinTy, BundleWidth);
3511 for (unsigned i = 0, e = cast<VectorType>(Ty)->getNumElements(); i < e; ++i)
3524 VectorType *VecTy = VectorType::get(ScalarTy, VL.size());
3524 VectorType *VecTy = VectorType::get(ScalarTy, VL.size());
3616 Value *BoUpSLP::Gather(ArrayRef<Value *> VL, VectorType *Ty) {
3699 VectorType *VecTy = VectorType::get(ScalarTy, VL.size());
3699 VectorType *VecTy = VectorType::get(ScalarTy, VL.size());
3734 VectorType *VecTy = VectorType::get(ScalarTy, E->Scalars.size());
3734 VectorType *VecTy = VectorType::get(ScalarTy, E->Scalars.size());
4137 Type *Tys[] = { VectorType::get(CI->getType(), E->Scalars.size()) };
4258 auto *VecTy = VectorType::get(MinTy, BundleWidth);
4258 auto *VecTy = VectorType::get(MinTy, BundleWidth);
4949 if (isa<VectorType>(Ty))
5555 auto *VecTy = VectorType::get(VL[0]->getType(), VF);
5555 auto *VecTy = VectorType::get(VL[0]->getType(), VF);
6513 Type *VecTy = VectorType::get(ScalarTy, ReduxWidth);
tools/clang/include/clang/CodeGen/SwiftCallingConv.h 140 llvm::VectorType *vectorTy);
147 llvm::VectorType *vectorTy);
154 llvm::VectorType *vectorTy,
tools/clang/lib/CodeGen/Address.h 108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGBuiltin.cpp 4285 static llvm::VectorType *GetNeonType(CodeGenFunction *CGF,
4293 return llvm::VectorType::get(CGF->Int8Ty, V1Ty ? 1 : (8 << IsQuad));
4296 return llvm::VectorType::get(CGF->Int16Ty, V1Ty ? 1 : (4 << IsQuad));
4299 return llvm::VectorType::get(CGF->HalfTy, V1Ty ? 1 : (4 << IsQuad));
4301 return llvm::VectorType::get(CGF->Int16Ty, V1Ty ? 1 : (4 << IsQuad));
4303 return llvm::VectorType::get(CGF->Int32Ty, V1Ty ? 1 : (2 << IsQuad));
4306 return llvm::VectorType::get(CGF->Int64Ty, V1Ty ? 1 : (1 << IsQuad));
4311 return llvm::VectorType::get(CGF->Int8Ty, 16);
4313 return llvm::VectorType::get(CGF->FloatTy, V1Ty ? 1 : (2 << IsQuad));
4315 return llvm::VectorType::get(CGF->DoubleTy, V1Ty ? 1 : (1 << IsQuad));
4320 static llvm::VectorType *GetFloatNeonType(CodeGenFunction *CGF,
4325 return llvm::VectorType::get(CGF->HalfTy, (4 << IsQuad));
4327 return llvm::VectorType::get(CGF->FloatTy, (2 << IsQuad));
4329 return llvm::VectorType::get(CGF->DoubleTy, (1 << IsQuad));
4365 llvm::VectorType *VTy = cast<llvm::VectorType>(Ty);
4365 llvm::VectorType *VTy = cast<llvm::VectorType>(Ty);
5148 Ty = llvm::VectorType::get(
5157 ArgType = llvm::VectorType::get(ArgType, Elts);
5252 llvm::VectorType *VTy = GetNeonType(this, Type, HasLegalHalfType);
5280 llvm::VectorType *SrcTy =
5281 llvm::VectorType::getExtendedElementVectorType(VTy);
5319 llvm::Type *VecFlt = llvm::VectorType::get(Ty, VTy->getNumElements());
5547 llvm::Type *DTy =llvm::VectorType::getTruncatedElementVectorType(VTy);
5554 llvm::Type *QTy = llvm::VectorType::getExtendedElementVectorType(VTy);
5574 llvm::VectorType::get(EltTy, VTy->getNumElements() * 2);
5584 llvm::VectorType::get(EltTy, VTy->getNumElements() * 2);
5624 llvm::Type *SrcTy = llvm::VectorType::getTruncatedElementVectorType(VTy);
5634 llvm::Type *SrcTy = llvm::VectorType::getExtendedElementVectorType(VTy);
5682 llvm::VectorType *SrcTy =
5683 llvm::VectorType::getExtendedElementVectorType(VTy);
5766 llvm::VectorType::get(Int8Ty, Ty->getPrimitiveSizeInBits() / 8);
5774 llvm::VectorType::get(HalfTy, Ty->getPrimitiveSizeInBits() / 16);
5781 llvm::VectorType::get(HalfTy, Ty->getPrimitiveSizeInBits() / 16);
5788 llvm::VectorType::get(HalfTy, Ty->getPrimitiveSizeInBits() / 16);
5795 llvm::VectorType::get(HalfTy, Ty->getPrimitiveSizeInBits() / 16);
5844 llvm::VectorType *TblTy = cast<llvm::VectorType>(Ops[0]->getType());
5844 llvm::VectorType *TblTy = cast<llvm::VectorType>(Ops[0]->getType());
6652 llvm::VectorType *VTy = GetNeonType(this, Type,
6681 Ty = llvm::VectorType::get(VTy->getElementType(), 1);
6938 llvm::VectorType *Ty = GetNeonType(&CGF, Type);
7039 llvm::Type *VTy = llvm::VectorType::get(Int16Ty, 4);
7697 llvm::Type *Ty = llvm::VectorType::get(Int64Ty, 2);
7710 llvm::VectorType::get(DoubleTy, 2);
7723 llvm::VectorType::get(FloatTy, 2);
7897 llvm::VectorType::get(DoubleTy, 1));
7903 llvm::VectorType::get(DoubleTy, 2));
7909 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int8Ty, 8));
7914 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int8Ty, 16));
7919 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int16Ty, 4));
7924 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int16Ty, 8));
7929 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int32Ty, 2));
7934 llvm::VectorType::get(FloatTy, 2));
7939 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int32Ty, 4));
7944 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int64Ty, 1));
7949 llvm::VectorType::get(DoubleTy, 1));
7954 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int64Ty, 2));
7959 llvm::VectorType::get(FloatTy, 2));
7964 llvm::VectorType::get(DoubleTy, 1));
7970 llvm::VectorType::get(FloatTy, 4));
7976 llvm::VectorType::get(DoubleTy, 2));
8015 llvm::Type *VTy = llvm::VectorType::get(Int32Ty, 4);
8112 llvm::Type *VTy = llvm::VectorType::get(Int32Ty, 4);
8314 llvm::VectorType *VTy = GetNeonType(this, Type);
8338 llvm::Type *BitTy = llvm::VectorType::getInteger(VTy);
8361 llvm::VectorType::get(VTy->getElementType(), VTy->getNumElements() / 2) :
8373 llvm::VectorType *VTy = cast<llvm::VectorType>(Ty);
8373 llvm::VectorType *VTy = cast<llvm::VectorType>(Ty);
8390 llvm::Type *STy = llvm::VectorType::get(VTy->getElementType(),
8458 llvm::Type *ArgTy = llvm::VectorType::get(
8764 VTy = llvm::VectorType::get(Int8Ty, 8);
8776 VTy = llvm::VectorType::get(Int16Ty, 4);
8788 VTy = llvm::VectorType::get(Int8Ty, 16);
8800 VTy = llvm::VectorType::get(Int16Ty, 8);
8809 VTy = llvm::VectorType::get(Int8Ty, 8);
8818 VTy = llvm::VectorType::get(Int16Ty, 4);
8827 VTy = llvm::VectorType::get(Int8Ty, 16);
8836 VTy = llvm::VectorType::get(Int16Ty, 8);
8845 VTy = llvm::VectorType::get(Int8Ty, 8);
8854 VTy = llvm::VectorType::get(Int16Ty, 4);
8863 VTy = llvm::VectorType::get(Int8Ty, 16);
8872 VTy = llvm::VectorType::get(Int16Ty, 8);
8881 VTy = llvm::VectorType::get(HalfTy, 4);
8890 VTy = llvm::VectorType::get(HalfTy, 8);
8899 VTy = llvm::VectorType::get(Int8Ty, 8);
8908 VTy = llvm::VectorType::get(Int16Ty, 4);
8917 VTy = llvm::VectorType::get(Int8Ty, 16);
8926 VTy = llvm::VectorType::get(Int16Ty, 8);
8935 VTy = llvm::VectorType::get(Int8Ty, 8);
8944 VTy = llvm::VectorType::get(Int16Ty, 4);
8953 VTy = llvm::VectorType::get(Int8Ty, 16);
8962 VTy = llvm::VectorType::get(Int16Ty, 8);
8971 VTy = llvm::VectorType::get(HalfTy, 4);
8980 VTy = llvm::VectorType::get(HalfTy, 8);
8989 VTy = llvm::VectorType::get(HalfTy, 4);
8998 VTy = llvm::VectorType::get(HalfTy, 8);
9007 VTy = llvm::VectorType::get(HalfTy, 4);
9016 VTy = llvm::VectorType::get(HalfTy, 8);
9030 VTy = llvm::VectorType::get(Int8Ty, 8);
9039 VTy = llvm::VectorType::get(Int16Ty, 4);
9047 VTy = llvm::VectorType::get(Int8Ty, 16);
9056 VTy = llvm::VectorType::get(Int16Ty, 8);
9064 VTy = llvm::VectorType::get(Int8Ty, 8);
9073 VTy = llvm::VectorType::get(Int16Ty, 4);
9081 VTy = llvm::VectorType::get(Int8Ty, 16);
9090 VTy = llvm::VectorType::get(Int16Ty, 8);
9481 llvm::UndefValue::get(llvm::VectorType::get(Ops[0]->getType(), Ops.size()));
9493 llvm::VectorType *MaskTy = llvm::VectorType::get(CGF.Builder.getInt1Ty(),
9493 llvm::VectorType *MaskTy = llvm::VectorType::get(CGF.Builder.getInt1Ty(),
9675 llvm::VectorType *MaskTy =
9676 llvm::VectorType::get(CGF.Builder.getInt1Ty(),
9715 llvm::VectorType::get(CGF.Builder.getInt1Ty(), NumElts));
9718 llvm::VectorType::get(CGF.Builder.getInt1Ty(), NumElts));
9933 Ty = llvm::VectorType::get(CGF.Int64Ty,
10207 llvm::VectorType *FPVecTy = cast<llvm::VectorType>(Ops[0]->getType());
10207 llvm::VectorType *FPVecTy = cast<llvm::VectorType>(Ops[0]->getType());
10208 llvm::VectorType *IntVecTy = llvm::VectorType::getInteger(FPVecTy);
10208 llvm::VectorType *IntVecTy = llvm::VectorType::getInteger(FPVecTy);
11252 llvm::Type *VecTy = llvm::VectorType::get(Int8Ty, NumElts);
11282 llvm::Type *VecTy = llvm::VectorType::get(Int8Ty, NumElts);
12674 Ops[1] = Builder.CreateBitCast(Ops[1], llvm::VectorType::get(Int64Ty, 2));
12684 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int64Ty, 2));
12692 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int32Ty, 4));
12701 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int64Ty, 2));
12738 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int64Ty, 2));
12739 Ops[1] = Builder.CreateBitCast(Ops[1], llvm::VectorType::get(Int64Ty, 2));
12762 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int32Ty, 4));
12763 Ops[1] = Builder.CreateBitCast(Ops[1], llvm::VectorType::get(Int32Ty, 4));
12802 llvm::UndefValue::get(llvm::VectorType::get(Ops[0]->getType(), 2));
12813 Ops[0], llvm::VectorType::get(ConvertType(E->getType()), 2));
14552 llvm::VectorType::get(Builder.getInt1Ty(), Size)->getPointerTo(0));
14574 llvm::VectorType::get(Builder.getInt1Ty(), Size)->getPointerTo(0));
tools/clang/lib/CodeGen/CGCall.cpp 4296 if (auto *VT = dyn_cast<llvm::VectorType>(IRCallArgs[i]->getType()))
4296 if (auto *VT = dyn_cast<llvm::VectorType>(IRCallArgs[i]->getType()))
4380 if (auto *VT = dyn_cast<llvm::VectorType>(CI->getType()))
4380 if (auto *VT = dyn_cast<llvm::VectorType>(CI->getType()))
tools/clang/lib/CodeGen/CGExpr.cpp 1645 const auto *VTy = cast<llvm::VectorType>(EltTy);
1645 const auto *VTy = cast<llvm::VectorType>(EltTy);
1651 llvm::VectorType *vec4Ty =
1652 llvm::VectorType::get(VTy->getElementType(), 4);
1725 auto *VecTy = dyn_cast<llvm::VectorType>(SrcTy);
1725 auto *VecTy = dyn_cast<llvm::VectorType>(SrcTy);
1735 SrcTy = llvm::VectorType::get(VecTy->getElementType(), 4);
tools/clang/lib/CodeGen/CGExprScalar.cpp 1294 if (isa<llvm::VectorType>(SrcTy) || isa<llvm::VectorType>(DstTy)) {
1294 if (isa<llvm::VectorType>(SrcTy) || isa<llvm::VectorType>(DstTy)) {
1597 llvm::VectorType *LTy = cast<llvm::VectorType>(LHS->getType());
1597 llvm::VectorType *LTy = cast<llvm::VectorType>(LHS->getType());
1602 llvm::VectorType *MTy = cast<llvm::VectorType>(Mask->getType());
1602 llvm::VectorType *MTy = cast<llvm::VectorType>(Mask->getType());
1615 llvm::VectorType *RTy = llvm::VectorType::get(LTy->getElementType(),
1615 llvm::VectorType *RTy = llvm::VectorType::get(LTy->getElementType(),
1784 llvm::VectorType *VType =
1785 dyn_cast<llvm::VectorType>(ConvertType(E->getType()));
1811 llvm::VectorType *VVT = dyn_cast<llvm::VectorType>(Init->getType());
1811 llvm::VectorType *VVT = dyn_cast<llvm::VectorType>(Init->getType());
1868 llvm::VectorType *OpTy = cast<llvm::VectorType>(SVOp->getType());
1868 llvm::VectorType *OpTy = cast<llvm::VectorType>(SVOp->getType());
3023 (isa<llvm::VectorType>(ValTy) &&
3024 cast<llvm::VectorType>(ValTy)->getElementType()->isFloatTy()))
3583 if (llvm::VectorType *VT = dyn_cast<llvm::VectorType>(LHS->getType()))
3583 if (llvm::VectorType *VT = dyn_cast<llvm::VectorType>(LHS->getType()))
4197 llvm::VectorType *vecTy = cast<llvm::VectorType>(condType);
4197 llvm::VectorType *vecTy = cast<llvm::VectorType>(condType);
4205 llvm::VectorType::get(elemType,
4214 llvm::VectorType *rhsVTy = cast<llvm::VectorType>(RHS->getType());
4214 llvm::VectorType *rhsVTy = cast<llvm::VectorType>(RHS->getType());
4392 unsigned NumElementsSrc = isa<llvm::VectorType>(SrcTy) ?
4393 cast<llvm::VectorType>(SrcTy)->getNumElements() : 0;
4394 unsigned NumElementsDst = isa<llvm::VectorType>(DstTy) ?
4395 cast<llvm::VectorType>(DstTy)->getNumElements() : 0;
4416 auto Vec4Ty = llvm::VectorType::get(DstTy->getVectorElementType(), 4);
tools/clang/lib/CodeGen/CGStmt.cpp 2086 if (auto *VT = dyn_cast<llvm::VectorType>(ResultRegTypes.back()))
2086 if (auto *VT = dyn_cast<llvm::VectorType>(ResultRegTypes.back()))
2111 if (auto *VT = dyn_cast<llvm::VectorType>(Arg->getType()))
2111 if (auto *VT = dyn_cast<llvm::VectorType>(Arg->getType()))
2198 if (auto *VT = dyn_cast<llvm::VectorType>(Arg->getType()))
2198 if (auto *VT = dyn_cast<llvm::VectorType>(Arg->getType()))
tools/clang/lib/CodeGen/CodeGenFunction.cpp 433 if (auto *VT = dyn_cast<llvm::VectorType>(A.getType()))
433 if (auto *VT = dyn_cast<llvm::VectorType>(A.getType()))
438 if (auto *VT = dyn_cast<llvm::VectorType>(CurFn->getReturnType()))
438 if (auto *VT = dyn_cast<llvm::VectorType>(CurFn->getReturnType()))
tools/clang/lib/CodeGen/CodeGenTypes.cpp 608 ResultType = llvm::VectorType::get(ConvertType(VT->getElementType()),
tools/clang/lib/CodeGen/SwiftCallingConv.cpp 43 } else if (auto firstVecTy = dyn_cast<llvm::VectorType>(first)) {
44 if (auto secondVecTy = dyn_cast<llvm::VectorType>(second)) {
204 if (auto vecTy = dyn_cast<llvm::VectorType>(type)) {
237 if (auto vecTy = dyn_cast<llvm::VectorType>(type)) {
321 if (auto vecTy = dyn_cast_or_null<llvm::VectorType>(type)) {
384 auto vecTy = cast<llvm::VectorType>(Entries[index].Type);
676 llvm::VectorType *vectorTy) {
690 llvm::VectorType *vectorTy) {
697 return {llvm::VectorType::get(eltTy, numElts / 2), 2};
704 llvm::VectorType *origVectorTy,
750 components.append(numVecs, llvm::VectorType::get(eltTy, candidateNumElts));
760 components.push_back(llvm::VectorType::get(eltTy, numElts));
tools/clang/lib/CodeGen/TargetInfo.cpp 927 cast<llvm::VectorType>(IRType)->getElementType()->isIntegerTy() &&
938 if (cast<llvm::VectorType>(Ty)->getBitWidth() != 64) {
1402 return ABIArgInfo::getDirect(llvm::VectorType::get(
2212 if (llvm::VectorType *vectorTy = dyn_cast_or_null<llvm::VectorType>(ty))
2212 if (llvm::VectorType *vectorTy = dyn_cast_or_null<llvm::VectorType>(ty))
3003 if (isa<llvm::VectorType>(IRType)) {
3010 return llvm::VectorType::get(llvm::Type::getInt64Ty(getVMContext()),
3026 return llvm::VectorType::get(llvm::Type::getDoubleTy(getVMContext()),
3161 return llvm::VectorType::get(llvm::Type::getFloatTy(getVMContext()), 2);
4028 llvm::VectorType::get(llvm::Type::getInt64Ty(getVMContext()), 2));
5124 llvm::VectorType::get(llvm::Type::getInt32Ty(getVMContext()), 2);
5129 llvm::VectorType::get(llvm::Type::getInt32Ty(getVMContext()), 4);
5834 llvm::Type *ResType = llvm::VectorType::get(
5850 llvm::Type *NewVecTy = llvm::VectorType::get(
tools/llvm-stress/llvm-stress.cpp 241 VectorType *VTp = cast<VectorType>(Tp);
241 VectorType *VTp = cast<VectorType>(Tp);
303 return VectorType::get(Ty, width);
486 getRandom() % cast<VectorType>(Val0->getType())->getNumElements()),
500 unsigned Width = cast<VectorType>(Val0->getType())->getNumElements();
530 getRandom() % cast<VectorType>(Val0->getType())->getNumElements()),
547 VectorType *VecTy = cast<VectorType>(VTy);
547 VectorType *VecTy = cast<VectorType>(VTy);
630 unsigned NumElem = cast<VectorType>(Val0->getType())->getNumElements();
631 CondTy = VectorType::get(CondTy, NumElem);
tools/polly/lib/CodeGen/BlockGenerators.cpp 1027 Value *Vector = UndefValue::get(VectorType::get(Old->getType(), Width));
1044 VectorType *VectorType = VectorType::get(ScalarType, Width);
1044 VectorType *VectorType = VectorType::get(ScalarType, Width);
1095 VectorType::get(Builder.getInt32Ty(), getVectorWidth()));
1107 VectorType *VectorType = VectorType::get(
1107 VectorType *VectorType = VectorType::get(
1133 if (!VectorType::isValidElementType(Load->getType())) {
1169 VectorType *DestType = VectorType::get(Inst->getType(), VectorWidth);
1169 VectorType *DestType = VectorType::get(Inst->getType(), VectorWidth);
1275 if (!VectorType::isValidElementType(Inst->getType()) || !HasVectorOperand)
1279 VectorType *VectorType = VectorType::get(Inst->getType(), VectorWidth);
1279 VectorType *VectorType = VectorType::get(Inst->getType(), VectorWidth);
1346 VectorType::get(Builder.getInt32Ty(), getVectorWidth()));
unittests/Analysis/VectorUtilsTest.cpp 80 Value *UndefVec = UndefValue::get(VectorType::get(IRB.getInt8Ty(), 4));
unittests/AsmParser/AsmParserTest.cpp 233 VectorType *VT = cast<VectorType>(Ty);
233 VectorType *VT = cast<VectorType>(Ty);
365 VectorType *VT = cast<VectorType>(Ty);
365 VectorType *VT = cast<VectorType>(Ty);
unittests/CodeGen/LowLevelTypeTest.cpp 88 Type *IRTy = VectorType::get(IRSTy, Elts);
203 VectorType::get(PointerType::get(IntegerType::get(C, 8), AS), NumElts);
unittests/CodeGen/ScalableVectorMVTsTest.cpp 93 VectorType *ScV8Int64Ty = VectorType::get(Int64Ty, {8, true});
93 VectorType *ScV8Int64Ty = VectorType::get(Int64Ty, {8, true});
116 VectorType *ScV4Float64Ty = cast<VectorType>(Ty);
116 VectorType *ScV4Float64Ty = cast<VectorType>(Ty);
unittests/FuzzMutate/OperationsTest.cpp 340 Type *VectorTy = VectorType::get(Int32Ty, 2);
unittests/IR/ConstantsTest.cpp 134 VectorType *Int8PtrVecTy = VectorType::get(Int8PtrTy, 4);
134 VectorType *Int8PtrVecTy = VectorType::get(Int8PtrTy, 4);
135 VectorType *Int32PtrVecTy = VectorType::get(Int32PtrTy, 4);
135 VectorType *Int32PtrVecTy = VectorType::get(Int32PtrTy, 4);
136 VectorType *Int64VecTy = VectorType::get(Int64Ty, 4);
136 VectorType *Int64VecTy = VectorType::get(Int64Ty, 4);
213 Constant *P6 = ConstantExpr::getBitCast(P4, VectorType::get(Int16Ty, 2));
unittests/IR/IRBuilderTest.cpp 132 Type *SrcVecTy = VectorType::get(Builder.getHalfTy(), 8, true);
133 Type *DstVecTy = VectorType::get(Builder.getInt32Ty(), 4, true);
134 Type *PredTy = VectorType::get(Builder.getInt1Ty(), 16, true);
151 Type *VecTy = VectorType::get(Builder.getInt32Ty(), 4, true);
153 PredTy = VectorType::get(Builder.getInt1Ty(), 4, true);
771 auto VecTy = VectorType::get(Builder.getInt64Ty(), 4);
unittests/IR/InstructionsTest.cpp 189 Type *V8x8Ty = VectorType::get(Int8Ty, 8);
190 Type *V8x64Ty = VectorType::get(Int64Ty, 8);
197 Type *V2Int32Ty = VectorType::get(Int32Ty, 2);
198 Type *V2Int64Ty = VectorType::get(Int64Ty, 2);
199 Type *V4Int16Ty = VectorType::get(Int16Ty, 4);
207 Type *V2Int32PtrAS1Ty = VectorType::get(Int32PtrAS1Ty, 2);
208 Type *V2Int64PtrAS1Ty = VectorType::get(Int64PtrAS1Ty, 2);
209 Type *V4Int32PtrAS1Ty = VectorType::get(Int32PtrAS1Ty, 4);
210 Type *V4Int64PtrAS1Ty = VectorType::get(Int64PtrAS1Ty, 4);
212 Type *V2Int64PtrTy = VectorType::get(Int64PtrTy, 2);
213 Type *V2Int32PtrTy = VectorType::get(Int32PtrTy, 2);
214 Type *V4Int32PtrTy = VectorType::get(Int32PtrTy, 4);
314 VectorType *V2xi8PTy = VectorType::get(Ptri8Ty, 2);
314 VectorType *V2xi8PTy = VectorType::get(Ptri8Ty, 2);
315 VectorType *V2xi32PTy = VectorType::get(Ptri32Ty, 2);
315 VectorType *V2xi32PTy = VectorType::get(Ptri32Ty, 2);
unittests/IR/PatternMatch.cpp 908 Type *VecTy = VectorType::get(IRB.getInt8Ty(), 2);
910 Type *i32VecTy = VectorType::get(i32, 2);
1001 Type *VectorTy = VectorType::get(ScalarTy, 4);
1029 Type *VectorTy = VectorType::get(ScalarTy, 4);
unittests/IR/VectorTypesTest.cpp 25 VectorType *V8Int32Ty = VectorType::get(Int32Ty, 8);
25 VectorType *V8Int32Ty = VectorType::get(Int32Ty, 8);
30 VectorType *V8Int16Ty = VectorType::get(Int16Ty, {8, false});
30 VectorType *V8Int16Ty = VectorType::get(Int16Ty, {8, false});
36 VectorType *V4Int64Ty = VectorType::get(Int64Ty, EltCnt);
36 VectorType *V4Int64Ty = VectorType::get(Int64Ty, EltCnt);
41 VectorType *V2Int64Ty = VectorType::get(Int64Ty, EltCnt/2);
41 VectorType *V2Int64Ty = VectorType::get(Int64Ty, EltCnt/2);
46 VectorType *V8Int64Ty = VectorType::get(Int64Ty, EltCnt*2);
46 VectorType *V8Int64Ty = VectorType::get(Int64Ty, EltCnt*2);
51 VectorType *V4Float64Ty = VectorType::get(Float64Ty, EltCnt);
51 VectorType *V4Float64Ty = VectorType::get(Float64Ty, EltCnt);
56 VectorType *ExtTy = VectorType::getExtendedElementVectorType(V8Int16Ty);
56 VectorType *ExtTy = VectorType::getExtendedElementVectorType(V8Int16Ty);
62 VectorType *TruncTy = VectorType::getTruncatedElementVectorType(V8Int32Ty);
62 VectorType *TruncTy = VectorType::getTruncatedElementVectorType(V8Int32Ty);
68 VectorType *HalvedTy = VectorType::getHalfElementsVectorType(V4Int64Ty);
68 VectorType *HalvedTy = VectorType::getHalfElementsVectorType(V4Int64Ty);
74 VectorType *DoubledTy = VectorType::getDoubleElementsVectorType(V4Int64Ty);
74 VectorType *DoubledTy = VectorType::getDoubleElementsVectorType(V4Int64Ty);
80 VectorType *ConvTy = VectorType::getInteger(V4Float64Ty);
80 VectorType *ConvTy = VectorType::getInteger(V4Float64Ty);
99 VectorType *ScV8Int32Ty = VectorType::get(Int32Ty, 8, true);
99 VectorType *ScV8Int32Ty = VectorType::get(Int32Ty, 8, true);
104 VectorType *ScV8Int16Ty = VectorType::get(Int16Ty, {8, true});
104 VectorType *ScV8Int16Ty = VectorType::get(Int16Ty, {8, true});
110 VectorType *ScV4Int64Ty = VectorType::get(Int64Ty, EltCnt);
110 VectorType *ScV4Int64Ty = VectorType::get(Int64Ty, EltCnt);
115 VectorType *ScV2Int64Ty = VectorType::get(Int64Ty, EltCnt/2);
115 VectorType *ScV2Int64Ty = VectorType::get(Int64Ty, EltCnt/2);
120 VectorType *ScV8Int64Ty = VectorType::get(Int64Ty, EltCnt*2);
120 VectorType *ScV8Int64Ty = VectorType::get(Int64Ty, EltCnt*2);
125 VectorType *ScV4Float64Ty = VectorType::get(Float64Ty, EltCnt);
125 VectorType *ScV4Float64Ty = VectorType::get(Float64Ty, EltCnt);
130 VectorType *ExtTy = VectorType::getExtendedElementVectorType(ScV8Int16Ty);
130 VectorType *ExtTy = VectorType::getExtendedElementVectorType(ScV8Int16Ty);
136 VectorType *TruncTy = VectorType::getTruncatedElementVectorType(ScV8Int32Ty);
136 VectorType *TruncTy = VectorType::getTruncatedElementVectorType(ScV8Int32Ty);
142 VectorType *HalvedTy = VectorType::getHalfElementsVectorType(ScV4Int64Ty);
142 VectorType *HalvedTy = VectorType::getHalfElementsVectorType(ScV4Int64Ty);
148 VectorType *DoubledTy = VectorType::getDoubleElementsVectorType(ScV4Int64Ty);
148 VectorType *DoubledTy = VectorType::getDoubleElementsVectorType(ScV4Int64Ty);
154 VectorType *ConvTy = VectorType::getInteger(ScV4Float64Ty);
154 VectorType *ConvTy = VectorType::getInteger(ScV4Float64Ty);
172 VectorType *V2Int32Ty = VectorType::get(Int32Ty, 2);
172 VectorType *V2Int32Ty = VectorType::get(Int32Ty, 2);
173 VectorType *V4Int32Ty = VectorType::get(Int32Ty, 4);
173 VectorType *V4Int32Ty = VectorType::get(Int32Ty, 4);
175 VectorType *V2Int64Ty = VectorType::get(Int64Ty, 2);
175 VectorType *V2Int64Ty = VectorType::get(Int64Ty, 2);
221 VectorType *ScV2Int32Ty = VectorType::get(Int32Ty, {2, true});
221 VectorType *ScV2Int32Ty = VectorType::get(Int32Ty, {2, true});
222 VectorType *ScV4Int32Ty = VectorType::get(Int32Ty, {4, true});
222 VectorType *ScV4Int32Ty = VectorType::get(Int32Ty, {4, true});
224 VectorType *ScV2Int64Ty = VectorType::get(Int64Ty, {2, true});
224 VectorType *ScV2Int64Ty = VectorType::get(Int64Ty, {2, true});
263 VectorType *V4Int32Ty = VectorType::get(Int32Ty, {4, false});
263 VectorType *V4Int32Ty = VectorType::get(Int32Ty, {4, false});
264 VectorType *ScV4Int32Ty = VectorType::get(Int32Ty, {4, true});
264 VectorType *ScV4Int32Ty = VectorType::get(Int32Ty, {4, true});
usr/include/c++/7.4.0/type_traits 1983 { typedef _Up type; };
utils/unittest/googletest/include/gtest/gtest-printers.h 407 T* p, ::std::ostream* os) {
416 if (IsTrue(ImplicitlyConvertible<T*, const void*>::value)) {