Dan Gohman
89634fa645
Add documentation for immediates with type bool.
...
This makes the documentation for the new bconst instruction more complete.
2017-07-13 16:23:41 -07:00
Dan Gohman
3bcfb103b9
Add a bconst instruction. ( #116 )
...
* Add a bconst instruction.
2017-07-13 10:12:25 -07:00
Jakob Stoklund Olesen
8cd67f08a9
Add a regmove instruction.
...
This will be used to locally change the register locations of values in
order to satisfy instruction constraints.
2017-05-02 11:32:12 -07:00
Jakob Stoklund Olesen
ca448d4ede
Extending loads and truncating stores
2017-04-11 10:30:03 -07:00
Jakob Stoklund Olesen
9d9807688c
Add load and store instructions.
...
Define a MemFlags class, currently holding a notrap and aligned flag.
2017-04-11 09:54:55 -07:00
Jakob Stoklund Olesen
ca12a683ac
Add a Uoffset32 immediate operand kind.
...
WebAssembly memory instructions encode a 32-bit unsigned offset that is
used to compute an effective address.
2017-04-10 15:04:33 -07:00
Jakob Stoklund Olesen
c52e3e0b3f
Define stack_load, stack_store, and stack_addr instructions.
2017-04-10 13:56:57 -07:00
Jakob Stoklund Olesen
ab1e51002d
Add an Offset32 immediate operand kind.
...
This will be used to represent an immediate 32-bit signed address offset
for load/store instructions.
2017-04-10 11:53:46 -07:00
Jakob Stoklund Olesen
d2eb745265
Allow dot syntax notation for enumerated immediate operands.
...
The meta language patterns sometimes need to refer to specific values of
enumerated immediate operands. The dot syntax provides a namespaced,
typed way of doing that: icmp(intcc.ult, a, x).
Add an ast.Enumerator class for representing this kind of AST leaf node.
Add value definitions for the intcc and floatcc immediate operand kinds.
2017-03-30 11:37:05 -07:00
Jakob Stoklund Olesen
6021da8e1c
Remove the vconst instruction and the UnaryImmVector format.
...
No instruction sets actually have single instructions for materializing
vector constants. You always need to use a constant pool.
Cretonne doesn't have constant pools yet, but it will in the future, and
that is how vector constants should be represented.
2017-03-10 11:57:49 -08:00
Jakob Stoklund Olesen
6eaa8eb382
Move formats, entities, and immediates to the base package.
...
- base.formats defines instruction formats.
- base.entities defines kinds of entity references.
- base.immediates defines kinds of imediate operands.
2016-11-08 11:06:37 -08:00