<div dir="ltr"><div>Not clean but you could add something like this in your AsmBackend: </div><div><br></div><div>namespace llvm {</div><div>extern const MCInstrDesc XInsts[];</div><div>}</div><div>static const MCInstrDesc &getInstDesc(unsigned Opcode) {</div><div>  return XInsts[Opcode];</div><div>}</div><div>(replace X with your target)</div><div><br></div><div>TSFlags will be in MCInstrDesc</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 31, 2014 at 1:51 PM, Steve King <span dir="ltr"><<a href="mailto:steve@metrokings.com" target="_blank">steve@metrokings.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello LLVM,<br>
I'd like to check TSFlags in my AsmBackend code.  However AsmBackend<br>
objects don't have a reference to MCInstrInfo, which is the only way<br>
I've seen to reach TSFlags.  A quickie grep shows that none of the<br>
existing targets check TSFlags in their AsmBackends.  Is there any<br>
reason I shouldn't check TSFlags in AsmBackend?  If not, what's the<br>
best way to go about it?<br>
Thanks,<br>
-steve<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div>