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

[llvmlite] Support opaque pointers. #908

Closed
wants to merge 4 commits into from

Commits on Feb 17, 2023

  1. [llvmlite] Support opaque pointers.

    LLVM 14 introduces optional opaque pointers. If opaque pointers are
    enabled then there is no way to determine the pointee type. LLVM 16
    makes this the default.
    
    In llvmlite and numba this is used to determine ABI size and alignment of
    types by creating a global variable and then asking for its pointee type in
    order to get a TypeRef. For global variables specifically this can be shortcut
    via gv->getValueType(), and doing so removes the current issues when
    opaque pointers are enabled.
    
    This change has been tested with LLVM 11-14 and so also includes some
    other changes required to make llvmlite compile on those versions.
    folded committed Feb 17, 2023
    Configuration menu
    Copy the full SHA
    3489e6d View commit details
    Browse the repository at this point in the history
  2. correct formatting for flake8

    folded committed Feb 17, 2023
    Configuration menu
    Copy the full SHA
    5cb2eb7 View commit details
    Browse the repository at this point in the history
  3. reformat with clang-format-13

    folded committed Feb 17, 2023
    Configuration menu
    Copy the full SHA
    ab79863 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2023

  1. Configuration menu
    Copy the full SHA
    ce9f9b1 View commit details
    Browse the repository at this point in the history