-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wasm: Add WithStmt to IR and implement on backend
This change updates the compiler to support a WithStmt instruction in the IR. The WithStmt has the same upsert behaviour as in Rego however the statement returns the modified value as opposed to modifying it in place. The WithStmt will allow the planner to easily insert values into the input and data documents. In theory, the WithStmt could also be used on locals. Signed-off-by: Torin Sandall <torinsandall@gmail.com>
- Loading branch information
Showing
2 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters