[all-commits] [llvm/llvm-project] 72a341: [ClangIR] Support __builtin_coro_noop (#227573)

Aman Maurya via All-commits all-commits at lists.llvm.org
Fri Oct 2 16:25:18 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 72a34143a29ba21289fa147334472cb0ca27093a
      https://github.com/llvm/llvm-project/commit/72a34143a29ba21289fa147334472cb0ca27093a
  Author: Aman Maurya <amanmaurya9209 at gmail.com>
  Date:   2026-10-02 (Fri, 02 Oct 2026)

  Changed paths:
    M clang/include/clang/CIR/Dialect/IR/CIROps.td
    M clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
    M clang/lib/CIR/CodeGen/CIRGenCoroutine.cpp
    M clang/lib/CIR/CodeGen/CIRGenFunction.h
    M clang/test/CIR/CodeGenCoroutines/coro-builtins.cpp
    A clang/test/CIR/IR/coro-noop.cir
    A clang/test/CIR/Lowering/coro-noop.cir

  Log Message:
  -----------
  [ClangIR] Support __builtin_coro_noop (#227573)

Support `__builtin_coro_noop` in ClangIR:
- Add `CIR_CoroNoopOp` (`cir.coro.intrinsic.noop`) in `CIROps.td` with
TableGen lowering to `llvm.coro.noop`.
- Handle `Builtin::BI__builtin_coro_noop` in `CIRGenBuiltin.cpp`.
- Add roundtrip (`clang/test/CIR/IR/coro-noop.cir`) and DirectToLLVM
lowering (`clang/test/CIR/Lowering/coro-noop.cir`) tests.
- Uncomment and test `__builtin_coro_noop()` in
`clang/test/CIR/CodeGenCoroutines/coro-builtins.cpp` with both CIR and
LLVM checks for parity with classic Clang CodeGen.

Closes #227561



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list