[Mlir-commits] [mlir] [NVVM][MLIR] Remove Pure trait from clock, clock64, globaltimer Ops (PR #147608)

Guray Ozen llvmlistbot at llvm.org
Wed Jul 9 08:59:49 PDT 2025


================
@@ -159,6 +159,13 @@ class NVVM_SpecialRegisterOp<string mnemonic, list<Trait> traits = []> :
   let assemblyFormat = "attr-dict `:` type($res)";
 }
 
+// NVVM_NCSpecialRegisterOp represents a non-constant special register
+class NVVM_NCSpecialRegisterOp<string mnemonic, list<Trait> traits = []> :
----------------
grypp wrote:

non-constant means this op isn't pure right?

in that case, can we do the following change? 
```
NVVM_NCSpecialRegisterOp -> NVVM_SpecialRegisterOp
NVVM_SpecialRegisterOp   -> NVVM_PureSpecialRegisterOp
```

https://github.com/llvm/llvm-project/pull/147608


More information about the Mlir-commits mailing list