[Mlir-commits] [mlir] [MLIR][NVVM] Add PTX predefined special registers (PR #112343)
Guray Ozen
llvmlistbot at llvm.org
Tue Oct 15 11:48:28 PDT 2024
================
@@ -189,6 +202,13 @@ def NVVM_ClusterDim : NVVM_SpecialRangeableRegisterOp<"read.ptx.sreg.cluster.nct
// Clock registers
def NVVM_ClockOp : NVVM_SpecialRegisterOp<"read.ptx.sreg.clock">;
def NVVM_Clock64Op : NVVM_SpecialRegisterOp<"read.ptx.sreg.clock64">;
+def NVVM_GlobalTimerOp : NVVM_SpecialRegisterOp<"read.ptx.sreg.globaltimer">;
+
+//===----------------------------------------------------------------------===//
+// envreg registers
+foreach index = !range(0, 32) in {
+ def NVVM_EnvReg # index # Op : NVVM_SpecialRegisterOp<"read.ptx.sreg.envreg" # index>;
----------------
grypp wrote:
What are these registers for?
https://github.com/llvm/llvm-project/pull/112343
More information about the Mlir-commits
mailing list