| /llvm-project-15.0.7/mlir/include/mlir/AsmParser/ |
| H A D | AsmParser.h | 52 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 D | DialectSymbolParser.cpp | 241 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 D | AsmParserImpl.h | 365 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 D | Parser.h | 232 Attribute parseAttribute(Type type = {}); 248 if (Attribute parsedAttr = parseAttribute(type)) {
|
| H A D | LocationParser.cpp | 67 metadata = parseAttribute(); in parseFusedLocation()
|
| H A D | AttributeParser.cpp | 48 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 D | TypeParser.cpp | 239 Attribute attr = parseAttribute(); in parseMemRefType() 404 encoding = parseAttribute(); in parseTensorType()
|
| /llvm-project-15.0.7/mlir/test/lib/Dialect/Test/ |
| H A D | TestAttributes.cpp | 36 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 D | TestTypes.cpp | 367 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 D | OpImplementation.h | 812 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 D | Dialect.h | 97 virtual Attribute parseAttribute(DialectAsmParser &parser, Type type) const;
|
| /llvm-project-15.0.7/mlir/lib/Dialect/DLTI/ |
| H A D | DLTI.cpp | 87 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 D | FIRDialect.h | 35 mlir::Attribute parseAttribute(mlir::DialectAsmParser &parser,
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/ |
| H A D | SPIRVOps.cpp | 177 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 D | SPIRVAttributes.cpp | 523 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 D | FIRDialect.cpp | 86 fir::FIROpsDialect::parseAttribute(mlir::DialectAsmParser &parser, in parseAttribute() function in fir::FIROpsDialect
|
| H A D | FIROps.cpp | 675 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 D | default-type-attr-print-parser.td | 26 // ATTR: ::mlir::Attribute TestDialect::parseAttribute(::mlir::DialectAsmParser &parser,
|
| /llvm-project-15.0.7/mlir/lib/IR/ |
| H A D | Dialect.cpp | 57 Attribute Dialect::parseAttribute(DialectAsmParser &parser, Type type) const { in parseAttribute() function in Dialect
|
| H A D | ExtensibleDialect.cpp | 31 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 D | DataLayoutInterfacesTest.cpp | 206 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 D | PDLInterp.cpp | 77 if (p.parseAttribute(nameAttr) || p.parseEqual() || in parseCreateOperationOpAttributes()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/MLProgram/IR/ |
| H A D | MLProgramOps.cpp | 87 if (failed(parser.parseAttribute(attr))) in parseTypedInitialValue()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/ |
| H A D | LLVMDialect.cpp | 143 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 D | Dialect.cpp | 116 parser.parseAttribute(value, "value", result.attributes)) in parse()
|