Move ast, xform, and legalize modules.

- cdsl.ast defines classes representing abstract syntax trees.
- cdsl.xform defines classes for instruction transformations.
- base.legalize defines legalization patterns.
This commit is contained in:
Jakob Stoklund Olesen
2016-11-08 12:29:17 -08:00
parent 5fa322f797
commit 09204ca14a
7 changed files with 14 additions and 13 deletions

View File

@@ -259,7 +259,7 @@ class Instruction(object):
Create an `ast.Apply` AST node representing the application of this
instruction to the arguments.
"""
from cretonne.ast import Apply
from .ast import Apply
return Apply(self, args)
@@ -312,5 +312,5 @@ class BoundInstruction(object):
Create an `ast.Apply` AST node representing the application of this
instruction to the arguments.
"""
from cretonne.ast import Apply
from .ast import Apply
return Apply(self, args)