[PATCH] D15845: [ADT] Switch from a hacky use of PointerIntPair and poorly chosen arbitrary integers cast to Instruction pointers to a sum type over Instruction * and a PointerEmbeddedInt.

Chandler Carruth via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 2 02:53:16 PST 2016


chandlerc created this revision.
chandlerc added a subscriber: llvm-commits.
chandlerc added a dependency: D15843: [ADT] Add a sum type abstraction for pointer-like types..

This is a good example of how PointerSumType and PointerEmbeddedInt can be used
to create a more clean sum type abstraction.

No functionality changed.

Depends on D15843.
Depneds on D15844.

http://reviews.llvm.org/D15845

Files:
  include/llvm/Analysis/MemoryDependenceAnalysis.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15845.43846.patch
Type: text/x-patch
Size: 7598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160102/7e58d3c9/attachment.bin>


More information about the llvm-commits mailing list