[PATCH] D32634: Emulate TrackingVH using WeakVH
Sanjoy Das via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 27 23:47:20 PDT 2017
sanjoy created this revision.
Herald added a subscriber: mcrosier.
This frees up one slot in the HandleBaseKind enum, which I will use
later to add a new kind of value handle. The size of the
HandleBaseKind enum is important because we store a HandleBaseKind in
the low two bits of a (in the worst case) 4 byte aligned pointer.
https://reviews.llvm.org/D32634
Files:
include/llvm/IR/ValueHandle.h
lib/IR/Value.cpp
unittests/IR/ValueHandleTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32634.97051.patch
Type: text/x-patch
Size: 5739 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170428/aa2d9e5d/attachment.bin>
More information about the llvm-commits
mailing list