[all-commits] [llvm/llvm-project] b70cbf: [MLIR][OpenMP] Assert on map translation functions...

Sergio Afonso via All-commits all-commits at lists.llvm.org
Thu Apr 24 07:45:26 PDT 2025


  Branch: refs/heads/users/skatrak/map-rework-02-mark-host-device
  Home:   https://github.com/llvm/llvm-project
  Commit: b70cbfaa049fc215b467d325918570afabda4939
      https://github.com/llvm/llvm-project/commit/b70cbfaa049fc215b467d325918570afabda4939
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2025-04-24 (Thu, 24 Apr 2025)

  Changed paths:
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

  Log Message:
  -----------
  [MLIR][OpenMP] Assert on map translation functions, NFC

This patch adds assertions to map-related MLIR to LLVM IR translation functions
and utils to explicitly document whether they are intended for host or device
compilation only.

Over time, map-related handling has increased in complexity. This is compounded
by the fact that some handling is device-specific and some is host-specific. By
explicitly asserting on these functions on the expected compilation pass, the
flow should become slighlty easier to follow.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list