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] Add support for array new #1286

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

andykaylor
Copy link
Collaborator

This change adds initial support for array new expressions where the array size is constant. This includes implementing the array cookie generation in the CIR CXXABI code, but only for the base Itanium ABI. A subsequent patch will create a subclass of CIRGenItaniumCXXABI to provide the proper array cookie support for AppleARM64 targets.

This patch does not support variable array sizes or special asan handling, both of which are marked as "NYI".

This change adds initial support for array new expressions where the
array size is constant. This includes implementing the array cookie
generation in the CIR CXXABI code, but only for the base Itanium ABI.

A subsequent patch will create a subclass of CIRGenItaniumCXXABI to provide
the proper array cookie support for AppleARM64 targets.

This patch does not support variable array sizes or asan handling, both of
which are marked as "NYI".
@andykaylor
Copy link
Collaborator Author

I realize that the test cases here don't actually require an allocation cookie. I'm working on that.

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