Skip to content

[CIR][Lowering] Enabled VAArg lowering for cir::PointerType #1762

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
merged 1 commit into from
Jul 28, 2025

Conversation

tommymcm
Copy link
Contributor

cir::PointerType was not included in the applicability guard for cir::VAArg lowering during LoweringPrepare.
Since we don't have generic LLVM cir::VAArgOp (see more info) this causes an NYI error during lowering that doesn't need to happen.
To fix this I added the missing cir::PointerType to the isa.
There is probably a more comprehensive fix to this if someone is interested, this check should be removed and let the (possible) error occur at the actual NYI site.

`cir::PointerType` was not included in the applicability guard for `cir::VAArg` lowering during `LoweringPrepare`.
Since we don't have generic LLVM `cir::VAArgOp` (see [more info](llvm#1088 (comment))) this causes an NYI error during lowering that doesn't need to happen.
To fix this I added the missing `cir::PointerType` to the `isa`.
There is probably a more comprehensive fix to this if someone is interested.
Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@bcardosolopes bcardosolopes merged commit d3ee486 into llvm:main Jul 28, 2025
7 of 10 checks passed
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