[all-commits] [llvm/llvm-project] 8269c4: [mlir][OpenMP][NFC] delayed privatisation cleanup ...

Tom Eccles via All-commits all-commits at lists.llvm.org
Thu Nov 7 04:27:53 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8269c400b430e4beb9fdb51b94dbc79b84c37f70
      https://github.com/llvm/llvm-project/commit/8269c400b430e4beb9fdb51b94dbc79b84c37f70
  Author: Tom Eccles <tom.eccles at arm.com>
  Date:   2024-11-07 (Thu, 07 Nov 2024)

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

  Log Message:
  -----------
  [mlir][OpenMP][NFC] delayed privatisation cleanup (#115298)

Upstreaming some code cleanups ahead of supporting delayed task
execution.
- Make allocatePrivateVars not need to be a template (it will need to
operate separately on firstprivate and private variables for delayed
task execution so it can't index into lists of all variables in the
operation).
 - Use llvm::SmallVectorImpl for function arguments
- collectPrivatizationDecls already reserves size for privateDecls so we
don't need to do that in callers
 - Use llvm::zip_equal instead of C-style array indexing



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