Home
last modified time | relevance | path

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

123

/llvm-project/mlir/unittests/Parser/
H A DParserTest.cpp71 Attribute attr = parseAttribute(attrAsm, &context, Type(), &numRead); in TEST()
82 EXPECT_FALSE(parseAttribute("dense<>", &context, Type(), &numRead)); in TEST()
92 EXPECT_FALSE(parseAttribute("10 foo", &context)); in TEST()
98 EXPECT_EQ(parseAttribute("10 foo", &context, Type(), &numRead), in TEST()
104 Attribute attr = parseAttribute(attrAsm, &context);
/llvm-project/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVParsingUtils.cpp34 parser.parseAttribute(set, i32Type, descriptorSetName, in parseVariableDecorations()
37 parser.parseAttribute(binding, i32Type, bindingName, in parseVariableDecorations()
45 parser.parseAttribute(builtIn, builtInName, state.attributes) || in parseVariableDecorations()
H A DSPIRVOps.cpp466 parser.parseAttribute(indicesAttr, indicesAttrName, result.attributes) || in parse()
523 parser.parseAttribute(indicesAttr, indicesAttrName, result.attributes) || in parse()
566 if (parser.parseAttribute(value, valueAttrName, result.attributes)) in parse()
812 parser.parseAttribute(fn, Type(), kFnNameAttrName, result.attributes)) { in parse()
822 if (parser.parseAttribute(var, Type(), "var_symbol", attrs)) in parse()
867 if (parser.parseAttribute(fn, kFnNameAttrName, result.attributes) || in parse()
877 if (parser.parseAttribute(value, i32Type, "value", attr)) { in parse()
1170 parser.parseAttribute(initSymbol, Type(), initializerAttrName, in parse()
1432 if (parser.parseAttribute(vceTriple, in build()
1590 parser.parseAttribute(specIdAtt in verify()
[all...]
H A DSPIRVParsingUtils.h76 if (parser.parseAttribute(attrVal, parser.getBuilder().getNoneType(),
H A DSPIRVAttributes.cpp530 if (parser.parseAttribute(tripleAttr) || parser.parseComma()) in parseTargetEnvAttr()
584 if (parser.parseAttribute(limitsAttr) || parser.parseGreater()) in parseTargetEnvAttr()
591 Attribute SPIRVDialect::parseAttribute(DialectAsmParser &parser,
592 Attribute SPIRVDialect::parseAttribute(DialectAsmParser &parser, parseAttribute() function in SPIRVDialect
H A DControlFlowOps.cpp84 if (parser.parseAttribute(trueWeight, i32Type, "weight", weights) || in parse()
86 parser.parseAttribute(falseWeight, i32Type, "weight", weights) || in parse()
/llvm-project/mlir/test/lib/Dialect/Test/
H A DTestAttributes.cpp176 if (parser.parseLess() || parser.parseAttribute(first) || in printTrueFalse()
177 parser.parseComma() || parser.parseAttribute(second) || in printTrueFalse()
178 parser.parseComma() || parser.parseAttribute(third) || in printTrueFalse()
268 return p.parseAttribute(value); in parseCustomFloatAttr()
378 if (parser.parseLess() || parser.parseAttribute(leftAttr) ||
379 parser.parseColon() || parser.parseAttribute(rightAttr) ||
H A DTestFormatUtils.cpp196 if (parser.parseAttribute(attr)) in parseCustomDirectiveAttributes()
199 if (parser.parseAttribute(optAttr)) in parseCustomDirectiveAttributes()
361 return p.parseAttribute(result); in printOptionalCustomParser()
377 return parser.parseAttribute(attr, type.getValue()); in printAttrElideType()
H A DTestOpsSyntax.cpp130 if (parser.parseAttribute(attr)) in parseCustomDirectiveAttributes()
133 if (parser.parseAttribute(optAttr)) in parseCustomDirectiveAttributes()
140 return parser.parseAttribute(attr); in parseCustomDirectiveSpacing()
/llvm-project/mlir/include/mlir/IR/
H A DOpImplementation.h951 virtual ParseResult parseAttribute(Attribute &result, Type type = {}) = 0;
958 parseAttribute) = 0;
962 ParseResult parseAttribute(AttrType &result, Type type = {}) { in parseAttribute() function
967 if (parseAttribute(attr, type)) in parseAttribute()
979 ParseResult parseAttribute(Attribute &result, StringRef attrName,
981 return parseAttribute(result, Type(), attrName, attrs);
986 ParseResult parseAttribute(AttrType &result, StringRef attrName,
988 return parseAttribute(result, Type(), attrName, attrs);
995 ParseResult parseAttribute(AttrType &result, Type type, StringRef attrName, in parseCustomAttributeWithFallback()
1001 if (parseAttribute(att in parseCustomAttributeWithFallback()
946 ParseResult parseAttribute(Attribute &result, StringRef attrName, parseAttribute() function
953 ParseResult parseAttribute(AttrType &result, StringRef attrName, parseAttribute() function
[all...]
/llvm-project/mlir/lib/AsmParser/
H A DAsmParserImpl.h404 ParseResult parseAttribute(Attribute &result, Type type) override {
405 result = parser.parseAttribute(type);
413 function_ref<ParseResult(Attribute &result, Type type)> parseAttribute) in parseAttribute()
416 return parseAttribute(result, type);
417 result = parser.parseAttribute(type); in parseCustomAttributeWithFallback()
410 ParseResult parseAttribute(Attribute &result, Type type) override { parseAttribute() function
419 parseCustomAttributeWithFallback(Attribute & result,Type type,function_ref<ParseResult (Attribute & result,Type type)> parseAttribute) parseCustomAttributeWithFallback() argument
H A DDialectSymbolParser.cpp271 Attribute attr = dialect->parseAttribute(customParser, attrType); in parseExtendedAttr()
368 Attribute mlir::parseAttribute(StringRef attrStr, MLIRContext *context, in parseAttribute() function in mlir
373 [type](Parser &parser) { return parser.parseAttribute(type); }); in parseAttribute()
H A DParser.h243 Attribute parseAttribute(Type type = {});
260 if (Attribute parsedAttr = parseAttribute(type)) {
H A DAttributeParser.cpp52 Attribute Parser::parseAttribute(Type type) { in parseAttribute() function in Parser
81 elements.push_back(parseAttribute()); in parseAttribute()
268 attribute = parseAttribute(type); in parseOptionalAttribute()
332 auto attr = parseAttribute(); in parseAttributeDict()
1209 referencedAttr = parseAttribute(type); in parseStridedLayoutAttr()
H A DLocationParser.cpp73 metadata = parseAttribute(); in parseFusedLocation()
/llvm-project/mlir/include/mlir/AsmParser/
H A DAsmParser.h54 Attribute parseAttribute(llvm::StringRef attrStr, MLIRContext *context,
/llvm-project/mlir/lib/Bytecode/Reader/
H A DBytecodeReader.cpp826 LogicalResult parseAttribute(EncodingReader &reader, Attribute &result) { in parseAttribute() function in __anonb8b7b79e0a11::AttrTypeReader
854 LogicalResult parseAttribute(EncodingReader &reader, T &result) { in parseAttribute() function in __anonb8b7b79e0a11::AttrTypeReader
856 if (failed(parseAttribute(reader, baseResult))) in parseAttribute()
954 return attrTypeReader.parseAttribute(reader, result); in readAttribute()
1237 result = ::parseAttribute(asmStr, context, Type(), &numRead, in parseAsmEntry()
1421 LogicalResult parseAttribute(EncodingReader &reader, T &result) { in parseAttribute() function in mlir::BytecodeReader::Impl
1422 return attrTypeReader.parseAttribute(reader, result); in parseAttribute()
2229 if (failed(parseAttribute(reader, opLoc))) in parseOpWithoutRegions()
2239 if (failed(parseAttribute(reader, dictAttr))) in parseOpWithoutRegions()
2264 if (failed(parseAttribute(reade in parseOpWithoutRegions()
[all...]
/llvm-project/mlir/lib/Dialect/OpenACC/IR/
H A DOpenACC.cpp847 if (parser.parseAttribute(attributes.emplace_back()) || in getAsyncValue()
1168 if (parser.parseAttribute(attributes.emplace_back()) || in parseDeviceTypeOperands()
1237 if (parser.parseAttribute(attributes.emplace_back()) || in parseDeviceTypeOperandsWithKeywordOnly()
1293 if (parser.parseAttribute(keywordAttrs.emplace_back())) in parseCombinedConstructsLoop()
1335 if (parser.parseAttribute(deviceTypeAttrs.emplace_back()) || in getNumDataOperands()
1410 if (parser.parseAttribute(attributes.emplace_back()) || in verify()
1460 if (parser.parseAttribute( in getNumWorkersValue()
1480 if (parser.parseAttribute(attributes.emplace_back()) || in getNumGangsValues()
1851 if (parser.parseAttribute( in verify()
1924 if (parser.parseAttribute(deviceTypeAttribute in getDataOperand()
[all...]
/llvm-project/clang/include/clang/CIR/Dialect/IR/
H A DCIRDialect.td38 mlir::Attribute parseAttribute(mlir::DialectAsmParser &parser,
/llvm-project/mlir/unittests/Interfaces/
H A DDataLayoutInterfacesTest.cpp342 Attribute parseAttribute(DialectAsmParser &parser, Type type) const override { in parseAttribute()
353 ok = succeeded(parser.parseAttribute(entries.back())); in parseAttribute()
401 Attribute parseAttribute(DialectAsmParser &parser, Type type) const override { in parseAttribute()
423 if (failed(parser.parseAttribute(targetDeviceSpec))) { in parseAttribute()
334 Attribute parseAttribute(DialectAsmParser &parser, Type type) const override { parseAttribute() function
391 Attribute parseAttribute(DialectAsmParser &parser, Type type) const override { parseAttribute() function
/llvm-project/flang/include/flang/Optimizer/Dialect/
H A DFIRDialect.td50 mlir::Attribute parseAttribute(mlir::DialectAsmParser &parser,
/llvm-project/flang/lib/Optimizer/Dialect/
H A DFIRDialect.cpp108 fir::FIROpsDialect::parseAttribute(mlir::DialectAsmParser &parser, in parseAttribute() function in fir::FIROpsDialect
/llvm-project/mlir/lib/IR/
H A DExtensibleDialect.cpp30 if (parser.parseAttribute(attr)) in typeOrAttrParser()
36 if (parser.parseComma() || parser.parseAttribute(attr)) in typeOrAttrParser()
570 Attribute DynamicDialect::parseAttribute(DialectAsmParser &parser, in parseAttribute() function in DynamicDialect
/llvm-project/mlir/lib/Dialect/DLTI/
H A DDLTI.cpp53 if (failed(parser.parseEqual()) || failed(parser.parseAttribute(value)))
64 if (failed(parser.parseEqual()) || failed(parser.parseAttribute(value))) in get()
72 OptionalParseResult parsedEntry = parser.parseAttribute(entry);
224 if (failed(parser.parseComma()) || failed(parser.parseAttribute(value)) || in combineWith()
/llvm-project/mlir/test/mlir-tblgen/
H A Ddefault-type-attr-print-parser.td26 // ATTR: ::mlir::Attribute TestDialect::parseAttribute(::mlir::DialectAsmParser &parser,

123