[all-commits] [llvm/llvm-project] 6d48a1: [flang][driver] Add support for -fopenmp and -fope...
Faris via All-commits
all-commits at lists.llvm.org
Wed Feb 10 02:00:34 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6d48a1a53fabae8715091a9aca128cc4a5d9b0a6
https://github.com/llvm/llvm-project/commit/6d48a1a53fabae8715091a9aca128cc4a5d9b0a6
Author: Faris Rehman <faris.rehman at arm.com>
Date: 2021-02-10 (Wed, 10 Feb 2021)
Changed paths:
M clang/include/clang/Driver/Options.td
M clang/lib/Driver/ToolChains/Flang.cpp
M flang/include/flang/Frontend/CompilerInstance.h
M flang/include/flang/Frontend/CompilerInvocation.h
M flang/include/flang/Frontend/FrontendOptions.h
M flang/lib/Frontend/CompilerInstance.cpp
M flang/lib/Frontend/CompilerInvocation.cpp
M flang/lib/Frontend/FrontendActions.cpp
M flang/test/Flang-Driver/driver-help-hidden.f90
M flang/test/Flang-Driver/driver-help.f90
M flang/test/Semantics/OpenACC/acc-atomic-validity.f90
M flang/test/Semantics/OpenACC/acc-branch.f90
M flang/test/Semantics/OpenACC/acc-cache-validity.f90
M flang/test/Semantics/OpenACC/acc-canonicalization-validity.f90
M flang/test/Semantics/OpenACC/acc-data.f90
M flang/test/Semantics/OpenACC/acc-declare-validity.f90
M flang/test/Semantics/OpenACC/acc-host-data.f90
M flang/test/Semantics/OpenACC/acc-init-validity.f90
M flang/test/Semantics/OpenACC/acc-kernels-loop.f90
M flang/test/Semantics/OpenACC/acc-kernels.f90
M flang/test/Semantics/OpenACC/acc-loop.f90
M flang/test/Semantics/OpenACC/acc-parallel-loop-validity.f90
M flang/test/Semantics/OpenACC/acc-parallel.f90
M flang/test/Semantics/OpenACC/acc-resolve01.f90
M flang/test/Semantics/OpenACC/acc-resolve02.f90
M flang/test/Semantics/OpenACC/acc-routine-validity.f90
M flang/test/Semantics/OpenACC/acc-serial-loop.f90
M flang/test/Semantics/OpenACC/acc-serial.f90
M flang/test/Semantics/OpenACC/acc-set-validity.f90
M flang/test/Semantics/OpenACC/acc-shutdown-validity.f90
M flang/test/Semantics/OpenACC/acc-update-validity.f90
M flang/test/Semantics/OpenACC/acc-wait-validity.f90
M flang/test/Semantics/omp-atomic.f90
M flang/test/Semantics/omp-combined-constructs.f90
M flang/test/Semantics/omp-copyin01.f90
M flang/test/Semantics/omp-copyin02.f90
M flang/test/Semantics/omp-copyin03.f90
M flang/test/Semantics/omp-copyin04.f90
M flang/test/Semantics/omp-copyin05.f90
M flang/test/Semantics/omp-declarative-directive.f90
M flang/test/Semantics/omp-default.f90
M flang/test/Semantics/omp-default02.f90
M flang/test/Semantics/omp-depend01.f90
M flang/test/Semantics/omp-depend02.f90
M flang/test/Semantics/omp-depend03.f90
M flang/test/Semantics/omp-device-constructs.f90
M flang/test/Semantics/omp-do-collapse-positivecases.f90
M flang/test/Semantics/omp-do-collapse.f90
M flang/test/Semantics/omp-do-cycle.f90
M flang/test/Semantics/omp-do-ordered-positivecases.f90
M flang/test/Semantics/omp-do-ordered.f90
M flang/test/Semantics/omp-do-schedule01.f90
M flang/test/Semantics/omp-do-schedule02.f90
M flang/test/Semantics/omp-do01.f90
M flang/test/Semantics/omp-do02.f90
M flang/test/Semantics/omp-do03.f90
M flang/test/Semantics/omp-do04.f90
M flang/test/Semantics/omp-do05.f90
M flang/test/Semantics/omp-do06.f90
M flang/test/Semantics/omp-do07.f90
M flang/test/Semantics/omp-do08.f90
M flang/test/Semantics/omp-do09.f90
M flang/test/Semantics/omp-do10.f90
M flang/test/Semantics/omp-flush01.f90
M flang/test/Semantics/omp-invalid-branch.f90
M flang/test/Semantics/omp-loop-association.f90
M flang/test/Semantics/omp-loop-simd01.f90
M flang/test/Semantics/omp-nested01.f90
M flang/test/Semantics/omp-no-dowhile-in-parallel.f90
M flang/test/Semantics/omp-parallel-private01.f90
M flang/test/Semantics/omp-parallel-private02.f90
M flang/test/Semantics/omp-parallel-private03.f90
M flang/test/Semantics/omp-parallel-private04.f90
M flang/test/Semantics/omp-parallel-shared01.f90
M flang/test/Semantics/omp-parallel-shared02.f90
M flang/test/Semantics/omp-parallel-shared03.f90
M flang/test/Semantics/omp-parallel-shared04.f90
M flang/test/Semantics/omp-parallel01.f90
M flang/test/Semantics/omp-parallel02.f90
M flang/test/Semantics/omp-private01.f90
M flang/test/Semantics/omp-private02.f90
M flang/test/Semantics/omp-private03.f90
M flang/test/Semantics/omp-resolve01.f90
M flang/test/Semantics/omp-resolve02.f90
M flang/test/Semantics/omp-resolve03.f90
M flang/test/Semantics/omp-resolve04.f90
M flang/test/Semantics/omp-resolve05.f90
M flang/test/Semantics/omp-sections01.f90
M flang/test/Semantics/omp-simd01.f90
M flang/test/Semantics/omp-simd02.f90
M flang/test/Semantics/omp-simd03.f90
M flang/test/Semantics/omp-single01.f90
M flang/test/Semantics/omp-single02.f90
M flang/test/Semantics/omp-task01.f90
M flang/test/Semantics/omp-taskloop-simd01.f90
M flang/test/Semantics/omp-taskloop01.f90
M flang/test/Semantics/omp-taskloop02.f90
M flang/test/Semantics/omp-taskloop03.f90
M flang/test/Semantics/omp-workshare01.f90
M flang/test/Semantics/omp-workshare02.f90
M flang/test/Semantics/omp-workshare03.f90
M flang/test/Semantics/omp-workshare04.f90
M flang/test/Semantics/omp-workshare05.f90
Log Message:
-----------
[flang][driver] Add support for -fopenmp and -fopenacc
Add support for the following options:
* -fopenmp
* -fopenacc
Update OpenMP and OpenACC semantics tests to use the new driver if it is built, otherwise use f18.
OpenMP tests that include `use omp_lib` or run `test_symbols.sh` have not been updated as they require options `-intrinsic-module-directory` and `-funparse-with-symbols` which are currently not implemented in the new driver.
Similarly OpenACC tests that run `test_symbols.sh` have not been updated.
This patch also moves semanticsContext to CompilerInvocation and creates it in CompilerInvocation#setSemanticsOpts so that the semantics context can use Fortran::parser::Options#features.
Summary of changes:
- Move semanticsContext to CompilerInvocation.h
- Update OpenMP and OpenACC semantics tests that do not rely on `-intrinsic-module-directory` and `-funparse-with-symbols` to use %flang
Differential Revision: https://reviews.llvm.org/D96032
More information about the All-commits
mailing list