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

[Clang] Emit error for duplicate mangled names within a lambda #107581

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Commits on Sep 6, 2024

  1. [Clang] Emit error for duplicate mangled names within a lambda

    When functions are passed as arguments to a lambda, it's possible for
    the mangled names of these functions to be the same despite the prototypes
    being different. For example:
    
      int non_streaming_fn(int);
      int streaming_fn(int) __arm_streaming;
    
      auto lambda_fn = [](const auto &f) { return f(); };
      return lambda_fn(non_streaming_fn) + lambda_fn(streaming_fn);
    
    Only one function will be generated for the lambda above and the __arm_streaming
    attribute from streaming_fn will be incorrectly applied to non_streaming_fn.
    With this change, an error will be emitted when a duplicate mangled name is
    found but the function prototypes do not match.
    kmclaughlin-arm committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    1e6f25c View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2024

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

Commits on Sep 16, 2024

  1. - Removed second SME attributes test

    - Added a test using calling convention attributes
    kmclaughlin-arm committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    33443e6 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2024

  1. - Renamed aarch64-sme-lambda-attributes.cpp to lambda-instantiation-m…

    …angling-conflicts.cpp
    
    - Replaced ifdefs in test with use of split-file
    kmclaughlin-arm committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    4b6d327 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2024

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

Commits on Oct 21, 2024

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