diff options
author | Quentin Carbonneaux <quentin@c9x.me> | 2021-10-18 21:04:10 +0200 |
---|---|---|
committer | Quentin Carbonneaux <quentin@c9x.me> | 2021-10-22 23:53:25 +0200 |
commit | fcdef10dae54d7124aca9ccbefe53baa8e67267d (patch) | |
tree | 1215b60f1f3a31d38ee37228dd37bcc4a6a61f99 /ops.h | |
parent | 9858a12730717d9c5e5deec4264d7041d75fc947 (diff) | |
download | roux-fcdef10dae54d7124aca9ccbefe53baa8e67267d.tar.gz |
make variadic args explicit
Some abis, like the riscv one, treat arguments differently depending on whether they are variadic or not. To prepare for the upcomming riscv target, we change the variadic call syntax and give meaning to the location of the '...' marker. # new syntax %ret =w call $f(w %regular, ..., w %variadic) By nature of their abis, the change is backwards compatible for existing targets.
Diffstat (limited to 'ops.h')
-rw-r--r-- | ops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ops.h b/ops.h index 114310c..535be71 100644 --- a/ops.h +++ b/ops.h @@ -137,8 +137,8 @@ O(pare, T(e,x,e,e, e,x,e,e), 0) X(0, 0, 0) O(arg, T(w,l,s,d, x,x,x,x), 0) X(0, 0, 0) O(argc, T(e,x,e,e, e,l,e,e), 0) X(0, 0, 0) O(arge, T(e,l,e,e, e,x,e,e), 0) X(0, 0, 0) +O(argv, T(x,x,x,x, x,x,x,x), 0) X(0, 0, 0) O(call, T(m,m,m,m, x,x,x,x), 0) X(0, 0, 0) -O(vacall, T(m,m,m,m, x,x,x,x), 0) X(0, 0, 0) /* Flags Setting */ O(flagieq, T(x,x,e,e, x,x,e,e), 0) X(0, 0, 1) |