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

[Continuations] Support new LLVM #2873

Merged

Conversation

jasilvanus
Copy link
Contributor

Remove uses of typed pointer functions removed in upstream LLVM.

  • Remove uses of isOpaqueOrPointeeTypeMatches without replacement. These were just used in asserts that would soon turn into no-ops anyways.
  • Add a new helper replacing PointerType::getWithSamePointeeType which falls back to untyped pointers on new LLVM. This helper can be removed once untyped pointer support is no longer needed.

(This is a GPUOpen port of an already landed internal fix.)

This function was long deprecated and now has been removed
upstream.

These were only used in asserts, and these asserts are going
to turn into no-ops with opaque pointers, so we can just remove
them now without replacement.
PointerType::getWithSamePointeeType was removed in upstream
LLVM, but we rely on it in typed pointer mode.
Add a helper function that calls the LLVM function for old
LLVM, and returns an untyped pointer for new LLVM.

This helper can be removed once typed pointer support is no longer
needed.
@jasilvanus jasilvanus requested a review from a team as a code owner December 8, 2023 12:17
@dstutt
Copy link
Member

dstutt commented Dec 8, 2023

@chuang13 fyi - this PR does not require porting to the internal repo

Copy link
Member

@dstutt dstutt left a comment

Choose a reason for hiding this comment

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

LGTM - thanks

@amdvlk-admin
Copy link

Test summary for commit 45a3cb4

CTS tests (Failed: 0/138443)
  • Built with version 1.3.5.2
  • Ubuntu navi3x, Srdcvk
    • Passed: 35211/69228 (50.9%)
    • Failed: 0/69228 (0.0%)
    • Not Supported: 34017/69228 (49.1%)
    • Warnings: 0/69228 (0.0%)
    Ubuntu navi2x, Srdcvk
    • Passed: 35242/69215 (50.9%)
    • Failed: 0/69215 (0.0%)
    • Not Supported: 33973/69215 (49.1%)
    • Warnings: 0/69215 (0.0%)

@jasilvanus jasilvanus merged commit fd11332 into GPUOpen-Drivers:dev Dec 8, 2023
10 checks passed
@jasilvanus jasilvanus deleted the jsilvanu/fix-typed-pointers-gpuopen branch December 8, 2023 13:02
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