Go to file
Peter Collingbourne e6909c8e8b Introduce bitset metadata format and bitset lowering pass.
This patch introduces a new mechanism that allows IR modules to co-operatively
build pointer sets corresponding to addresses within a given set of
globals. One particular use case for this is to allow a C++ program to
efficiently verify (at each call site) that a vtable pointer is in the set
of valid vtable pointers for the class or its derived classes. One way of
doing this is for a toolchain component to build, for each class, a bit set
that maps to the memory region allocated for the vtables, such that each 1
bit in the bit set maps to a valid vtable for that class, and lay out the
vtables next to each other, to minimize the total size of the bit sets.

The patch introduces a metadata format for representing pointer sets, an
'@llvm.bitset.test' intrinsic and an LTO lowering pass that lays out the globals
and builds the bitsets, and documents the new feature.

Differential Revision: http://reviews.llvm.org/D7288

llvm-svn: 230054
2015-02-20 20:30:47 +00:00
clang Revert "Wrap clang module files in a Mach-O, ELF, or COFF container." 2015-02-20 20:00:27 +00:00
clang-tools-extra Deleted module-map-checker, as it's been folded into modularize. 2015-02-20 14:28:10 +00:00
compiler-rt [Sanitizer] Refactor SuppressionContext class. 2015-02-20 17:41:59 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Implement log10 2015-01-30 18:00:34 +00:00
libcxx Add self to CREDITS.TXT 2015-02-20 06:17:20 +00:00
libcxxabi Do not add -fno-exceptions without -funwind-tables 2015-02-16 19:51:06 +00:00
lld Remove redundant "explicit". 2015-02-20 14:57:04 +00:00
lldb Add the new file to the CMakeLists. This should appease the Windows bot 2015-02-20 19:54:06 +00:00
llgo Build cgo and llgo-go 2015-02-14 01:46:01 +00:00
llvm Introduce bitset metadata format and bitset lowering pass. 2015-02-20 20:30:47 +00:00
openmp Two warning messages fixed. 2015-02-20 18:19:41 +00:00
polly Fix formatting 2015-02-19 22:16:12 +00:00