[llvm] r192796 - Add more documentation about the TargetStreamer interface.
Rafael Espindola
rafael.espindola at gmail.com
Wed Oct 16 07:54:39 PDT 2013
Author: rafael
Date: Wed Oct 16 09:54:39 2013
New Revision: 192796
URL: http://llvm.org/viewvc/llvm-project?rev=192796&view=rev
Log:
Add more documentation about the TargetStreamer interface.
Modified:
llvm/trunk/docs/CodeGenerator.rst
Modified: llvm/trunk/docs/CodeGenerator.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CodeGenerator.rst?rev=192796&r1=192795&r2=192796&view=diff
==============================================================================
--- llvm/trunk/docs/CodeGenerator.rst (original)
+++ llvm/trunk/docs/CodeGenerator.rst Wed Oct 16 09:54:39 2013
@@ -643,6 +643,11 @@ inherit from it, a target object streame
asm streamer just prints it (``emitFnStart -> .fnstrart``), and the object
streamer implement the assembler logic for it.
+To make llvm use these classes, the target initialization must call
+TargetRegistry::RegisterAsmStreamer and TargetRegistry::RegisterMCObjectStreamer
+passing callbacks that allocate the corresponding target streamer and pass it
+to createAsmStreamer or to the appropriate object streamer constructor.
+
The ``MCContext`` class
-----------------------
More information about the llvm-commits
mailing list