-
Notifications
You must be signed in to change notification settings - Fork 1
/
trimaran_interface.h
74 lines (55 loc) · 2.45 KB
/
trimaran_interface.h
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/***************************************************************************
Trimaran_interface.h - description
-------------------
begin : Sat Aug 17 2002
copyright : (C) 2002 by Davide Patti
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef TRIMARAN_INTERFACE_H
#define TRIMARAN_INTERFACE_H
#include<string>
#include <cstdlib>
#include <unistd.h>
#include <fstream>
#include "processor.h"
#include "mem_hierarchy.h"
#include "common.h"
#include "compiler.h" //db
using namespace std;
class Trimaran_interface {
public:
Trimaran_interface(const string& base_dir);
~Trimaran_interface();
//TODO: needed ??
Compiler compiler; //db
void set_benchmark(string new_benchmark);
void set_save_tcclog(bool do_save_log);
void set_continue_on_failure(bool value);
void set_environment(const string& path);
string get_benchmark_name() const;
void compile_hmdes_file(const string& path) const;
void compile_benchmark(Compiler*, const string& path); //db
void execute_benchmark(Compiler*, const string& path,const string& cache_dir); //db
void save_processor_config(const Processor&,const string& path) const;
void load_processor_config(Processor*,const string& filename) const;
void save_mem_config(const Mem_hierarchy&,const string& filename) const;
void load_mem_config(Mem_hierarchy*,const string& filename) const;
void save_compiler_parameter(const Compiler&, const string& filename) const; //db
void load_compiler_parameter(Compiler*, const string& filename) const; //db
Dynamic_stats get_dynamic_stats(const string& filename);
private:
string current_benchmark;
string base_path;
bool do_hyperblock;
bool do_save_log;
bool continue_on_failure;
};
#endif