commit | aeaf319b8c2207eb747079529f28d44d54bf1fd5 | [log] [tgz] |
---|---|---|
author | jeanPerier <jperier@nvidia.com> | Wed Jun 25 09:41:33 2025 +0200 |
committer | GitHub <noreply@github.com> | Wed Jun 25 09:41:33 2025 +0200 |
tree | 8bbc9630b562aa63f4a6edb211081845476b8ba4 | |
parent | 31545ca5f467fb0860ed3d09313451d547e41f5d [diff] |
[flang] avoid useless rebox of polymorphic scalars (#145507) Do not create new descriptor for polymorphic scalars when lowering hlfir.declare. hlfir.declare of box/class is lowered to a fir.rebox to ensure that local lower bounds and descriptor attributes (Pointer/Allocatable/None) are properly set-up in the descriptor associated to the symbol. For polymorphic scalar, this created a useless temporary descriptor. This was breaking invalid code #145256 that violates OPTIONAL usage rules. I am not fixing it primarily to support this invalid code, but rather because it is dumb to create a useless fir.rebox.
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.