ONE - On-device Neural Engine
Loading...
Searching...
No Matches
enco::ConstantFoldingPass Struct Referencefinal

#include <ConstantFolding.h>

Collaboration diagram for enco::ConstantFoldingPass:

Public Member Functions

 PASS_CTOR (ConstantFoldingPass)
 
void run (const SessionID &sess) const override
 
- Public Member Functions inherited from enco::Pass
 Pass (const Name &name)
 
 Pass (const Pass &)=delete
 
 Pass (Pass &&)=delete
 
virtual ~Pass ()=default
 
const Namename (void) const
 

Detailed Description

Definition at line 31 of file ConstantFolding.h.

Member Function Documentation

◆ PASS_CTOR()

enco::ConstantFoldingPass::PASS_CTOR ( ConstantFoldingPass  )
inline

Definition at line 33 of file ConstantFolding.h.

34 {
35 // DO NOTHING
36 }

◆ run()

void enco::ConstantFoldingPass::run ( const SessionID sess) const
inlineoverridevirtual

Implements enco::Pass.

Definition at line 38 of file ConstantFolding.h.

38{ fold_constants(code(sess)); }
void fold_constants(enco::Code *code)
Evaluate "constant" expressions at compile time.
Code * code(const SessionID &sess)
Definition Session.cpp:54

References enco::code(), and enco::fold_constants().

Referenced by package.infer.session::inference().


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