summaryrefslogtreecommitdiffstats
path: root/llvm/docs/MIRLangRef.rst
diff options
context:
space:
mode:
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>2017-12-14 10:03:23 +0000
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>2017-12-14 10:03:23 +0000
commit3c99371c6e6be9f79226f2798e136109da937ab1 (patch)
treef6527367fe322f346504638ac1e5a571c0a662b4 /llvm/docs/MIRLangRef.rst
parent2db59382db874146e7bc53c490188ca2767078f6 (diff)
downloadbcm5719-llvm-3c99371c6e6be9f79226f2798e136109da937ab1.tar.gz
bcm5719-llvm-3c99371c6e6be9f79226f2798e136109da937ab1.zip
[CodeGen] Print MCSymbol operands as <mcsymbol sym> in both MIR and debug output
Work towards the unification of MIR and debug output by printing `<mcsymbol sym>` instead of `<MCSym=sym>`. Only debug syntax is affected. llvm-svn: 320685
Diffstat (limited to 'llvm/docs/MIRLangRef.rst')
-rw-r--r--llvm/docs/MIRLangRef.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/docs/MIRLangRef.rst b/llvm/docs/MIRLangRef.rst
index 14ac63bbd9d..f170c721087 100644
--- a/llvm/docs/MIRLangRef.rst
+++ b/llvm/docs/MIRLangRef.rst
@@ -121,6 +121,8 @@ Tests are more accessible and future proof when simplified:
contains dummy functions (see above). The .mir loader will create the
IR functions automatically in this case.
+.. _limitations:
+
Limitations
-----------
@@ -678,6 +680,17 @@ Example:
CALL64pcrel32 $__stack_chk_fail, csr_64, implicit %rsp, implicit-def %rsp
+MCSymbol Operands
+^^^^^^^^^^^^^^^^^
+
+A MCSymbol operand is holding a pointer to a ``MCSymbol``. For the limitations
+of this operand in MIR, see :ref:`limitations <limitations>`.
+
+The syntax is:
+
+.. code-block:: text
+
+ EH_LABEL <mcsymbol Ltmp1>
.. TODO: Describe the parsers default behaviour when optional YAML attributes
are missing.
OpenPOWER on IntegriCloud