llvm-6502/lib
Chandler Carruth 21c4458d3c [PM] Sink the reference vs. value decision for IR units out of the
templated interface.

So far, every single IR unit I can come up with has address-identity.
That is, when two units of IR are both active in LLVM, their addresses
will be distinct of the IR is distinct. This is clearly true for
Modules, Functions, BasicBlocks, and Instructions. It turns out that the
only practical way to make the CGSCC stuff work the way we want is to
make it true for SCCs as well. I expect this pattern to continue.

When first designing the pass manager code, I kept this dimension of
freedom in the type parameters, essentially allowing for a wrapper-type
whose address did not form identity. But that really no longer makes
sense and is making the code more complex or subtle for no gain. If we
ever have an actual use case for this, we can figure out what makes
sense then and there. It will be better because then we will have the
actual example in hand.

While the simplifications afforded in this patch are fairly small
(mostly sinking the '&' out of many type parameters onto a few
interfaces), it would have become much more pronounced with subsequent
changes. I have a sequence of changes that will completely remove the
code duplication that currently exists between all of the pass managers
and analysis managers. =] Should make things much cleaner and avoid bug
fixing N times for the N pass managers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225723 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-12 22:53:31 +00:00
..
Analysis Fix PR22179. 2015-01-10 23:41:24 +00:00
AsmParser AsmParser: Use subclass API instead of MDNode wrappers, NFC 2015-01-12 22:27:39 +00:00
Bitcode Bitcode: Range-based for, NFC 2015-01-12 22:35:34 +00:00
CodeGen Untwine this expression. Thanks to David for noticing! 2015-01-12 22:39:14 +00:00
DebugInfo
ExecutionEngine Fix undefined behavior (shift of negative value) in RuntimeDyldMachOAArch64::encodeAddend. 2015-01-10 00:46:38 +00:00
IR [PM] Sink the reference vs. value decision for IR units out of the 2015-01-12 22:53:31 +00:00
IRReader
LineEditor
Linker Use the DiagnosticHandler to print diagnostics when reading bitcode. 2015-01-10 00:07:30 +00:00
LTO Use the DiagnosticHandler to print diagnostics when reading bitcode. 2015-01-10 00:07:30 +00:00
MC Add r224985 back with two fixes. 2015-01-12 18:13:07 +00:00
Object
Option
ProfileData
Support
TableGen
Target [X86][SSE] Minor regression fix for r225551 2015-01-12 22:38:08 +00:00
Transforms 80-cols; NFC 2015-01-12 21:21:28 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile