aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/FileManager.cpp
diff options
context:
space:
mode:
authorSergio Afonso <safonsof@amd.com>2025-03-20 14:41:27 +0000
committerGitHub <noreply@github.com>2025-03-20 14:41:27 +0000
commitff3341ca35fe4ce05b52e89d654ff4c696d3602e (patch)
tree78481c25746cc6bf028f641211c8927501e6d509 /clang/lib/Basic/FileManager.cpp
parent55d3a55cc14d77db1c5d254aeb925b2340b11f91 (diff)
downloadllvm-ff3341ca35fe4ce05b52e89d654ff4c696d3602e.zip
llvm-ff3341ca35fe4ce05b52e89d654ff4c696d3602e.tar.gz
llvm-ff3341ca35fe4ce05b52e89d654ff4c696d3602e.tar.bz2
[MLIR][OpenMP] Simplify OpenMP to LLVM dialect conversion (#132009)
This patch makes a few changes to unify the conversion process from the 'omp' to the 'llvm' dialect. The main goal of this change is to consolidate the logic used to identify legal and illegal ops, and to consolidate the conversion logic into a single class. Changes introduced are the following: - Removal of `getNumVariableOperands()` and `getVariableOperand()` extra class declarations from OpenMP operations. These are redundant, as they are equivalent to `mlir::Operation::getNumOperands()` and `mlir::Operation::getOperands()`, respectively. - Consolidation of `RegionOpConversion`, `RegionLessOpWithVarOperandsConversion`, `RegionOpWithVarOperandsConversion`, `RegionLessOpConversion`, `AtomicReadOpConversion`, `MapInfoOpConversion`, `DeclMapperOpConversion` and `MultiRegionOpConversion` into a single `OpenMPOpConversion` class. This is possible because all of the previous were doing parts of the same set of operations based on whether they defined any regions, whether they took operands, type attributes, etc. - Update of `mlir::configureOpenMPToLLVMConversionLegality` to use a single generic set of checks for all operations, removing the need to list every operation manually. - Update of `mlir::populateOpenMPToLLVMConversionPatterns` to automatically populate the list of patterns to include all dialect operations.
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
0 files changed, 0 insertions, 0 deletions