llir-opt
0.0.1
Low-Level Post-Link Optimiser for OCaml and C
|
8 #include "core/inst_visitor.h"
33 bool VisitInst(
Inst &inst)
override {
return false; }
34 bool VisitAddInst(AddInst &inst)
override;
35 bool VisitSubInst(SubInst &inst)
override;
36 bool VisitStoreInst(StoreInst &inst)
override;
37 bool VisitCmpInst(CmpInst &inst)
override;
Definition: pass_manager.h:74
const char * GetPassName() const override
Returns the name of the pass.
Definition: peephole.cpp:30
Definition: peephole.h:18
bool Run(Prog &prog) override
Runs the pass.
Definition: peephole.cpp:36
PeepholePass(PassManager *passManager)
Initialises the pass.
Definition: peephole.h:24
static const char * kPassID
Pass identifier.
Definition: peephole.h:21
Definition: inst_visitor.h:15