Home
last modified time | relevance | path

Searched refs:elementType (Results 1 – 25 of 136) sorted by relevance

123456

/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DBuiltinTypes.h93 Type elementType) const;
174 : shape(shape), elementType(elementType) {} in Builder()
182 elementType = newElementType; in setElementType()
205 Type elementType; variable
225 : shape(shape), elementType(elementType), encoding(encoding) {} in Builder()
233 elementType = newElementType; in setElementType()
270 Type elementType; variable
290 : shape(shape), elementType(elementType), in shape()
301 elementType = newElementType; in setElementType()
322 return elementType; in Type()
[all …]
/llvm-project-15.0.7/mlir/lib/IR/
H A DBuiltinTypes.cpp53 Type elementType) { in verify() argument
54 if (!elementType.isIntOrFloat()) in verify()
235 if (!isValidElementType(elementType)) in verify()
238 << elementType; in verify()
298 return UnrankedTensorType::get(elementType); in cloneWith()
312 Type elementType) { in checkTensorElementType() argument
365 Type elementType) { in verify() argument
409 builder.setElementType(elementType); in cloneWith()
560 return Base::get(elementType.getContext(), shape, elementType, layout, in get()
594 return Base::get(elementType.getContext(), shape, elementType, layout, in get()
[all …]
H A DBuiltinTypeInterfaces.cpp42 auto elementType = getElementType(); in getSizeInBits() local
43 if (elementType.isIntOrFloat()) in getSizeInBits()
44 return elementType.getIntOrFloatBitWidth() * getNumElements(); in getSizeInBits()
46 if (auto complexType = elementType.dyn_cast<ComplexType>()) { in getSizeInBits()
47 elementType = complexType.getElementType(); in getSizeInBits()
48 return elementType.getIntOrFloatBitWidth() * getNumElements() * 2; in getSizeInBits()
50 return getNumElements() * elementType.cast<ShapedType>().getSizeInBits(); in getSizeInBits()
/llvm-project-15.0.7/mlir/lib/Dialect/PDL/IR/
H A DPDLTypes.cpp71 Type elementType = parsePDLType(parser); in parse() local
72 if (!elementType || parser.parseGreater()) in parse()
75 if (elementType.isa<RangeType>()) { in parse()
78 << elementType; in parse()
81 return RangeType::get(elementType); in parse()
91 Type elementType) { in verify() argument
92 if (!elementType.isa<PDLType>() || elementType.isa<RangeType>()) { in verify()
96 << elementType; in verify()
/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/
H A DLLVMTypes.cpp40 assert(elementType && "expected non-null subtype"); in get()
41 return Base::get(elementType.getContext(), elementType, numElements); in get()
48 return Base::getChecked(emitError, elementType.getContext(), elementType, in getChecked()
61 if (!isValidElementType(elementType)) in verify()
654 if (!VecTy::isValidElementType(elementType)) in verifyVectorConstructionInvariants()
663 return Base::get(elementType.getContext(), elementType, numElements); in get()
670 return Base::getChecked(emitError, elementType.getContext(), elementType, in getChecked()
690 emitError, elementType, numElements); in verify()
711 return Base::get(elementType.getContext(), elementType, minNumElements); in get()
718 return Base::getChecked(emitError, elementType.getContext(), elementType, in getChecked()
[all …]
H A DLLVMTypeSyntax.cpp227 Type elementType; in parsePointerType() local
242 if (dispatchParse(parser, elementType)) in parsePointerType()
250 return parser.getChecked<LLVMPointerType>(loc, elementType, addressSpace); in parsePointerType()
259 Type elementType; in parseVectorType() local
264 dispatchParse(parser, elementType) || parser.parseGreater()) in parseVectorType()
281 return parser.getChecked<LLVMScalableVectorType>(loc, elementType, dims[1]); in parseVectorType()
282 if (elementType.isSignlessIntOrFloat()) { in parseVectorType()
287 return parser.getChecked<LLVMFixedVectorType>(loc, elementType, dims[0]); in parseVectorType()
295 Type elementType; in parseArrayType() local
299 dispatchParse(parser, elementType) || parser.parseGreater()) in parseArrayType()
[all …]
/llvm-project-15.0.7/mlir/lib/Conversion/ComplexToStandard/
H A DComplexToStandard.cpp70 b.create<arith::ConstantOp>(elementType, b.getZeroAttr(elementType)); in matchAndRewrite()
82 elementType, b.getFloatAttr(elementType, -1)); in matchAndRewrite()
171 loc, elementType, rewriter.getFloatAttr(elementType, 0.5)); in matchAndRewrite()
290 loc, elementType, rewriter.getZeroAttr(elementType)); in matchAndRewrite()
335 loc, elementType, rewriter.getFloatAttr(elementType, 1)); in matchAndRewrite()
880 loc, elementType, rewriter.getFloatAttr(elementType, 1)); in matchAndRewrite()
921 elementType, builder.getFloatAttr(elementType, 0.5)); in powOpConversionImpl()
944 elementType, builder.getFloatAttr(elementType, 0)); in powOpConversionImpl()
946 elementType, builder.getFloatAttr(elementType, 1)); in powOpConversionImpl()
1003 elementType, builder.getFloatAttr(elementType, -0.5)); in matchAndRewrite()
[all …]
/llvm-project-15.0.7/mlir/lib/CAPI/IR/
H A DBuiltinTypes.cpp113 MlirType mlirComplexTypeGet(MlirType elementType) { in mlirComplexTypeGet() argument
114 return wrap(ComplexType::get(unwrap(elementType))); in mlirComplexTypeGet()
173 MlirType elementType) { in mlirVectorTypeGet() argument
176 unwrap(elementType))); in mlirVectorTypeGet()
183 unwrap(elementType))); in mlirVectorTypeGetChecked()
209 MlirType elementType, in mlirRankedTensorTypeGetChecked() argument
213 unwrap(elementType), unwrap(encoding))); in mlirRankedTensorTypeGetChecked()
220 MlirType mlirUnrankedTensorTypeGet(MlirType elementType) { in mlirUnrankedTensorTypeGet() argument
221 return wrap(UnrankedTensorType::get(unwrap(elementType))); in mlirUnrankedTensorTypeGet()
252 unwrap(elementType), in mlirMemRefTypeGetChecked()
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Interfaces/
H A DInferTypeOpInterface.h107 ShapedTypeComponents() : elementType(nullptr), attr(nullptr){}; in ShapedTypeComponents()
108 ShapedTypeComponents(Type elementType) in ShapedTypeComponents() argument
109 : elementType(elementType), attr(nullptr), ranked(false) {} in ShapedTypeComponents()
112 elementType = shapedType.getElementType(); in ShapedTypeComponents()
118 elementType = adaptor.getElementType(); in ShapedTypeComponents()
124 ShapedTypeComponents(Arg &&arg, Type elementType = nullptr,
126 : dims(std::forward<Arg>(arg)), elementType(elementType), attr(attr), in dims()
128 ShapedTypeComponents(ArrayRef<int64_t> vec, Type elementType = nullptr,
130 : dims(vec.begin(), vec.end()), elementType(elementType), attr(attr),
144 Type getElementType() const { return elementType; }; in getElementType()
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Dialect/GPU/IR/
H A DGPUDialect.h51 Type elementType, StringRef operand) in MMAMatrixStorageType()
52 : dimShapes(dimShapes), numDims(numDims), elementType(elementType), in MMAMatrixStorageType()
58 return key == KeyTy(getShape(), elementType, operand);
85 Type elementType; member
129 static MMAMatrixType get(ArrayRef<int64_t> shape, Type elementType,
135 ArrayRef<int64_t> shape, Type elementType,
139 static bool isValidElementType(Type elementType);
144 ArrayRef<int64_t> shape, Type elementType,
/llvm-project-15.0.7/mlir/include/mlir-c/
H A DBuiltinTypes.h118 MLIR_CAPI_EXPORTED MlirType mlirComplexTypeGet(MlirType elementType);
178 MlirType elementType);
185 MlirType elementType);
206 MlirType elementType,
212 MlirLocation loc, intptr_t rank, const int64_t *shape, MlirType elementType,
221 MLIR_CAPI_EXPORTED MlirType mlirUnrankedTensorTypeGet(MlirType elementType);
226 mlirUnrankedTensorTypeGetChecked(MlirLocation loc, MlirType elementType);
241 MLIR_CAPI_EXPORTED MlirType mlirMemRefTypeGet(MlirType elementType,
258 mlirMemRefTypeContiguousGet(MlirType elementType, intptr_t rank,
270 mlirUnrankedMemRefTypeGet(MlirType elementType, MlirAttribute memorySpace);
[all …]
/llvm-project-15.0.7/mlir/lib/AsmParser/
H A DTypeParser.cpp122 auto elementType = parseType(); in parseComplexType() local
123 if (!elementType || in parseComplexType()
126 if (!elementType.isa<FloatType>() && !elementType.isa<IntegerType>()) in parseComplexType()
130 return ComplexType::get(elementType); in parseComplexType()
216 auto elementType = parseType(); in parseMemRefType() local
217 if (!elementType) in parseMemRefType()
399 auto elementType = parseType(); in parseTensorType() local
414 if (!TensorType::isValidElementType(elementType)) in parseTensorType()
420 return UnrankedTensorType::get(elementType); in parseTensorType()
472 auto elementType = parseType(); in parseVectorType() local
[all …]
/llvm-project-15.0.7/mlir/lib/Bindings/Python/
H A DIRTypes.cpp205 [](PyType &elementType) { in bindDerived() argument
207 if (mlirTypeIsAIntegerOrFloat(elementType)) { in bindDerived()
208 MlirType t = mlirComplexTypeGet(elementType); in bindDerived()
335 [](std::vector<int64_t> shape, PyType &elementType, in bindDerived()
348 return PyVectorType(elementType.getContext(), t); in bindDerived()
366 [](std::vector<int64_t> shape, PyType &elementType, in bindDerived()
370 loc, shape.size(), shape.data(), elementType, in bindDerived()
410 [](PyType &elementType, DefaultingPyLocation loc) { in bindDerived() argument
440 [](std::vector<int64_t> shape, PyType &elementType, in bindDerived()
460 return PyMemRefType(elementType.getContext(), t); in bindDerived()
[all …]
H A DIRAttributes.cpp553 if (mlirTypeIsAF32(elementType)) { in accessBuffer()
557 if (mlirTypeIsAF64(elementType)) { in accessBuffer()
561 if (mlirTypeIsAF16(elementType)) { in accessBuffer()
565 if (mlirTypeIsAInteger(elementType) && in accessBuffer()
568 mlirIntegerTypeIsSigned(elementType)) { in accessBuffer()
576 } else if (mlirTypeIsAInteger(elementType) && in accessBuffer()
579 mlirIntegerTypeIsSigned(elementType)) { in accessBuffer()
587 } else if (mlirTypeIsAInteger(elementType) && in accessBuffer()
590 mlirIntegerTypeIsSigned(elementType)) { in accessBuffer()
598 } else if (mlirTypeIsAInteger(elementType) && in accessBuffer()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVTypes.cpp43 Type elementType; member
50 return Base::get(elementType.getContext(), elementType, elementCount, in get()
57 return Base::get(elementType.getContext(), elementType, elementCount, stride); in get()
216 Type elementType; member
225 return Base::get(elementType.getContext(), elementType, scope, rows, columns); in get()
229 return getImpl()->elementType; in getElementType()
324 Type elementType; member
447 return key == KeyTy(elementType, stride); in operator ==()
453 Type elementType; member
458 return Base::get(elementType.getContext(), elementType, /*stride=*/0); in get()
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Dialect/LLVMIR/
H A DLLVMTypes.h89 static LLVMArrayType get(Type elementType, unsigned numElements);
91 Type elementType, unsigned numElements);
101 Type elementType, unsigned numElements);
405 static LLVMFixedVectorType get(Type elementType, unsigned numElements);
407 getChecked(function_ref<InFlightDiagnostic()> emitError, Type elementType,
423 Type elementType, unsigned numElements);
451 getChecked(function_ref<InFlightDiagnostic()> emitError, Type elementType,
467 Type elementType, unsigned minNumElements);
521 Type getVectorType(Type elementType, unsigned numElements,
526 Type getFixedVectorType(Type elementType, unsigned numElements);
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/
H A DTraits.cpp133 Type elementType) { in getBroadcastedType() argument
136 if (!elementType) { in getBroadcastedType()
137 elementType = getElementTypeOrSelf(type1); in getBroadcastedType()
138 if (elementType != getElementTypeOrSelf(type2)) in getBroadcastedType()
147 return UnrankedTensorType::get(elementType); in getBroadcastedType()
181 return VectorType::get(resultShape, elementType); in getBroadcastedType()
183 return RankedTensorType::get(resultShape, elementType); in getBroadcastedType()
184 return elementType; in getBroadcastedType()
/llvm-project-15.0.7/mlir/lib/Conversion/ComplexToLibm/
H A DComplexToLibm.cpp24 auto elementType = complexType.getElementType(); in operator ()() local
25 if (!elementType.isa<Float32Type, Float64Type>()) in operator ()()
28 return elementType.getIntOrFloatBitWidth() == 64; in operator ()()
36 auto elementType = type.cast<FloatType>(); in operator ()() local
37 if (!elementType.isa<Float32Type, Float64Type>()) in operator ()()
40 return elementType.getIntOrFloatBitWidth() == 64; in operator ()()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Utils/
H A DLayoutUtils.cpp105 auto elementType = vectorType.getElementType(); in decorateType() local
109 auto memberType = decorateType(elementType, elementSize, elementAlignment); in decorateType()
124 auto elementType = arrayType.getElementType(); in decorateType() local
128 auto memberType = decorateType(elementType, elementSize, elementAlignment); in decorateType()
139 auto elementType = arrayType.getElementType(); in decorateType() local
142 auto memberType = decorateType(elementType, elementSize, alignment); in decorateType()
/llvm-project-15.0.7/flang/include/flang/Lower/
H A DVectorSubscripts.h83 MaybeSubstring substringBounds, mlir::Type elementType) in VectorSubscriptBox() argument
87 substringBounds{substringBounds}, elementType{elementType} {};
105 mlir::Type getElementType() { return elementType; } in getElementType()
139 mlir::Type elementType; variable
/llvm-project-15.0.7/mlir/lib/Conversion/LLVMCommon/
H A DTypeConverter.cpp191 auto elementType = convertType(type.getElementType()); in convertComplexType() local
193 {elementType, elementType}); in convertComplexType()
304 Type elementType = convertType(type.getElementType()); in getMemRefDescriptorFields() local
305 if (!elementType) in getMemRefDescriptorFields()
308 LLVM::LLVMPointerType::get(elementType, type.getMemorySpaceAsInt()); in getMemRefDescriptorFields()
399 Type elementType = convertType(type.getElementType()); in convertMemRefToBarePtr() local
400 if (!elementType) in convertMemRefToBarePtr()
411 auto elementType = convertType(type.getElementType()); in convertVectorType() local
412 if (!elementType) in convertVectorType()
415 return VectorType::get({1}, elementType); in convertVectorType()
[all …]
/llvm-project-15.0.7/clang/utils/ABITest/
H A DTypeGen.py119 def __init__(self, index, isVector, elementType, size): argument
127 self.elementType = elementType
130 eltSize = self.elementType.sizeof()
138 return 'vector (%s)[%d]'%(self.elementType,self.size)
140 return '(%s)[%d]'%(self.elementType,self.size)
142 return '(%s)[]'%(self.elementType,)
145 elementName = printer.getTypeName(self.elementType)
158 def __init__(self, index, elementType): argument
160 self.elementType = elementType
163 return '_Complex (%s)'%(self.elementType)
[all …]
/llvm-project-15.0.7/mlir/lib/Conversion/VectorToGPU/
H A DNvGpuSupport.cpp45 Type elementType, int64_t lineSizeBits) { in getTileShape() argument
48 (operandShape[1] * elementType.getIntOrFloatBitWidth()) / in getTileShape()
155 Type elementType, in getRegisterIndexToTileOffsetMap() argument
161 lineSize / elementType.getIntOrFloatBitWidth(); in getRegisterIndexToTileOffsetMap()
163 getTileShape(operandShape, elementType, lineSize); in getRegisterIndexToTileOffsetMap()
169 elementType.getContext()); in getRegisterIndexToTileOffsetMap()
175 Type elementType = fragmentType.vectorType.getElementType(); in getLaneIdAndValueIdToOperandCoord() local
182 const int64_t elementBitWidth = elementType.getIntOrFloatBitWidth(); in getLaneIdAndValueIdToOperandCoord()
193 lineSize, elementType, operandShape, in getLaneIdAndValueIdToOperandCoord()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Linalg/IR/
H A DLinalgOps.td62 static Type inferResultType(ArrayRef<int64_t> staticSizes, Type elementType,
105 "ArrayRef<int64_t>":$staticShape, "Type":$elementType),
108 InitTensorOp::inferResultType(staticShape, elementType),
111 OpBuilder<(ins "ValueRange":$shape, "Type":$elementType),
115 build($_builder, $_state, shape, staticShape, elementType);
117 OpBuilder<(ins "ArrayRef<int64_t>":$staticShape, "Type":$elementType),
119 build($_builder, $_state, ValueRange{}, staticShape, elementType);
121 OpBuilder<(ins "ArrayRef<OpFoldResult>":$sizes, "Type":$elementType,
/llvm-project-15.0.7/clang/include/clang/AST/
H A DTypeProperties.td13 def : Property<"elementType", QualType> {
17 def : Creator<[{ return ctx.getComplexType(elementType); }]>;
94 def : Property<"elementType", QualType> {
122 return ctx.getIncompleteArrayType(elementType, sizeModifier,
166 def : Property<"elementType", QualType> {
182 def : Property<"elementType", QualType> {
207 return ctx.getExtVectorType(elementType, numElements);
212 def : Property<"elementType", QualType> {
228 def : Property<"elementType", QualType> {
899 def : Property<"elementType", QualType> {
[all …]

123456