forked from OSchip/llvm-project
Documentation: convert WritingAnLLVMPass.html to reST.
Patch by Anthony Mykhailenko with small fixes by me. llvm-svn: 169992
This commit is contained in:
parent
427cfcb937
commit
11ffe2c47e
|
@ -355,6 +355,8 @@ an equivalent variant of snippet shown above:
|
|||
|
||||
target_link_libraries(mycompiler ${REQ_LLVM_LIBRARIES})
|
||||
|
||||
.. _cmake-out-of-source-pass:
|
||||
|
||||
Developing LLVM pass out of source
|
||||
----------------------------------
|
||||
|
||||
|
|
|
@ -758,10 +758,10 @@ If ``CustomReadBarriers`` or ``CustomWriteBarriers`` are specified, then
|
|||
``performCustomLowering`` **must** eliminate the corresponding barriers.
|
||||
|
||||
``performCustomLowering`` must comply with the same restrictions as
|
||||
`FunctionPass::runOnFunction <WritingAnLLVMPass.html#runOnFunction>`__
|
||||
:ref:`FunctionPass::runOnFunction <writing-an-llvm-pass-runOnFunction>`
|
||||
Likewise, ``initializeCustomLowering`` has the same semantics as
|
||||
`Pass::doInitialization(Module&)
|
||||
<WritingAnLLVMPass.html#doInitialization_mod>`__
|
||||
:ref:`Pass::doInitialization(Module&)
|
||||
<writing-an-llvm-pass-doInitialization-mod>`
|
||||
|
||||
The following can be used as a template:
|
||||
|
||||
|
|
|
@ -170,9 +170,9 @@ openable with the ``dlopen`` function and searchable with the ``dlsym`` function
|
|||
(or your operating system's equivalents). While this isn't strictly necessary on
|
||||
Linux and a few other platforms, it is required on systems like HP-UX and
|
||||
Darwin. You should use ``LOADABLE_MODULE`` for any shared library that you
|
||||
intend to be loaded into an tool via the ``-load`` option. See the
|
||||
`WritingAnLLVMPass.html <WritingAnLLVMPass.html#makefile>`_ document for an
|
||||
example of why you might want to do this.
|
||||
intend to be loaded into an tool via the ``-load`` option. `Pass documentation
|
||||
<writing-an-llvm-pass-makefile>`_ has an example of why you might want to do
|
||||
this.
|
||||
|
||||
Bitcode Modules
|
||||
^^^^^^^^^^^^^^^
|
||||
|
|
|
@ -54,8 +54,8 @@ These essential documents must be read before reading this document:
|
|||
file (``.td`` suffix) and generates C++ code that can be used for code
|
||||
generation.
|
||||
|
||||
* `Writing an LLVM Pass <WritingAnLLVMPass.html>`_ --- The assembly printer is
|
||||
a ``FunctionPass``, as are several SelectionDAG processing steps.
|
||||
* :doc:`WritingAnLLVMPass` --- The assembly printer is a ``FunctionPass``, as
|
||||
are several ``SelectionDAG`` processing steps.
|
||||
|
||||
To follow the SPARC examples in this document, have a copy of `The SPARC
|
||||
Architecture Manual, Version 8 <http://www.sparc.org/standards/V8.pdf>`_ for
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -23,14 +23,15 @@ Subsystem Documentation
|
|||
SourceLevelDebugging
|
||||
WritingAnLLVMBackend
|
||||
GarbageCollection
|
||||
WritingAnLLVMPass
|
||||
|
||||
.. FIXME: once LangRef is Sphinxified, HowToUseInstrMappings should be put
|
||||
under LangRef's toctree instead of this page's toctree.
|
||||
|
||||
* `Writing an LLVM Pass <WritingAnLLVMPass.html>`_
|
||||
|
||||
* :doc:`WritingAnLLVMPass`
|
||||
|
||||
Information on how to write LLVM transformations and analyses.
|
||||
|
||||
|
||||
* :doc:`WritingAnLLVMBackend`
|
||||
|
||||
Information on how to write LLVM backends for machine targets.
|
||||
|
|
|
@ -23,6 +23,7 @@ User Guides
|
|||
TestingGuide
|
||||
tutorial/index
|
||||
ReleaseNotes
|
||||
Passes
|
||||
|
||||
* :ref:`getting_started`
|
||||
|
||||
|
@ -58,10 +59,10 @@ User Guides
|
|||
A reference manual for the LLVM command line utilities ("man" pages for LLVM
|
||||
tools).
|
||||
|
||||
* `LLVM's Analysis and Transform Passes <Passes.html>`_
|
||||
* :doc:`Passes`
|
||||
|
||||
A list of optimizations and analyses implemented in LLVM.
|
||||
|
||||
|
||||
* :ref:`faq`
|
||||
|
||||
A list of common questions and problems and their solutions.
|
||||
|
|
Loading…
Reference in New Issue