Skip to content

[CIR][CIRGen][TBAA] add CIR_TBAAStructAttr #1365

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

Merged

Conversation

PikachuHyA
Copy link
Collaborator

This patch introduces CIR_TBAAStructAttr, which encodes the type and offset of each field in a struct, although it may lead to some duplication in CIR. If we manage cir::TBAAStructAttr by adding a new method to ASTRecordDeclInterface, it will also introduce duplication between CIRGen and LLVM lowering.

@bcardosolopes
Copy link
Member

LGTM after nits

@bcardosolopes bcardosolopes merged commit de13703 into llvm:main Feb 20, 2025
6 checks passed
@PikachuHyA PikachuHyA deleted the support_tbaa_struct_v2_CIRGenTBAA_patch1 branch February 21, 2025 06:00
lanza pushed a commit that referenced this pull request Mar 18, 2025
This patch introduces `CIR_TBAAStructAttr`, which encodes the type and
offset of each field in a struct, although it may lead to some
duplication in `CIR`. If we manage `cir::TBAAStructAttr` by adding a new
method to `ASTRecordDeclInterface`, it will also introduce duplication
between `CIRGen` and LLVM lowering.
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.

2 participants