summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2016-06-25 00:23:04 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2016-06-25 00:23:04 +0000
commit0312f614b1bfdad55c1832ee37d6d4b738ea70cf (patch)
treefe32499f559708bbe83f63a35aa420c91b882594 /llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
parent6ad3d05b681b36f6ecc98523257d154053e4116d (diff)
downloadbcm5719-llvm-0312f614b1bfdad55c1832ee37d6d4b738ea70cf.tar.gz
bcm5719-llvm-0312f614b1bfdad55c1832ee37d6d4b738ea70cf.zip
IR: Introduce llvm.type.checked.load intrinsic.
This intrinsic safely loads a function pointer from a virtual table pointer using type metadata. This intrinsic is used to implement control flow integrity in conjunction with virtual call optimization. The virtual call optimization pass will optimize away llvm.type.checked.load intrinsics associated with devirtualized calls, thereby removing the type check in cases where it is not needed to enforce the control flow integrity constraint. This patch also introduces the capability to copy type metadata between global variables, and teaches the virtual call optimization pass to do so. Differential Revision: http://reviews.llvm.org/D21121 llvm-svn: 273756
Diffstat (limited to 'llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud