search for: processsomepattern

Displaying 3 results from an estimated 3 matches for "processsomepattern".

2011 Oct 06
0
[LLVMdev] Enhacing TabelGen
...t you can do > with iterator values. Here's some more detail on this. I want to be able to use #..# pasted stuff in a variety of contexts. For example: multiclass blah<string intr> { for prefix = [<empty>, Vx, Vy] { for suffix = [ps, pd] { def #prefix#ADD#suffix# : ProcessSomePattern< [(set RegClass:$dst, (!cast<Intrinsic>(#prefix#intr#suffix) RegClass:$src1, RegClass:$src2))] } } } It's actually more complex than this but this gives the basic idea. The key thing I need to be able to do is construct an instrinsic name g...
2011 Oct 06
4
[LLVMdev] TableGen and Greenspun
greened at obbligato.org (David A. Greene) writes: > The problem I solved via multidefs was this: how does one write a set of > Pat<> patterns in a generic way? > > For example, I want to be able to do this: > > defm MOVH : > vs1x_fps_binary_vv_node_rmonly< > 0x16, "movh", undef, 0, > // rr > [(undef)], >
2011 Oct 06
1
[LLVMdev] Enhancing TableGen
...6, 2011, at 10:01 AM, David A. Greene wrote: > I want to be able to use #..# pasted stuff in a variety of contexts. > For example: > > multiclass blah<string intr> { > for prefix = [<empty>, Vx, Vy] { > for suffix = [ps, pd] { > def #prefix#ADD#suffix# : ProcessSomePattern< > [(set RegClass:$dst, (!cast<Intrinsic>(#prefix#intr#suffix) > RegClass:$src1, RegClass:$src2))] > } > } > } > > It's actually more complex than this but this gives the basic idea. The > key thing I need to be able to...