[all-commits] [llvm/llvm-project] 510d0e: [IR] Add memory attributes for init.trampoline

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Dec 23 00:02:29 PST 2021

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 510d0e493365386b9eb082e91d72b62fe716d32e
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2021-12-23 (Thu, 23 Dec 2021)

  Changed paths:
    M llvm/include/llvm/IR/Intrinsics.td

  Log Message:
  [IR] Add memory attributes for init.trampoline

Based on my reading of https://llvm.org/docs/LangRef.html#llvm-init-trampoline-intrinsic,
init.trampoline writes to the first argument, while the other two
are readnone. These two arguments are only captured and written
into the trampoline memory. This also matches what I see in the
X86TargetLowering::LowerINIT_TRAMPOLINE() implementation.

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

More information about the All-commits mailing list