aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorjeanPerier <jperier@nvidia.com>2025-10-22 11:46:18 +0200
committerGitHub <noreply@github.com>2025-10-22 11:46:18 +0200
commitc9fb37c75f741f1179f2d2c661d27d36645b0310 (patch)
tree0f3556550cd295c037e745a0df4e66617aa0133a /clang/lib/Frontend/CompilerInvocation.cpp
parent104b78330662ec13fcdd472582589b2aee8428b9 (diff)
downloadllvm-c9fb37c75f741f1179f2d2c661d27d36645b0310.zip
llvm-c9fb37c75f741f1179f2d2c661d27d36645b0310.tar.gz
llvm-c9fb37c75f741f1179f2d2c661d27d36645b0310.tar.bz2
[flang][FIR] add fir.assumed_size_extent to abstract assumed-size extent encoding (#164452)
The purpose of this patch is to allow converting FIR array representation to memref when possible without hitting memref verifier issue. The issue was that FIR arrays may be assumed size, in which case the last dimension will not be known at runtime. Flang uses -1 to encode this to fulfill Fortran 2023 standard requirements in 18.5.3 point 5 about CFI_desc_t. When arrays are converted to memeref, if this `-1` reaches memeref operations, it triggers verifier errors (even if the conversion happened in code that guards the code to be entered at runtime if the array is assumed-size because folders/verifiers do not take into account reachability). This follows-up on discussions in #163505 merge requests
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions