Skip to content

Conversation

@mcourteaux
Copy link
Contributor

@mcourteaux mcourteaux commented Aug 13, 2024

This fixes the latest change in LLVM where the DataLayout constructor that accepts a Module is removed. llvm/llvm-project@75c7bca

CC @steven-johnson

@steven-johnson
Copy link
Contributor

Thanks for the fix, but this needs to be conditionalized for multiple versions of LLVM. I'll upload a patch.

Copy link
Contributor

@steven-johnson steven-johnson left a comment

Choose a reason for hiding this comment

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

LGTM pending green

@steven-johnson steven-johnson self-requested a review August 13, 2024 16:50
@mcourteaux
Copy link
Contributor Author

mcourteaux commented Aug 13, 2024

No it doesn't, afaik. The getDataLayout() was always there. The build bots confirm that it works.

@alexreinking
Copy link
Member

No it doesn't, afaik. The getDataLayout() was always there. The build bots confirm that it works.

I agree it's better to avoid #if when it's not necessary.

@steven-johnson steven-johnson merged commit 818f42d into halide:main Aug 13, 2024
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