1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/docs/GlobalISel/Porting.rst
Daniel Sanders ace9d22f88 [globalisel][docs] Add the tutorial to the Porting document
In lieu of converting that tutorial to text, add a link to the porting
tutorial from the 2017 Dev Meeting to the porting page
2019-10-30 14:53:39 -07:00

29 lines
1009 B
ReStructuredText

.. _porting:
Porting GlobalISel to A New Target
==================================
There are four major classes to implement by the target:
* :ref:`CallLowering <translator-call-lower>` --- lower calls, returns, and
arguments according to the ABI.
* :ref:`RegisterBankInfo <api-registerbankinfo>` --- describe
:ref:`gmir-regbank` coverage, cross-bank copy cost, and the mapping of
operands onto banks for each instruction.
* :ref:`LegalizerInfo <api-legalizerinfo>` --- describe what is legal, and how
to legalize what isn't.
* :ref:`InstructionSelector <api-instructionselector>` --- select generic MIR
to target-specific MIR.
Additionally:
* ``TargetPassConfig`` --- create the passes constituting the pipeline,
including additional passes not included in the :ref:`pipeline`.
Tutorials
=========
We'd recommend watching `this tutorial
<https://www.llvm.org/devmtg/2017-10/#tutorial2>`_ from the 2017 LLVM DevMeeting
which gave an overview of how to bring up a new backend in GlobalISel.