File tree Expand file tree Collapse file tree 5 files changed +12
-11
lines changed Expand file tree Collapse file tree 5 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ trait StructExp extends StructOps with StructTags with BaseExp with EffectExp wi
178
178
// FIXME: move to codegen? we should be able to have different policies/naming schemes
179
179
case rm : RefinedManifest [_] => " Anon" + math.abs(rm.fields.map(f => f._1.## + f._2.toString.## ).sum)
180
180
case _ if (m <:< manifest[AnyVal ]) => m.toString
181
+ case _ if m.erasure.isArray => " ArrayOf" + structName(m.typeArguments.head)
181
182
case _ => m.erasure.getSimpleName + m.typeArguments.map(a => structName(a)).mkString(" " )
182
183
}
183
184
Original file line number Diff line number Diff line change 25
25
}
26
26
val x16 = x0 > 7
27
27
val x21 = if (x16) {
28
- val x6 = new Record[]Anon189207751 (x4,x5)
28
+ val x6 = new ArrayOfAnon189207751 (x4,x5)
29
29
x6
30
30
} else {
31
31
val x17 = x13
32
32
val x18 = x14
33
- val x19 = new Record[]Anon189207751 (x17,x18)
33
+ val x19 = new ArrayOfAnon189207751 (x17,x18)
34
34
x19
35
35
}
36
36
x13 = x4
37
37
x14 = x5
38
38
val x24 = x13
39
39
val x25 = x14
40
- val x26 = new Record[]Anon189207751 (x24,x25)
40
+ val x26 = new ArrayOfAnon189207751 (x24,x25)
41
41
val x27 = println(x26)
42
42
val x28 = println(x21)
43
43
x28
47
47
End of Generated Code
48
48
*******************************************/
49
49
50
- case class Record[]Anon189207751 (re: Array[Double], im: Array[Int])
50
+ case class ArrayOfAnon189207751 (re: Array[Double], im: Array[Int])
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ x13 = x11
34
34
x14 = x10
35
35
val x42 = x13
36
36
val x43 = x14
37
- val x44 = new Record[]Anon189207751 (x42,x43)
37
+ val x44 = new ArrayOfAnon189207751 (x42,x43)
38
38
val x45 = println(x44)
39
- val x46 = new Record[]Anon189207751 (x38,x39)
39
+ val x46 = new ArrayOfAnon189207751 (x38,x39)
40
40
val x47 = println(x46)
41
41
val x36 = x47
42
42
x36
46
46
End of Generated Code
47
47
*******************************************/
48
48
49
- case class Record[]Anon189207751 (re: Array[Int], im: Array[Double])
49
+ case class ArrayOfAnon189207751 (re: Array[Int], im: Array[Double])
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ var x4 = new Array[Int](100)
18
18
for (x1 <- 0 until 100) {
19
19
x4(x1) = x1
20
20
}
21
- val x17 = new Record[]Anon189207751 (x4,x4)
21
+ val x17 = new ArrayOfAnon189207751 (x4,x4)
22
22
val x18 = println(x17)
23
23
val x15 = x18
24
24
x15
28
28
End of Generated Code
29
29
*******************************************/
30
30
31
- case class Record[]Anon189207751 (re: Array[Int], im: Array[Int])
31
+ case class ArrayOfAnon189207751 (re: Array[Int], im: Array[Int])
Original file line number Diff line number Diff line change 34
34
} else {
35
35
x5
36
36
}
37
- val x27 = new Record[]Anon189207751 (x4,x26)
37
+ val x27 = new ArrayOfAnon189207751 (x4,x26)
38
38
val x28 = println(x27)
39
39
x28
40
40
}
43
43
End of Generated Code
44
44
*******************************************/
45
45
46
- case class Record[]Anon189207751 (re: Array[Int], im: Array[Double])
46
+ case class ArrayOfAnon189207751 (re: Array[Int], im: Array[Double])
You can’t perform that action at this time.
0 commit comments