Skip to content

[CIR] Upstream unary expression support #130195

@andykaylor

Description

@andykaylor

Overview

Upstream support for unary expressions and the cir.unary operation. The initial change should just add support a single operation, such as not. Other unary operators can then be added afterwards.

Suggested minimal test case

bool f(bool a) {
  return !a;
}

Existing incubator tests

clang/test/CIR/CodeGen/unary.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