From 234b36e423440483bd70348d31942936dd0f9ef7 Mon Sep 17 00:00:00 2001 From: Francis Visoiu Mistrih Date: Tue, 19 Dec 2017 21:47:10 +0000 Subject: [CodeGen] Move printing MO_IntrinsicID operands to MachineOperand::print Work towards the unification of MIR and debug output by refactoring the interfaces. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321112 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/MIRLangRef.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docs') diff --git a/docs/MIRLangRef.rst b/docs/MIRLangRef.rst index 150e4e21375..1176435c876 100644 --- a/docs/MIRLangRef.rst +++ b/docs/MIRLangRef.rst @@ -724,6 +724,18 @@ The syntax for the ``returnaddress`` intrinsic is: %x0 = COPY intrinsic(@llvm.returnaddress) +Predicate Operands +^^^^^^^^^^^^^^^^^^ + +A Predicate operand contains an IR predicate from ``CmpInst::Predicate``, like +``ICMP_EQ``, etc. + +For an int eq predicate ``ICMP_EQ``, the syntax is: + +.. code-block:: text + + %2:gpr(s32) = G_ICMP intpred(eq), %0, %1 + .. TODO: Describe the parsers default behaviour when optional YAML attributes are missing. .. TODO: Describe the syntax for the bundled instructions. -- cgit v1.2.3