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

[flang2] byval and sret attributes should have associated types #1420

Merged

Commits on Sep 21, 2023

  1. [flang2] byval and sret attributes should have associated types

    When the return value of the function is a structure, the ABI might require
    that the caller pass the structure into the function call as an implicit
    input argument; in such cases the generated IR for the argument will
    have the sret attribute. Similarly, pass-by-value arguments are given
    the byval attribute in the IR. Since the adoption of opaque pointers,
    such attributes are required to be accompanied with the pointee type. This
    patch fixes flang2 to generate correct IR for such argument/return types.
    
    Co-authored-by: Liuyunlong <liuyunlong16@huawei.com>
    bryanpkc and liuyunlong16 committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    f8fa3a7 View commit details
    Browse the repository at this point in the history