[PATCH] D146648: [MLIR][OpenMP] Added MLIR translation support for use_device clauses
Akash Banerjee via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 19 04:58:03 PDT 2023
TIFitis marked 2 inline comments as done.
TIFitis added inline comments.
================
Comment at: mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp:1455-1471
+ unsigned infoIndex;
+ if (findMapInfo(mapOpValue, infoIndex)) {
+ combinedInfo.Types[infoIndex] |=
+ llvm::omp::OpenMPOffloadMappingFlags::OMP_MAP_RETURN_PARAM;
+ combinedInfo.DevicePointers[infoIndex] =
+ llvm::OpenMPIRBuilder::DeviceInfoTy::Address;
+ } else {
----------------
kiranchandramohan wrote:
> This block seems to be similar to `devPtrOperands`. Could you share code here?
I've moved them into a functor.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146648/new/
https://reviews.llvm.org/D146648
More information about the llvm-commits
mailing list