Enzyme main
Loading...
Searching...
No Matches
FwdRetOpt< SourceOp > Class Template Referencefinal

Modifies return activites for the FwdDiffOp The activity promotion flow is as follows (depending on variable use): More...

Inheritance diagram for FwdRetOpt< SourceOp >:
Collaboration diagram for FwdRetOpt< SourceOp >:

Public Member Functions

LogicalResult matchAndRewrite (SourceOp uop, PatternRewriter &rewriter) const override
 

Detailed Description

template<typename SourceOp>
class FwdRetOpt< SourceOp >

Modifies return activites for the FwdDiffOp The activity promotion flow is as follows (depending on variable use):

      -----> enzyme_dupnoneed ----
     /                            \

enzyme_dup ---> enzyme_constnoneed \ / ------> enzyme_const --—

Definition at line 383 of file Ops.cpp.

Member Function Documentation

◆ matchAndRewrite()

template<typename SourceOp >
LogicalResult FwdRetOpt< SourceOp >::matchAndRewrite ( SourceOp uop,
PatternRewriter & rewriter ) const
inlineoverride

Definition at line 390 of file Ops.cpp.

References isMutable().


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