Skip to content

Commit 6bf9539

Browse files
author
whitequark
committedJun 29, 2015
Rename package py2llvm to compiler.
Since the package implements a typechecker along with a code generator, and the typechecker will be run before or together with transformations, this name is more descriptive.
1 parent f430bf3 commit 6bf9539

23 files changed

+19
-19
lines changed
 
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: ‎artiq/py2llvm/typing.py renamed to ‎artiq/compiler/typing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ def _coerce_binop(self, op, left, right):
639639
if types.is_tuple(left.type) or types.is_tuple(right.type):
640640
tuple_, other = self._order_by_pred(types.is_tuple, left, right)
641641
diag = diagnostic.Diagnostic("error",
642-
"py2llvm does not support passing tuples to '*'", {},
642+
"passing tuples to '*' is not supported", {},
643643
op.loc, [tuple_.loc])
644644
self.engine.process(diag)
645645
return

Diff for: ‎lit-test/py2llvm/typing/builtin_calls.py renamed to ‎lit-test/compiler/typing/builtin_calls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: %python -m artiq.py2llvm.typing %s >%t
1+
# RUN: %python -m artiq.compiler.typing %s >%t
22
# RUN: OutputCheck %s --file-to-check=%t
33

44
# CHECK-L: bool:<constructor bool>():bool

Diff for: ‎lit-test/py2llvm/typing/coerce.py renamed to ‎lit-test/compiler/typing/coerce.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: %python -m artiq.py2llvm.typing %s >%t
1+
# RUN: %python -m artiq.compiler.typing %s >%t
22
# RUN: OutputCheck %s --file-to-check=%t
33

44
1 | 2

Diff for: ‎lit-test/py2llvm/typing/error_builtin_calls.py renamed to ‎lit-test/compiler/typing/error_builtin_calls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: %python -m artiq.py2llvm.typing +diag %s >%t
1+
# RUN: %python -m artiq.compiler.typing +diag %s >%t
22
# RUN: OutputCheck %s --file-to-check=%t
33

44
a = 1

Diff for: ‎lit-test/py2llvm/typing/error_call.py renamed to ‎lit-test/compiler/typing/error_call.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: %python -m artiq.py2llvm.typing +diag %s >%t
1+
# RUN: %python -m artiq.compiler.typing +diag %s >%t
22
# RUN: OutputCheck %s --file-to-check=%t
33

44
# CHECK-L: ${LINE:+1}: error: cannot call this expression of type int

Diff for: ‎lit-test/py2llvm/typing/error_coerce.py renamed to ‎lit-test/compiler/typing/error_coerce.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: %python -m artiq.py2llvm.typing +diag %s >%t
1+
# RUN: %python -m artiq.compiler.typing +diag %s >%t
22
# RUN: OutputCheck %s --file-to-check=%t
33

44
# CHECK-L: ${LINE:+1}: error: expected '<<' operand to be of integer type, not float
@@ -17,7 +17,7 @@
1717
# CHECK-L: ${LINE:+1}: note: int(width='b), which cannot be added to a tuple
1818
(1,) + 2
1919

20-
# CHECK-L: ${LINE:+1}: error: py2llvm does not support passing tuples to '*'
20+
# CHECK-L: ${LINE:+1}: error: passing tuples to '*' is not supported
2121
(1,) * 2
2222

2323
# CHECK-L: ${LINE:+3}: error: expected '*' operands to be a list and an integer in this context

Diff for: ‎lit-test/py2llvm/typing/error_control_flow.py renamed to ‎lit-test/compiler/typing/error_control_flow.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: %python -m artiq.py2llvm.typing +diag %s >%t
1+
# RUN: %python -m artiq.compiler.typing +diag %s >%t
22
# RUN: OutputCheck %s --file-to-check=%t
33

44
# CHECK-L: ${LINE:+1}: error: return statement outside of a function

