CIRCT  20.0.0git
Public Member Functions | List of all members
circt::firrtl::IntrinsicConverter Class Referenceabstract

Base class for Intrinsic Converters. More...

#include <FIRRTLIntrinsics.h>

Inheritance diagram for circt::firrtl::IntrinsicConverter:
Inheritance graph
[legend]

Public Member Functions

virtual ~IntrinsicConverter ()=default
 
virtual bool check (GenericIntrinsic gi)=0
 Checks whether the intrinsic is well-formed. More...
 
virtual void convert (GenericIntrinsic gi, GenericIntrinsicOpAdaptor adaptor, PatternRewriter &rewriter)=0
 Transform the intrinsic to its implementation. More...
 

Detailed Description

Base class for Intrinsic Converters.

Intrinsic converters contain validation logic, along with a converter method to transform generic intrinsic ops to their implementation.

Definition at line 191 of file FIRRTLIntrinsics.h.

Constructor & Destructor Documentation

◆ ~IntrinsicConverter()

virtual circt::firrtl::IntrinsicConverter::~IntrinsicConverter ( )
virtualdefault

Member Function Documentation

◆ check()

virtual bool circt::firrtl::IntrinsicConverter::check ( GenericIntrinsic  gi)
pure virtual

Checks whether the intrinsic is well-formed.

This or's multiple ParseResults together, returning true on failure.

◆ convert()

virtual void circt::firrtl::IntrinsicConverter::convert ( GenericIntrinsic  gi,
GenericIntrinsicOpAdaptor  adaptor,
PatternRewriter &  rewriter 
)
pure virtual

Transform the intrinsic to its implementation.

Implemented in circt::firrtl::IntrinsicOpConverter< OpTy >.


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