[clang] [llvm] [NVPTX] Add builtin support for 'globaltimer' (PR #79765)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 9 12:06:29 PST 2024
================
@@ -140,6 +140,17 @@ define void @test_exit() {
ret void
}
+; CHECK-LABEL: test_globaltimer
+define i64 @test_globaltimer() {
+; CHECK: mov.u64 %r{{.*}}, %globaltimer;
+ %a = tail call i64 @llvm.nvvm.read.ptx.sreg.globaltimer()
----------------
jhuber6 wrote:
Done in https://github.com/llvm/llvm-project/commit/bb180856ec28efe305dc77ca4bb3db12d8932edf.
https://github.com/llvm/llvm-project/pull/79765
More information about the cfe-commits
mailing list