diff options
author | Jean Perier <jperier@nvidia.com> | 2022-11-14 10:25:03 +0100 |
---|---|---|
committer | Jean Perier <jperier@nvidia.com> | 2022-11-14 10:27:12 +0100 |
commit | 32e7e17d860b17731bc9347ab0488ea072356f50 (patch) | |
tree | f793a7d280c8c338cb846dc456663375e1babe05 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | dd46a08008f76d6ac9fcc6a9e748b113bea3c758 (diff) | |
download | llvm-32e7e17d860b17731bc9347ab0488ea072356f50.zip llvm-32e7e17d860b17731bc9347ab0488ea072356f50.tar.gz llvm-32e7e17d860b17731bc9347ab0488ea072356f50.tar.bz2 |
[flang] Add hlfir.declare operation
This operation will be used to declare named variables in HLFIR.
See the added description in HLFIROpBase.td for more info about it.
The motivation behind this operation is described in https://reviews.llvm.org/D137634.
The FortranVariableInterface verifier is changed a bit. It used to
operate using the result type to verify the provided shape and length
parameters. This is a bit incorrect because what matters to verify the
information is the input address (This worked OK with fir.declare where
the input memref type is the same as the output result). Also, not all
operation defining variables will have an input memref with the same
meaning (hlfir.designate and hlfir.associate for instance).
Hence, this verifier is now optional and must be provided a memref to
operate.
Differential Revision: https://reviews.llvm.org/D137781
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions