<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jun 27, 2019, at 08:54, David Callahan via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="margin: 0in 0in 0pt; caret-color: rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, sans-serif; font-size: 11pt;" class=""><span class=""> <span class="Apple-converted-space"> </span></span>def PSrc : registerclass<”ns”, [Type1, Type2], 8, (add P0…., S0…)></div></div></blockquote><div><br class=""></div><div>I think this should be specified as (add PSrc, Src), rather than adding the same register elements to each</div><br class=""><blockquote type="cite" class=""><div class=""><div style="margin: 0in 0in 0pt; caret-color: rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, sans-serif; font-size: 11pt;" class=""><span class=""> <span class="Apple-converted-space"> </span></span>def Pop : RegisterOperand<Prc> { }</div><p style="margin: 0in 0in 8pt; caret-color: rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; line-height: 15.693333625793457px; font-family: Calibri, sans-serif; font-size: 11pt;" class=""><span class=""> <span class="Apple-converted-space"> </span></span>def FOO : OperandWithDefaults<Type1, (ops P0)></p></div></blockquote></div>II don’t think tablegen is smart enough to infer the type here. I think this should work if you explicitly list (ops (Type1 P0)), but I also haven’t seen OperandWithDefaults used with something that isn’t an immediate.<div class=""><br class=""><div class="">-Matt</div></div></body></html>