[llvm] [LangRef] inline asm: the instructions are treated opaquely (PR #157080)

Ralf Jung via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 13 03:40:14 PDT 2025


https://github.com/RalfJung updated https://github.com/llvm/llvm-project/pull/157080

>From 173fc51082e5821d8d8d54c81f3d9222999de36c Mon Sep 17 00:00:00 2001
From: Ralf Jung <post at ralfj.de>
Date: Fri, 5 Sep 2025 13:42:56 +0200
Subject: [PATCH] [LangRef] inline asm: the template string is treated opaquely

---
 llvm/docs/LangRef.rst | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index e64b9343b7622..7ee137d50cfbc 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -5227,7 +5227,10 @@ represents the inline assembler as a template 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 expression has side effects,
 and a flag indicating whether the function containing the asm needs to align its
-stack conservatively.
+stack conservatively. The compiler's understanding of the semantics of the
+expression comes only from the list of operand constraints and the flags -- not
+the contents of the template string. In particular, no optimizations or analyses
+will be performed based on the contents of that string.
 
 The template string supports argument substitution of the operands using "``$``"
 followed by a number, to indicate substitution of the given register/memory



More information about the llvm-commits mailing list