Home
last modified time | relevance | path

Searched refs:ArrayAttr (Results 1 – 25 of 142) sorted by relevance

123456

/external/llvm-project/mlir/include/mlir/Dialect/SPIRV/
DSPIRVAttributes.h82 static VerCapExtAttr get(IntegerAttr version, ArrayAttr capabilities,
83 ArrayAttr extensions);
92 : public llvm::mapped_iterator<ArrayAttr::iterator,
94 explicit ext_iterator(ArrayAttr::iterator it);
101 ArrayAttr getExtensionsAttr();
104 : public llvm::mapped_iterator<ArrayAttr::iterator,
106 explicit cap_iterator(ArrayAttr::iterator it);
113 ArrayAttr getCapabilitiesAttr();
117 ArrayAttr capabilities,
118 ArrayAttr extensions);
[all …]
/external/tensorflow/tensorflow/compiler/mlir/tosa/transforms/
Dlegalize_utils.h81 RankedTensorType filter_type, ArrayAttr strides, ArrayAttr dilations,
82 PatternRewriter& rewriter, ArrayAttr& explicit_pad);
85 ArrayAttr getPaddingValuesFromExplicitPadAttr(
86 ArrayAttr explicit_pad, tensorflow::TensorFormat data_format_tf,
94 ArrayAttr strides, ArrayAttr dilations, PatternRewriter& rewriter,
95 ArrayAttr& explicit_pad);
Dlegalize_utils.cc238 RankedTensorType filter_type, ArrayAttr strides, ArrayAttr dilations, in getPaddingValuesFromPadType()
239 PatternRewriter& rewriter, ArrayAttr& explicit_padding) { in getPaddingValuesFromPadType()
283 ArrayAttr getPaddingValuesFromExplicitPadAttr( in getPaddingValuesFromExplicitPadAttr()
284 ArrayAttr explicit_pad, tensorflow::TensorFormat data_format_tf, in getPaddingValuesFromExplicitPadAttr()
307 ArrayAttr strides, ArrayAttr dilations, PatternRewriter& rewriter, in getTransposeConv2dPaddingValues()
308 ArrayAttr& explicit_padding) { in getTransposeConv2dPaddingValues()
/external/llvm-project/mlir/lib/Dialect/SPIRV/
DSPIRVAttributes.cpp203 ArrayAttr capabilities, in get()
204 ArrayAttr extensions) { in get()
217 spirv::VerCapExtAttr::ext_iterator::ext_iterator(ArrayAttr::iterator it) in ext_iterator()
218 : llvm::mapped_iterator<ArrayAttr::iterator, in ext_iterator()
229 ArrayAttr spirv::VerCapExtAttr::getExtensionsAttr() { in getExtensionsAttr()
230 return getImpl()->extensions.cast<ArrayAttr>(); in getExtensionsAttr()
233 spirv::VerCapExtAttr::cap_iterator::cap_iterator(ArrayAttr::iterator it) in cap_iterator()
234 : llvm::mapped_iterator<ArrayAttr::iterator, in cap_iterator()
246 ArrayAttr spirv::VerCapExtAttr::getCapabilitiesAttr() { in getCapabilitiesAttr()
247 return getImpl()->capabilities.cast<ArrayAttr>(); in getCapabilitiesAttr()
[all …]
/external/llvm-project/mlir/lib/Dialect/Tosa/IR/
DTosaOps.cpp151 Value bias, ArrayAttr pad, in buildConvOpWithQuantInfo()
152 ArrayAttr stride, ArrayAttr dilation) { in buildConvOpWithQuantInfo()
173 Value bias, ArrayAttr outpad, ArrayAttr stride, in buildTransConvOpWithQuantInfo()
174 ArrayAttr dilation, ArrayAttr outputShape) { in buildTransConvOpWithQuantInfo()
253 ArrayAttr kernel, ArrayAttr stride, in buildAvgPool2dOpWithQuantInfo()
254 ArrayAttr pad) { in buildAvgPool2dOpWithQuantInfo()
/external/llvm-project/mlir/include/mlir/Dialect/Utils/
DStructuredOpsUtils.h27 inline bool isRowMajorMatmul(ArrayAttr indexingMaps) { in isRowMajorMatmul()
34 auto maps = ArrayAttr::get({mapA, mapB, mapC}, context); in isRowMajorMatmul()
38 inline bool isColumnMajorMatmul(ArrayAttr indexingMaps) { in isColumnMajorMatmul()
45 auto maps = ArrayAttr::get({mapA, mapB, mapC}, context); in isColumnMajorMatmul()
107 inline unsigned getNumIterators(StringRef name, ArrayAttr iteratorTypes) { in getNumIterators()
116 inline unsigned getNumIterators(ArrayAttr iteratorTypes) { in getNumIterators()
/external/llvm-project/mlir/test/mlir-tblgen/
Dpredicate.td48 let arguments = (ins Confined<ArrayAttr, [ArrayMinCount<8>]>:$attr);
52 // CHECK: (tblgen_attr.cast<::mlir::ArrayAttr>().size() >= 8)
56 let arguments = (ins Confined<ArrayAttr, [IntArrayNthElemEq<0, 8>]>:$attr);
60 // CHECK: (((tblgen_attr.cast<::mlir::ArrayAttr>().size() > 0)) && ((tblgen_attr.cast<::mlir::Array…
64 let arguments = (ins Confined<ArrayAttr, [IntArrayNthElemMinValue<0, 8>]>:$attr);
68 // CHECK: (((tblgen_attr.cast<::mlir::ArrayAttr>().size() > 0)) && ((tblgen_attr.cast<::mlir::Array…
/external/llvm-project/mlir/test/lib/Rewrite/
DTestPDLByteCode.cpp17 ArrayAttr constantParams, in customSingleEntityConstraint()
23 ArrayAttr constantParams, in customMultiEntityConstraint()
29 static PDLValue customCreate(ArrayRef<PDLValue> args, ArrayAttr constantParams, in customCreate()
37 ArrayAttr constantParams, in customRewriter()
/external/llvm-project/mlir/test/mlir-linalg-ods-gen/
Dtest-linalg-ods-gen.tc10 // IMPL-LABEL: ArrayAttr Test1Op::iterator_types() {
13 // IMPL: ArrayAttr Test1Op::indexing_maps() {
35 // IMPL-LABEL: ArrayAttr Test2Op::iterator_types() {
38 // IMPL: ArrayAttr Test2Op::indexing_maps() {
60 // IMPL-LABEL: ArrayAttr Test3Op::iterator_types() {
63 // IMPL: ArrayAttr Test3Op::indexing_maps() {
/external/llvm-project/mlir/include/mlir/IR/
DBuilders.h37 class ArrayAttr; variable
97 ArrayAttr getArrayAttr(ArrayRef<Attribute> value);
135 ArrayAttr getAffineMapArrayAttr(ArrayRef<AffineMap> values);
136 ArrayAttr getBoolArrayAttr(ArrayRef<bool> values);
137 ArrayAttr getI32ArrayAttr(ArrayRef<int32_t> values);
138 ArrayAttr getI64ArrayAttr(ArrayRef<int64_t> values);
139 ArrayAttr getIndexArrayAttr(ArrayRef<int64_t> values);
140 ArrayAttr getF32ArrayAttr(ArrayRef<float> values);
141 ArrayAttr getF64ArrayAttr(ArrayRef<double> values);
142 ArrayAttr getStrArrayAttr(ArrayRef<StringRef> values);
[all …]
DPatternMatch.h312 ArrayRef<PDLValue>, ArrayAttr, PatternRewriter &)>;
317 std::function<PDLValue(ArrayRef<PDLValue>, ArrayAttr, PatternRewriter &)>;
322 ArrayAttr, PatternRewriter &)>;
328 std::function<LogicalResult(PDLValue, ArrayAttr, PatternRewriter &)>;
357 ArrayAttr, PatternRewriter &>::value>
361 ArrayRef<PDLValue> values, ArrayAttr constantParams, in registerConstraintFunction()
/external/llvm-project/mlir/include/mlir/Dialect/Tosa/IR/
DTosaOpBase.td116 "ArrayAttr":$pad, "ArrayAttr":$stride, "ArrayAttr":$dilation),
126 "ArrayAttr":$outpad, "ArrayAttr":$stride, "ArrayAttr":$dilation,
127 "ArrayAttr":$outputShape),
159 (ins "Type":$outputType, "Value":$input, "ArrayAttr":$kernel,
160 "ArrayAttr":$stride, "ArrayAttr":$pad),
/external/tensorflow/tensorflow/compiler/mlir/lite/utils/
Dperception_ops_utils_test.cc63 ArrayAttr createInt32Array(mlir::Builder* builder, mlir::MLIRContext* context, in createInt32Array()
69 return ArrayAttr::get(context, ret); in createInt32Array()
73 ArrayAttr createInt64Array(mlir::Builder* builder, mlir::MLIRContext* context, in createInt64Array()
79 return ArrayAttr::get(context, ret); in createInt64Array()
84 const ArrayAttr& pool_size, in createMaxUnpoolingAttr()
85 const ArrayAttr& strides) { in createMaxUnpoolingAttr()
Dvalidators.cc30 auto attr = op->getAttrOfType<ArrayAttr>(name); in TFIntListIs1XY1()
51 bool TFIntListIs1XY1(const ArrayAttr &attr) { in TFIntListIs1XY1()
70 auto attr = op->getAttrOfType<ArrayAttr>(name); in TFIntListIs1XYZ1()
93 bool TFIntListIsAllOnes(const ArrayAttr &attr) { in TFIntListIsAllOnes()
Dvalidators.h54 bool TFIntListIs1XY1(const ArrayAttr &attr);
65 bool TFIntListIsAllOnes(const ArrayAttr &attr);
/external/llvm-project/mlir/lib/IR/
DBuilders.cpp202 ArrayAttr Builder::getArrayAttr(ArrayRef<Attribute> value) { in getArrayAttr()
203 return ArrayAttr::get(value, context); in getArrayAttr()
221 ArrayAttr Builder::getBoolArrayAttr(ArrayRef<bool> values) { in getBoolArrayAttr()
227 ArrayAttr Builder::getI32ArrayAttr(ArrayRef<int32_t> values) { in getI32ArrayAttr()
232 ArrayAttr Builder::getI64ArrayAttr(ArrayRef<int64_t> values) { in getI64ArrayAttr()
238 ArrayAttr Builder::getIndexArrayAttr(ArrayRef<int64_t> values) { in getIndexArrayAttr()
246 ArrayAttr Builder::getF32ArrayAttr(ArrayRef<float> values) { in getF32ArrayAttr()
252 ArrayAttr Builder::getF64ArrayAttr(ArrayRef<double> values) { in getF64ArrayAttr()
258 ArrayAttr Builder::getStrArrayAttr(ArrayRef<StringRef> values) { in getStrArrayAttr()
264 ArrayAttr Builder::getTypeArrayAttr(TypeRange values) { in getTypeArrayAttr()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dcontraction_fusion.cc110 NamedAttribute fusion_attr(fusion_id, ArrayAttr::get(ctx, {fusion_name})); in matchAndRewrite()
114 ArrayAttr arr = in matchAndRewrite()
115 llvm::find_if(attrs, is_fusion)->second.template cast<ArrayAttr>(); in matchAndRewrite()
122 attrs.push_back(NamedAttribute(fusion_id, ArrayAttr::get(ctx, updated))); in matchAndRewrite()
Dreadonly_references_to_resources.cc66 ArrayAttr classes_attr = op->getAttrOfType<ArrayAttr>(kClassAttr); in GetNodeNameFromClassAttr()
72 classes_attr = identity_op->getAttrOfType<ArrayAttr>(kClassAttr); in GetNodeNameFromClassAttr()
Dtpu_dynamic_padding_mapper.cc60 ArrayAttr replicated_input_indices_attr) { in GetRemappedReplicatedInputIndices()
100 auto padding_map = padding_map_attr.dyn_cast<ArrayAttr>(); in GetRemappedPaddings()
191 replicate->getAttrOfType<ArrayAttr>(kReplicatedInputIndicesAttr); in RemapAndAssignPaddingMaps()
/external/llvm-project/mlir/lib/Dialect/Linalg/Transforms/
DDropUnitDims.cpp99 static ArrayAttr replaceUnitDims(DenseSet<unsigned> &unitDims, in replaceUnitDims()
140 return ArrayAttr::get( in replaceUnitDims()
195 ArrayAttr iteratorTypes = op.iterator_types(); in matchAndRewrite()
208 ArrayAttr newIndexingMapAttr = in matchAndRewrite()
223 op.iterator_typesAttr(ArrayAttr::get(newIteratorTypes, context)); in matchAndRewrite()
233 ArrayAttr reassociation;
285 ArrayAttr::get(reassociationMaps, context)}; in replaceUnitExtents()
305 SmallVector<ArrayAttr, 4> reassociationMaps; in matchAndRewrite()
DInterchange.cpp80 ArrayAttr::get(newIndexingMaps, context)); in interchange()
82 ArrayAttr::get(itTypesVector, context)); in interchange()
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Ddilated_conv.h72 llvm::Optional<ArrayAttr> ExtractDilationsAttrFromBlockShape(
89 const ArrayAttr& dilations = in matchAndRewrite()
90 op->template getAttrOfType<ArrayAttr>("dilations"); in matchAndRewrite()
198 llvm::Optional<ArrayAttr> dilations_attr = ExtractDilationsAttrFromBlockShape( in matchAndRewrite()
308 llvm::Optional<ArrayAttr>
/external/llvm-project/mlir/include/mlir/Interfaces/
DViewLikeInterface.td118 /*retTy=*/"ArrayAttr",
130 /*retTy=*/"ArrayAttr",
142 /*retTy=*/"ArrayAttr",
252 static_offsets().template cast<ArrayAttr>(),
270 static_sizes().template cast<ArrayAttr>(), ShapedType::isDynamic, idx);
286 static_strides().template cast<ArrayAttr>(),
299 /*args=*/(ins "ArrayAttr":$attr,
/external/llvm-project/mlir/lib/Dialect/SPIRV/Transforms/
DRewriteInsertsPass.cpp80 auto indicesArrayAttr = op.indices().cast<ArrayAttr>(); in collectInsertionChain()
103 indicesArrayAttr = op.indices().cast<ArrayAttr>(); in collectInsertionChain()
/external/llvm-project/debuginfo-tests/llvm-prettyprinters/gdb/
Dmlir-support.cpp37 mlir::Attribute ArrayAttr = mlir::ArrayAttr::get({UnitAttr}, &Context); variable

123456