2008-09-22 03:08:49 +02:00
|
|
|
add_llvm_library(LLVMSupport
|
|
|
|
APFloat.cpp
|
|
|
|
APInt.cpp
|
|
|
|
APSInt.cpp
|
|
|
|
Allocator.cpp
|
2011-07-26 00:24:51 +02:00
|
|
|
BlockFrequency.cpp
|
2011-06-11 03:05:22 +02:00
|
|
|
BranchProbability.cpp
|
2009-12-23 18:03:46 +01:00
|
|
|
circular_raw_ostream.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
CommandLine.cpp
|
2013-04-23 10:28:39 +02:00
|
|
|
Compression.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
ConstantRange.cpp
|
2013-01-30 13:05:05 +01:00
|
|
|
ConvertUTF.c
|
|
|
|
ConvertUTFWrapper.cpp
|
2010-07-28 19:17:46 +02:00
|
|
|
CrashRecoveryContext.cpp
|
2011-09-13 21:42:16 +02:00
|
|
|
DataExtractor.cpp
|
2012-02-06 23:30:29 +01:00
|
|
|
DataStream.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
Debug.cpp
|
2009-12-03 12:12:42 +01:00
|
|
|
DeltaAlgorithm.cpp
|
2010-06-08 18:21:22 +02:00
|
|
|
DAGDeltaAlgorithm.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
Dwarf.cpp
|
2009-07-07 20:52:14 +02:00
|
|
|
ErrorHandling.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
FileUtilities.cpp
|
2012-08-01 04:29:50 +02:00
|
|
|
FileOutputBuffer.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
FoldingSet.cpp
|
2009-07-14 22:44:17 +02:00
|
|
|
FormattedStream.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
GraphWriter.cpp
|
Rewrite LLVM's generalized support library for hashing to follow the API
of the proposed standard hashing interfaces (N3333), and to use
a modified and tuned version of the CityHash algorithm.
Some of the highlights of this change:
-- Significantly higher quality hashing algorithm with very well
distributed results, and extremely few collisions. Should be close to
a checksum for up to 64-bit keys. Very little clustering or clumping of
hash codes, to better distribute load on probed hash tables.
-- Built-in support for reserved values.
-- Simplified API that composes cleanly with other C++ idioms and APIs.
-- Better scaling performance as keys grow. This is the fastest
algorithm I've found and measured for moderately sized keys (such as
show up in some of the uniquing and folding use cases)
-- Support for enabling per-execution seeds to prevent table ordering
or other artifacts of hashing algorithms to impact the output of
LLVM. The seeding would make each run different and highlight these
problems during bootstrap.
This implementation was tested extensively using the SMHasher test
suite, and pased with flying colors, doing better than the original
CityHash algorithm even.
I've included a unittest, although it is somewhat minimal at the moment.
I've also added (or refactored into the proper location) type traits
necessary to implement this, and converted users of GeneralHash over.
My only immediate concerns with this implementation is the performance
of hashing small keys. I've already started working to improve this, and
will continue to do so. Currently, the only algorithms faster produce
lower quality results, but it is likely there is a better compromise
than the current one.
Many thanks to Jeffrey Yasskin who did most of the work on the N3333
paper, pair-programmed some of this code, and reviewed much of it. Many
thanks also go to Geoff Pike Pike and Jyrki Alakuijala, the original
authors of CityHash on which this is heavily based, and Austin Appleby
who created MurmurHash and the SMHasher test suite.
Also thanks to Nadav, Tobias, Howard, Jay, Nick, Ahmed, and Duncan for
all of the review comments! If there are further comments or concerns,
please let me know and I'll jump on 'em.
llvm-svn: 151822
2012-03-01 19:55:25 +01:00
|
|
|
Hashing.cpp
|
2010-12-21 01:04:46 +01:00
|
|
|
IntEqClasses.cpp
|
2010-11-19 05:47:19 +01:00
|
|
|
IntervalMap.cpp
|
2011-12-20 09:42:11 +01:00
|
|
|
IntrusiveRefCntPtr.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
IsInf.cpp
|
|
|
|
IsNAN.cpp
|
2013-12-27 05:28:57 +01:00
|
|
|
LineIterator.cpp
|
2012-04-17 22:03:03 +02:00
|
|
|
Locale.cpp
|
2012-01-29 21:15:10 +01:00
|
|
|
LockFileManager.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
ManagedStatic.cpp
|
|
|
|
MemoryBuffer.cpp
|
2009-09-11 23:49:45 +02:00
|
|
|
MemoryObject.cpp
|
2013-05-21 03:30:38 +02:00
|
|
|
MD5.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
PluginLoader.cpp
|
2009-03-05 10:19:13 +01:00
|
|
|
PrettyStackTrace.cpp
|
2009-09-01 19:01:02 +02:00
|
|
|
Regex.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
SmallPtrSet.cpp
|
2009-12-16 09:44:24 +01:00
|
|
|
SmallVector.cpp
|
2009-06-21 05:41:50 +02:00
|
|
|
SourceMgr.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
Statistic.cpp
|
2012-02-06 23:30:29 +01:00
|
|
|
StreamableMemoryObject.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
StringExtras.cpp
|
|
|
|
StringMap.cpp
|
|
|
|
StringPool.cpp
|
2009-09-17 00:38:48 +02:00
|
|
|
StringRef.cpp
|
MC: Disassembled CFG reconstruction.
This patch builds on some existing code to do CFG reconstruction from
a disassembled binary:
- MCModule represents the binary, and has a list of MCAtoms.
- MCAtom represents either disassembled instructions (MCTextAtom), or
contiguous data (MCDataAtom), and covers a specific range of addresses.
- MCBasicBlock and MCFunction form the reconstructed CFG. An MCBB is
backed by an MCTextAtom, and has the usual successors/predecessors.
- MCObjectDisassembler creates a module from an ObjectFile using a
disassembler. It first builds an atom for each section. It can also
construct the CFG, and this splits the text atoms into basic blocks.
MCModule and MCAtom were only sketched out; MCFunction and MCBB were
implemented under the experimental "-cfg" llvm-objdump -macho option.
This cleans them up for further use; llvm-objdump -d -cfg now generates
graphviz files for each function found in the binary.
In the future, MCObjectDisassembler may be the right place to do
"intelligent" disassembly: for example, handling constant islands is just
a matter of splitting the atom, using information that may be available
in the ObjectFile. Also, better initial atom formation than just using
sections is possible using symbols (and things like Mach-O's
function_starts load command).
This brings two minor regressions in llvm-objdump -macho -cfg:
- The printing of a relocation's referenced symbol.
- An annotation on loop BBs, i.e., which are their own successor.
Relocation printing is replaced by the MCSymbolizer; the basic CFG
annotation will be superseded by more related functionality.
llvm-svn: 182628
2013-05-24 03:07:04 +02:00
|
|
|
StringRefMemoryObject.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
SystemUtils.cpp
|
|
|
|
Timer.cpp
|
2010-10-08 01:12:15 +02:00
|
|
|
ToolOutputFile.cpp
|
2009-05-27 18:52:17 +02:00
|
|
|
Triple.cpp
|
2009-07-24 09:04:49 +02:00
|
|
|
Twine.cpp
|
2013-09-04 18:00:12 +02:00
|
|
|
Unicode.cpp
|
2012-04-04 01:09:22 +02:00
|
|
|
YAMLParser.cpp
|
2012-12-12 21:46:15 +01:00
|
|
|
YAMLTraits.cpp
|
2009-08-25 02:02:29 +02:00
|
|
|
raw_os_ostream.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
raw_ostream.cpp
|
2009-08-30 10:24:09 +02:00
|
|
|
regcomp.c
|
|
|
|
regerror.c
|
|
|
|
regexec.c
|
|
|
|
regfree.c
|
|
|
|
regstrlcpy.c
|
2010-11-29 19:16:10 +01:00
|
|
|
|
|
|
|
# System
|
|
|
|
Atomic.cpp
|
|
|
|
Disassembler.cpp
|
|
|
|
DynamicLibrary.cpp
|
|
|
|
Errno.cpp
|
|
|
|
Host.cpp
|
|
|
|
IncludeFile.cpp
|
|
|
|
Memory.cpp
|
|
|
|
Mutex.cpp
|
2013-06-26 21:33:03 +02:00
|
|
|
Path.cpp
|
2010-11-29 19:16:10 +01:00
|
|
|
Process.cpp
|
|
|
|
Program.cpp
|
|
|
|
RWMutex.cpp
|
|
|
|
SearchForAddressOfSpecialSymbol.cpp
|
|
|
|
Signals.cpp
|
|
|
|
system_error.cpp
|
2011-08-24 20:08:43 +02:00
|
|
|
TargetRegistry.cpp
|
2010-11-29 19:16:10 +01:00
|
|
|
ThreadLocal.cpp
|
|
|
|
Threading.cpp
|
|
|
|
TimeValue.cpp
|
|
|
|
Valgrind.cpp
|
2013-03-26 02:29:15 +01:00
|
|
|
Watchdog.cpp
|
2010-11-29 19:16:10 +01:00
|
|
|
Unix/Host.inc
|
|
|
|
Unix/Memory.inc
|
|
|
|
Unix/Mutex.inc
|
2013-06-26 21:33:03 +02:00
|
|
|
Unix/Path.inc
|
2010-11-29 19:16:10 +01:00
|
|
|
Unix/Process.inc
|
|
|
|
Unix/Program.inc
|
|
|
|
Unix/RWMutex.inc
|
|
|
|
Unix/Signals.inc
|
|
|
|
Unix/system_error.inc
|
|
|
|
Unix/ThreadLocal.inc
|
|
|
|
Unix/TimeValue.inc
|
2013-03-26 02:27:52 +01:00
|
|
|
Unix/Watchdog.inc
|
2010-11-29 19:16:10 +01:00
|
|
|
Windows/DynamicLibrary.inc
|
|
|
|
Windows/Host.inc
|
|
|
|
Windows/Memory.inc
|
|
|
|
Windows/Mutex.inc
|
2013-06-26 21:33:03 +02:00
|
|
|
Windows/Path.inc
|
2010-11-29 19:16:10 +01:00
|
|
|
Windows/Process.inc
|
|
|
|
Windows/Program.inc
|
|
|
|
Windows/RWMutex.inc
|
|
|
|
Windows/Signals.inc
|
|
|
|
Windows/system_error.inc
|
|
|
|
Windows/ThreadLocal.inc
|
|
|
|
Windows/TimeValue.inc
|
2013-03-26 02:27:52 +01:00
|
|
|
Windows/Watchdog.inc
|
2008-09-22 03:08:49 +02:00
|
|
|
)
|