[MLIR][OpenMP][Flang] Set OpenMP target attributes in MLIR module
authorDominik Adamski <dominik.adamski@amd.com>
Thu, 30 Mar 2023 13:42:53 +0000 (08:42 -0500)
committerDominik Adamski <dominik.adamski@amd.com>
Fri, 31 Mar 2023 10:44:16 +0000 (05:44 -0500)
commitbdbc9429fcc19b61da8f4c24584ea3927f251348
tree352517ed999b7c8e565c8df1e173640d4f052059
parent4e563616a5fffa1204286a9aa03604a68a7db835
[MLIR][OpenMP][Flang] Set OpenMP target attributes in MLIR module

Scope of changes:
  1) Add attribute to OpenMP MLIR dialect which stores target cpu and
     target features
  2) Store target information in MLIR module

Differential Revision: https://reviews.llvm.org/D146612

Reviewed By: kiranchandramohan

Co-authored-by: Kiran Chandramohan <kiran.chandramohan@arm.com>
flang/include/flang/Tools/CrossToolHelpers.h
flang/lib/Frontend/FrontendActions.cpp
flang/test/Lower/OpenMP/target_cpu_features.f90 [new file with mode: 0644]
mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
mlir/include/mlir/Dialect/OpenMP/OpenMPOpsInterfaces.td