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

Remove use of deprecated Opaque Pointer API #60

Conversation

mariusz-sikora-at-amd
Copy link
Contributor

'isOpaque' and 'getNonOpaquePointerElementType' are deprecated on new LLVM. Additionally this code is not used since Opaque Pointers are enabled by default.

Copy link
Member

@Flakebi Flakebi left a comment

Choose a reason for hiding this comment

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

We cannot remove typed pointer support from llvm-dialects for now, this would break internal projects.
If we do need to remove this for new llvm, I think our only choice is to add #ifs on the LLVM revision.

@mariusz-sikora-at-amd
Copy link
Contributor Author

We cannot remove typed pointer support from llvm-dialects for now, this would break internal projects. If we do need to remove this for new llvm, I think our only choice is to add #ifs on the LLVM revision.

Thanks, I was not aware about it. I only noticed this change: https://reviews.llvm.org/D155585
So, maybe we should add #if LLVM_VERSION_MAJOR <= 17 ?

@Flakebi
Copy link
Member

Flakebi commented Jul 26, 2023

That check sounds good to me.
Thanks for doing all these changes!

@mariusz-sikora-at-amd
Copy link
Contributor Author

That check sounds good to me. Thanks for doing all these changes!

Sure, no problem. I also noticed that we have a dedicated flag for opaque pointers in llvm-dialects

cl::opt<bool> g_typedPointers("typed-pointers", cl::init(false),
                               cl::desc("Disable opaque pointers"));

this will be also "useless" after llvm-17 ?

@Flakebi
Copy link
Member

Flakebi commented Jul 26, 2023

Do we still have that flag somewhere? I thought I removed it in #59

@mariusz-sikora-at-amd
Copy link
Contributor Author

Do we still have that flag somewhere? I thought I removed it in #59

I was referring exactly to this flag, but apparently I'm not sync with top.

LLVM 17 will be the last version with opaque pointer API support.
Copy link
Member

@Flakebi Flakebi left a comment

Choose a reason for hiding this comment

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

Thanks!

@mariusz-sikora-at-amd mariusz-sikora-at-amd merged commit 54af66f into GPUOpen-Drivers:dev Jul 26, 2023
8 checks passed
@mariusz-sikora-at-amd mariusz-sikora-at-amd deleted the masikora/opaque-deprecated branch July 26, 2023 14:05
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