Added functionality which allows to attach information about target features to OpenMP MLIR code.
Scope of changes:
- Add attribute to OpenMP MLIR dialect which stores target cpu and target features
- Store target information in MLIR module
Paths
| Differential D146612
[Flang][OpenMP][MLIR] Lower OpenMP target attributes ClosedPublic Authored by domada on Mar 22 2023, 2:27 AM.
Details Summary Added functionality which allows to attach information about target features to OpenMP MLIR code. Scope of changes:
Diff Detail Event Timelinedomada added a parent revision: D145579: [Clang][Flang][AMDGPU] Add support for AMDGPU to Flang driver.Mar 22 2023, 2:28 AM domada retitled this revision from [OpenMP][MLIR][OpenMPIRBuilder] Lower OpenMP target attributes to [Flang][OpenMP][MLIR][OpenMPIRBuilder] Lower OpenMP target attributes. Comment ActionsAdded OpenMP target attributes from parent review D145579 . This review contains complete set of changes required to add target attributes for OpenMP dialect. Comment Actions Scope of changes:
domada retitled this revision from [Flang][OpenMP][MLIR][OpenMPIRBuilder] Lower OpenMP target attributes to [Flang][OpenMP][MLIR] Lower OpenMP target attributes.Mar 30 2023, 7:43 AM Comment Actions Updated mlir definition of target attributes. Use MLIR class StringRefParameter instead std::string This revision is now accepted and ready to land.Mar 31 2023, 3:29 AM This revision was landed with ongoing or failed builds.Mar 31 2023, 3:53 AM Closed by commit rGbdbc9429fcc1: [MLIR][OpenMP][Flang] Set OpenMP target attributes in MLIR module (authored by domada). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 509956 flang/include/flang/Tools/CrossToolHelpers.h
flang/lib/Frontend/FrontendActions.cpp
flang/test/Lower/OpenMP/target_cpu_features.f90
mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
mlir/include/mlir/Dialect/OpenMP/OpenMPOpsInterfaces.td
|