summaryrefslogtreecommitdiff
path: root/lib/codegen/include/code_gen/CG_outputRepr.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/codegen/include/code_gen/CG_outputRepr.h')
-rw-r--r--lib/codegen/include/code_gen/CG_outputRepr.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/codegen/include/code_gen/CG_outputRepr.h b/lib/codegen/include/code_gen/CG_outputRepr.h
new file mode 100644
index 0000000..0897007
--- /dev/null
+++ b/lib/codegen/include/code_gen/CG_outputRepr.h
@@ -0,0 +1,33 @@
+/*****************************************************************************
+ Copyright (C) 1994-2000 the Omega Project Team
+ Copyright (C) 2005-2011 Chun Chen
+ All Rights Reserved.
+
+ Purpose:
+ abstract base class of compiler IR code wrapper
+
+ Notes:
+
+ History:
+ 04/17/96 - Lei Zhou - created
+*****************************************************************************/
+
+#ifndef _CG_OUTPUTREPR_H
+#define _CG_OUTPUTREPR_H
+
+namespace omega {
+
+class CG_outputRepr {
+public:
+ CG_outputRepr() {}
+ //! shallow delete
+ virtual ~CG_outputRepr() { }
+ virtual CG_outputRepr *clone() const = 0;
+ //! delete actual IR code wrapped inside
+ virtual void clear() { }
+ virtual void dump() const {}
+};
+
+}
+
+#endif