diff options
| author | Cliff Click <cliffc@acm.org> | 2025-04-12 14:08:59 -0700 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2025-04-12 14:08:59 -0700 |
| commit | 0ac2721f28c729c06c28fce14f8f863f8c57e41b (patch) | |
| tree | 84aa04cc979296c8f34a8635565e9db3145bf0cd /chapter21/src | |
| parent | a42aa8e31488f34315717743cf075e4d7b6e3677 (diff) | |
| parent | 53bb3207c85bc438b9cc28f84bce458e5068ee45 (diff) | |
| download | Simple-0ac2721f28c729c06c28fce14f8f863f8c57e41b.tar.gz Simple-0ac2721f28c729c06c28fce14f8f863f8c57e41b.zip | |
Merge branch 'ch21' of https://github.com/SeaOfNodes/Simple into ch21
Diffstat (limited to 'chapter21/src')
| -rw-r--r-- | chapter21/src/main/java/com/seaofnodes/simple/node/MemOpNode.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chapter21/src/main/java/com/seaofnodes/simple/node/MemOpNode.java b/chapter21/src/main/java/com/seaofnodes/simple/node/MemOpNode.java index e923df98..058c86fa 100644 --- a/chapter21/src/main/java/com/seaofnodes/simple/node/MemOpNode.java +++ b/chapter21/src/main/java/com/seaofnodes/simple/node/MemOpNode.java @@ -65,6 +65,16 @@ public abstract class MemOpNode extends Node { throw Utils.TODO("Load or not"); } + // Used by M2 when translating graph to Simple + public MemOpNode( boolean isLoad ) { + super((Node)null); + _name = null; + _alias = 0; + _loc = null; + _isLoad = isLoad; + _declaredType = Type.BOTTOM; + } + // static String mlabel(String name) { return "[]".equals(name) ? "ary" : ("#".equals(name) ? "len" : name); } String mlabel() { return mlabel(_name); } |
