<div dir="ltr">Hi,<div><br></div><div>You can't nest operands like that - it must be a flattened list. So:</div><div><br></div><div>def <b>Xpred</b> : PredicateOperand<OtherVT, (ops <b>i32imm, i32imm</b>, i32imm),<br><div style="margin-left:280px">(ops (i32 14), (i32 zero_reg))> {...}</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, 14 Dec 2015 at 10:21 Sky Flyer via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi All,<br><br></div>In ARMInstFormats.td predicate is defined this way:<br><br></div><br></div><i>def pred : PredicateOperand<OtherVT, (ops i32imm, i32imm),<br></i></div><div style="margin-left:280px"><i>(ops (i32 14), (i32 zero_reg))> {...}</i><br><br></div><br></div>I use the same definition in my code. But I have another version of predicate which is exactly the same but it is a condition code plus a quantifier! (e.g. Xpred = (pred + i32imm)).<br><br></div>I was wondering how we can define a sub sub operand, something like this:<br><br>def <b>Xpred</b> : PredicateOperand<OtherVT, (ops <b>pred</b>, i32imm),<br><div style="margin-left:280px">(ops (i32 14), (i32 zero_reg))> {...}<br></div><br></div>I don't know how clear I explained, but can someone recommend a solution?<br><br></div>Cheers,<br></div>ES<br><div><div><div><br><br></div></div></div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>