Skip to content

Commit

Permalink
pr: Add assign operation.
Browse files Browse the repository at this point in the history
  • Loading branch information
xlauko committed Jan 14, 2025
1 parent 57f47ff commit 90e5994
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions include/vast/Dialect/Parser/Ops.td
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,19 @@ def Parse_Ref
}];
}

// TODO: Types should match
def Parse_Assign
: Parser_Op< "assign" >
, Arguments< (ins
Parser_AnyDataType:$value,
Parser_AnyDataType:$target
) >
{
let summary = "Assignment to referenced value.";

let assemblyFormat = [{
$value `to` $target attr-dict functional-type($value, $target)
}];
}

#endif // VAST_DIALECT_PARSER_OPS

0 comments on commit 90e5994

Please sign in to comment.