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

support captures(none) instead of nocapture #1165

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

regehr
Copy link
Contributor

@regehr regehr commented Jan 30, 2025

this gets Alive to build against current LLVM by mapping the new captures(none) to Alive's NoCapture.

this PR leaves undone two additional items

  • upgrade our test cases correspondingly (right now this is taken care of by the parser, so no rush)
  • support captures() other than none -- this is more work

@nunoplopes nunoplopes merged commit 9ff342f into AliveToolkit:master Jan 31, 2025
16 checks passed
case llvm::Attribute::NoCapture:
attrs.set(ParamAttrs::NoCapture);
case llvm::Attribute::Captures:
if (capturesNothing(llvmattr.getCaptureInfo().getOtherComponents()))
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be just capturesNothin(llvmattr.getCaptureInfo()). Otherwise you're saying a return-only capture is nocapture as well.

Copy link
Member

Choose a reason for hiding this comment

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

fixed, thank you!

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.

3 participants