diff options
author | Joseph Huber <huberjn@outlook.com> | 2024-02-12 07:07:48 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 07:07:48 -0600 |
commit | 2ac8e6b7f5b8f495f496a55512e5ea452beb0bca (patch) | |
tree | 0e6e3297a2e9c4c846f11c0fa5135aefac729f24 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | 45260bf23b802047ab4fd888b8bf2b32e4c5eb69 (diff) | |
download | llvm-2ac8e6b7f5b8f495f496a55512e5ea452beb0bca.zip llvm-2ac8e6b7f5b8f495f496a55512e5ea452beb0bca.tar.gz llvm-2ac8e6b7f5b8f495f496a55512e5ea452beb0bca.tar.bz2 |
[NVPTX] Implement `__builtin_readcyclecounter` on NVPTX (#81344)
Summary:
This patch simply states that `__builtin_readcyclecounter` is legal on
NVPTX and makes it return the value from the `clock64` sreg. The timer
intrinsics are marked as having side effects, which is desireable for
timing primitives and required to pattern match the instrinic DAG.
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
0 files changed, 0 insertions, 0 deletions