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

Make librustc_codegen_llvm aware of LLVM address spaces. #51576

Closed

Commits on Jan 21, 2019

  1. Make librustc_codegen_llvm aware of LLVM address spaces.

    In order to not require overloading functions based on their argument's address
    space (among other things), we require the presence of a "flat" (ie an address
    space which is shared with every other address space) address space.
    
    This isn't exposed in any way to Rust code. This just makes Rust compatible with
    LLVM target machines which, for example, place allocas in a different address
    space. `amdgcn-amd-amdhsa-amdgiz` is a specific example, which places allocas in
    address space 5 or the private (at the work item level) address space.
    DiamondLovesYou committed Jan 21, 2019
    Configuration menu
    Copy the full SHA
    4ffff8f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e041b4a View commit details
    Browse the repository at this point in the history
  3. LLVM value address space optimizations: leave values in their origina…

    …l address space where possible.
    DiamondLovesYou committed Jan 21, 2019
    Configuration menu
    Copy the full SHA
    1019e20 View commit details
    Browse the repository at this point in the history