aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorSergio Afonso <safonsof@amd.com>2024-04-09 13:40:18 +0100
committerGitHub <noreply@github.com>2024-04-09 13:40:18 +0100
commit6528f103663af2f08474c16a1bb9ca0f1c2ad31d (patch)
treed7825f071dbbef60c8351aec8c3328d347ee4dd9 /clang/lib/Frontend/InitPreprocessor.cpp
parent4657ab1c968e486e9f45329daa07340ebcf3bffd (diff)
downloadllvm-6528f103663af2f08474c16a1bb9ca0f1c2ad31d.zip
llvm-6528f103663af2f08474c16a1bb9ca0f1c2ad31d.tar.gz
llvm-6528f103663af2f08474c16a1bb9ca0f1c2ad31d.tar.bz2
[MLIR][OpenMP] Group clause operands into structures and use them to define simplified op builders (#86797)
This patch introduces a set of composable structures grouping the MLIR operands associated to each OpenMP clause. This makes it easier to keep the MLIR representation for the same clause consistent throughout all operations that accept it. The relevant clause operand structures are grouped into per-operation structures using a mixin pattern and used to define new operation constructors. These constructors can be used to avoid having to get the order of a possibly large list of operands right. Missing clauses are documented as TODOs, as well as operands which are part of the relevant operation's operand structure but cannot be attached to the associated operation yet, due to missing op arguments to its MLIR definition. A follow-up patch will update Flang lowering to make use of these structures, simplifying the passing of information from clause processing to operation-generating functions and also simplifying the creation of operations through the use of the new operation constructors.
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions