[Mlir-commits] [mlir] [MLIR][OpenMP] Skip host omp ops when compiling for the target device (PR #85239)
Jan Leyonberg
llvmlistbot at llvm.org
Mon Mar 25 07:24:10 PDT 2024
================
@@ -3043,116 +3199,15 @@ LogicalResult OpenMPDialectLLVMIRTranslationInterface::convertOperation(
LLVM::ModuleTranslation &moduleTranslation) const {
llvm::OpenMPIRBuilder *ompBuilder = moduleTranslation.getOpenMPBuilder();
+ if (ompBuilder->Config.isTargetDevice()) {
+ if (isInternalTargetDeviceOp(op)) {
+ return convertInternalTargetOp(op, builder, moduleTranslation);
----------------
jsjodin wrote:
Internal, means internal to a target region, perhaps not very clear. Common would be common between host and target device. I will update the names to make this more clear as you suggested.
https://github.com/llvm/llvm-project/pull/85239
More information about the Mlir-commits
mailing list