Home
last modified time | relevance | path

Searched refs:VectorTy (Results 1 – 23 of 23) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Transforms/ObjCARC/
H A DBlotMapVector.h28 using VectorTy = std::vector<std::pair<KeyT, ValueT>>; variable
29 VectorTy Vector;
40 for (typename VectorTy::const_iterator I = Vector.begin(), E = Vector.end(); in ~BlotMapVector()
47 using iterator = typename VectorTy::iterator;
48 using const_iterator = typename VectorTy::const_iterator;
H A DObjCARC.h73 template<class PHINodeTy, class VectorTy>
74 void getEquivalentPHIs(PHINodeTy &PN, VectorTy &PHIList) { in getEquivalentPHIs()
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp165 FixedVectorType *VectorTy = dyn_cast<FixedVectorType>(Ty); in lowerFunnelShifts() local
166 Type *IntTy = VectorTy ? VectorTy->getElementType() : Ty; in lowerFunnelShifts()
170 VectorTy in lowerFunnelShifts()
171 ? IRB.CreateVectorSplat(VectorTy->getNumElements(), BitWidthConstant) in lowerFunnelShifts()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp391 auto *VectorTy = dyn_cast<FixedVectorType>(AllocaTy); in tryPromoteAllocaToVector() local
395 VectorTy = arrayTypeToVecType(ArrayTy); in tryPromoteAllocaToVector()
414 if (!VectorTy || VectorTy->getNumElements() > 16 || in tryPromoteAllocaToVector()
415 VectorTy->getNumElements() < 2) { in tryPromoteAllocaToVector()
426 Type *VecEltTy = VectorTy->getElementType(); in tryPromoteAllocaToVector()
493 << *VectorTy << '\n'); in tryPromoteAllocaToVector()
501 Type *VecPtrTy = VectorTy->getPointerTo(Alloca->getAddressSpace()); in tryPromoteAllocaToVector()
503 Value *VecValue = Builder.CreateLoad(VectorTy, BitCast); in tryPromoteAllocaToVector()
515 Type *VecPtrTy = VectorTy->getPointerTo(Alloca->getAddressSpace()); in tryPromoteAllocaToVector()
517 Value *VecValue = Builder.CreateLoad(VectorTy, BitCast); in tryPromoteAllocaToVector()
/llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/JITLink/
H A DMemoryFlags.h145 using VectorTy = SmallVector<ElemT, 4>;
152 using iterator = typename VectorTy::iterator;
178 VectorTy Elems;
/llvm-project-15.0.7/llvm/tools/llvm-c-test/
H A Ddebuginfo.c107 LLVMMetadataRef VectorTy = in llvm_test_dibuilder() local
112 LLVMMetadataRef ParamTypes[] = {Int64Ty, Int64Ty, VectorTy}; in llvm_test_dibuilder()
148 42, VectorTy, true, 0); in llvm_test_dibuilder()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp6478 auto *VectorTy = cast<VectorType>(Ty); in getReductionPatternCost() local
6541 VectorTy = VectorType::get(I->getOperand(0)->getType(), VectorTy); in getReductionPatternCost()
6608 Op0->getOpcode(), VectorTy, VectorType::get(Op0Ty, VectorTy), in getReductionPatternCost()
6611 Op1->getOpcode(), VectorTy, VectorType::get(Op1Ty, VectorTy), in getReductionPatternCost()
6687 Type *VectorTy; in getInstructionCost() local
6953 VectorTy = RetTy; in getInstructionCost()
6955 VectorTy = ToVectorTy(RetTy, VF); in getInstructionCost()
7133 VectorTy = ToVectorTy(ValTy, VF); in getInstructionCost()
7231 Type *MinVecTy = VectorTy; in getInstructionCost()
7234 VectorTy = in getInstructionCost()
[all …]
H A DSLPVectorizer.cpp6833 if (auto *VectorTy = dyn_cast<FixedVectorType>(ScalarTy)) in getSpillCost() local
6834 ScalarTy = VectorTy->getElementType(); in getSpillCost()
11413 FixedVectorType *VectorTy = FixedVectorType::get(ScalarTy, ReduxWidth); in getReductionCost() local
11429 TTI->getArithmeticReductionCost(RdxOpcode, VectorTy, FMF, CostKind); in getReductionCost()
11438 cast<VectorType>(CmpInst::makeCmpResultType(VectorTy)); in getReductionCost()
11440 TTI->getMinMaxReductionCost(VectorTy, VecCondTy, in getReductionCost()
11457 cast<VectorType>(CmpInst::makeCmpResultType(VectorTy)); in getReductionCost()
11460 VectorCost = TTI->getMinMaxReductionCost(VectorTy, VecCondTy, in getReductionCost()
/llvm-project-15.0.7/llvm/unittests/FuzzMutate/
H A DOperationsTest.cpp340 Type *VectorTy = FixedVectorType::get(Int32Ty, 2); in TEST() local
350 Constant *VVal = UndefValue::get(VectorTy); in TEST()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DPatternMatch.cpp1057 Type *VectorTy = FixedVectorType::get(ScalarTy, 4); in TEST_F() local
1059 Constant *VectorUndef = UndefValue::get(VectorTy); in TEST_F()
1061 Constant *VectorZero = Constant::getNullValue(VectorTy); in TEST_F()
1122 Type *VectorTy = FixedVectorType::get(ScalarTy, 4); in TEST_F() local
1124 Constant *VectorUndef = UndefValue::get(VectorTy); in TEST_F()
1126 Constant *VectorZero = Constant::getNullValue(VectorTy); in TEST_F()
1733 Type *VectorTy = FixedVectorType::get(ScalarTy, 3); in TEST_F() local
1736 Constant *VectorZero = Constant::getNullValue(VectorTy); in TEST_F()
1737 Constant *VectorOnes = Constant::getAllOnesValue(VectorTy); in TEST_F()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h1264 if (VectorType *VectorTy = dyn_cast<VectorType>(DstTy)) in getInstructionLatency() local
1265 DstTy = VectorTy->getElementType(); in getInstructionLatency()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExpr.cpp148 auto *VectorTy = llvm::FixedVectorType::get(ArrayTy->getElementType(), in CreateMemTemp() local
152 Builder.CreateBitCast(Result.getPointer(), VectorTy->getPointerTo()), in CreateMemTemp()
153 VectorTy, Result.getAlignment()); in CreateMemTemp()
1853 auto *VectorTy = llvm::FixedVectorType::get(ArrayTy->getElementType(), in MaybeConvertMatrixAddress() local
1856 return Address(CGF.Builder.CreateElementBitCast(Addr, VectorTy)); in MaybeConvertMatrixAddress()
1858 auto *VectorTy = dyn_cast<llvm::VectorType>(Addr.getElementType()); in MaybeConvertMatrixAddress() local
1859 if (VectorTy && !IsVector) { in MaybeConvertMatrixAddress()
1861 VectorTy->getElementType(), in MaybeConvertMatrixAddress()
1862 cast<llvm::FixedVectorType>(VectorTy)->getNumElements()); in MaybeConvertMatrixAddress()
H A DCGBuiltin.cpp8945 auto *VectorTy = getSVEVectorForElementType(MemEltTy); in EmitSVEPrefetchLoad() local
8946 auto *MemoryTy = llvm::ScalableVectorType::get(MemEltTy, VectorTy); in EmitSVEPrefetchLoad()
8976 auto VectorTy = cast<llvm::ScalableVectorType>(ReturnTy); in EmitSVEMaskedLoad() local
8977 auto MemoryTy = llvm::ScalableVectorType::get(MemEltTy, VectorTy); in EmitSVEMaskedLoad()
8991 return IsZExtReturn ? Builder.CreateZExt(Load, VectorTy) in EmitSVEMaskedLoad()
8992 : Builder.CreateSExt(Load, VectorTy); in EmitSVEMaskedLoad()
9004 auto VectorTy = cast<llvm::ScalableVectorType>(Ops.back()->getType()); in EmitSVEMaskedStore() local
9005 auto MemoryTy = llvm::ScalableVectorType::get(MemEltTy, VectorTy); in EmitSVEMaskedStore()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMISelLowering.h681 bool canCombineStoreAndExtract(Type *VectorTy, Value *Idx,
H A DARMISelLowering.cpp21141 bool ARMTargetLowering::canCombineStoreAndExtract(Type *VectorTy, Value *Idx, in canCombineStoreAndExtract() argument
21151 if (VectorTy->isFPOrFPVectorTy()) in canCombineStoreAndExtract()
21159 assert(VectorTy->isVectorTy() && "VectorTy is not a vector type"); in canCombineStoreAndExtract()
21160 unsigned BitWidth = VectorTy->getPrimitiveSizeInBits().getFixedSize(); in canCombineStoreAndExtract()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaExpr.cpp7841 assert(VectorTy->isVectorType() && "Not a vector type!"); in CheckVectorCast()
7844 if (!areLaxCompatibleVectorTypes(Ty, VectorTy)) in CheckVectorCast()
7849 << VectorTy << Ty << R; in CheckVectorCast()
7853 << VectorTy << Ty << R; in CheckVectorCast()
8489 QualType VectorTy = S.Context.getExtVectorType(ResTy, NumElements); in OpenCLConvertScalarsToVectors() local
8506 LHS = S.ImpCastExprToType(LHS.get(), VectorTy, CK_VectorSplat); in OpenCLConvertScalarsToVectors()
8507 RHS = S.ImpCastExprToType(RHS.get(), VectorTy, CK_VectorSplat); in OpenCLConvertScalarsToVectors()
8509 return VectorTy; in OpenCLConvertScalarsToVectors()
10304 QualType VectorTy = Vector->get()->getType().getUnqualifiedType(); in tryGCCVectorConvertAndSplat() local
10307 if (const auto *VT = VectorTy->getAs<VectorType>()) { in tryGCCVectorConvertAndSplat()
[all …]
/llvm-project-15.0.7/llvm/bindings/ocaml/llvm/
H A Dllvm_ocaml.c600 value llvm_vector_size(LLVMTypeRef VectorTy) { in llvm_vector_size() argument
601 return Val_int(LLVMGetVectorSize(VectorTy)); in llvm_vector_size()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp1664 VectorType *VectorTy = cast<VectorType>(InputVal->getType()); in LowerTranspose() local
1676 FixedVectorType::get(VectorTy->getElementType(), NewNumElts)); in LowerTranspose()
H A DSROA.cpp1478 } else if (VectorType *VectorTy = dyn_cast<VectorType>(ElementTy)) { in getNaturalGEPWithType() local
1479 ElementTy = VectorTy->getElementType(); in getNaturalGEPWithType()
/llvm-project-15.0.7/llvm/include/llvm-c/
H A DCore.h1513 unsigned LLVMGetVectorSize(LLVMTypeRef VectorTy);
/llvm-project-15.0.7/llvm/lib/IR/
H A DCore.cpp832 unsigned LLVMGetVectorSize(LLVMTypeRef VectorTy) { in LLVMGetVectorSize() argument
833 return unwrap<VectorType>(VectorTy)->getElementCount().getKnownMinValue(); in LLVMGetVectorSize()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DTargetLowering.h812 virtual bool canCombineStoreAndExtract(Type *VectorTy, Value *Idx, in canCombineStoreAndExtract() argument
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h12335 bool CheckVectorCast(SourceRange R, QualType VectorTy, QualType Ty,
12340 ExprResult prepareVectorSplat(QualType VectorTy, Expr *SplattedExpr);