aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2024-02-12 07:07:48 -0600
committerGitHub <noreply@github.com>2024-02-12 07:07:48 -0600
commit2ac8e6b7f5b8f495f496a55512e5ea452beb0bca (patch)
tree0e6e3297a2e9c4c846f11c0fa5135aefac729f24 /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent45260bf23b802047ab4fd888b8bf2b32e4c5eb69 (diff)
downloadllvm-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