[clang] [CIR] Upstream Inline Asm with Input Operands (PR #176239)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 16 12:13:37 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] =
----------------
erichkeane wrote:
That makes sense, changing `arg`->`argValue` makes sense as a change to me too now that I look at it, so doing that as well.
https://github.com/llvm/llvm-project/pull/176239
More information about the cfe-commits
mailing list