[Mlir-commits] [mlir] [MLIR][ROCDL] Convert `math::fpowi` to ROCDL	call (PR #122640)
    llvmlistbot at llvm.org 
    llvmlistbot at llvm.org
       
    Mon Jan 13 10:08:52 PST 2025
    
    
  
================
@@ -57,9 +58,9 @@ struct OpToFuncCallLowering : public ConvertOpToLLVMPattern<SourceOp> {
         std::is_base_of<OpTrait::OneResult<SourceOp>, SourceOp>::value,
         "expected single result op");
 
-    static_assert(std::is_base_of<OpTrait::SameOperandsAndResultType<SourceOp>,
-                                  SourceOp>::value,
-                  "expected op with same operand and result types");
+    if (op->getResultTypes().front() != op->getOperand(0).getType())
+      return rewriter.notifyMatchFailure(
+          op, "expected op with same operand and result types");
----------------
lialan wrote:
ahh, love the idea. updated.
https://github.com/llvm/llvm-project/pull/122640
    
    
More information about the Mlir-commits
mailing list