Introduce a typing refinenement on tagged data
authorGabor Greif <ggreif@gmail.com>
Thu, 16 Oct 2008 15:33:02 +0000 (15:33 +0000)
committerGabor Greif <ggreif@gmail.com>
Thu, 16 Oct 2008 15:33:02 +0000 (15:33 +0000)
commit023f84ecafa08a67101937ac80f0dfd9f5e69dfb
tree8831767019372b83349c401cfe91078e1b4b12d6
parentcc30d9caa5d4a7b7f08c33915d8c2f438a1d8c2b
Introduce a typing refinenement on tagged data
using the 'volatile' qualifier. This should not have any operational consequences
on code, because tags should always be stripped off (giving a non-volatile pointer)
before dereferencing. The new qualification is there to catch some attempts to use
tagged pointers in a context where an untagged pointer is appropriate.

Notably this approach does not catch dereferencing of tagged pointers, but helps
in separating the two concepts a bit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57641 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Use.h
lib/VMCore/Use.cpp