llvm-project/flang/lib/Evaluate
Peter Klausler cea3638812 [flang] Avoid code duplication in mixed expressions
Rather than represent the mixed real/complex subexpression x*(a,b)
as (x*a,x*b), use (x,0)*(a,b) to avoid a potential code duplication
in current lowering code.  Same for mixed division, and for mixed
integer*complex and integer/complex cases.

Differential Review: https://reviews.llvm.org/D115732
2021-12-15 13:23:50 -08:00
..
CMakeLists.txt [flang] Improve runtime interface with C99 complex 2021-10-01 08:45:24 +02:00
call.cpp [flang][NFC] Address warnings from Windows build 2021-10-12 16:00:09 -07:00
character.h [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
characteristics.cpp [flang] Adjust names in Semantics that imply too much (NFC) 2021-12-01 11:19:19 -08:00
check-expression.cpp [flang] Adjust names in Semantics that imply too much (NFC) 2021-12-01 11:19:19 -08:00
common.cpp [flang] Add isnan() extension intrinsic function, with folding 2020-11-11 11:40:57 -08:00
complex.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
constant.cpp [flang] Fix ORDER= argument to RESHAPE 2021-11-12 10:25:00 -08:00
expression.cpp [flang] Revert 3 commits pushed by mistake along b7c07ce15f 2021-10-01 09:01:31 +02:00
fold-character.cpp [flang] Fold MAXLOC and MINLOC 2021-10-05 11:22:02 -07:00
fold-complex.cpp [flang] Fold CSHIFT 2021-08-30 13:01:56 -07:00
fold-designator.cpp [flang] (NFC) Expose internal idiom as utility API 2021-05-13 11:19:37 -07:00
fold-implementation.h [flang] Fix folding of ac-implied-do indices in structure c'tors 2021-12-09 18:03:04 -08:00
fold-integer.cpp [flang] Fix combined folding of FINDLOC/MAXLOC/MINLOC 2021-10-29 11:00:11 -07:00
fold-logical.cpp [flang] Fold BTEST 2021-10-18 13:46:46 -07:00
fold-real.cpp [flang] Define IEEE_SCALB, IEEE_NEXT_AFTER, IEEE_NEXT_DOWN, IEEE_NEXT_UP 2021-10-06 12:10:14 -07:00
fold-reduction.cpp [flang] Fold FINDLOC() 2021-09-30 12:08:10 -07:00
fold-reduction.h [flang] Fold MAXLOC and MINLOC 2021-10-05 11:22:02 -07:00
fold.cpp [flang] Fix folding of ac-implied-do indices in structure c'tors 2021-12-09 18:03:04 -08:00
formatting.cpp [flang] Validate SIZE(x,DIM=n) dimension for assumed-size array x 2021-09-17 10:14:18 -07:00
host.cpp [flang] Fix setting mxcsr on MSVC 2020-07-08 07:25:25 -05:00
host.h [flang] Rework host runtime folding and enable REAL(2) folding with it. 2020-10-14 16:40:44 +02:00
initial-image.cpp [flang] Include default component initialization in static initializers 2021-09-01 09:40:37 -07:00
int-power.h [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
integer.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
intrinsics-library.cpp [flang] evaluate: Fold SQRT, HYPOT, & CABS 2021-09-07 10:33:11 -07:00
intrinsics.cpp [flang] Fix usage & catch errors for MAX/MIN with keyword= arguments 2021-11-30 12:53:47 -08:00
logical.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
real.cpp [flang] Fix test regression from SQRT folding 2021-09-30 11:35:44 -07:00
shape.cpp [flang] Adjust names in Semantics that imply too much (NFC) 2021-12-01 11:19:19 -08:00
static-data.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
tools.cpp [flang] Avoid code duplication in mixed expressions 2021-12-15 13:23:50 -08:00
type.cpp [flang] [NFC] Repair build with GCC 7.3 2021-06-22 13:52:30 -07:00
variable.cpp [flang] Deal with negative character lengths in semantics 2021-11-17 09:49:15 -08:00