llir-opt  0.0.1
Low-Level Post-Link Optimiser for OCaml and C
caml_alloc_inliner.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 class Func;
10 class CallInst;
11 
12 
13 
21 class CamlAllocInlinerPass final : public Pass {
22 public:
24  static const char *kPassID;
25 
27  CamlAllocInlinerPass(PassManager *passManager) : Pass(passManager) {}
28 
30  bool Run(Prog &prog) override;
31 
33  const char *GetPassName() const override;
34 };
CamlAllocInlinerPass
Definition: caml_alloc_inliner.h:21
CamlAllocInlinerPass::CamlAllocInlinerPass
CamlAllocInlinerPass(PassManager *passManager)
Initialises the pass.
Definition: caml_alloc_inliner.h:27
Func
Definition: func.h:30
PassManager
Definition: pass_manager.h:74
Pass
Definition: pass.h:17
CamlAllocInlinerPass::GetPassName
const char * GetPassName() const override
Returns the name of the pass.
Definition: caml_alloc_inliner.cpp:317
CamlAllocInlinerPass::Run
bool Run(Prog &prog) override
Runs the pass.
Definition: caml_alloc_inliner.cpp:260
Prog
Definition: prog.h:33
CamlAllocInlinerPass::kPassID
static const char * kPassID
Pass identifier.
Definition: caml_alloc_inliner.h:24