Feldspar / feldspar-compiler

This is the compiler for the Feldspar Language.
Other
22 stars 5 forks source link

Do not assume that loop index is unsigned 32-bit integer. #238

Closed kffaxen closed 4 years ago

kffaxen commented 4 years ago

Pass a variable, including type, to the function building for-loops so that the index variable can have any integer type, not just unsigned 32-bit. This enables a few simplifications, including eliminating the locName function. It also avoids implicit type conversions in the code generated for the pow function.