[llvm-branch-commits] [flang] [MLIR][OpenMP] Add Lowering support for OpenMP Declare Mapper directive (PR #117046)
Krzysztof Parzyszek via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Dec 12 04:24:54 PST 2024
kparzysz wrote:
1. If you want to create an MLIR op for the mapper, you can give it some name (you can mangle it if you want). You will need to store it in the MLIR somewhere/somehow.
2. If you want to record the use of a mapper in a clause, you can just use the name of the mapper in the same form as in (1), i.e. you decide how to generate the name here.
3. If you want to actually apply the mapper, you need to find it, but it's up to you how you do it: if you're looking for it in the MLIR module then your code must have put it there, if you're looking for it in the AST then you can find the declaration of the mapper by the symbol associated with its name.
https://github.com/llvm/llvm-project/pull/117046
More information about the llvm-branch-commits
mailing list