diff options
Diffstat (limited to 'docs/MIRLangRef.rst')
-rw-r--r-- | docs/MIRLangRef.rst | 12 |
1 files changed, 12 insertions, 0 deletions
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. |