Home
last modified time | relevance | path

Searched refs:vecTy (Results 1 – 8 of 8) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DSwiftCallingConv.cpp218 if (auto vecTy = dyn_cast<llvm::VectorType>(type)) { in addTypedData() local
220 legalizeVectorType(CGM, end - begin, vecTy, componentTys); in addTypedData()
251 if (auto vecTy = dyn_cast<llvm::VectorType>(type)) { in addLegalTypedData() local
252 auto split = splitLegalVectorType(CGM, end - begin, vecTy); in addLegalTypedData()
335 if (auto vecTy = dyn_cast_or_null<llvm::VectorType>(type)) { in addEntry() local
336 auto eltTy = vecTy->getElementType(); in addEntry()
338 (end - begin) / cast<llvm::FixedVectorType>(vecTy)->getNumElements(); in addEntry()
341 e = cast<llvm::FixedVectorType>(vecTy)->getNumElements(); in addEntry()
401 auto vecTy = cast<llvm::VectorType>(Entries[index].Type); in splitVectorEntry() local
402 auto split = splitLegalVectorType(CGM, Entries[index].getWidth(), vecTy); in splitVectorEntry()
H A DCGExprScalar.cpp5563 auto *vecTy = cast<llvm::FixedVectorType>(condType); in VisitAbstractConditionalOperator() local
5565 unsigned numElem = vecTy->getNumElements(); in VisitAbstractConditionalOperator()
5566 llvm::Type *elemType = vecTy->getElementType(); in VisitAbstractConditionalOperator()
5568 llvm::Value *zeroVec = llvm::Constant::getNullValue(vecTy); in VisitAbstractConditionalOperator()
/freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/IR/
H A DCIRDialect.cpp1731 const cir::VectorType vecTy = getType(); in verify() local
1732 if (getElements().size() != vecTy.getSize()) { in verify()
1734 << " doesn't match vector type " << vecTy in verify()
1735 << " element count of " << vecTy.getSize(); in verify()
1738 const mlir::Type elementType = vecTy.getElementType(); in verify()
2025 cir::VectorType vecTy = getLhs().getType(); in fold() local
2027 vecTy, mlir::ArrayAttr::get(getContext(), elements)); in fold()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIInstructions.td3480 foreach vecTy = [v2i16, v2f16, v2bf16] in {
3482 defvar Ty = vecTy.ElementType;
3485 (vecTy (UniformBinFrag<build_vector> (Ty SReg_32:$src0), (Ty undef))),
3492 (vecTy (DivergentBinFrag<build_vector> (Ty VGPR_32:$src0), (Ty undef))),
3497 (vecTy (UniformBinFrag<build_vector> (Ty undef), (Ty SReg_32:$src1))),
3503 (vecTy (DivergentBinFrag<build_vector> (Ty undef), (Ty VGPR_32:$src1))),
3504 (vecTy (V_LSHLREV_B32_e64 (i32 16), VGPR_32:$src1))
3531 foreach vecTy = [v2i16, v2f16, v2bf16] in {
3533 defvar Ty = vecTy.ElementType;
3537 (vecTy (UniformBinFrag<build_vector> (Ty SReg_32:$src0), (Ty SReg_32:$src1))),
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/Builder/
H A DCIRBaseBuilder.h97 if (auto vecTy = mlir::dyn_cast<cir::VectorType>(ty)) in getZeroInitAttr() local
98 return cir::ZeroAttr::get(vecTy); in getZeroInitAttr()
/freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/DirectToLLVM/
H A DLowerToLLVM.cpp1056 } else if (const auto vecTy = mlir::dyn_cast<cir::VectorType>(op.getType())) { in matchAndRewrite() local
2187 const auto vecTy = mlir::cast<cir::VectorType>(op.getType()); in matchAndRewrite() local
2188 const mlir::Type llvmTy = typeConverter->convertType(vecTy); in matchAndRewrite()
2191 assert(vecTy.getSize() == op.getElements().size() && in matchAndRewrite()
2194 for (uint64_t i = 0; i < vecTy.getSize(); ++i) { in matchAndRewrite()
2254 cir::VectorType vecTy = op.getType(); in matchAndRewrite() local
2255 mlir::Type llvmTy = typeConverter->convertType(vecTy); in matchAndRewrite()
2290 SmallVector<int32_t> zeroValues(vecTy.getSize(), 0); in matchAndRewrite()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenExpr.cpp292 const auto vecTy = cast<cir::VectorType>(elementType); in emitStoreOfScalar() local
295 if (vecTy.getSize() == 3 && !getLangOpts().PreserveVec3Type) in emitStoreOfScalar()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCast.cpp2811 if (const VectorType *vecTy = DestType->getAs<VectorType>()) { in CheckCXXCStyleCast() local
2817 if (Self.ShouldSplatAltivecScalarInCast(vecTy) && in CheckCXXCStyleCast()