systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
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
19using namespace clang;
20using namespace systemc_clang;
21
22class SAPlugin : public SystemCConsumer {
23
24public:
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_ */
bool postFire()
Definition SAPlugin.h:27
SAPlugin(CompilerInstance &ci)
Definition SAPlugin.h:25
void dump(raw_ostream &)
Definition Model.cpp:141
This is the main consumer class that beings the parsing of SystemC.
Clang forward declarations.
Definition FindArgument.h:6