[llvm-branch-commits] [flang] [flang] optimize array function calls using hlfir.eval_in_mem (PR #118070)

Tom Eccles via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Nov 29 04:15:34 PST 2024


================
@@ -24,6 +24,10 @@
 
 namespace Fortran::lower {
 
+struct LoweredResult {
+  std::variant<fir::ExtendedValue, hlfir::EntityWithAttributes> result;
+};
----------------
tblah wrote:

nit: Could this be simplified to
```c++
using LoweredResult = std::variant<fir::ExtendedValue, hlfir::EntityWithAttributes> result;
```

This way callers wouldn't have to add a `.result`. 

https://github.com/llvm/llvm-project/pull/118070


More information about the llvm-branch-commits mailing list