Home
last modified time | relevance | path

Searched refs:NamedAttribute (Results 1 – 25 of 128) sorted by relevance

123456

/llvm-project-15.0.7/mlir/lib/IR/
H A DAttributes.cpp26 NamedAttribute::NamedAttribute(StringAttr name, Attribute value) in NamedAttribute() function in NamedAttribute
32 StringAttr NamedAttribute::getName() const { return name.cast<StringAttr>(); } in getName()
34 Dialect *NamedAttribute::getNameDialect() const { in getNameDialect()
38 void NamedAttribute::setName(StringAttr newName) { in setName()
43 bool NamedAttribute::operator<(const NamedAttribute &rhs) const { in operator <()
47 bool NamedAttribute::operator<(StringRef rhs) const { in operator <()
H A DOperationSupport.cpp27 NamedAttrList::NamedAttrList(ArrayRef<NamedAttribute> attributes) { in NamedAttrList()
33 : ArrayRef<NamedAttribute>()) { in NamedAttrList()
43 Optional<NamedAttribute> NamedAttrList::findDuplicate() const { in findDuplicate()
44 Optional<NamedAttribute> duplicate = in findDuplicate()
70 DictionaryAttr::sort(ArrayRef<NamedAttribute>{inStart, inEnd}, attrs); in assign()
74 void NamedAttrList::push_back(NamedAttribute newAttribute) { in push_back()
94 return it.second ? *it.first : Optional<NamedAttribute>(); in getNamed()
98 return it.second ? *it.first : Optional<NamedAttribute>(); in getNamed()
175 ArrayRef<NamedAttribute> attributes, in OperationState()
188 ArrayRef<NamedAttribute> attributes, in OperationState()
[all …]
H A DBuiltinAttributes.cpp113 static Optional<NamedAttribute>
114 findDuplicateElement(ArrayRef<NamedAttribute> value) { in findDuplicateElement()
115 const Optional<NamedAttribute> none{llvm::None}; in findDuplicateElement()
123 [](NamedAttribute l, NamedAttribute r) { in findDuplicateElement()
129 bool DictionaryAttr::sort(ArrayRef<NamedAttribute> value, in sort()
144 Optional<NamedAttribute>
158 SmallVector<NamedAttribute, 8> storage; in get()
173 value, [](NamedAttribute l, NamedAttribute r) { return l < r; }) && in getWithSorted()
217 return Base::get(context, ArrayRef<NamedAttribute>()); in getEmptyUnchecked()
223 for (const NamedAttribute &attr : getValue()) in walkImmediateSubElements()
[all …]
H A DBuiltinDialect.cpp97 for (NamedAttribute attr : getOperation()->getAttrs()) in getDataLayoutSpec()
120 for (const NamedAttribute &na : (*this)->getAttrs()) { in verify()
H A DDialect.cpp43 NamedAttribute) { in verifyRegionArgAttribute() argument
52 unsigned, NamedAttribute) { in verifyRegionResultAttribute() argument
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DAttributes.h152 class NamedAttribute {
154 NamedAttribute(StringAttr name, Attribute value);
178 bool operator<(const NamedAttribute &rhs) const;
182 bool operator==(const NamedAttribute &rhs) const {
192 friend DenseMapInfo<NamedAttribute>;
305 struct DenseMapInfo<mlir::NamedAttribute> {
306 static mlir::NamedAttribute getEmptyKey() {
308 return mlir::NamedAttribute(emptyAttr, emptyAttr);
310 static mlir::NamedAttribute getTombstoneKey() {
312 return mlir::NamedAttribute(tombAttr, tombAttr);
[all …]
H A DOperationSupport.h470 Optional<NamedAttribute>
488 using reference = NamedAttribute &;
489 using const_reference = const NamedAttribute &;
494 NamedAttrList(ArrayRef<NamedAttribute> attributes);
514 append(NamedAttribute(name, attr)); in append()
542 void assign(ArrayRef<NamedAttribute> range) { in assign()
551 void push_back(NamedAttribute newAttribute);
558 Optional<NamedAttribute> findDuplicate() const;
565 ArrayRef<NamedAttribute> getAttrs() const;
594 operator ArrayRef<NamedAttribute>() const;
[all …]
H A DValueRange.h119 using OperandSegment = std::pair<unsigned, NamedAttribute>;
162 MutableOperandRangeRange split(NamedAttribute segmentSizes) const;
193 std::pair<MutableOperandRange, NamedAttribute>, MutableOperandRange,
195 using OwnerT = std::pair<MutableOperandRange, NamedAttribute>;
207 NamedAttribute operandSegmentAttr);
H A DOperation.h356 ArrayRef<NamedAttribute> getAttrs() { return attrs.getValue(); } in getAttrs()
366 void setAttrs(ArrayRef<NamedAttribute> newAttrs) { in setAttrs()
420 : public llvm::filter_iterator<ArrayRef<NamedAttribute>::iterator,
421 bool (*)(NamedAttribute)> {
422 static bool filter(NamedAttribute attr) { in filter()
427 explicit dialect_attr_iterator(ArrayRef<NamedAttribute>::iterator it, in dialect_attr_iterator()
428 ArrayRef<NamedAttribute>::iterator end) in dialect_attr_iterator()
429 : llvm::filter_iterator<ArrayRef<NamedAttribute>::iterator, in dialect_attr_iterator()
430 bool (*)(NamedAttribute)>(it, end, &filter) {} in dialect_attr_iterator()
H A DFunctionInterfaces.h63 inline ArrayRef<NamedAttribute> getArgAttrs(Operation *op, unsigned index) { in getArgAttrs()
69 inline ArrayRef<NamedAttribute> getResultAttrs(Operation *op, unsigned index) { in getResultAttrs()
116 ArrayRef<NamedAttribute> attributes) { in setArgAttrs()
163 ArrayRef<NamedAttribute> attributes) { in setResultAttrs()
H A DDialect.h137 NamedAttribute);
146 NamedAttribute);
150 virtual LogicalResult verifyOperationAttribute(Operation *, NamedAttribute) { in verifyOperationAttribute() argument
/llvm-project-15.0.7/mlir/include/mlir/TableGen/
H A DArgument.h37 struct NamedAttribute { struct
62 using Argument = llvm::PointerUnion<NamedAttribute *, NamedTypeConstraint *>; argument
H A DOperator.h133 using attribute_iterator = const NamedAttribute *;
142 NamedAttribute &getAttribute(int index) { return attributes[index]; } in getAttribute()
143 const NamedAttribute &getAttribute(int index) const { in getAttribute()
341 SmallVector<NamedAttribute, 4> attributes;
/llvm-project-15.0.7/mlir/include/mlir/Target/LLVMIR/
H A DLLVMTranslationInterface.h55 amendOperation(Operation *op, NamedAttribute attribute, in amendOperation()
81 amendOperation(Operation *op, NamedAttribute attribute, in amendOperation()
/llvm-project-15.0.7/mlir/lib/Dialect/Func/IR/
H A DFuncOps.cpp224 ArrayRef<NamedAttribute> attrs) { in create()
232 SmallVector<NamedAttribute, 8> attrRef(attrs); in create()
236 ArrayRef<NamedAttribute> attrs, in create()
244 FunctionType type, ArrayRef<NamedAttribute> attrs, in build()
286 return NamedAttribute(attrPair.first, attrPair.second); in cloneInto()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Linalg/IR/
H A DLinalgStructuredOps.td173 CArg<"ArrayRef<NamedAttribute>", "{}">:$attributes)>,
179 CArg<"ArrayRef<NamedAttribute>", "{}">:$attributes)>,
184 CArg<"ArrayRef<NamedAttribute>", "{}">:$attributes)>,
189 CArg<"ArrayRef<NamedAttribute>", "{}">:$attributes)>,
193 CArg<"ArrayRef<NamedAttribute>", "{}">:$attributes)>
210 Block &, ArrayRef<NamedAttribute>)>
/llvm-project-15.0.7/mlir/unittests/TableGen/
H A DOpBuildGen.cpp51 std::vector<NamedAttribute> attrs) { in verifyOp()
102 ArrayRef<NamedAttribute> noAttrs;
103 std::vector<NamedAttribute> attrStorage;
104 ArrayRef<NamedAttribute> attrs;
/llvm-project-15.0.7/mlir/test/mlir-tblgen/
H A Dop-decl-and-defs.td100 …e resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes, u…
205 …e resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = …
217 …e resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = …
229 …e resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = …
243 …e resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = …
254 …e resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = …
255 …ate &odsState, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = …
266 …e resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = …
267 …ate &odsState, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = …
302 …e resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = …
[all …]
/llvm-project-15.0.7/flang/include/flang/Optimizer/Dialect/
H A DFIROpsSupport.h59 llvm::ArrayRef<mlir::NamedAttribute> attrs = {});
64 llvm::ArrayRef<mlir::NamedAttribute> attrs = {});
/llvm-project-15.0.7/mlir/lib/Conversion/FuncToLLVM/
H A DFuncToLLVM.cpp53 static void filterFuncAttributes(ArrayRef<NamedAttribute> attrs, in filterFuncAttributes()
55 SmallVectorImpl<NamedAttribute> &result) { in filterFuncAttributes()
84 SmallVectorImpl<NamedAttribute> &attributes, in prependResAttrsToArgAttrs()
88 NamedAttribute *argAttrs = nullptr; in prependResAttrsToArgAttrs()
131 SmallVector<NamedAttribute, 4> attributes; in wrapForExternalCallers()
201 SmallVector<NamedAttribute, 4> attributes; in wrapExternalFunction()
301 SmallVector<NamedAttribute, 4> attributes; in convertFuncOpToLLVMFuncOp()
476 for (const NamedAttribute &attr : op->getAttrs()) { in matchAndRewrite()
/llvm-project-15.0.7/mlir/test/mlir-linalg-ods-gen/
H A Dtest-linalg-ods-yaml-gen.yaml78 # ODS-NEXT: CArg<"ArrayRef<NamedAttribute>", "{}">:$attributes),
82 # ODS-NEXT: CArg<"ArrayRef<NamedAttribute>", "{}">:$attributes),
89 # IMPL-NEXT: Block &block, ArrayRef<NamedAttribute> attrs)
91 # IMPL-NEXT: auto castIter = llvm::find_if(attrs, [&](const NamedAttribute &attr) {
188 # IMPL-NEXT: Block &block, ArrayRef<NamedAttribute> attrs)
317 # IMPL-NEXT: Block &block, ArrayRef<NamedAttribute> attrs)
/llvm-project-15.0.7/mlir/tools/mlir-tblgen/
H A DOpDefinitionsGen.cpp335 for (const NamedAttribute &namedAttr : op.getAttributes()) { in computeAttrMetadata()
1005 for (const NamedAttribute &namedAttr : op.getAttributes()) { in genAttrGetters()
1072 [&](const NamedAttribute &namedAttr) { in genAttrGetters()
1100 for (const NamedAttribute &namedAttr : op.getAttributes()) { in genAttrSetters()
1124 for (const NamedAttribute &namedAttr : op.getAttributes()) in genOptionalAttrRemovers()
1454 const NamedAttribute &namedAttr = op.getAttribute(i); in canGenerateUnwrappedBuilder()
1596 if (llvm::all_of(op.getAttributes(), [](const NamedAttribute &named) { in genPopulateDefaultAttributes()
1617 for (const NamedAttribute &namedAttr : op.getAttributes()) { in genPopulateDefaultAttributes()
1951 auto *namedAttr = op.getArg(i).dyn_cast<tblgen::NamedAttribute *>(); in buildParamList()
1994 const NamedAttribute &namedAttr = *arg.get<NamedAttribute *>(); in buildParamList()
[all …]
H A DSPIRVUtilsGen.cpp46 using mlir::tblgen::NamedAttribute;
576 return arg.is<NamedAttribute *>(); in emitArgumentSerialization()
580 if (!it->is<NamedAttribute *>()) { in emitArgumentSerialization()
596 for (const NamedAttribute &attr : op.getAttributes()) { in emitArgumentSerialization()
626 NamedAttribute *attr = argument.get<NamedAttribute *>(); in emitArgumentSerialization()
921 auto *attr = argument.get<NamedAttribute *>(); in emitOperandDeserialization()
1259 for (const NamedAttribute &namedAttr : srcOp.getAttributes()) { in emitAvailabilityImpl()
1300 for (const NamedAttribute &namedAttr : srcOp.getAttributes()) { in emitAvailabilityImpl()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/
H A DParserUtils.h30 SmallVector<NamedAttribute, 1> attr;
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Tensor/IR/
H A DTensorOps.td268 CArg<"ArrayRef<NamedAttribute>", "{}">:$attrs)>,
274 CArg<"ArrayRef<NamedAttribute>", "{}">:$attrs)>,
279 CArg<"ArrayRef<NamedAttribute>", "{}">:$attrs)>,
283 CArg<"ArrayRef<NamedAttribute>", "{}">:$attrs)>
594 CArg<"ArrayRef<NamedAttribute>", "{}">:$attrs)>,
598 CArg<"ArrayRef<NamedAttribute>", "{}">:$attrs)>
788 CArg<"ArrayRef<NamedAttribute>", "{}">:$attrs),
796 CArg<"ArrayRef<NamedAttribute>", "{}">:$attrs),
841 CArg<"ArrayRef<NamedAttribute>", "{}">:$attrs),
851 CArg<"ArrayRef<NamedAttribute>", "{}">:$attrs),
[all …]

123456