Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CIR] Track size_t and int size with module attributes #1389

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AdUhTkJm
Copy link
Contributor

@AdUhTkJm AdUhTkJm commented Feb 22, 2025

To give LoweringPrepare type information from CIRGenTypeCache, this PR adds two attributes to ModuleOp:

module attributes {
  cir.int_size = #cir.int_size<32>,
  cir.size_type_size = #cir.size_type_size<64>,
  ...
} {}

The CIRDataLayout class is also extended to have getPtrDiffTy and so on.

Some tests that only expects cir.lang and cir.sob are also changed to take this into account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant