[Mlir-commits] [mlir] [mlir][tblgen] Add custom parsing and printing within struct (PR #133939)
River Riddle
llvmlistbot at llvm.org
Mon Apr 7 11:38:01 PDT 2025
================
@@ -400,9 +400,6 @@ FailureOr<FormatElement *> FormatParser::parseOptionalGroup(Context ctx) {
FailureOr<FormatElement *> FormatParser::parseCustomDirective(SMLoc loc,
Context ctx) {
- if (ctx != TopLevelContext)
- return emitError(loc, "'custom' is only valid as a top-level directive");
----------------
River707 wrote:
Instead of removing this, why not add an additional check for StructDirectiveContext?
https://github.com/llvm/llvm-project/pull/133939
More information about the Mlir-commits
mailing list