systemc-clang
2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
src
SAPlugin.h
Go to the documentation of this file.
1
//===-- src/SAPlugin.h - systec-clang class definition -------*- C++ -*-===//
2
//
3
// systemc-clang: SystemC Parser
4
//
5
// This file is distributed under the University of Illinois License.
6
// See LICENSE.mkd for details.
7
//
8
//===----------------------------------------------------------------------===//
13
//===----------------------------------------------------------------------===//
14
#ifndef _SA_PLUGIN_H_
15
#define _SA_PLUGIN_H_
16
17
#include "
SystemCClang.h
"
18
19
using namespace
clang
;
20
using namespace
systemc_clang
;
21
22
class
SAPlugin
:
public
SystemCConsumer
{
23
24
public
:
25
SAPlugin
(CompilerInstance &ci) :
SystemCConsumer
(ci) {}
26
// Virtual methods.// void preFire();// void fire();// void postFire();
27
bool
postFire
() {
28
llvm::errs() <<
"\n New plugin for SAPlugin\n"
;
29
Model
*model =
getSystemCModel
();
30
31
model->
dump
(llvm::errs());
32
return
true
;
33
}
34
};
35
36
#endif
/* _SA_PLUGIN_H_ */
SystemCClang.h
SAPlugin
Definition
SAPlugin.h:22
SAPlugin::postFire
bool postFire()
Definition
SAPlugin.h:27
SAPlugin::SAPlugin
SAPlugin(CompilerInstance &ci)
Definition
SAPlugin.h:25
systemc_clang::Model
Definition
Model.h:24
systemc_clang::Model::dump
void dump(raw_ostream &)
Definition
Model.cpp:141
systemc_clang::SystemCConsumer
This is the main consumer class that beings the parsing of SystemC.
Definition
SystemCClang.h:47
systemc_clang::SystemCConsumer::getSystemCModel
Model * getSystemCModel()
Definition
SystemCClang.cpp:227
clang
Clang forward declarations.
Definition
FindArgument.h:6
systemc_clang
Definition
SplitCFG.h:10
Generated by
1.12.0