[flang-commits] [flang] [mlir] [OpenMP] Introduce omp.target_allocmem and omp.target_freemem omp dialect ops. (PR #145464)
via flang-commits
flang-commits at lists.llvm.org
Fri Jul 25 04:31:04 PDT 2025
================
@@ -5846,6 +5846,10 @@ static bool isTargetDeviceOp(Operation *op) {
if (mlir::isa<omp::ThreadprivateOp>(op))
return true;
+ if (mlir::isa<omp::TargetAllocMemOp>(op) ||
----------------
skc7 wrote:
These new omp ops needs to be translated first to llvm ir before its users gets translated. This is to avoid users querying these ops results in llvm ir before their translation itself.
https://github.com/llvm/llvm-project/pull/145464
More information about the flang-commits
mailing list