@@ -270,7 +270,7 @@ input: /* epsilon */
270
270
| input blackbox_type_declaration
271
271
| input blackbox_instantiation
272
272
| input PRAGMA pragma_operands NEWLINE
273
- { driver.addPragma(new IR::Annotation(@2, $2, *$3, false )); }
273
+ { driver.addPragma(new IR::Annotation(@2, $2, *$3)); }
274
274
| input error
275
275
{ driver.clearPragmas(); }
276
276
;
@@ -329,20 +329,20 @@ attributes:
329
329
330
330
attrib:
331
331
SIGNED { $$.signed_ = true; }
332
- | SATURATING { $$.annotations.push_back(new IR::Annotation(@1, IR::ID(@1, $1), {}, false ));
332
+ | SATURATING { $$.annotations.push_back(new IR::Annotation(@1, IR::ID(@1, $1), {}));
333
333
$$.saturating = true; }
334
334
;
335
335
336
336
opt_length: /* epsilon */
337
337
| LENGTH ":" expression ";" /* const_expression or name */
338
338
{ $<HeaderType>-1.annotations->emplace_back(
339
- IR::Annotation(@1+@4, "length", IR::Vector<IR::Expression>($3), false )); }
339
+ IR::Annotation(@1+@4, "length", IR::Vector<IR::Expression>($3))); }
340
340
;
341
341
342
342
opt_max_length: /* epsilon */
343
343
| MAX_LENGTH ":" const_expression ";"
344
344
{ $<HeaderType>-2.annotations->emplace_back(
345
- IR::Annotation(@1+@4, "max_length", IR::Vector<IR::Expression>($3), false )); }
345
+ IR::Annotation(@1+@4, "max_length", IR::Vector<IR::Expression>($3))); }
346
346
;
347
347
348
348
type: BIT { $$ = IR::Type::Bits::get(@1, 1); }
@@ -886,9 +886,9 @@ blackbox_attribute: /* epsilon */ { $$ = new IR::Attribute($<IR::ID>-1); }
886
886
887
887
blackbox_method: { $$ = new IR::Annotations; }
888
888
| blackbox_method READS "{" opt_name_list "}"
889
- { ($$=$1)->add(new IR::Annotation(@2, $2, driver.makeExpressionList($4), false )); }
889
+ { ($$=$1)->add(new IR::Annotation(@2, $2, driver.makeExpressionList($4))); }
890
890
| blackbox_method WRITES "{" opt_name_list "}"
891
- { ($$=$1)->add(new IR::Annotation(@2, $2, driver.makeExpressionList($4), false )); }
891
+ { ($$=$1)->add(new IR::Annotation(@2, $2, driver.makeExpressionList($4))); }
892
892
;
893
893
894
894
opt_argument_list:
@@ -905,7 +905,7 @@ argument:
905
905
inout type name
906
906
{ $$ = new IR::Parameter(@3, $3, $1, $2); }
907
907
| OPTIONAL argument
908
- { ($$ = $2)->annotations = $2->annotations->add(new IR::Annotation(@1, $1, {}, false )); }
908
+ { ($$ = $2)->annotations = $2->annotations->add(new IR::Annotation(@1, $1, {})); }
909
909
;
910
910
911
911
inout: IN { $$ = IR::Direction::In; } | OUT { $$ = IR::Direction::Out; } ;
0 commit comments