~ubuntu-branches/ubuntu/trusty/ffc/trusty

« back to all changes in this revision

Viewing changes to ffc/optimization.py

  • Committer: Bazaar Package Importer
  • Author(s): Johannes Ring
  • Date: 2010-02-03 20:22:35 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100203202235-fe8d0kajuvgy2sqn
Tags: 0.9.0-1
* New upstream release.
* debian/control: Bump Standards-Version (no changes needed).
* Update debian/copyright and debian/copyright_hints.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""
 
2
Compiler stage 5: optimization
 
3
------------------------------
 
4
 
 
5
This module implements the optimization of an intermediate code
 
6
representation.
 
7
"""
 
8
 
 
9
__author__ = "Anders Logg (logg@simula.no)"
 
10
__date__ = "2009-12-22"
 
11
__copyright__ = "Copyright (C) 2009 " + __author__
 
12
__license__  = "GNU GPL version 3 or any later version"
 
13
 
 
14
# Last changed: 2009-12-22
 
15
 
 
16
# FFC modules
 
17
from ffc.log import info, begin, end
 
18
 
 
19
def optimize_ir(ir, form_data):
 
20
    "Optimize intermediate form representation."
 
21
 
 
22
    begin("Compiler stage 3: Optimizing intermediate representation")
 
23
    info("Optimization is currently not implemented")
 
24
    end()
 
25
 
 
26
    return ir