summary refs log tree commit diff stats
path: root/nim/optast.pas
diff options
context:
space:
mode:
Diffstat (limited to 'nim/optast.pas')
-rw-r--r--nim/optast.pas34
1 files changed, 34 insertions, 0 deletions
diff --git a/nim/optast.pas b/nim/optast.pas
new file mode 100644
index 000000000..9f66a53db
--- /dev/null
+++ b/nim/optast.pas
@@ -0,0 +1,34 @@
+//
+//
+//           The Nimrod Compiler
+//        (c) Copyright 2008 Andreas Rumpf
+//
+//    See the file "copying.txt", included in this
+//    distribution, for details about the copyright.
+//
+
+unit optast;
+
+// Optimizations that can be done by AST transformations. The code generators
+// should work without the optimizer. The optimizer does the following:
+
+// - cross-module constant merging
+// - cross-module generic merging
+// - lowers set operations to bit operations
+// - inlining of procs
+// - ``s == ""`` --> ``len(s) == 0``
+// - optimization of ``&`` string operator
+
+interface
+
+{$include 'config.inc'}
+
+uses
+  nsystem, ast, astalgo, strutils, hashes, trees, treetab, platform, magicsys,
+  options, msgs, crc, idents, lists, types, ropes, nmath, wordrecg, rnimsyn;
+  
+implementation
+
+
+end.
+