[Mlir-commits] [mlir] [mlir][spirv] Add definition for GL Log2 (PR #143409)

Igor Wodiany llvmlistbot at llvm.org
Mon Jun 9 10:18:13 PDT 2025


================
@@ -767,6 +767,36 @@ def SPIRV_GLTanhOp : SPIRV_GLUnaryArithmeticOp<"Tanh", 21, SPIRV_Float16or32> {
 
 // -----
 
+def SPIRV_GLLog2Op : SPIRV_GLUnaryArithmeticOp<"Log2", 30, SPIRV_Float16or32> {
+  let summary = "Result is the base-2 logarithm of x";
+
+  let description = [{
+    Result is the base-2 logarithm of x, i.e., the value y which satisfies the
+    equation x = 2y. The resulting value is NaN if x < 0. Moreover:
----------------
IgWod-IMG wrote:

Copy-paste typo :)

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


More information about the Mlir-commits mailing list