[Mlir-commits] [mlir] [MLIR][Math][GPU] Add lowering of absi and fpowi to libdevice (PR #123422)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Sun Jan 19 11:56:53 PST 2025


================
@@ -72,13 +46,15 @@ struct OpToFuncCallLowering : public ConvertOpToLLVMPattern<SourceOp> {
 
     SmallVector<Value, 1> castedOperands;
     for (Value operand : adaptor.getOperands())
-      castedOperands.push_back(maybeCast(operand, rewriter));
+      castedOperands.push_back(
+          ((const DerivedTy *)this)->maybeCast(operand, rewriter));
----------------
ftynse wrote:

```suggestion
          static_cast<const DerivedTy *>(this)->maybeCast(operand, rewriter));
```

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


More information about the Mlir-commits mailing list