search for: otherpattern

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

2008 Jan 03
1
[LLVMdev] ComplexPattern in child ISel nodes
...f that's desired. What's the cleanest code idiom you know for extracting the immediate enclosing node? Walking up from the root testing all the operands? I don't have this problem, but I don't see an obvious solution using the DAG walk method: (node (node ComplexPattern:$A), OtherPattern:$A) If the operand of the ComplexPattern has multiple uses in the DAG it's matching against how do you know which node is the immediate enclosing node? -- Christopher Lamb -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail...
2008 Jan 02
0
[LLVMdev] ComplexPattern in child ISel nodes
On Dec 30, 2007, at 9:04 PM, Christopher Lamb wrote: > Currently tablegen emits a rather surprising match code for the > following case: > > Suppose we have a pattern that uses a ComplexPattern to match an > operand. This pattern then appears as a child pattern in a > different pattern. > Pattern 1: (N1 ComplexPattern:OP) > Pattern 0: (N0 (N1 ComplexPattern:OP)) >
2007 Dec 31
2
[LLVMdev] ComplexPattern in child ISel nodes
Currently tablegen emits a rather surprising match code for the following case: Suppose we have a pattern that uses a ComplexPattern to match an operand. This pattern then appears as a child pattern in a different pattern. Pattern 1: (N1 ComplexPattern:OP) Pattern 0: (N0 (N1 ComplexPattern:OP)) The match code for ComplexPattern is passed in N1 in Pattern 1 and N0 in Pattern 0. This means