[Mlir-commits] [mlir] [mlir][llvmir] Add llvm.intr.ldexp operation (PR #133070)

Letu Ren llvmlistbot at llvm.org
Wed Mar 26 12:37:56 PDT 2025


================
@@ -106,10 +106,22 @@ def LLVM_IsFPClass : LLVM_OneResultIntrOp<"is.fpclass", [], [0], [Pure],
   let arguments = (ins LLVM_ScalarOrVectorOf<LLVM_AnyFloat>:$in, I32Attr:$bit);
 }
 
+class LLVM_PowFI<string func> :
+    LLVM_OneResultIntrOp<func, [], [0,1],
+        [Pure], /*requiresFastmath=*/1> {
+    let arguments =
+        (ins LLVM_ScalarOrVectorOf<LLVM_AnyFloat>:$val,
+            AnyInteger:$power,
+            DefaultValuedAttr<LLVM_FastmathFlagsAttr, "{}">:$fastmathFlags);
----------------
FantasqueX wrote:

I got it. It's signless instead of unsigned. Thanks for your explanation!

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


More information about the Mlir-commits mailing list