[clang] [CIR] Change previous coroutine builtins to have their own coro intrinsic ops (PR #211699)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 24 06:59:40 PDT 2026
================
@@ -4702,6 +4619,131 @@ def CIR_CoReturnOp : CIR_Op<"co_return", [
let hasLLVMLowering = false;
}
+//===----------------------------------------------------------------------===//
+// Coroutine intrinsics
+//===----------------------------------------------------------------------===//
+
+class CIR_CoroIntrinsicOp<string mnem, dag ins, dag outs,
+ list<Trait> traits = []>
+ : CIR_Op<"coro.intrinsic." # mnem, traits> {
+ let hasLLVMLowering = 1;
+ let arguments = ins;
+ let results = outs;
+
+ let assemblyFormat = [{
+ `(` operands `)` `:` functional-type(operands, results) attr-dict
+ }];
+}
+//===----------------------------------------------------------------------===//
----------------
erichkeane wrote:
missing newline?
https://github.com/llvm/llvm-project/pull/211699
More information about the cfe-commits
mailing list