[llvm-dev] [RFC] A new multidimensional array indexing intrinsic

Michael Kruse via llvm-dev llvm-dev at lists.llvm.org
Tue Jul 23 10:48:51 PDT 2019


Am Di., 23. Juli 2019 um 12:34 Uhr schrieb Philip Reames
<listmail at philipreames.com>:
> Er, why not use our existing first class array types?
>
> getelementptr double, [0 x [0 x double]]* %ptr, inrange i64 %i, inrange
> i64 %j

This is lowered to the equivalent of

      ((double*)ptr) + i*0 + j

where we want

      ((double*)ptr) + i*n + j


Michael


More information about the llvm-dev mailing list