[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:39 PST 2026
================
@@ -102,21 +238,128 @@ mlir::LogicalResult CIRGenFunction::emitAsmStmt(const AsmStmt &s) {
// in addition to meeting the conditions listed above.
bool readOnly = true, readNone = true;
- if (s.getNumInputs() != 0 || s.getNumOutputs() != 0) {
+ if (s.getNumInputs() != 0) {
assert(!cir::MissingFeatures::asmInputOperands());
- assert(!cir::MissingFeatures::asmOutputOperands());
- cgm.errorNYI(s.getAsmLoc(), "asm with operands");
+ cgm.errorNYI(srcLoc, "asm with input operands");
}
+ 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