Skip to content

Commit

Permalink
MLIR support globalexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Feb 19, 2024
1 parent 1e1c0eb commit 2dcf5c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions enzyme/Enzyme/MLIR/Implementations/Common.td
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ def DiffeRet : DiffeRetIndex<[-1]>;
def Shadow : Operation</*primal*/0, /*shadow*/1> {
}

class GlobalExpr<bit uses_primal, bit uses_shadow, string val> : Operation<uses_primal, uses_shadow>{
string value = val;
}

class Inst<string mnemonic, string dialect_> : Operation</*primal*/1, /*shadow*/0> {
string name = mnemonic;
string dialect = dialect_;
Expand Down

0 comments on commit 2dcf5c5

Please sign in to comment.