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

[LLVM] Add __builtin_readsteadycounter intrinsic and builtin for realtime clocks #81331

Merged
merged 1 commit into from
Feb 13, 2024

Commits on Feb 13, 2024

  1. [LLVM] Add __builtin_readsteadycounter intrinsic and buiiltin

    Summary:
    This patch adds a new intrinsic and builtin function mirroring the
    existing `__builtin_readcyclecounter`. The difference is that this
    implementation targets a separate counter that some targets have which
    returns a fixed frequency clock that can be used to determine elapsed
    time, this is different compared to the cycle counter which often has
    variable frequency. This is currently only valid for the NVPTX and
    AMDGPU targets.
    jhuber6 committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    4a0ee4b View commit details
    Browse the repository at this point in the history