From aee0f453c5a801cee59178942180eac12f3fe670 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 30 Nov 2011 21:52:43 +0000 Subject: [PATCH] More cleanups. No content change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145522 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/docs/LangRef.html b/docs/LangRef.html index 960f6739c93..ed4e4d58214 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -2800,7 +2800,7 @@ second_end:

LLVM supports inline assembler expressions (as opposed - to Module-Level Inline Assembly) through the use of + to Module-Level Inline Assembly) through the use of a special value. This value represents the inline assembler as a string (containing the instructions to emit), a list of operand constraints (stored as a string), a flag that indicates whether or not the inline asm @@ -2842,23 +2842,27 @@ call void asm alignstack "eieio", ""()

If both keywords appear the 'sideeffect' keyword must come first.

+ +

-Inline Asm Metadata + Inline Asm Metadata

-

The call instructions that wrap inline asm nodes may have a "!srcloc" MDNode - attached to it that contains a list of constant integers. If present, the - code generator will use the integer as the location cookie value when report - errors through the LLVMContext error reporting mechanisms. This allows a - front-end to correlate backend errors that occur with inline asm back to the - source code that produced it. For example:

+

The call instructions that wrap inline asm nodes may have a + "!srcloc" MDNode attached to it that contains a list of constant + integers. If present, the code generator will use the integer as the + location cookie value when report errors through the LLVMContext + error reporting mechanisms. This allows a front-end to correlate backend + errors that occur with inline asm back to the source code that produced it. + For example:

 call void asm sideeffect "something bad", ""(), !srcloc !42
@@ -2867,7 +2871,7 @@ call void asm sideeffect "something bad", ""(), !srcloc !42
 

It is up to the front-end to make sense of the magic numbers it places in the - IR. If the MDNode contains multiple constants, the code generator will use + IR. If the MDNode contains multiple constants, the code generator will use the one that corresponds to the line of the asm that the error occurs on.

-- 2.34.1