[clang] [CIR] Upstream Inline Asm with Input Operands (PR #176239)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 16 12:00:22 PST 2026


================
@@ -343,11 +420,111 @@ mlir::LogicalResult CIRGenFunction::emitAsmStmt(const AsmStmt &s) {
       readOnly = readNone = false;
     }
 
-    if (info.isReadWrite())
-      assert(!cir::MissingFeatures::asmInputOperands());
+    if (info.isReadWrite()) {
+      inOutConstraints += ',';
+      const Expr *inputExpr = s.getOutputExpr(i);
+
+      auto [arg, argElementType] =
----------------
andykaylor wrote:

Maybe a comment here indicating what the types are?

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


More information about the cfe-commits mailing list