llvm-capstone/flang/test
Mats Petersson dc4bf2c33c [flang][OpenMP]Make omp.wsloop arguments appear in memory (#1277)
As per issue #1196, the loop induction variable, which is an argument
in the omp.wsloop operation, does not have a memory location, so when
passed to a function or subroutine, the reference to the value is not
a memory location, but the value of the induction variable. The callee
function/subroutine is then trying to dereference memory at address 1
or some other "not a good memory location".

This is fixed by creating a temporary memory location and storing the
value of the induction variable in that.

Test fixes as a consequence of the changed code generated.

Add checking for some of the omp-unstructured.f90 to check for alloca,
store and load operations, to ensure the correct flow. Add a test
for CYCLE inside a omp-do loop.

Also convert to use -emit-fir in the omp-unstructrued, and make
the symbol matching consistent in the omp-wsloop-variable test.

Reviewed By: peixin

Differential Revision: https://reviews.llvm.org/D126711
2022-06-01 17:20:06 +01:00
..
Driver [flang][driver] Add support for generating executables on MacOSX/Darwin 2022-05-19 15:47:59 +01:00
Evaluate [flang] Address regression (calls to assumed-length character function dummy procedures) 2022-05-25 12:00:07 -07:00
Examples [flang][Parser] Add a node for individual sections in sections construct 2022-03-18 21:55:35 +05:30
Fir [flang][OpenMP][NFC] Cleanup the sections tests 2022-05-27 18:50:11 +05:30
Frontend [flang] Distinguish usage and portability warning messages 2022-03-08 17:24:52 -08:00
Lower [flang][OpenMP]Make omp.wsloop arguments appear in memory (#1277) 2022-06-01 17:20:06 +01:00
NonGtestUnit Use lit_config.substitute instead of foo % lit_config.params everywhere 2022-03-16 09:57:41 +01:00
Parser [flang][OpenMP] Added parser support for defaultmap (OpenMP 5.0) 2022-06-01 12:52:20 +05:30
Preprocessing [flang] Support correct continuations for compiler directives 2022-05-27 13:45:37 +03:00
Runtime Reland "[flang] GET_COMMAND_ARGUMENT runtime implementation" 2021-09-28 12:34:07 +00:00
Semantics [flang] Add semantic checks for threadprivate and declare target directives 2022-06-01 22:40:51 +08:00
Unit Use lit_config.substitute instead of foo % lit_config.params everywhere 2022-03-16 09:57:41 +01:00
CMakeLists.txt [flang][driver] Add support for generating executables 2022-04-25 12:00:23 +00:00
lit.cfg.py [flang][driver] Add support for consuming LLVM IR/BC files 2022-05-05 15:11:50 +00:00
lit.site.cfg.py.in Use lit_config.substitute instead of foo % lit_config.params everywhere 2022-03-16 09:57:41 +01:00