aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2024-02-13 10:06:25 -0600
committerGitHub <noreply@github.com>2024-02-13 10:06:25 -0600
commit11fcae69dbea4860e20ab799ecca9b0432d7f19d (patch)
tree1d209c1af823c9b2a25b5a75d4c6aee31daf975f /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent381a00de4fdcccd904dac6a0856fb44f12ba0abb (diff)
downloadllvm-11fcae69dbea4860e20ab799ecca9b0432d7f19d.zip
llvm-11fcae69dbea4860e20ab799ecca9b0432d7f19d.tar.gz
llvm-11fcae69dbea4860e20ab799ecca9b0432d7f19d.tar.bz2
[LLVM] Add `__builtin_readsteadycounter` intrinsic and builtin for realtime clocks (#81331)
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 patch only adds support for the NVPTX and AMDGPU targets. This is done as a new and separate builtin rather than an argument to `readcyclecounter` to avoid needing to change existing code and to make the separation more explicit.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions