Skip to content

Commit 173fc51

Browse files
committed
[LangRef] inline asm: the template string is treated opaquely
1 parent c3bb00d commit 173fc51

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/docs/LangRef.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5227,7 +5227,10 @@ represents the inline assembler as a template string (containing the
52275227
instructions to emit), a list of operand constraints (stored as a string), a
52285228
flag that indicates whether or not the inline asm expression has side effects,
52295229
and a flag indicating whether the function containing the asm needs to align its
5230-
stack conservatively.
5230+
stack conservatively. The compiler's understanding of the semantics of the
5231+
expression comes only from the list of operand constraints and the flags -- not
5232+
the contents of the template string. In particular, no optimizations or analyses
5233+
will be performed based on the contents of that string.
52315234

52325235
The template string supports argument substitution of the operands using "``$``"
52335236
followed by a number, to indicate substitution of the given register/memory

0 commit comments

Comments
 (0)