Displaying 2 results from an estimated 2 matches for "addr_plus_simm16".
2018 Nov 30
2
[RFC] Tablegen-erated GlobalISel Combine Rules
...erand:$D, operand:$A),
(match (G_LOAD $D, $A):$MI,
(mmo_is_load8 instr:$MI)
(is_addr_plus_1 operand:$A),
(apply (TGT_LOAD $D, $A, 1)>;
or if a value like an offset needs passing, it would be something like:
def : GICombineRule<
(defs operand:$D, addr_plus_simm16:$A),
(match (G_LOAD $D, $A):$MI,
(mmo_is_load8 instr:$MI)
(is_addr_plus_simm16 operand:$A),
(apply (create_imm [{ ${A}.imm }], addr_plus_simm16:$A):$IMM),
(TGT_LOAD $D, $A, $IMM))>;
> Cheers,
> Nicolai
> --
> Lerne, wie die Welt wi...
2018 Nov 27
3
[RFC] Tablegen-erated GlobalISel Combine Rules
Hi All,
I've more or less finished updating the examples to the DAG style we were talking about. Hopefully I haven't forgotten anything, there was a lot to keep track of :-). Overall, I think there's a couple places where things get a a little awkward (mainly debug info) but things generally look good to me.
A Simple Example
def : GICombineRule<(defs reg:$D, reg:$S),