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
Unit TestsFailed 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 507338 flang/lib/Frontend/FrontendActions.cpp
flang/test/Lower/OpenMP/target_cpu_features.f90
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
llvm/include/llvm/Transforms/Utils/CodeExtractor.h
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
llvm/lib/Transforms/Utils/CodeExtractor.cpp
mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
mlir/test/Target/LLVMIR/openmp-llvm.mlir
|