graal/com.oracle.graal.lir.hsail/src/com/oracle/graal/lir/hsail/HSAILControlFlow.java

Print this page

        

@@ -51,10 +51,38 @@
             }
             masm.exit();
         }
     }
 
+
+    public static class ForeignCallNoOp0 extends HSAILLIRInstruction {
+
+        @Def({REG}) protected Value out;
+        String callName;
+
+        public ForeignCallNoOp0(String callName, Value out) {
+            this.out = out;
+            this.callName = callName;
+        }
+
+        @Override
+        public void emitCode(TargetMethodAssembler tasm, HSAILAssembler masm) {
+            masm.emitComment("//ForeignCall to " + callName + " would have gone here");
+        }
+    }
+
+    public static class ForeignCallNoOp1 extends ForeignCallNoOp0 {
+
+        @Use({REG, ILLEGAL}) protected Value arg1;
+
+        public ForeignCallNoOp1(String callName, Value out, Value arg1) {
+            super(callName, out);
+            this.arg1 = arg1;
+        }
+    }
+
+
     public static class CompareBranchOp extends HSAILLIRInstruction implements StandardOp.BranchOp {
 
         @Opcode protected final HSAILCompare opcode;
         @Use({REG, CONST}) protected Value x;
         @Use({REG, CONST}) protected Value y;