Home
last modified time | relevance | path

Searched refs:eltType (Results 1 – 22 of 22) sorted by relevance

/llvm-project-15.0.7/mlir/lib/IR/
H A DBuiltinAttributes.cpp696 : AttributeStorage(type), eltType(eltType), elements(elements) {} in DenseArrayBaseAttrStorage()
724 DenseArrayBaseAttr::EltType eltType; member
729 return getImpl()->eltType; in getElementType()
936 auto eltType = denseArrayAttrEltTypeBuilder<T>::eltType; in get() local
977 auto eltType = type.getElementType(); in get() local
1000 if (eltType.isa<FloatType>()) in get()
1612 auto eltType = getElementType(); in getZeroAttr() local
1615 if (eltType.isa<FloatType>()) in getZeroAttr()
1616 return FloatAttr::get(eltType, 0); in getZeroAttr()
1622 if (eltType.isa<FloatType>()) in getZeroAttr()
[all …]
H A DAttributeDetail.h34 inline size_t getDenseElementBitWidth(Type eltType) { in getDenseElementBitWidth() argument
36 if (ComplexType comp = eltType.dyn_cast<ComplexType>()) in getDenseElementBitWidth()
38 if (eltType.isIndex()) in getDenseElementBitWidth()
40 return eltType.getIntOrFloatBitWidth(); in getDenseElementBitWidth()
/llvm-project-15.0.7/clang/include/clang/CodeGen/
H A DCGFunctionInfo.h262 for (auto eltType : coerceToType->elements()) { in getCoerceAndExpand() local
263 if (isPaddingForCoerceAndExpand(eltType)) continue; in getCoerceAndExpand()
265 assert(unpaddedStruct->getElementType(unpaddedIndex) == eltType); in getCoerceAndExpand()
267 assert(unpaddedIndex == 0 && unpaddedCoerceToType == eltType); in getCoerceAndExpand()
286 static bool isPaddingForCoerceAndExpand(llvm::Type *eltType) { in isPaddingForCoerceAndExpand() argument
287 if (eltType->isArrayTy()) { in isPaddingForCoerceAndExpand()
288 assert(eltType->getArrayElementType()->isIntegerTy(8)); in isPaddingForCoerceAndExpand()
/llvm-project-15.0.7/mlir/lib/Conversion/VectorToLLVM/
H A DConvertVectorToLLVM.cpp431 Type eltType = reductionOp.getDest().getType(); in matchAndRewrite() local
432 Type llvmType = typeConverter->convertType(eltType); in matchAndRewrite()
436 if (eltType.isIntOrIndex()) { in matchAndRewrite()
498 if (!eltType.isa<FloatType>()) in matchAndRewrite()
583 Type eltType; in matchAndRewrite() local
585 eltType = arrayType.getElementType(); in matchAndRewrite()
598 eltType, rank, extPos); in matchAndRewrite()
1055 if (eltType.isF32()) { in matchAndRewrite()
1058 } else if (eltType.isF64()) { in matchAndRewrite()
1061 } else if (eltType.isIndex()) { in matchAndRewrite()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/Transforms/
H A DSparseTensorConversion.cpp271 static void genAddEltCall(OpBuilder &builder, Operation *op, Type eltType, in genAddEltCall() argument
273 SmallString<9> name{"addElt", primaryTypeFunctionSuffix(eltType)}; in genAddEltCall()
841 Type eltType = stp.getElementType(); in matchAndRewrite() local
842 Value elemPtr = genAllocaScalar(rewriter, loc, eltType); in matchAndRewrite()
861 genDelCOOCall(rewriter, op, eltType, coo); in matchAndRewrite()
932 Type eltType = resType.cast<ShapedType>().getElementType(); in matchAndRewrite() local
984 Type eltType = srcType.getElementType(); in matchAndRewrite() local
996 Value values = genAlloc(rewriter, loc, sz, eltType); in matchAndRewrite()
1006 loc, ValueRange{constantZero(rewriter, loc, eltType)}, in matchAndRewrite()
1082 Type eltType = srcType.getElementType(); in matchAndRewrite() local
[all …]
/llvm-project-15.0.7/mlir/lib/AsmParser/
H A DAttributeParser.cpp529 Type eltType = type.getElementType(); in getAttr() local
533 (eltType.isIntOrIndexOrFloat() || eltType.isa<ComplexType>())) in getAttr()
553 if (ComplexType complexTy = eltType.dyn_cast<ComplexType>()) { in getAttr()
554 eltType = complexTy.getElementType(); in getAttr()
559 if (eltType.isIntOrIndex()) { in getAttr()
561 if (failed(getIntAttrElements(loc, eltType, intValues))) in getAttr()
573 if (FloatType floatTy = eltType.dyn_cast<FloatType>()) { in getAttr()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DSwiftCallingConv.cpp78 QualType eltType = arrayType->getElementType(); in addTypedData() local
79 auto eltSize = CGM.getContext().getTypeSizeInChars(eltType); in addTypedData()
81 addTypedData(eltType, begin + i * eltSize); in addTypedData()
86 auto eltType = complexType->getElementType(); in addTypedData() local
87 auto eltSize = CGM.getContext().getTypeSizeInChars(eltType); in addTypedData()
88 auto eltLLVMType = CGM.getTypes().ConvertType(eltType); in addTypedData()
H A DCodeGenFunction.cpp2089 QualType eltType; in emitArrayLength() local
2100 eltType = arrayType->getElementType(); in emitArrayLength()
2116 eltType = arrayType->getElementType(); in emitArrayLength()
2117 arrayType = getContext().getAsArrayType(eltType); in emitArrayLength()
2120 llvm::Type *baseType = ConvertType(eltType); in emitArrayLength()
2126 ConvertTypeForMem(eltType), in emitArrayLength()
2130 baseType = eltType; in emitArrayLength()
H A DCGCXXABI.h99 virtual bool requiresArrayCookie(const CXXDeleteExpr *E, QualType eltType);
H A DCGExpr.cpp3706 QualType eltType; in getFixedSizeElementType() local
3708 eltType = vla->getElementType(); in getFixedSizeElementType()
3709 } while ((vla = ctx.getAsVariableArrayType(eltType))); in getFixedSizeElementType()
3710 return eltType; in getFixedSizeElementType()
3751 QualType eltType, bool inbounds, in emitArraySubscriptGEP() argument
3765 if (auto vla = CGF.getContext().getAsVariableArrayType(eltType)) { in emitArraySubscriptGEP()
3766 eltType = getFixedSizeElementType(CGF.getContext(), vla); in emitArraySubscriptGEP()
3770 CharUnits eltSize = CGF.getContext().getTypeSizeInChars(eltType); in emitArraySubscriptGEP()
3793 return Address(eltPtr, CGF.ConvertTypeForMem(eltType), eltAlign); in emitArraySubscriptGEP()
H A DCGCall.cpp3028 llvm::Type *eltType = coercionType->getElementType(i); in EmitFunctionProlog() local
3029 if (ABIArgInfo::isPaddingForCoerceAndExpand(eltType)) in EmitFunctionProlog()
5116 llvm::Type *eltType = coercionType->getElementType(i); in EmitCall() local
5117 if (ABIArgInfo::isPaddingForCoerceAndExpand(eltType)) continue; in EmitCall()
5498 llvm::Type *eltType = coercionType->getElementType(i); in EmitCall() local
5499 if (ABIArgInfo::isPaddingForCoerceAndExpand(eltType)) continue; in EmitCall()
/llvm-project-15.0.7/clang/utils/TableGen/
H A DClangASTPropertiesEmitter.cpp332 } else if (auto eltType = type.getArrayElementType()) { in validateType() local
333 validateType(eltType, context); in validateType()
481 } else if (auto eltType = type.getArrayElementType()) { in emitBasicReaderWriterMethodSuffix() local
487 eltType.emitCXXValueTypeName(isForRead, out); in emitBasicReaderWriterMethodSuffix()
/llvm-project-15.0.7/mlir/unittests/IR/
H A DAttributeTest.cpp17 static void testSplat(Type eltType, const EltTy &splatElt) { in testSplat() argument
18 RankedTensorType shape = RankedTensorType::get({2, 1}, eltType); in testSplat()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPULibCalls.cpp813 Type *eltType; in fold_pow() local
819 eltType = opr0->getType(); in fold_pow()
825 eltType = VTy->getElementType(); in fold_pow()
843 Constant *cnval = ConstantFP::get(eltType, 1.0); in fold_pow()
867 Constant *cnval = ConstantFP::get(eltType, 1.0); in fold_pow()
917 cnval = ConstantFP::get(eltType, 1.0); in fold_pow()
935 cnval = ConstantFP::get(eltType, 1.0); in fold_pow()
968 cnval = ConstantFP::get(eltType, V); in fold_pow()
1063 Type* nTyS = eltType->isDoubleTy() ? B.getInt64Ty() : B.getInt32Ty(); in fold_pow()
/llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/Utils/
H A DMerger.cpp1082 auto eltType = type.getElementType().cast<FloatType>(); in buildExp() local
1083 return rewriter.create<complex::AbsOp>(loc, eltType, v0); in buildExp()
1141 auto eltType = type.getElementType().cast<FloatType>(); in buildExp() local
1142 return rewriter.create<complex::ImOp>(loc, eltType, v0); in buildExp()
1146 auto eltType = type.getElementType().cast<FloatType>(); in buildExp() local
1147 return rewriter.create<complex::ReOp>(loc, eltType, v0); in buildExp()
/llvm-project-15.0.7/mlir/lib/Conversion/GPUToNVVM/
H A DWmmaOpsToNvvm.cpp364 NVVM::MMATypes eltType = getElementType(type); in convertMMAToLLVMType() local
366 NVVM::inferMMAType(eltType, frag, type.getContext()); in convertMMAToLLVMType()
/llvm-project-15.0.7/mlir/lib/Dialect/Vector/Transforms/
H A DVectorTransforms.cpp260 Type eltType = dstType.getElementType(); in matchAndRewrite() local
295 VectorType::get(dstType.getShape().drop_front(), eltType); in matchAndRewrite()
337 VectorType::get(dstType.getShape().drop_front(), eltType); in matchAndRewrite()
546 Type eltType = resType.getElementType(); in matchAndRewrite() local
547 bool isInt = eltType.isa<IntegerType, IndexType>(); in matchAndRewrite()
567 rewriter.create<vector::ExtractOp>(loc, eltType, op.getLhs(), pos); in matchAndRewrite()
724 auto eltType = dstType.getElementType(); in matchAndRewrite() local
762 VectorType::get(dstType.getShape().drop_front(), eltType); in matchAndRewrite()
803 auto eltType = dstType.getElementType(); in matchAndRewrite() local
808 VectorType::get(dstType.getShape().drop_front(), eltType); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Vector/IR/
H A DVectorOps.cpp402 Type eltType = getDest().getType(); in verify() local
403 if (!isSupportedCombiningKind(getKind(), eltType)) in verify()
405 << eltType << "' for kind '" << stringifyCombiningKind(getKind()) in verify()
4870 Type eltType = getDestType().getElementType(); in verify() local
4871 if (!isSupportedCombiningKind(getKind(), eltType)) in verify()
4873 << eltType << " for kind '" << stringifyCombiningKind(getKind()) in verify()
/llvm-project-15.0.7/mlir/lib/Dialect/Math/Transforms/
H A DPolynomialApproximation.cpp121 auto eltType = operand.getType().cast<VectorType>().getElementType(); in handleMultidimensionalVectors() local
122 auto expandedType = VectorType::get(expandedShape, eltType); in handleMultidimensionalVectors()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DBuiltinAttributes.td179 "DenseArrayBaseAttr::EltType":$eltType,
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaExpr.cpp7665 QualType &eltType) { in breakDownVectorType() argument
7669 eltType = vecType->getElementType(); in breakDownVectorType()
7670 assert(eltType->isScalarType()); in breakDownVectorType()
7679 eltType = type; in breakDownVectorType()
H A DSemaChecking.cpp7482 QualType eltType = LHSType->castAs<VectorType>()->getElementType(); in SemaBuiltinShuffleVector() local
7483 resType = Context.getVectorType(eltType, numResElements, in SemaBuiltinShuffleVector()