[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>;
----------------
andykaylor wrote:

The type alias here seems problematic because it results in using a SmallVector reference as an argument type, which is typically strongly discouraged. I suppose the type alias does enforce that the template arguments match, so maybe that's OK?

Is there justification for the `4`?

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


More information about the cfe-commits mailing list