Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions llvm/docs/LangRef.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5229,6 +5229,14 @@ flag that indicates whether or not the inline asm expression has side effects,
and a flag indicating whether the function containing the asm needs to align its
stack conservatively.

The compiler may not assume that the actual code executed at runtime matches the
contents of the template string. Correctness-critical analyses must base their
results only on the list of operand constraints and the flags -- not the
contents of the template string. This ensures correct behavior if the assembly
code emitted by this expression is altered later, e.g. via self-modifying code,
as long as the code keeps upholding the requirements of the operand constraints
and the flags.

The template string supports argument substitution of the operands using "``$``"
followed by a number, to indicate substitution of the given register/memory
location, as specified by the constraint string. "``${NUM:MODIFIER}``" may also
Expand Down
Loading