Skip to content

[CIR] Upstream support for loops #132490

@andykaylor

Description

@andykaylor

Overview

Upstream support for various simple loops (for, while, do) the cir.for, cir.do, cir.while, cir.break, and cir.continue operations.

Suggested minimal test case

void f() {
  for (;;)
    ;
}

Existing incubator tests

clang/test/CIR/CodeGen/loop.cpp

Metadata

Metadata

Assignees

Labels

ClangIRAnything related to the ClangIR project

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions