From 5a22d7506a26cde1d7e7083c788fff7d067f6f9a Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 21 Jan 2024 16:04:08 +0000 Subject: Rename target to destination in IRs --- .../llvm/ir/LlvmIrSerializerInstructionTests.java | 28 ++++---- .../compiler/backends/llvm/ir/ast/LlvmIr.java | 62 ++++++++--------- .../backends/llvm/ir/ast/LlvmIrMatchers.java | 4 +- .../compiler/patio/PatioSerializerTests.java | 56 +++++++-------- .../compiler/patio/instructions/Patio.java | 80 +++++++++++----------- 5 files changed, 115 insertions(+), 115 deletions(-) (limited to 'src/test/java') diff --git a/src/test/java/org/shedlang/compiler/backends/llvm/ir/LlvmIrSerializerInstructionTests.java b/src/test/java/org/shedlang/compiler/backends/llvm/ir/LlvmIrSerializerInstructionTests.java index 17a17343..06d773d1 100644 --- a/src/test/java/org/shedlang/compiler/backends/llvm/ir/LlvmIrSerializerInstructionTests.java +++ b/src/test/java/org/shedlang/compiler/backends/llvm/ir/LlvmIrSerializerInstructionTests.java @@ -54,11 +54,11 @@ public class LlvmIrSerializerInstructionTests { @Test public void brUnconditionIsSerializedWithLabel() throws IOException { - var instruction = LlvmIr.brUnconditional("target"); + var instruction = LlvmIr.brUnconditional("destination"); var result = serializeToString(instruction, LlvmIrSerializer::serializeTerminatorInstruction); - assertThat(result, equalTo("br label %target")); + assertThat(result, equalTo("br label %destination")); } @Test @@ -130,7 +130,7 @@ public class LlvmIrSerializerInstructionTests { @Test public void icmpIsSerialized() throws IOException { var instruction = LlvmIr.icmp( - LlvmIr.variableLocal("target"), + LlvmIr.variableLocal("destination"), LlvmConditionCode.EQ, LlvmTypes.INT_32, LlvmIr.variableLocal("left"), @@ -139,7 +139,7 @@ public class LlvmIrSerializerInstructionTests { var result = serializeToString(instruction, LlvmIrSerializer::serializeInstruction); - assertThat(result, equalTo("%target = icmp eq i32 %left, %right")); + assertThat(result, equalTo("%destination = icmp eq i32 %left, %right")); } @Test @@ -158,20 +158,20 @@ public class LlvmIrSerializerInstructionTests { @Test public void loadIsSerialized() throws IOException { var instruction = LlvmIr.load( - LlvmIr.variableLocal("target"), + LlvmIr.variableLocal("destination"), LlvmTypes.INT_64, LlvmIr.variableLocal("source") ); var result = serializeToString(instruction, LlvmIrSerializer::serializeInstruction); - assertThat(result, equalTo("%target = load i64, ptr %source")); + assertThat(result, equalTo("%destination = load i64, ptr %source")); } @Test public void phiIsSerialized() throws IOException { var instruction = LlvmIr.phi( - LlvmIr.variableLocal("target"), + LlvmIr.variableLocal("destination"), LlvmTypes.INT_64, List.of( LlvmIr.phiPair(LlvmIr.variableLocal("x1"), LlvmIr.variableLocal("p1")), @@ -181,7 +181,7 @@ public class LlvmIrSerializerInstructionTests { var result = serializeToString(instruction, LlvmIrSerializer::serializeInstruction); - assertThat(result, equalTo("%target = phi i64 [ %x1, %p1 ], [ %x2, %p2 ]")); + assertThat(result, equalTo("%destination = phi i64 [ %x1, %p1 ], [ %x2, %p2 ]")); } @Test @@ -202,12 +202,12 @@ public class LlvmIrSerializerInstructionTests { var instruction = LlvmIr.store( LlvmTypes.INT_64, LlvmIr.operandInt(42), - LlvmIr.variableLocal("target") + LlvmIr.variableLocal("destination") ); var result = serializeToString(instruction, LlvmIrSerializer::serializeInstruction); - assertThat(result, equalTo("store i64 42, ptr %target")); + assertThat(result, equalTo("store i64 42, ptr %destination")); } @Test public void subIsSerializedWithTypeAndOperands() throws IOException { @@ -226,7 +226,7 @@ public class LlvmIrSerializerInstructionTests { @Test public void truncIsSerialized() throws IOException { var instruction = LlvmIr.trunc( - LlvmIr.variableLocal("target"), + LlvmIr.variableLocal("destination"), LlvmTypes.INT_64, LlvmIr.variableLocal("source"), LlvmTypes.INT_32 @@ -234,13 +234,13 @@ public class LlvmIrSerializerInstructionTests { var result = serializeToString(instruction, LlvmIrSerializer::serializeInstruction); - assertThat(result, equalTo("%target = trunc i64 %source to i32")); + assertThat(result, equalTo("%destination = trunc i64 %source to i32")); } @Test public void zextIsSerialized() throws IOException { var instruction = LlvmIr.zext( - LlvmIr.variableLocal("target"), + LlvmIr.variableLocal("destination"), LlvmTypes.INT_32, LlvmIr.variableLocal("source"), LlvmTypes.INT_64 @@ -248,6 +248,6 @@ public class LlvmIrSerializerInstructionTests { var result = serializeToString(instruction, LlvmIrSerializer::serializeInstruction); - assertThat(result, equalTo("%target = zext i32 %source to i64")); + assertThat(result, equalTo("%destination = zext i32 %source to i64")); } } diff --git a/src/test/java/org/shedlang/compiler/backends/llvm/ir/ast/LlvmIr.java b/src/test/java/org/shedlang/compiler/backends/llvm/ir/ast/LlvmIr.java index 74d3df75..465597d9 100644 --- a/src/test/java/org/shedlang/compiler/backends/llvm/ir/ast/LlvmIr.java +++ b/src/test/java/org/shedlang/compiler/backends/llvm/ir/ast/LlvmIr.java @@ -15,19 +15,19 @@ public class LlvmIr { } public static LlvmAdd add( - LlvmVariable target, + LlvmVariable destination, LlvmType type, LlvmOperand left, LlvmOperand right ) { - return new LlvmAdd(target, type, left, right); + return new LlvmAdd(destination, type, left, right); } public static LlvmAlloca alloca( - LlvmVariable target, + LlvmVariable destination, LlvmType type ) { - return new LlvmAlloca(target, type); + return new LlvmAlloca(destination, type); } public static LlvmBasicBlock basicBlock( @@ -53,8 +53,8 @@ public class LlvmIr { ); } - public static LlvmBrUnconditional brUnconditional(String target) { - return new LlvmBrUnconditional(new LlvmVariableLocal(target)); + public static LlvmBrUnconditional brUnconditional(String destination) { + return new LlvmBrUnconditional(new LlvmVariableLocal(destination)); } public static LlvmCall call( @@ -66,47 +66,47 @@ public class LlvmIr { } public static LlvmCall call( - LlvmVariable target, + LlvmVariable destination, LlvmType returnType, LlvmOperand functionPointer, List args ) { - return new LlvmCall(target, returnType, functionPointer, args); + return new LlvmCall(destination, returnType, functionPointer, args); } public static LlvmGetElementPtr getElementPtr( - LlvmVariable target, + LlvmVariable destination, LlvmTypePointer pointerType, LlvmOperand pointer, List indexes ) { - return new LlvmGetElementPtr(target, pointerType, pointer, indexes); + return new LlvmGetElementPtr(destination, pointerType, pointer, indexes); } public static LlvmIcmp icmp( - LlvmVariable target, + LlvmVariable destination, LlvmConditionCode conditionCode, LlvmType type, LlvmOperand left, LlvmOperand right ) { - return new LlvmIcmp(target, conditionCode, type, left, right); + return new LlvmIcmp(destination, conditionCode, type, left, right); } public static LlvmIntToPtr intToPtr( - LlvmVariable target, + LlvmVariable destination, LlvmTypeScalar sourceType, LlvmOperand value ) { - return new LlvmIntToPtr(target, sourceType, value); + return new LlvmIntToPtr(destination, sourceType, value); } public static LlvmLoad load( - LlvmVariable target, + LlvmVariable destination, LlvmType type, LlvmOperand pointer ) { - return new LlvmLoad(target, type, pointer); + return new LlvmLoad(destination, type, pointer); } public static LlvmModule module( @@ -133,11 +133,11 @@ public class LlvmIr { public static LlvmOperand operandPtrToInt( LlvmOperand operand, - LlvmType targetType + LlvmType destinationType ) { return new LlvmOperandPtrToInt( operand, - targetType + destinationType ); } @@ -150,11 +150,11 @@ public class LlvmIr { } public static LlvmPhi phi( - LlvmVariable target, + LlvmVariable destination, LlvmType type, List pairs ) { - return new LlvmPhi(target, type, pairs); + return new LlvmPhi(destination, type, pairs); } public static LlvmPhiPair phiPair( @@ -165,11 +165,11 @@ public class LlvmIr { } public static LlvmPtrToInt ptrToInt( - LlvmVariable target, + LlvmVariable destination, LlvmOperand value, - LlvmTypeScalar targetType + LlvmTypeScalar destinationType ) { - return new LlvmPtrToInt(target, value, targetType); + return new LlvmPtrToInt(destination, value, destinationType); } public static LlvmReturn returnValue(LlvmType type, LlvmOperand value) { @@ -189,12 +189,12 @@ public class LlvmIr { } public static LlvmSub sub( - LlvmVariable target, + LlvmVariable destination, LlvmType type, LlvmOperand left, LlvmOperand right ) { - return new LlvmSub(target, type, left, right); + return new LlvmSub(destination, type, left, right); } public static LlvmSwitch switch_( @@ -211,12 +211,12 @@ public class LlvmIr { } public static LlvmTrunc trunc( - LlvmVariable target, + LlvmVariable destination, LlvmType sourceType, LlvmOperand value, - LlvmType targetType + LlvmType destinationType ) { - return new LlvmTrunc(target, sourceType, value, targetType); + return new LlvmTrunc(destination, sourceType, value, destinationType); } public static LlvmTypedOperand typedOperand(LlvmType type, LlvmOperand value) { @@ -236,11 +236,11 @@ public class LlvmIr { } public static LlvmZext zext( - LlvmVariable target, + LlvmVariable destination, LlvmType sourceType, LlvmOperand value, - LlvmType targetType + LlvmType destinationType ) { - return new LlvmZext(target, sourceType, value, targetType); + return new LlvmZext(destination, sourceType, value, destinationType); } } diff --git a/src/test/java/org/shedlang/compiler/backends/llvm/ir/ast/LlvmIrMatchers.java b/src/test/java/org/shedlang/compiler/backends/llvm/ir/ast/LlvmIrMatchers.java index ac52f6c0..cf9f62d3 100644 --- a/src/test/java/org/shedlang/compiler/backends/llvm/ir/ast/LlvmIrMatchers.java +++ b/src/test/java/org/shedlang/compiler/backends/llvm/ir/ast/LlvmIrMatchers.java @@ -33,12 +33,12 @@ public class LlvmIrMatchers { public static Matcher isLlvmOperandPtrToInt( Matcher operand, - Matcher targetType + Matcher destinationType ) { return instanceOf( LlvmOperandPtrToInt.class, has("operand", x -> x.operand(), operand), - has("targetType", x -> x.targetType(), targetType) + has("destinationType", x -> x.destinationType(), destinationType) ); } diff --git a/src/test/java/org/shedlang/compiler/patio/PatioSerializerTests.java b/src/test/java/org/shedlang/compiler/patio/PatioSerializerTests.java index 2c77fef8..a1fc650b 100644 --- a/src/test/java/org/shedlang/compiler/patio/PatioSerializerTests.java +++ b/src/test/java/org/shedlang/compiler/patio/PatioSerializerTests.java @@ -185,11 +185,11 @@ public class PatioSerializerTests { @Test public void canSerializeBoolToInt() { - var instruction = Patio.boolToInt(Patio.localRef("target"), Patio.localRef("value")); + var instruction = Patio.boolToInt(Patio.localRef("destination"), Patio.localRef("value")); var string = PatioTesting.serializeInstruction(instruction); - assertThat(string, equalTo("(bool-to-int (local \"target\") (local \"value\"))")); + assertThat(string, equalTo("(bool-to-int (local \"destination\") (local \"value\"))")); } @Test @@ -210,7 +210,7 @@ public class PatioSerializerTests { @Test public void canSerializeCallWithTarget() { var instruction = Patio.call( - Optional.of(Patio.localRef("target")), + Optional.of(Patio.localRef("destination")), "f", List.of(Patio.localRef("a"), Patio.localRef("b"), Patio.localRef("c")) ); @@ -218,14 +218,14 @@ public class PatioSerializerTests { var string = PatioTesting.serializeInstruction(instruction); assertThat(string, equalTo(""" - (call (local "target") "f" ((local "a") (local "b") (local "c")))""" + (call (local "destination") "f" ((local "a") (local "b") (local "c")))""" )); } @Test public void canSerializeCallPointer() { var instruction = Patio.callPointer( - Patio.localRef("target"), + Patio.localRef("destination"), Patio.localRef("f"), List.of(Patio.localRef("a"), Patio.localRef("b"), Patio.localRef("c")) ); @@ -233,18 +233,18 @@ public class PatioSerializerTests { var string = PatioTesting.serializeInstruction(instruction); assertThat(string, equalTo(""" - (call-pointer (local "target") (local "f") ((local "a") (local "b") (local "c")))""" + (call-pointer (local "destination") (local "f") ((local "a") (local "b") (local "c")))""" )); } @Test public void canSerializeDataPtrToInt() { - var instruction = Patio.dataPtrToInt(Patio.localRef("target"), Patio.localRef("value")); + var instruction = Patio.dataPtrToInt(Patio.localRef("destination"), Patio.localRef("value")); var string = PatioTesting.serializeInstruction(instruction); assertThat(string, equalTo(""" - (data-ptr-to-int (local "target") (local "value"))""" + (data-ptr-to-int (local "destination") (local "value"))""" )); } @@ -307,7 +307,7 @@ public class PatioSerializerTests { @Test public void canSerializeIntAdd() { var instruction = Patio.intAdd( - Patio.localRef("target"), + Patio.localRef("destination"), Patio.localRef("left"), Patio.localRef("right") ); @@ -315,14 +315,14 @@ public class PatioSerializerTests { var string = PatioTesting.serializeInstruction(instruction); assertThat(string, equalTo(""" - (int-add (local "target") (local "left") (local "right"))""" + (int-add (local "destination") (local "left") (local "right"))""" )); } @Test public void canSerializeIntEquals() { var instruction = Patio.intEquals( - Patio.localRef("target"), + Patio.localRef("destination"), Patio.localRef("left"), Patio.localRef("right") ); @@ -330,14 +330,14 @@ public class PatioSerializerTests { var string = PatioTesting.serializeInstruction(instruction); assertThat(string, equalTo(""" - (int-eq (local "target") (local "left") (local "right"))""" + (int-eq (local "destination") (local "left") (local "right"))""" )); } @Test public void canSerializeIntNotEqual() { var instruction = Patio.intNotEqual( - Patio.localRef("target"), + Patio.localRef("destination"), Patio.localRef("left"), Patio.localRef("right") ); @@ -345,14 +345,14 @@ public class PatioSerializerTests { var string = PatioTesting.serializeInstruction(instruction); assertThat(string, equalTo(""" - (int-ne (local "target") (local "left") (local "right"))""" + (int-ne (local "destination") (local "left") (local "right"))""" )); } @Test public void canSerializeIntSub() { var instruction = Patio.intSub( - Patio.localRef("target"), + Patio.localRef("destination"), Patio.localRef("left"), Patio.localRef("right") ); @@ -360,41 +360,41 @@ public class PatioSerializerTests { var string = PatioTesting.serializeInstruction(instruction); assertThat(string, equalTo(""" - (int-sub (local "target") (local "left") (local "right"))""" + (int-sub (local "destination") (local "left") (local "right"))""" )); } @Test public void canSerializeIntToBool() { - var instruction = Patio.intToBool(Patio.localRef("target"), Patio.localRef("value")); + var instruction = Patio.intToBool(Patio.localRef("destination"), Patio.localRef("value")); var string = PatioTesting.serializeInstruction(instruction); - assertThat(string, equalTo("(int-to-bool (local \"target\") (local \"value\"))")); + assertThat(string, equalTo("(int-to-bool (local \"destination\") (local \"value\"))")); } @Test public void canSerializeIntToDataPtr() { var instruction = Patio.intToDataPtr( - Patio.localRef("target"), + Patio.localRef("destination"), Patio.localRef("value") ); var string = PatioTesting.serializeInstruction(instruction); - assertThat(string, equalTo("(int-to-data-ptr (local \"target\") (local \"value\"))")); + assertThat(string, equalTo("(int-to-data-ptr (local \"destination\") (local \"value\"))")); } @Test public void canSerializeLocalStore() { var instruction = Patio.localStore( - Patio.localRef("target"), + Patio.localRef("destination"), Patio.localRef("x") ); var string = PatioTesting.serializeInstruction(instruction); - assertThat(string, equalTo("(local-store (local \"target\") (local \"x\"))")); + assertThat(string, equalTo("(local-store (local \"destination\") (local \"x\"))")); } @Test @@ -437,7 +437,7 @@ public class PatioSerializerTests { @Test public void canSerializeMemoryLoad() { var instruction = Patio.memoryLoad( - Patio.localRef("target"), + Patio.localRef("destination"), Patio.localRef("pointer"), PatioDataLayouts.struct(List.of(PatioDataLayouts.INT, PatioDataLayouts.INT, PatioDataLayouts.BYTE)), List.of(1) @@ -448,7 +448,7 @@ public class PatioSerializerTests { assertThat(string, equalTo(""" ( memory-load - (local "target") + (local "destination") pointer=(local "pointer") layout=(struct (int int byte)) offset=(1) @@ -701,25 +701,25 @@ public class PatioSerializerTests { @Test public void canSerializeVarLoad() { var instruction = Patio.varLoad( - Patio.localRef("target"), + Patio.localRef("destination"), Patio.localRef("v") ); var string = PatioTesting.serializeInstruction(instruction); - assertThat(string, equalTo("(var-load (local \"target\") (local \"v\"))")); + assertThat(string, equalTo("(var-load (local \"destination\") (local \"v\"))")); } @Test public void canSerializeVarStore() { var instruction = Patio.varStore( - Patio.localRef("target"), + Patio.localRef("destination"), Patio.localRef("value") ); var string = PatioTesting.serializeInstruction(instruction); - assertThat(string, equalTo("(var-store (local \"target\") (local \"value\"))")); + assertThat(string, equalTo("(var-store (local \"destination\") (local \"value\"))")); } // == Operands == diff --git a/src/test/java/org/shedlang/compiler/patio/instructions/Patio.java b/src/test/java/org/shedlang/compiler/patio/instructions/Patio.java index e8897cbd..e1610ada 100644 --- a/src/test/java/org/shedlang/compiler/patio/instructions/Patio.java +++ b/src/test/java/org/shedlang/compiler/patio/instructions/Patio.java @@ -13,12 +13,12 @@ import java.util.Optional; public class Patio { private Patio() {} - public static PatioInstruction allocHeap(PatioLocalRef target, PatioDataLayout layout) { - return new PatioAllocHeap(target, layout, List.of(), 0, Sources.NULL); + public static PatioInstruction allocHeap(PatioLocalRef destination, PatioDataLayout layout) { + return new PatioAllocHeap(destination, layout, List.of(), 0, Sources.NULL); } - public static PatioInstruction allocStack(PatioLocalRef target, PatioDataLayout layout) { - return new PatioAllocStack(target, layout, Sources.NULL); + public static PatioInstruction allocStack(PatioLocalRef destination, PatioDataLayout layout) { + return new PatioAllocStack(destination, layout, Sources.NULL); } public static PatioBlock block( @@ -32,17 +32,17 @@ public class Patio { return new PatioBool(value); } - public static PatioInstruction boolToInt(PatioLocalRef target, PatioOperand value) { - return new PatioBoolToInt(target, value, Sources.NULL); + public static PatioInstruction boolToInt(PatioLocalRef destination, PatioOperand value) { + return new PatioBoolToInt(destination, value, Sources.NULL); } public static PatioInstruction call( - Optional target, + Optional destination, String name, List args ) { return new PatioCall( - target, + destination, name, args, Sources.NULL @@ -50,12 +50,12 @@ public class Patio { } public static PatioInstruction callPointer( - PatioLocalRef target, + PatioLocalRef destination, PatioOperand functionPointer, List args ) { return new PatioCallPointer( - target, + destination, functionPointer, args, Sources.NULL @@ -64,12 +64,12 @@ public class Patio { public static PatioCatchClause catchClause( String exceptionTypeName, - PatioLocalRef target, + PatioLocalRef destination, PatioBlock body ) { return new PatioCatchClause( exceptionTypeName, - target, + destination, body, Sources.NULL ); @@ -99,9 +99,9 @@ public class Patio { return new PatioDataPtr(name); } - public static PatioInstruction dataPtrToInt(PatioLocalRef target, PatioOperand value) { + public static PatioInstruction dataPtrToInt(PatioLocalRef destination, PatioOperand value) { return new PatioDataPtrToInt( - target, + destination, value, Sources.NULL ); @@ -116,13 +116,13 @@ public class Patio { } public static PatioInstruction if_( - List targets, + List destinations, PatioLocalRef condition, PatioBlock trueBody, PatioBlock falseBody ) { return new PatioIf( - targets, + destinations, condition, trueBody, falseBody, @@ -135,12 +135,12 @@ public class Patio { } public static PatioInstruction intAdd( - PatioLocalRef target, + PatioLocalRef destination, PatioOperand left, PatioOperand right ) { return new PatioIntAdd( - target, + destination, left, right, Sources.NULL @@ -148,44 +148,44 @@ public class Patio { } public static PatioInstruction intEquals( - PatioLocalRef target, + PatioLocalRef destination, PatioOperand left, PatioOperand right ) { - return new PatioIntEquals(target, left, right, Sources.NULL); + return new PatioIntEquals(destination, left, right, Sources.NULL); } public static PatioInstruction intNotEqual( - PatioLocalRef target, + PatioLocalRef destination, PatioOperand left, PatioOperand right ) { - return new PatioIntNotEqual(target, left, right, Sources.NULL); + return new PatioIntNotEqual(destination, left, right, Sources.NULL); } public static PatioInstruction intSub( - PatioLocalRef target, + PatioLocalRef destination, PatioOperand left, PatioOperand right ) { - return new PatioIntSub(target, left, right, Sources.NULL); + return new PatioIntSub(destination, left, right, Sources.NULL); } - public static PatioInstruction intToBool(PatioLocalRef target, PatioOperand value) { - return new PatioIntToBool(target, value, Sources.NULL); + public static PatioInstruction intToBool(PatioLocalRef destination, PatioOperand value) { + return new PatioIntToBool(destination, value, Sources.NULL); } - public static PatioInstruction intToDataPtr(PatioLocalRef target, PatioOperand value) { + public static PatioInstruction intToDataPtr(PatioLocalRef destination, PatioOperand value) { return new PatioIntToDataPtr( - target, + destination, value, Sources.NULL ); } - public static PatioInstruction localStore(PatioLocalRef target, PatioOperand value) { + public static PatioInstruction localStore(PatioLocalRef destination, PatioOperand value) { return new PatioLocalStore( - target, + destination, value, Sources.NULL ); @@ -208,13 +208,13 @@ public class Patio { } public static PatioInstruction memoryLoad( - PatioLocalRef target, + PatioLocalRef destination, PatioOperand pointer, PatioDataLayout layout, List offset ) { return new PatioMemoryLoad( - target, + destination, pointer, layout, offset, @@ -254,12 +254,12 @@ public class Patio { } public static PatioInstruction switch_( - List targets, + List destinations, PatioOperand value, List cases, PatioBlock defaultBody ) { - return new PatioSwitch(targets, value, cases, defaultBody, Sources.NULL); + return new PatioSwitch(destinations, value, cases, defaultBody, Sources.NULL); } public static PatioSwitch.Case switchCase(int value, PatioBlock body) { @@ -271,11 +271,11 @@ public class Patio { } public static PatioTry try_( - List targets, + List destinations, List catchClauses, PatioBlock body ) { - return new PatioTry(targets, catchClauses, body, Sources.NULL); + return new PatioTry(destinations, catchClauses, body, Sources.NULL); } public static PatioInstruction unreachable() { @@ -290,17 +290,17 @@ public class Patio { return new PatioLocal(name, type, PatioLocalType.VAR); } - public static PatioInstruction varLoad(PatioLocalRef target, PatioLocalRef value) { + public static PatioInstruction varLoad(PatioLocalRef destination, PatioLocalRef value) { return new PatioVarLoad( - target, + destination, value, Sources.NULL ); } - public static PatioInstruction varStore(PatioLocalRef target, PatioOperand value) { + public static PatioInstruction varStore(PatioLocalRef destination, PatioOperand value) { return new PatioVarStore( - target, + destination, value, Sources.NULL ); -- cgit v1.2.3