Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thank you @kiranchandramohan ! A few micro nits, otherwise LGTM!
flang/test/Fir/convert-to-llvm.fir | ||
---|---|---|
206 | Could %arg0 and %arg1 be index instead? Wouldn't that make this test much simpler? | |
218 | [nit] M is a bit enigmatic without the original source code. You could rename as N_ROWS (and N as N_COLS). | |
250 | It might be LEN_SIZE rather than TOTAL_SIZE, not sure! |
Minor changes to address review comments.
Pass the dimensions as arguments instead of loading them.
Use index types to avoid conversion.
trim the allocmem/free operations of attributes.
Thanks @awarzynski. I have made the suggested changes.
flang/test/Fir/convert-to-llvm.fir | ||
---|---|---|
206 | Yes, it will make it a simpler test. I have made the change. The original intent was to add a test that would model the input coming from the lowering and add the fortran source corresponding to it. | |
218 | Have changed to NROWS, NCOLS. |
Could %arg0 and %arg1 be index instead? Wouldn't that make this test much simpler?