[Mlir-commits] [mlir] [mlir][nvgpu] add `nvgpu.rcp` op (PR #100965)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Jul 29 00:04:07 PDT 2024
================
@@ -20,6 +20,7 @@
#ifndef NVGPU
#define NVGPU
+include "mlir/Interfaces/InferTypeOpInterface.td"
----------------
Observer007 wrote:
Ok, got it. Let me update the assembly format.
> You could use PredOpTrait or SameOperandsAndResultType, or handle it in the verifier. Does SameOperandsAndResultType forces to infer result type?
Yes, `SameOperandsAndResultType` relies on `InferTypeOpInterface` and it forces to create build function with `InferReturnTypes`.
https://github.com/llvm/llvm-project/pull/100965
More information about the Mlir-commits
mailing list