[clang] [Clang][CodeGen][NFC] Refactor EmitAsmStmt method (PR #196885)

Sergei Barannikov via cfe-commits cfe-commits at lists.llvm.org
Mon May 11 02:36:55 PDT 2026


================
@@ -3134,117 +3129,163 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) {
 
     if (isa<MSAsmStmt>(&S)) {
       if (Clobber == "eax" || Clobber == "edx") {
-        if (Constraints.find("=&A") != std::string::npos)
+        if (AsmInfo.Constraints.find("=&A") != std::string::npos)
----------------
s-barannikov wrote:

The diff could be somewhat smaller with `const T& Constraints = AsmInfo.Constraints` at the beginning of the function

https://github.com/llvm/llvm-project/pull/196885


More information about the cfe-commits mailing list