llvm/flang/runtime
peter klausler 8ba9ee46e4 [flang] Correct the subscripts used for arguments to character intrinsics
When chasing down another unrelated bug, I noticed that the
implementations of various character intrinsic functions assume
that the lower bounds of (some of) their arguments were 1.
This isn't necessarily the case, so I've cleaned them up, tweaked
the unit tests to exercise the fix, and regularized the allocation
pattern used for results to use SetBounds() before Allocate() rather
than the old original Descriptor::Allocate() wrapper around
CFI_allocate().

Since there were few other remaining uses of the old original
Descriptor::Allocate() wrapper, I also converted them to the
new one and deleted the old one.

Differential Revision: https://reviews.llvm.org/D104325
2021-06-16 10:26:25 -07:00
..
allocatable.cpp [flang] Implement more transformational intrinsic functions in runtime 2021-05-20 13:22:01 -07:00
allocatable.h
buffer.cpp
buffer.h
c-or-cpp.h
character.cpp [flang] Correct the subscripts used for arguments to character intrinsics 2021-06-16 10:26:25 -07:00
character.h
CMakeLists.txt [flang] Add initial implementation for CPU_TIME 2021-06-14 07:48:09 +00:00
complex-reduction.c [flang] Implement DOT_PRODUCT in the runtime 2021-05-13 10:40:07 -07:00
complex-reduction.h [flang] Implement DOT_PRODUCT in the runtime 2021-05-13 10:40:07 -07:00
config.h.cmake
connection.cpp [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
connection.h [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
copy.cpp [flang] Implement more transformational intrinsic functions in runtime 2021-05-20 13:22:01 -07:00
copy.h [flang] Implement more transformational intrinsic functions in runtime 2021-05-20 13:22:01 -07:00
cpp-type.h
derived.cpp
derived.h
descriptor-io.h [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
descriptor.cpp [flang] Correct the subscripts used for arguments to character intrinsics 2021-06-16 10:26:25 -07:00
descriptor.h [flang] Correct the subscripts used for arguments to character intrinsics 2021-06-16 10:26:25 -07:00
dot-product.cpp [flang] Implement MATMUL in the runtime 2021-05-18 10:59:52 -07:00
edit-input.cpp [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
edit-input.h
edit-output.cpp [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
edit-output.h
entry-names.h
environment.cpp
environment.h
extrema.cpp [flang] Implement NORM2 in the runtime 2021-05-07 13:23:21 -07:00
file.cpp
file.h
findloc.cpp
format-implementation.h
format.cpp
format.h [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
internal-unit.cpp
internal-unit.h
io-api.cpp [flang] Support legacy extension OPEN(ACCESS='APPEND') 2021-05-13 11:51:20 -07:00
io-api.h [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
io-error.cpp [flang] Fix race condition in runtime 2021-05-06 11:09:30 -07:00
io-error.h
io-stmt.cpp [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
io-stmt.h [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
iostat.cpp
iostat.h
ISO_Fortran_binding.cpp [flang] Add clang-tidy check for braces around if 2021-06-16 09:13:53 +00:00
lock.h
magic-numbers.h
main.cpp
main.h
matmul.cpp [flang] Implement MATMUL in the runtime 2021-05-18 10:59:52 -07:00
matmul.h [flang] Implement MATMUL in the runtime 2021-05-18 10:59:52 -07:00
memory.cpp
memory.h
misc-intrinsic.cpp
misc-intrinsic.h
namelist.cpp [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
namelist.h [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
numeric.cpp
numeric.h
pgmath.h.inc
product.cpp
random.cpp [flang] Fixed simple typo in runtime code 2021-06-10 11:14:25 -06:00
random.h
reduction-templates.h
reduction.cpp [flang] Implement DOT_PRODUCT in the runtime 2021-05-13 10:40:07 -07:00
reduction.h [flang] Implement MATMUL in the runtime 2021-05-18 10:59:52 -07:00
stat.cpp
stat.h
stop.cpp
stop.h
sum.cpp
terminator.cpp [flang] Fix race condition in runtime 2021-05-06 11:09:30 -07:00
terminator.h
time-intrinsic.cpp [flang] Add POSIX implementation for CPU_TIME 2021-06-14 09:41:11 +00:00
time-intrinsic.h [flang] Define the API for CPU_TIME 2021-06-09 08:20:58 +00:00
tools.cpp [flang] Implement more transformational intrinsic functions in runtime 2021-05-20 13:22:01 -07:00
tools.h [flang] Implement more transformational intrinsic functions in runtime 2021-05-20 13:22:01 -07:00
transformational.cpp [flang] Correct the subscripts used for arguments to character intrinsics 2021-06-16 10:26:25 -07:00
transformational.h [flang] Fix broken build of flang with clang 2021-05-20 13:49:31 -07:00
type-code.cpp
type-code.h
type-info.h [flang] Implement more transformational intrinsic functions in runtime 2021-05-20 13:22:01 -07:00
unit-map.cpp
unit-map.h
unit.cpp flang: include limits 2021-05-24 11:12:12 +02:00
unit.h [flang] Runtime must defer formatted/unformatted determination 2021-05-06 11:06:43 -07:00