[flang] Do not omit fir.ref in getTypeAsString
authorValentin Clement <clementval@gmail.com>
Tue, 23 May 2023 22:07:19 +0000 (15:07 -0700)
committerValentin Clement <clementval@gmail.com>
Tue, 23 May 2023 22:07:40 +0000 (15:07 -0700)
commit6e3dcd350d990947ecbb3f03b17c95181bdad529
treed73a6e1a3c263e868318a6a1a83e25f7a55a1514
parent804af933f7310f78d91e13ad8a13b64b00249614
[flang] Do not omit fir.ref in getTypeAsString

Do not omit fir.ref when creating the string representation to we can
have different representation for `!fir.ref<i32>` and `i32`.

Reviewed By: razvanlupusoru

Differential Revision: https://reviews.llvm.org/D151261
flang/include/flang/Optimizer/Dialect/FIRType.h
flang/lib/Optimizer/Dialect/FIRType.cpp
flang/test/Lower/OpenACC/acc-loop.f90
flang/test/Lower/OpenACC/acc-parallel-loop.f90
flang/test/Lower/OpenACC/acc-parallel.f90
flang/test/Lower/OpenACC/acc-serial-loop.f90
flang/test/Lower/OpenACC/acc-serial.f90
flang/unittests/Optimizer/FIRTypesTest.cpp