[all-commits] [llvm/llvm-project] e63b57: [mlir][LLVMIR] Add lifetime start and end marker i...

Jeff Niu via All-commits all-commits at lists.llvm.org
Wed Sep 14 13:15:32 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e63b574ff6a827ac64128490f117c94a54859992
      https://github.com/llvm/llvm-project/commit/e63b574ff6a827ac64128490f117c94a54859992
  Author: Jeff Niu <jeff at modular.com>
  Date:   2022-09-14 (Wed, 14 Sep 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMIntrinsicOps.td
    M mlir/test/Dialect/LLVMIR/roundtrip.mlir
    M mlir/test/Target/LLVMIR/llvmir-intrinsics.mlir

  Log Message:
  -----------
  [mlir][LLVMIR] Add lifetime start and end marker instrinsics

This patch adds the `llvm.intr.lifetime.start` and `llvm.intr.lifetime.end`
intrinsics which are used to indicate to LLVM the lifetimes of allocated
memory.

These ops have the requirement that the first argument (the size) be an
"immediate argument". I added an OpTrait to check this, but it is
possible that an approach like GEPArg would work too.

Reviewed By: rriddle, dcaballe

Differential Revision: https://reviews.llvm.org/D133867




More information about the All-commits mailing list