Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Without any optimization or when it cannot be optimized before bufferization, an hlfir.elemental lowers to an array temporary. Its codegen consists in: - allocating a temp given the type, shape, and length parameter arguments. - generating a loop nest given the elemental shape - inlining the body of the elemental inside the loops, and replacing the yield_element by an assignment to an element of the temp. Differential Revision: https://reviews.llvm.org/D140093
- Loading branch information
1 parent
95ec1a6
commit c2e3cb3
Showing
6 changed files
with
321 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.