llvm-6502/lib
Duncan P. N. Exon Smith 657f8c831a LTO: Lazy-load LTOModule in local contexts
Start lazy-loading `LTOModule`s that own their contexts.  These can only
really be used for parsing symbols, so its unnecessary to ever
materialize their functions.

I looked into using `IRObjectFile::create()` and optionally calling
`materializAllPermanently()` afterwards, but this turned out to be
awkward.

  - The default target triple and data layout logic needs to happen
    *before* the call to `IRObjectFile::IRObjectFile()`, but after
    `Module` was created.

  - I tried passing a lambda in to do the module initialization, but
    this seemed to require threading the error message from
    `TargetRegistry::lookupTarget()` through `std::error_code`.

  - I also looked at setting `errMsg` directly from within the lambda,
    but this didn't look any better.

(I guess there's a reason we weren't already using that function.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224466 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-17 22:05:42 +00:00
..
Analysis InstSimplify: shl nsw/nuw undef, %V -> undef 2014-12-17 01:54:33 +00:00
AsmParser IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
Bitcode Make ValueEnumerator::print use OS for metadata too. Noticed by inspection. 2014-12-17 01:52:08 +00:00
CodeGen RegisterCoalescer: Fix stripCopies() picking up main range instead of subregister range 2014-12-17 21:25:20 +00:00
DebugInfo Silence more static analyzer warnings. 2014-12-15 18:48:43 +00:00
ExecutionEngine Fix line mapping information in LLVM JIT profiling with Vtune 2014-12-15 04:45:43 +00:00
IR Random Number Generator Refactoring (removing from Module) 2014-12-17 18:12:10 +00:00
IRReader Remove unused variable. NFC. 2014-11-06 23:16:57 +00:00
LineEditor
Linker Revert "Linker: Drop superseded subprograms" 2014-12-17 07:27:31 +00:00
LTO LTO: Lazy-load LTOModule in local contexts 2014-12-17 22:05:42 +00:00
MC Add parsing of 'foo@local". 2014-12-17 06:23:35 +00:00
Object Add printing the LC_ENCRYPTION_INFO_64 load command with llvm-objdump’s -private-headers 2014-12-17 01:01:30 +00:00
Option Add an overload of getLastArgNoClaim taking two OptSpecifiers. 2014-09-12 19:42:53 +00:00
ProfileData llvm-cov: Sink some reporting logic into CoverageMapping 2014-11-14 01:50:32 +00:00
Support Random Number Generator Refactoring (removing from Module) 2014-12-17 18:12:10 +00:00
TableGen Clean up static analyzer warnings. 2014-12-12 21:48:03 +00:00
Target R600/SI: Fix f64 inline immediates 2014-12-17 21:04:08 +00:00
Transforms [sanitizer] allow -fsanitize-coverage=N w/ -fsanitize=leak, llvm part 2014-12-17 21:50:04 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile