[PATCH] D31717: CodeGen: Emit lifetime intrinsics with pointer argument in alloca address space

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 5 10:46:15 PDT 2017


yaxunl created this revision.
Herald added a subscriber: wdng.

There is incoming LLVM changes for letting alloca return pointers to alloca address space specified by data layout and correspondingly letting lifetime intrinsics to accept pointer arguments in alloca address space.

https://reviews.llvm.org/D31041

https://reviews.llvm.org/D31042

This patch makes Clang to emit correct lifetime intrinsics following the above two changes in LLVM.

Basically lifetime intrinsics will be declared with pointer argument in alloca address space.


https://reviews.llvm.org/D31717

Files:
  lib/CodeGen/CGDecl.cpp
  lib/CodeGen/CodeGenModule.cpp
  lib/CodeGen/CodeGenTypeCache.h
  test/CodeGen/cleanup-destslot-simple.c
  test/CodeGen/lifetime-asan.c
  test/CodeGen/lifetime.c
  test/CodeGen/lifetime2.c
  test/CodeGen/temporary-lifetime-exceptions.cpp
  test/CodeGen/temporary-lifetime.cpp
  test/CodeGenCXX/destructors.cpp
  test/CodeGenCXX/microsoft-abi-eh-cleanups.cpp
  test/CodeGenCXX/nrvo.cpp
  test/CodeGenCXX/stack-reuse-miscompile.cpp
  test/CodeGenCXX/stack-reuse.cpp
  test/CodeGenObjC/arc-blocks.m
  test/CodeGenObjC/arc-bridged-cast.m
  test/CodeGenObjC/arc-literals.m
  test/CodeGenObjC/arc-precise-lifetime.m
  test/CodeGenObjC/arc-ternary-op.m
  test/CodeGenObjC/arc.m
  test/CodeGenObjC/exceptions.m
  test/CodeGenObjCXX/arc-move.mm
  test/CodeGenObjCXX/arc-references.mm
  test/CodeGenObjCXX/arc.mm
  test/CodeGenObjCXX/literals.mm

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31717.94256.patch
Type: text/x-patch
Size: 85740 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170405/baa789a8/attachment-0001.bin>


More information about the cfe-commits mailing list