systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
TimeAnalysis.h
Go to the documentation of this file.
1//===-- src/TimeAnalysis.h - systec-clang class definition -------*- C++
2//-*-===//
3//
4// systemc-clang: SystemC Parser
5//
6// This file is distributed under the TBD
7// License. See LICENSE.TXT for details.
8//
9//===----------------------------------------------------------------------===//
14//===----------------------------------------------------------------------===//
15#ifndef _TIME_ANALYSIS_H_
16#define _TIME_ANALYSIS_H_
17#include "SystemCClang.h"
18
19using namespace clang;
20using namespace systemc_clang;
21
23
24public:
25 TimeAnalysis(CompilerInstance &ci) : SystemCConsumer(ci) {}
26
28
29 bool postFire() {
30 Model *model = getSystemCModel();
31
32 // Just dump the model traits.
33 llvm::errs() << "\n TimeAnalysis plugin is active\n";
34 // model->dump(llvm::errs());
35
36 _gsauto = new GlobalSuspensionAutomata(model, _os, &_context);
40 _gsauto->dump();
41
42 return true;
43 }
44
46};
47
48#endif /* _OoO_ANALYSIS_H_ */
GlobalSuspensionAutomata * getGSauto()
GlobalSuspensionAutomata * _gsauto
TimeAnalysis(CompilerInstance &ci)
bool postFire()
This is the main consumer class that beings the parsing of SystemC.
Clang forward declarations.
Definition FindArgument.h:6