File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1131,6 +1131,12 @@ class OpPrintingFlags {
1131
1131
// / elements.
1132
1132
OpPrintingFlags &elideLargeElementsAttrs (int64_t largeElementLimit = 16 );
1133
1133
1134
+ // / Enables the elision of large resources strings by omitting them from the
1135
+ // / `dialect_resources` section. The `largeResourceLimit` is used to configure
1136
+ // / what is considered to be a "large" resource by providing an upper limit to
1137
+ // / the string size.
1138
+ OpPrintingFlags &elideLargeResourceString (int64_t largeResourceLimit = 64 );
1139
+
1134
1140
// / Enable or disable printing of debug information (based on `enable`). If
1135
1141
// / 'prettyForm' is set to true, debug information is printed in a more
1136
1142
// / readable 'pretty' form. Note: The IR generated with 'prettyForm' is not
Original file line number Diff line number Diff line change @@ -226,6 +226,12 @@ OpPrintingFlags::elideLargeElementsAttrs(int64_t largeElementLimit) {
226
226
return *this ;
227
227
}
228
228
229
+ OpPrintingFlags &
230
+ OpPrintingFlags::elideLargeResourceString (int64_t largeResourceLimit) {
231
+ resourceStringCharLimit = largeResourceLimit;
232
+ return *this ;
233
+ }
234
+
229
235
// / Enable printing of debug information. If 'prettyForm' is set to true,
230
236
// / debug information is printed in a more readable 'pretty' form.
231
237
OpPrintingFlags &OpPrintingFlags::enableDebugInfo (bool enable,
You can’t perform that action at this time.
0 commit comments