[all-commits] [llvm/llvm-project] 8ee7d9: [flang][cuda] Add fir.cuda_allocate operation (#88...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Mon Apr 15 20:51:52 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8ee7d9732204a7415967bce2c1d2c0fa63af264f
      https://github.com/llvm/llvm-project/commit/8ee7d9732204a7415967bce2c1d2c0fa63af264f
  Author: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>
  Date:   2024-04-15 (Mon, 15 Apr 2024)

  Changed paths:
    M flang/include/flang/Optimizer/Dialect/FIROps.td
    M flang/include/flang/Optimizer/Dialect/FIRTypes.td
    M flang/lib/Optimizer/Dialect/FIROps.cpp
    A flang/test/Fir/cuf-invalid.fir
    A flang/test/Fir/cuf.mlir

  Log Message:
  -----------
  [flang][cuda] Add fir.cuda_allocate operation (#88586)

Allocatable with cuda device attribute have special semantic for the
allocate statement. In flang the allocate statement is lowered to a
sequence of runtime call initializing the descriptor and then allocating
the descriptor data. This new operation will replace the last runtime
call and abstract all the device memory allocation needed.
The lowering patch will 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