[all-commits] [llvm/llvm-project] e002a3: [Flang][OpenMP][MLIR][Driver][bbc] Add -fopenmp-is...
agozillon via All-commits
all-commits at lists.llvm.org
Tue Mar 7 10:58:24 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e002a38b20e3ac40aecbbfa0774f8ba7b9690b0c
https://github.com/llvm/llvm-project/commit/e002a38b20e3ac40aecbbfa0774f8ba7b9690b0c
Author: Andrew Gozillon <Andrew.Gozillon at amd.com>
Date: 2023-03-07 (Tue, 07 Mar 2023)
Changed paths:
M clang/include/clang/Driver/Options.td
M flang/include/flang/Frontend/LangOptions.def
M flang/lib/Frontend/CompilerInvocation.cpp
M flang/lib/Frontend/FrontendActions.cpp
M flang/test/Driver/driver-help.f90
A flang/test/Lower/OpenMP/omp-is-device.f90
M flang/tools/bbc/bbc.cpp
M mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
M mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
Log Message:
-----------
[Flang][OpenMP][MLIR][Driver][bbc] Add -fopenmp-is-device flag to Flang -fc1 & the bbc tool, and omp.is_device attribute
Adds the -fopenmp-is-device flag to bbc and Flang's -fc1 (but not flang-new) and in addition adds an omp.is_device attribute onto the module when fopenmp is passed, this is a boolean attribute that is set to false or true dependent on if fopenmp-is-device is specified alongside the fopenmp flag on the commandline when invoking flang or bbc.
Reviewers:
awarzynski
kiranchandramohan
Differential Revision: https://reviews.llvm.org/D144864
More information about the All-commits
mailing list