Skip to content

Commit

Permalink
Add [isDirty] built-in
Browse files Browse the repository at this point in the history
  • Loading branch information
MatwayBurkow committed Feb 20, 2021
1 parent b378372 commit 8a080dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions builtinImpl.mpl
Original file line number Diff line number Diff line change
Expand Up @@ -1328,6 +1328,13 @@ staticityOfBinResult: [
] when
] "mplBuiltinIsConst" @declareBuiltin ucall

[
refToVar: @processor @block pop;
processor compilable [
refToVar staticityOfVar Dirty = makeValuePair VarCond @processor @block createVariable Static @processor @block makeStaticity @processor @block createPlainIR @block push
] when
] "mplBuiltinIsDirty" @declareBuiltin ucall

[
refToVar: @processor @block pop;
processor compilable [
Expand Down
1 change: 1 addition & 0 deletions builtins.mpl
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ builtins: (
{name: "is" ; impl: @mplBuiltinIs ;}
{name: "isCombined" ; impl: @mplBuiltinIsCombined ;}
{name: "isConst" ; impl: @mplBuiltinIsConst ;}
{name: "isDirty" ; impl: @mplBuiltinIsDirty ;}
{name: "isDynamic" ; impl: @mplBuiltinIsDynamic ;}
{name: "isRef" ; impl: @mplBuiltinIsRef ;}
{name: "isStatic" ; impl: @mplBuiltinIsStatic ;}
Expand Down

0 comments on commit 8a080dd

Please sign in to comment.