Skip to content

[CIR] Upstream handling of __builtin_constant_p #163889

@andykaylor

Description

@andykaylor

Overview

Upstream handling for the __builtin_constant_p function, including implemetation and lowering of the cir.is_constant operation.

Suggested minimal test case

int a = 0;
int f() {
  return __builtin_constant_p(a);
}

Existing incubator tests

clang/test/CIR/CodeGen/builtin-constant-p.c

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