This patch extends the FIRToLLVMLowering pass in Flang by adding a
hook to transform fir.field_index to a sequence of LLVM MLIR
instructions.
This is part of the upstreaming effort from the fir-dev branch in [1].
[1] https://github.com/flang-compiler/f18-llvm-project
Originally written by:
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Co-authored-by: Jean Perier <jperier@nvidia.com>
Nit: Can you add another field to the struct and check its index too?