aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Documentation
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-05-06 16:05:52 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-08-25 17:20:23 +0200
commitb01160b296a2c0810b5b9acc39c44de083533601 (patch)
tree61baf42803805159ac764e59f32b942ae31f1859 /Documentation
parent96f388f0f55cfa1984daa70d7dc4faa63a85c590 (diff)
downloadsparse-dev-b01160b296a2c0810b5b9acc39c44de083533601.tar.gz
symaddr: s/insn->symbol/insn->src/
OP_SYMADDR take a single operand 'symbol' but this instruction is very much like other unops and using the same operand's name allow to avoid some special cases. So, s/symbol/src/ for OP_SYMADDRs. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/IR.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Documentation/IR.rst b/Documentation/IR.rst
index 0419ac41..8ffc921a 100644
--- a/Documentation/IR.rst
+++ b/Documentation/IR.rst
@@ -241,6 +241,12 @@ Unary ops
* .target: result of the operation (must be a floating-point type)
* .type: type of .target
+.. op:: OP_SYMADDR
+ Create a pseudo corresponding to the address of a symbol.
+
+ * .src: input symbol (must be a PSEUDO_SYM)
+ * .target: symbol's address
+
.. op:: OP_COPY
Copy (only needed after out-of-SSA).
@@ -327,12 +333,6 @@ Memory ops
Others
------
-.. op:: OP_SYMADDR
- Create a pseudo corresponding to the address of a symbol.
-
- * .symbol: (pseudo_t) input symbol (alias .src)
- * .target: symbol's address
-
.. op:: OP_SETFVAL
Create a pseudo corresponding to a floating-point literal.