MLIR 22.0.0git
mlir::spirv::ElementwiseOpPattern< Op, SPIRVOp > Struct Template Reference

Converts elementwise unary, binary and ternary standard operations to SPIR-V operations. More...

#include "Conversion/SPIRVCommon/Pattern.h"

Inheritance diagram for mlir::spirv::ElementwiseOpPattern< Op, SPIRVOp >:

Public Member Functions

LogicalResult matchAndRewrite (Op op, typename Op::Adaptor adaptor, ConversionPatternRewriter &rewriter) const override

Detailed Description

template<typename Op, typename SPIRVOp>
struct mlir::spirv::ElementwiseOpPattern< Op, SPIRVOp >

Converts elementwise unary, binary and ternary standard operations to SPIR-V operations.

Definition at line 23 of file Pattern.h.

Member Function Documentation

◆ matchAndRewrite()

template<typename Op, typename SPIRVOp>
LogicalResult mlir::spirv::ElementwiseOpPattern< Op, SPIRVOp >::matchAndRewrite ( Op op,
typename Op::Adaptor adaptor,
ConversionPatternRewriter & rewriter ) const
inlineoverride

The documentation for this struct was generated from the following file: