Displaying 5 results from an estimated 5 matches for "multipat".
Did you mean:
multipath
2011 Oct 06
1
[LLVMdev] Enhancing TableGen
...e complex than this but this gives the basic idea. The
> key thing I need to be able to do is construct an instrinsic name given
> some base string, a prefix and a suffix.
David, I think the syntax you are proposing here is much better than the multidef syntax.
When I look at test/TableGen/MultiPat.td, I have a really hard time figuring out what is happening. Basically, I don't want our target descriptions to end up looking like that.
> Here's a critical question. What type do the for loop iterators have?
> string?
That's probably good enough.
/jakob
2011 Oct 06
0
[LLVMdev] Enhancing TableGen
...le as
possible. I am certainly happy to make things more readable and welcome
lots of feedback in that area. But the ability to quickly and easily
extend the ISA for new vector lengths is critical to us. That drives
the generic pattern specification above and the !foreach/!subst stuff
you see in MultiPat.td. As I explained in another message, I think a
lot of MultiPat.td can be cleaned up with some semi-clever uses of the
for proposal.
I actually find the above easier to read and grasp that the multitude of
individual patterns for each different kind of ADD, SUB, etc. because I
don't have to...
2011 Oct 06
4
[LLVMdev] Enhancing TableGen
On Oct 6, 2011, at 7:59 AM, David A. Greene wrote:
> For example, I want to be able to do this:
>
> defm MOVH :
> vs1x_fps_binary_vv_node_rmonly<
> 0x16, "movh", undef, 0,
> // rr
> [(undef)],
> // rm
> [(set DSTREGCLASS:$dst,
> (DSTTYPE (movlhps SRCREGCLASS:$src1,
>
2011 Oct 06
0
[LLVMdev] Enhacing TabelGen
greened at obbligato.org (David A. Greene) writes:
> Also, I know I introduced the #..# "pasting" operation but I've found it
> to be too limiting. In this example:
[snip!]
> what if we instead did this:
>
> (Equivalent TableGen code with a for-loop)
> ----------------------------------------
> multiclass PTX_FLOAT_4OP<string opcstr, SDNode opnode1, SDNode
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)],
>