From 5afc03a4adbe9bf3c5ef75d8938c3f0d73fb87de Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Mon, 13 Jan 2025 16:48:21 -0600 Subject: [PATCH] elide type and colon if no operands (and no types) --- include/circt/Dialect/FIRRTL/FIRRTLIntrinsics.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/circt/Dialect/FIRRTL/FIRRTLIntrinsics.td b/include/circt/Dialect/FIRRTL/FIRRTLIntrinsics.td index 4d3cf5cdc24c..0fbae229b05e 100644 --- a/include/circt/Dialect/FIRRTL/FIRRTLIntrinsics.td +++ b/include/circt/Dialect/FIRRTL/FIRRTLIntrinsics.td @@ -240,7 +240,7 @@ def ViewIntrinsicOp : FIRRTLOp<"view", []> { is only lowered to one. }]; let arguments = (ins StrAttr:$name, AugmentedBundleType:$augmentedType, Variadic:$inputs); - let assemblyFormat = "$name `,` $augmentedType (`,` $inputs^)? attr-dict `:` type($inputs)"; + let assemblyFormat = "$name `,` $augmentedType (`,` $inputs^)? attr-dict (`:` type($inputs)^)?"; } #endif // CIRCT_DIALECT_FIRRTL_FIRRTLINTRINSICS_TD