[all-commits] [llvm/llvm-project] bc0c17: [Clang][OpenMP][OMPIRBuilder] Move Clang's OpenMP ...
agozillon via All-commits
all-commits at lists.llvm.org
Tue Oct 3 06:20:57 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bc0c1783fd5a4b0a220ffff2ee9613cefd2c67d7
https://github.com/llvm/llvm-project/commit/bc0c1783fd5a4b0a220ffff2ee9613cefd2c67d7
Author: agozillon <Andrew.Gozillon at amd.com>
Date: 2023-10-03 (Tue, 03 Oct 2023)
Changed paths:
M clang/lib/CodeGen/CGOpenMPRuntime.cpp
M llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
Log Message:
-----------
[Clang][OpenMP][OMPIRBuilder] Move Clang's OpenMP Member/MemberOf flag helpers into the OMPIRBuilder (#67844)
This patch seeks to move the following functions to the OMPIRBuilder:
- getFlagMemberOffset
- getMemberOfFlag
- setCorrectMemberOfFlag
These small helper functions help set the end bits of the
OpenMPOffloadMappingFlags flag that correspond to the reserved segment
for OMP_MAP_MEMBER_OF.
They will be of use in the future for lowering MLIR types/values that
can contian members and can be lowered similarly to a structure or class
type within the OpenMPToLLVMIRTranslation step of the OpenMP dialects
lowering to LLVM-IR. In particular for Flang which currently uses this
flow. Types with descriptors like pointers/allocatables, and likely
derived types in certain cases can be lowered as if they were structures
with explicitly mapped members.
More information about the All-commits
mailing list