[flang] Reconstruct binding tables for fir.dispatch codegen
authorValentin Clement <clementval@gmail.com>
Tue, 18 Oct 2022 10:12:11 +0000 (12:12 +0200)
committerValentin Clement <clementval@gmail.com>
Tue, 18 Oct 2022 10:12:32 +0000 (12:12 +0200)
commitfaf0e1fbf90f14a92042a83f6cb1239791674412
tree135449822a83618e573b9531d2a5b27b7fe4fb63
parentbd6bf3499f7a53c4b369b132e0b90132bfe83f33
[flang] Reconstruct binding tables for fir.dispatch codegen

Binding tables are needed to perform the fir.dispatch code generation.
The binding tables are defined as fir.global from the initial lowering.
This patch adds the ability to reconstruct the binding tables information
and store the procedure name and binding index for later use by the
fir.dispatch code generation.
Tests will come with follow up patch that makes full use of this information.

Reviewed By: jeanPerier

Differential Revision: https://reviews.llvm.org/D136141
flang/lib/Optimizer/CodeGen/CodeGen.cpp