<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Rafael,<div><br></div><div>Thanks for this adding!</div><div><br></div><div>I think we could also give more information on how to set this information.</div><div>In particular, I think it may be useful to explain the need of a call to TargetRegistry::RegisterXXXStreamer and quickly explain what the registered function is supposed to do (basically, create the related MCTargetStreamer and pass it down to the default createXXXStreamer).</div><div>Mentioning or directly putting code fragment from Mips (or ARM) as an example may greatly help.</div><div><br></div><div>Thanks again.</div><div><br></div><div>Cheers,</div><div><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">-Quentin</div>

</div>
<br><div><div>On Oct 8, 2013, at 7:05 PM, Rafael Espindola <<a href="mailto:rafael.espindola@gmail.com">rafael.espindola@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Author: rafael<br>Date: Tue Oct  8 21:05:08 2013<br>New Revision: 192265<br><br>URL: <a href="http://llvm.org/viewvc/llvm-project?rev=192265&view=rev">http://llvm.org/viewvc/llvm-project?rev=192265&view=rev</a><br>Log:<br>Add a paragraph about MCTargetStreamer.<br><br>Modified:<br>    llvm/trunk/docs/CodeGenerator.rst<br><br>Modified: llvm/trunk/docs/CodeGenerator.rst<br>URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CodeGenerator.rst?rev=192265&r1=192264&r2=192265&view=diff">http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CodeGenerator.rst?rev=192265&r1=192264&r2=192265&view=diff</a><br>==============================================================================<br>--- llvm/trunk/docs/CodeGenerator.rst (original)<br>+++ llvm/trunk/docs/CodeGenerator.rst Tue Oct  8 21:05:08 2013<br>@@ -636,6 +636,13 @@ file (MCObjectStreamer).  MCAsmStreamer<br> that prints out a directive for each method (e.g. ``EmitValue -> .byte``), but<br> MCObjectStreamer implements a full assembler.<br><br>+For target specific directives, the MCStreamer has a MCTargetStreamer instance.<br>+Each target that needs it defines a class that inherits from it and is a lot<br>+like MCStreamer itself: It has one method per directive and two classes that<br>+inherit from it, a target object streamer and a target asm streamer. The target<br>+asm streamer just prints it (``emitFnStart -> .fnstrart``), and the object<br>+streamer implement the assembler logic for it.<br>+<br> The ``MCContext`` class<br> -----------------------<br><br><br><br>_______________________________________________<br>llvm-commits mailing list<br><a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits<br></blockquote></div><br></div></body></html>