[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));
Type resultType = castedOperands.front().getType();
Type funcType = getFunctionType(resultType, castedOperands);
StringRef funcName =
- getFunctionName(cast<LLVM::LLVMFunctionType>(funcType).getReturnType(),
- op.getFastmath());
+ ((const DerivedTy *)this)
----------------
ftynse wrote:
```suggestion
static_cast<const DerivedTy *>(this)
```
https://github.com/llvm/llvm-project/pull/123422
More information about the Mlir-commits
mailing list