Home
last modified time | relevance | path

Searched refs:parseAttribute (Results 1 – 25 of 50) sorted by relevance

12

/llvm-project-15.0.7/mlir/include/mlir/AsmParser/
H A DAsmParser.h52 Attribute parseAttribute(llvm::StringRef attrStr, MLIRContext *context);
53 Attribute parseAttribute(llvm::StringRef attrStr, Type type);
60 Attribute parseAttribute(llvm::StringRef attrStr, MLIRContext *context,
62 Attribute parseAttribute(llvm::StringRef attrStr, Type type, size_t &numRead);
/llvm-project-15.0.7/mlir/lib/AsmParser/
H A DDialectSymbolParser.cpp241 Attribute attr = dialect->parseAttribute(customParser, attrType); in parseExtendedAttr()
329 Attribute mlir::parseAttribute(StringRef attrStr, MLIRContext *context) { in parseAttribute() function in mlir
331 return parseAttribute(attrStr, context, numRead); in parseAttribute()
333 Attribute mlir::parseAttribute(StringRef attrStr, Type type) { in parseAttribute() function in mlir
335 return parseAttribute(attrStr, type, numRead); in parseAttribute()
338 Attribute mlir::parseAttribute(StringRef attrStr, MLIRContext *context, in parseAttribute() function in mlir
341 return parser.parseAttribute(); in parseAttribute()
344 Attribute mlir::parseAttribute(StringRef attrStr, Type type, size_t &numRead) { in parseAttribute() function in mlir
347 [type](Parser &parser) { return parser.parseAttribute(type); }); in parseAttribute()
H A DAsmParserImpl.h365 ParseResult parseAttribute(Attribute &result, Type type) override { in parseAttribute() function
366 result = parser.parseAttribute(type); in parseAttribute()
374 function_ref<ParseResult(Attribute &result, Type type)> parseAttribute) in parseCustomAttributeWithFallback() argument
377 return parseAttribute(result, type); in parseCustomAttributeWithFallback()
378 result = parser.parseAttribute(type); in parseCustomAttributeWithFallback()
H A DParser.h232 Attribute parseAttribute(Type type = {});
248 if (Attribute parsedAttr = parseAttribute(type)) {
H A DLocationParser.cpp67 metadata = parseAttribute(); in parseFusedLocation()
H A DAttributeParser.cpp48 Attribute Parser::parseAttribute(Type type) { in parseAttribute() function in Parser
79 elements.push_back(parseAttribute()); in parseAttribute()
254 attribute = parseAttribute(type); in parseOptionalAttribute()
314 auto attr = parseAttribute(); in parseAttributeDict()
H A DTypeParser.cpp239 Attribute attr = parseAttribute(); in parseMemRefType()
404 encoding = parseAttribute(); in parseTensorType()
/llvm-project-15.0.7/mlir/test/lib/Dialect/Test/
H A DTestAttributes.cpp36 if (parser.parseAttribute(element)) in parse()
154 if (parser.parseLess() || parser.parseAttribute(first) || in parse()
155 parser.parseComma() || parser.parseAttribute(second) || in parse()
156 parser.parseComma() || parser.parseAttribute(third) || in parse()
249 if (parser.parseLess() || parser.parseAttribute(leftAttr) || in getDynamicCustomAssemblyFormatAttr()
250 parser.parseColon() || parser.parseAttribute(rightAttr) || in getDynamicCustomAssemblyFormatAttr()
H A DTestTypes.cpp367 if (parser.parseLess() || parser.parseAttribute(leftAttr) || in getCustomAssemblyFormatDynamicType()
368 parser.parseColon() || parser.parseAttribute(rightAttr) || in getCustomAssemblyFormatDynamicType()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DOpImplementation.h812 virtual ParseResult parseAttribute(Attribute &result, Type type = {}) = 0;
819 parseAttribute) = 0;
823 ParseResult parseAttribute(AttrType &result, Type type = {}) {
828 if (parseAttribute(attr, type))
840 ParseResult parseAttribute(Attribute &result, StringRef attrName, in parseAttribute() function
842 return parseAttribute(result, Type(), attrName, attrs); in parseAttribute()
847 ParseResult parseAttribute(AttrType &result, StringRef attrName, in parseAttribute() function
849 return parseAttribute(result, Type(), attrName, attrs); in parseAttribute()
862 if (parseAttribute(attr, type)) in parseAttribute()
916 return parseAttribute(result, type, attrName, attrs); in parseCustomAttributeWithFallback()
[all …]
H A DDialect.h97 virtual Attribute parseAttribute(DialectAsmParser &parser, Type type) const;
/llvm-project-15.0.7/mlir/lib/Dialect/DLTI/
H A DDLTI.cpp87 if (failed(parser.parseComma()) || failed(parser.parseAttribute(value)) || in parse()
290 [&]() { return parser.parseAttribute(entries.emplace_back()); }) || in parse()
342 Attribute DLTIDialect::parseAttribute(DialectAsmParser &parser, in parseAttribute() function in DLTIDialect
/llvm-project-15.0.7/flang/include/flang/Optimizer/Dialect/
H A DFIRDialect.h35 mlir::Attribute parseAttribute(mlir::DialectAsmParser &parser,
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVOps.cpp177 if (parser.parseAttribute(attrVal, parser.getBuilder().getNoneType(), in parseEnumStrAttr()
270 parser.parseAttribute(alignmentAttr, i32Type, kAlignmentAttrName, in parseMemoryAccessAttributes()
614 parser.parseAttribute(set, i32Type, descriptorSetName, in parseVariableDecorations()
617 parser.parseAttribute(binding, i32Type, bindingName, in parseVariableDecorations()
625 parser.parseAttribute(builtIn, builtInName, state.attributes) || in parseVariableDecorations()
1804 if (parser.parseAttribute(value, kValueAttrName, state.attributes)) in parse()
2090 if (parser.parseAttribute(var, Type(), "var_symbol", attrs)) in parse()
2135 if (parser.parseAttribute(fn, kFnNameAttrName, state.attributes) || in parse()
2145 if (parser.parseAttribute(value, i32Type, "value", attr)) { in parse()
3182 if (parser.parseAttribute(vceTriple, in parse()
[all …]
H A DSPIRVAttributes.cpp523 if (parser.parseAttribute(tripleAttr) || parser.parseComma()) in parseTargetEnvAttr()
563 if (parser.parseAttribute(limitsAttr) || parser.parseGreater()) in parseTargetEnvAttr()
570 Attribute SPIRVDialect::parseAttribute(DialectAsmParser &parser, in parseAttribute() function in SPIRVDialect
/llvm-project-15.0.7/flang/lib/Optimizer/Dialect/
H A DFIRDialect.cpp86 fir::FIROpsDialect::parseAttribute(mlir::DialectAsmParser &parser, in parseAttribute() function in fir::FIROpsDialect
H A DFIROps.cpp675 if (parser.parseAttribute(funcAttr, fir::CallOp::getCalleeAttrNameStr(), in parse()
832 parser.parseAttribute(realp, fir::ConstcOp::getRealAttrName(), in parse()
835 parser.parseAttribute(imagp, fir::ConstcOp::getImagAttrName(), in parse()
1053 if (parser.parseAttribute(calleeAttr, in parse()
1266 if (parser.parseAttribute(attr, "initVal", result.attributes) || in parse()
1393 if (parser.parseAttribute(fieldAttr, in parse()
1403 parser.parseAttribute(constant, fir::GlobalLenOp::getIntAttrName(), in parse()
2163 if (parser.parseAttribute(methodAttr, in parse()
2410 if (parser.parseAttribute(ivalue, "i", temp) || parser.parseComma() || in parseIntegralSwitchTerminator()
2922 if (parser.parseAttribute(attr, "a", temp) || parser.parseComma() || in parse()
[all …]
/llvm-project-15.0.7/mlir/test/mlir-tblgen/
H A Ddefault-type-attr-print-parser.td26 // ATTR: ::mlir::Attribute TestDialect::parseAttribute(::mlir::DialectAsmParser &parser,
/llvm-project-15.0.7/mlir/lib/IR/
H A DDialect.cpp57 Attribute Dialect::parseAttribute(DialectAsmParser &parser, Type type) const { in parseAttribute() function in Dialect
H A DExtensibleDialect.cpp31 if (parser.parseAttribute(attr)) in typeOrAttrParser()
37 if (parser.parseComma() || parser.parseAttribute(attr)) in typeOrAttrParser()
/llvm-project-15.0.7/mlir/unittests/Interfaces/
H A DDataLayoutInterfacesTest.cpp206 Attribute parseAttribute(DialectAsmParser &parser, Type type) const override { in parseAttribute() function
217 ok = succeeded(parser.parseAttribute(entries.back())); in parseAttribute()
/llvm-project-15.0.7/mlir/lib/Dialect/PDLInterp/IR/
H A DPDLInterp.cpp77 if (p.parseAttribute(nameAttr) || p.parseEqual() || in parseCreateOperationOpAttributes()
/llvm-project-15.0.7/mlir/lib/Dialect/MLProgram/IR/
H A DMLProgramOps.cpp87 if (failed(parser.parseAttribute(attr))) in parseTypedInitialValue()
/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/
H A DLLVMDialect.cpp143 parser.parseAttribute(predicateAttr, "predicate", result.attributes) || in parseCmpOp()
984 if (isDirect && parser.parseAttribute(funcAttr, "callee", result.attributes)) in parse()
1281 if (parser.parseAttribute(funcAttr, "callee", result.attributes)) in parse()
1513 parser.parseAttribute(positionAttr, "position", result.attributes) || in parse()
1648 parser.parseAttribute(positionAttr, "position", result.attributes) || in parse()
1933 if (parser.parseAttribute(value, getValueAttrName(result.name), in parse()
2130 parser.parseAttribute(maskAttr, "mask", result.attributes) || in parse()
2635 parser.parseAttribute(sScope, syncscopeKeyword, result.attributes) || in parse()
/llvm-project-15.0.7/mlir/examples/toy/Ch3/mlir/
H A DDialect.cpp116 parser.parseAttribute(value, "value", result.attributes)) in parse()

12