forked from M-Labs/artiq
1
0
Fork 0

transforms/inline: let array calls through

This commit is contained in:
Sebastien Bourdeauducq 2014-09-09 17:13:26 +08:00
parent f410b4d241
commit e2ca571c89
1 changed files with 3 additions and 2 deletions

View File

@ -32,7 +32,7 @@ class _ReferenceManager:
# reserved names
for kg in core_language.kernel_globals:
self.use_count[kg] = 1
for name in ("int", "round", "int64", "round64",
for name in ("int", "round", "int64", "round64", "array",
"range", "Fraction", "Quantity",
"s_unit", "Hz_unit", "microcycle_unit"):
self.use_count[name] = 1
@ -113,7 +113,8 @@ class _ReferenceManager:
_embeddable_calls = {
core_language.delay, core_language.at, core_language.now,
core_language.syscall,
range, int, round, core_language.int64, core_language.round64,
range, int, round,
core_language.int64, core_language.round64, core_language.array,
Fraction, units.Quantity
}