Displaying 6 results from an estimated 6 matches for "custompatterns".
2009 Jun 11
2
[LLVMdev] Regular Expressions
..., sint_to_fp, "cvtsi2ss", "f32", "i32">;
[Meanwhile, down in the guts...]
class fp_cvt_scalar_VXSnrr<
// Parent: avx_fp_cvt_scalar_xs_node_rm_DEF_V#NAME#_128rr
bits<8> opc,
string OpcodeStr,
SDNode OpNode,
string DstType,
string SrcType,
int CustomPatterns = 0,
list<dag> patterns = [],
string asm = ""
>: fp_unary_vxs_n_rm_rr<
opc,
!cast<RegisterClass>(!patsubst("^f([0-9]+)","FR$1",!patsubst("^i([0-9]+)","GR$1",DstType))),
[...]
Basically, the code keys off type strings t...
2009 Jun 13
0
[LLVMdev] Regular Expressions
...", "i32">;
>
> [Meanwhile, down in the guts...]
>
> class fp_cvt_scalar_VXSnrr<
> // Parent: avx_fp_cvt_scalar_xs_node_rm_DEF_V#NAME#_128rr
> bits<8> opc,
> string OpcodeStr,
> SDNode OpNode,
> string DstType,
> string SrcType,
> int CustomPatterns = 0,
> list<dag> patterns = [],
> string asm = ""
>> : fp_unary_vxs_n_rm_rr<
> opc,
> !cast<RegisterClass>(!patsubst("^f([0-9]+)","FR$1",!
> patsubst("^i([0-9]+)","GR$1",DstType))),
> [...]
Very cleve...
2009 May 15
1
[LLVMdev] RFC: More AVX Experience
Ok, so I've been chugging away at AVX and added some new
features in TableGen to facilitate writing generic patterns.
Here's an example:
//===----------------------------------------------------------------------===//
// Dummy defs for writing generic patterns
//===----------------------------------------------------------------------===//
def SRCREGCLASS;
def DSTREGCLASS;
def MEMCLASS;
2009 Jun 11
0
[LLVMdev] Regular Expressions
On Jun 9, 2009, at 12:39 PM, David Greene wrote:
> On Tuesday 09 June 2009 14:34, Dan Gohman wrote:
>> Can you describe what problem you're trying to solve here? Does it
>> really need Regular Expressions?
>
> Yes. I want TableGen to be able to infer lots of stuff
> programmatically.
> This helps tremendously when specifying things like, oh, AVX. :)
I
2009 Jun 09
3
[LLVMdev] Regular Expressions
On Tuesday 09 June 2009 14:34, Dan Gohman wrote:
> Can you describe what problem you're trying to solve here? Does it
> really need Regular Expressions?
Yes. I want TableGen to be able to infer lots of stuff programmatically.
This helps tremendously when specifying things like, oh, AVX. :)
We could invent our own pattern matching syntax, but why?
2009 Jun 15
2
[LLVMdev] Regular Expressions
...to be something like this:
>
>> class fp_cvt_scalar_VXSnrr<
>> // Parent: avx_fp_cvt_scalar_xs_node_rm_DEF_V#NAME#_128rr
>> bits<8> opc,
>> string OpcodeStr,
>> SDNode OpNode,
>> X86ValueType DstType,
>> X86ValueType SrcType,
>> int CustomPatterns = 0,
>> list<dag> patterns = [],
>> string asm = ""
>>> : fp_unary_vxs_n_rm_rr<
>> opc, DstType.RegClass,
>
> This lets you encode whatever you want as properties of the dependent
> class, makes everything "type safe", and eli...