-
Notifications
You must be signed in to change notification settings - Fork 140
/
Copy pathOptimizationUtil.hpp
44 lines (36 loc) · 1.32 KB
/
OptimizationUtil.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*******************************************************************************
*
* (c) Copyright IBM Corp. 2000, 2016
*
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0 and
* Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* The Apache License v2.0 is available at
* http://www.opensource.org/licenses/apache2.0.php
*
* Contributors:
* Multiple authors (IBM Corp.) - initial implementation and documentation
*******************************************************************************/
#ifndef TR_OptimizationUtil_INCL
#define TR_OptimizationUtil_INCL
#include "compile/Compilation.hpp" // for Compilation
#include "env/TRMemory.hpp" // for Allocator, Allocatable, etc
namespace TR
{
class OptimizationUtil: public TR::Allocatable<OptimizationUtil, TR::Allocator>
{
public:
OptimizationUtil(TR::Compilation *comp) : _comp(comp) {}
TR::Compilation *comp() { return _comp; }
TR_FrontEnd *fe() {return _comp->fe(); }
TR::Allocator allocator() { return comp()->allocator(); }
TR_Memory * trMemory() { return comp()->trMemory(); }
private:
TR::Compilation *_comp;
};
}
#endif