Displaying 2 results from an estimated 2 matches for "patternhasproperty".
2008 Oct 20
2
[LLVMdev] TableGen Hacking Help
...shuffle).
It doesn't recurse to replace child nodes.
I tried hacking tblgen to call getTargetNode / ReplaceUses if any node in the
pattern has a chain by changing this line in tblgen:
bool InputHasChain = isRoot &&
NodeHasProperty(Pattern, SDNPHasChain, CGP);
to call PatternHasProperty instead. This does cause tblgen to emit
getTargetNode / ReplaceUses instead of SelectNodeTo but ReplaceUses doesn't
know how to handle a complex pattern like this. It complains about having
two many operands:
assert(From->getNumValues() == 1 && FromN.ResNo == 0 &&...
2008 Oct 20
0
[LLVMdev] TableGen Hacking Help
...500, David Greene wrote:
> I tried hacking tblgen to call getTargetNode / ReplaceUses if any node in the
> pattern has a chain by changing this line in tblgen:
>
> bool InputHasChain = isRoot &&
> NodeHasProperty(Pattern, SDNPHasChain, CGP);
>
> to call PatternHasProperty instead. This does cause tblgen to emit
> getTargetNode / ReplaceUses instead of SelectNodeTo but ReplaceUses doesn't
> know how to handle a complex pattern like this. It complains about having
> two many operands:
>
> assert(From->getNumValues() == 1 && FromN....