[Rewrite] Fixed 2d/3d arrays on .Net
authorthefiddler <stapostol@gmail.com>
Mon, 12 May 2014 11:03:27 +0000 (13:03 +0200)
committerthefiddler <stapostol@gmail.com>
Mon, 12 May 2014 11:03:27 +0000 (13:03 +0200)
commit3a94d8147fd15ea6920cadf078e164cb238250b3
tree26806f46b7b737d7e712c70d929d594a62927091
parentcd7342b68875d07fb30efdc634035b86ef9b3ea1
[Rewrite] Fixed 2d/3d arrays on .Net

Mono can use ldlen and ldelema on both 1d arrays (vectors) and 2d/3d
arrays. However, .Net can only use these instructions on 1d arrays -
higher rank arrays must use get_Length and Address explicitly.
Source/Generator.Rewrite/Program.cs