Diff for: ‎lit-test/py2llvm/typing/error_exception.py renamed to ‎lit-test/compiler/typing/error_exception.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: %python -m artiq.py2llvm.typing +diag %s >%t
1+
# RUN: %python -m artiq.compiler.typing +diag %s >%t
22
# RUN: OutputCheck %s --file-to-check=%t
33

44
try:

Diff for: ‎lit-test/py2llvm/typing/error_iterable.py renamed to ‎lit-test/compiler/typing/error_iterable.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: %python -m artiq.py2llvm.typing +diag %s >%t
1+
# RUN: %python -m artiq.compiler.typing +diag %s >%t
22
# RUN: OutputCheck %s --file-to-check=%t
33

44
# CHECK-L: ${LINE:+1}: error: type int(width='a) is not iterable

Diff for: ‎lit-test/py2llvm/typing/error_local_unbound.py renamed to ‎lit-test/compiler/typing/error_local_unbound.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: %python -m artiq.py2llvm.typing +diag %s >%t
1+
# RUN: %python -m artiq.compiler.typing +diag %s >%t
22
# RUN: OutputCheck %s --file-to-check=%t
33

44
# CHECK-L: ${LINE:+1}: fatal: name 'x' is not bound to anything

Diff for: ‎lit-test/py2llvm/typing/error_locals.py renamed to ‎lit-test/compiler/typing/error_locals.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: %python -m artiq.py2llvm.typing +diag %s >%t
1+
# RUN: %python -m artiq.compiler.typing +diag %s >%t
22
# RUN: OutputCheck %s --file-to-check=%t
33

44
x = 1

Diff for: ‎lit-test/py2llvm/typing/error_return.py renamed to ‎lit-test/compiler/typing/error_return.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: %python -m artiq.py2llvm.typing +diag %s >%t
1+
# RUN: %python -m artiq.compiler.typing +diag %s >%t
22
# RUN: OutputCheck %s --file-to-check=%t
33

44
# CHECK-L: ${LINE:+2}: error: cannot unify int(width='a) with NoneType

Diff for: ‎lit-test/py2llvm/typing/error_unify.py renamed to ‎lit-test/compiler/typing/error_unify.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: %python -m artiq.py2llvm.typing +diag %s >%t
1+
# RUN: %python -m artiq.compiler.typing +diag %s >%t
22
# RUN: OutputCheck %s --file-to-check=%t
33

44
a = 1

Diff for: ‎lit-test/py2llvm/typing/exception.py renamed to ‎lit-test/compiler/typing/exception.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: %python -m artiq.py2llvm.typing %s >%t
1+
# RUN: %python -m artiq.compiler.typing %s >%t
22
# RUN: OutputCheck %s --file-to-check=%t
33

44
# CHECK-L: Exception:<constructor Exception>

Diff for: ‎lit-test/py2llvm/typing/gcd.py renamed to ‎lit-test/compiler/typing/gcd.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: %python -m artiq.py2llvm.typing %s >%t
1+
# RUN: %python -m artiq.compiler.typing %s >%t
22

33
def _gcd(a, b):
44
if a < 0:

Diff for: ‎lit-test/py2llvm/typing/prelude.py renamed to ‎lit-test/compiler/typing/prelude.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: %python -m artiq.py2llvm.typing %s >%t
1+
# RUN: %python -m artiq.compiler.typing %s >%t
22
# RUN: OutputCheck %s --file-to-check=%t
33

44
# CHECK-L: x:<function len>

Diff for: ‎lit-test/py2llvm/typing/scoping.py renamed to ‎lit-test/compiler/typing/scoping.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: %python -m artiq.py2llvm.typing %s >%t
1+
# RUN: %python -m artiq.compiler.typing %s >%t
22
# RUN: OutputCheck %s --file-to-check=%t
33

44
def f():

Diff for: ‎lit-test/py2llvm/typing/unify.py renamed to ‎lit-test/compiler/typing/unify.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: %python -m artiq.py2llvm.typing %s >%t
1+
# RUN: %python -m artiq.compiler.typing %s >%t
22
# RUN: OutputCheck %s --file-to-check=%t
33

44
a = 1

0 commit comments

Comments
 (0)