aboutsummaryrefslogtreecommitdiff
path: root/src/main/stanza/passes.stanza
diff options
context:
space:
mode:
authorjackbackrack2015-05-01 12:13:32 -0700
committerjackbackrack2015-05-01 12:13:32 -0700
commit9eba69c6a6a756d0d9fbd6063c8a2e4d77aae570 (patch)
treee9c3edbc813a862674962e3a69c808b0b8215d8a /src/main/stanza/passes.stanza
parente3bf1ddc8491557e9cff90a6d85725765e733c35 (diff)
parent0a00a6aaa846b695a7a750cf40079d56a9bb94d6 (diff)
merge
Diffstat (limited to 'src/main/stanza/passes.stanza')
-rw-r--r--src/main/stanza/passes.stanza8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/main/stanza/passes.stanza b/src/main/stanza/passes.stanza
index 133f96c0..5f01f996 100644
--- a/src/main/stanza/passes.stanza
+++ b/src/main/stanza/passes.stanza
@@ -729,12 +729,6 @@ defn expand-expr (e:Expression) -> List<EF> :
val len = num-elems(type(e))
val ret = headn(tailn(exps,begin),len)
for r in ret map : EF(exp(r),DEFAULT)
- ;val b = exp(e)
- ;val exps = for x in generate-entry(name(b as WRef),type(b)) map :
- ;EF(WRef(name(x),type(x),NodeKind(),gender(e)),DEFAULT)
- ;val begin = index-of-elem(type(b) as BundleType,name(e))
- ;val len = num-elems(type(e))
- ;headn(tailn(exps,begin),len)
(e:WIndex) :
val exps = expand-expr(exp(e))
val len = num-elems(type(e))
@@ -755,8 +749,6 @@ defn lower-ports (ports:List<Port>) -> List<Port> :
defn type (s:WDefAccessor) -> Type : type(type(source(s)) as VectorType)
defn size (s:DefMemory) -> Int : size(type(s))
defn size (s:WDefAccessor) -> Int : size(type(source(s)) as VectorType)
-defn kind (e:WSubfield) -> Kind : kind(exp(e) as WRef|WSubfield|WIndex)
-defn kind (e:WIndex) -> Kind : kind(exp(e) as WRef|WSubfield|WIndex)
defn base-name (e:Expression) -> Symbol :
match(e) :
(e:WRef) : name(e)