[Mlir-commits] [llvm] [mlir] [MLIR][NVVM] Add globaltimer_lo support in NVVM Dialect and NVPTX backend (PR #154672)
Dharuni R Acharya
llvmlistbot at llvm.org
Thu Aug 21 03:25:00 PDT 2025
================
@@ -4358,10 +4358,12 @@ let hasSideEffects = 1 in {
def SREG_CLOCK : PTX_READ_SREG_R32<"clock", int_nvvm_read_ptx_sreg_clock>;
def SREG_CLOCK64 : PTX_READ_SREG_R64<"clock64", int_nvvm_read_ptx_sreg_clock64>;
def SREG_GLOBALTIMER : PTX_READ_SREG_R64<"globaltimer", int_nvvm_read_ptx_sreg_globaltimer>;
+ def SREG_GLOBALTIMER_LO : PTX_READ_SREG_R32<"globaltimer_lo", int_nvvm_read_ptx_sreg_globaltimer_lo>;
----------------
DharuniRAcharya wrote:
Just to clarify - `globaltimer_hi` essentially captures the upper 32 bits of 64 bits `globaltimer`. Since the `globaltimer` and `globaltimer_lo` are available now, the upper 32 bits alone do not hold much significance.
https://github.com/llvm/llvm-project/pull/154672
More information about the Mlir-commits
mailing list