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

ConstantArrayType does not expose Size method from Clang #514

Open
Ninja3047 opened this issue Jan 24, 2024 · 1 comment
Open

ConstantArrayType does not expose Size method from Clang #514

Ninja3047 opened this issue Jan 24, 2024 · 1 comment
Labels

Comments

@Ninja3047
Copy link
Contributor

The clang ConstantArrayType has a getSize method which returns the number of elements in the array as an APInt but this is not exposed on the multiplier side. A workaround is to get the total size of the Type and divide it by the size of the element.

@Ninja3047 Ninja3047 added the api label Jan 24, 2024
@pgoodman
Copy link
Contributor

pgoodman commented Jan 24, 2024

This issue ultimately traces its roots back to PASTA. There, we'd perhaps want to add support for APInt in the form of gap multiprecision integers, so that PASTA's public API (headers) remains clang/llvm-dependency free.

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

No branches or pull requests

2 participants