llir-opt  0.0.1
Low-Level Post-Link Optimiser for OCaml and C
phi_taut.h
1 // This file if part of the llir-opt project.
2 // Licensing information can be found in the LICENSE file.
3 // (C) 2018 Nandor Licker. All rights reserved.
4 
5 #pragma once
6 
7 #include "core/pass.h"
8 
9 
10 
16 class PhiTautPass final : public Pass {
17 public:
19  static const char *kPassID;
20 
22  PhiTautPass(PassManager *passManager) : Pass(passManager) {}
23 
25  bool Run(Prog &prog) override;
26 
28  const char *GetPassName() const override;
29 };
PassManager
Definition: pass_manager.h:74
Pass
Definition: pass.h:17
PhiTautPass::Run
bool Run(Prog &prog) override
Runs the pass.
Definition: phi_taut.cpp:26
PhiTautPass::GetPassName
const char * GetPassName() const override
Returns the name of the pass.
Definition: phi_taut.cpp:55
Prog
Definition: prog.h:33
PhiTautPass::PhiTautPass
PhiTautPass(PassManager *passManager)
Initialises the pass.
Definition: phi_taut.h:22
PhiTautPass::kPassID
static const char * kPassID
Pass identifier.
Definition: phi_taut.h:19
PhiTautPass
Definition: phi_taut.h:16