[Mlir-commits] [mlir] [MLIR][NVVM] Add `NVVM_UnaryOp` Base Class (NFC) (PR #194378)

Pradeep Kumar llvmlistbot at llvm.org
Mon Apr 27 22:07:21 PDT 2026


================
@@ -302,6 +302,17 @@ class NVVM_SingleResultIntrinsicOp<string mnemonic, list<Trait> traits = [], str
   }];
 }
 
+// Base class for unary NVVM operations.
+class NVVM_UnaryOp<string mnemonic, list<Trait> traits = []> :
----------------
schwarzschild-radius wrote:

@grypp There are unary Integer instructions in PTX. Maybe we can use a different name or add a subclass to differentiate between integer and floating-point ops. Some unary Ops like sqrt have rounding modes as well

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


More information about the Mlir-commits mailing list