mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-23 22:36:07 +00:00

See HLFIROps.td change for the description of the operation. The goal is to ease temporary storage elision for expression evaluation (typically evaluating the RHS directly inside the LHS) for expressions that do not have abtsractions in HLFIR and for which it is not clear adding one would bring much. The case that is implemented in [the following lowering patch](https://github.com/llvm/llvm-project/pull/118070) is the array call case, where adding a new hlfir.call would add complexity (needs to deal with dispatch, inlining ....).