1 [CCode (lower_case_cprefix = "orc_", cheader_filename = "orc/orc.h")]
6 public Program.dss (int size1, int size2, int size3);
8 public unowned string get_name ();
10 public void add_temporary (int size, owned string name);
11 public void add_source (int size, owned string name);
12 public void add_destination (int size, owned string name);
13 public void add_constant (int size, owned string name);
14 public void add_accumulator (int size, owned string name);
15 public void add_parameter (int size, owned string name);
17 public void append (string opcode, int arg0, int arg1, int arg2);
18 public void append_str (string opcode, string arg0, string arg1, string arg2);
19 public void append_ds (string opcode, int arg0, int arg1);
20 public void append_ds_str (string opcode, string arg0, string arg1);
22 public Orc.CompileResult compile ();
24 public string get_asm_code ();
25 public int find_var_by_name (string name);
31 public class Compiler {
34 public enum CompileResult {
42 [CCode (cname = "ORC_COMPILE_RESULT_IS_SUCCESSFUL")]
43 public bool is_successful ();
44 [CCode (cname = "ORC_COMPILE_RESULT_IS_FATAL")]
45 public bool is_fatal ();
49 public class Executor {
50 [CCode (cname = "orc_executor_new")]
51 public Executor (Orc.Program p);
53 public void set_array (int _var, void* ptr);
54 public void set_array_str (string _var, void* ptr);
56 public void set_n (int n);
58 public void emulate ();
61 public int get_accumulator (int n);
62 public int get_accumulator_str (string name);
63 public int set_param (int n, int val);
64 public int set_param_str (string name, int val);
66 public void set_program (Orc.Program p);
68 public void set_2d ();
69 public void set_m (int n);
70 public void set_stride (int _var, int stride);
73 [CCode (cprefix = "ORC_DEBUG_")]
74 public enum DebugLevel {
84 public void set_level (Orc.DebugLevel l);
87 public static void init ();