[all-commits] [llvm/llvm-project] 132feb: [OpenMP][Flang][MLIR] Implement OffloadModuleInter...
agozillon via All-commits
all-commits at lists.llvm.org
Tue Mar 28 08:48:33 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 132feb7c839ca1ef3bb003ff79a73261a23795a7
https://github.com/llvm/llvm-project/commit/132feb7c839ca1ef3bb003ff79a73261a23795a7
Author: Andrew Gozillon <Andrew.Gozillon at amd.com>
Date: 2023-03-28 (Tue, 28 Mar 2023)
Changed paths:
A flang/include/flang/Tools/CrossToolHelpers.h
M flang/lib/Frontend/FrontendActions.cpp
M flang/test/Lower/OpenMP/omp-is-device.f90
M flang/tools/bbc/bbc.cpp
M mlir/include/mlir/Dialect/OpenMP/OpenMPDialect.h
A mlir/include/mlir/Dialect/OpenMP/OpenMPInterfaces.h
M mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
M mlir/include/mlir/Dialect/OpenMP/OpenMPOpsInterfaces.td
M mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
Log Message:
-----------
[OpenMP][Flang][MLIR] Implement OffloadModuleInterface for OpenMP Dialect and convert is_device to an Attribute
This commit adds the OffloadModuleInterface to the OpenMP dialect,
which will implement future module attribute get/set's for offloading.
Currently it implements set and get's for the omp.is_device attribute,
which is promoted to a real attribute in this commit as well (primarily
to allow switch cases to work nicely with it for future work and to keep
consistency with future module attributes).
This interface is attached to mlir::ModuleOp's on registration of the
OpenMPDialect and should be accessible anywhere the OpenMP
dialect is registered and initialized.
Reviewers: kiranchandramohan, awarzynski
Differential Revision: https://reviews.llvm.org/D146850
More information about the All-commits
mailing list