[clang] [CIR] Implement codegen for inline assembly with output operands (PR #176006)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 14 15:46:40 PST 2026
================
@@ -83,16 +85,150 @@ static void collectClobbers(const CIRGenFunction &cgf, const AsmStmt &s,
}
}
+using ConstraintInfos = SmallVector<TargetInfo::ConstraintInfo, 4>;
+
+static void collectInOutConstraintInfos(const CIRGenFunction &cgf,
+ const AsmStmt &s, ConstraintInfos &out,
+ ConstraintInfos &in) {
+
+ for (unsigned i = 0, e = s.getNumOutputs(); i != e; i++) {
----------------
andykaylor wrote:
```suggestion
for (unsigned i = 0, e = s.getNumOutputs(); i != e; ++i) {
```
https://github.com/llvm/llvm-project/pull/176006
More information about the cfe-commits
mailing list