- Mar 18, 2014
-
-
Richard Smith authored
template specialization (from different modules), dump them all, so that every declaration is dumped somewhere. llvm-svn: 204100
-
David Blaikie authored
This removes an attribute (and more importantly, a relocation) from skeleton type units and removes some unnecessary file names from the debug_line section that remains in the .o (and linked executable) file. There's still a few places we could shave off some more space here: * use compilation dir of the underlying compilation unit (since all the type units share that compilation dir - though this would be more complicated in LTO cases where they don't (keep a map of compilation dir->line table header?)) * Remove some of the unnecessary header fields from the line table since they're not needed in this situation (about 12 bytes per table). llvm-svn: 204099
-
Duncan P. N. Exon Smith authored
llvm-svn: 204098
-
Richard Smith authored
loops, it was making this an error, resulting in buildbot failures. llvm-svn: 204097
-
Richard Smith authored
llvm-svn: 204096
-
David Blaikie authored
Cleans up buildbot failures on R600 and similar. llvm-svn: 204095
-
David Blaikie authored
DebugInfo: Do not rely on the compilation dir (index 0) for files in line tables shared between compilation units When emitting assembly there's no support for emitting separate line tables for each compilation unit - so LLVM emits .loc directives producing a single line table. Line tables have an implicit directory (index 0) equal to the compilation directory (DW_AT_comp_dir) of the compilation unit that references them. If multiple compilation units (with possibly disparate compilation directories) reference the same line table, we must avoid relying on this ambiguous directory. Achieve this my simply not setting the compilation directory on the line table when we're in this situation (multiple units while emitting assembly). llvm-svn: 204094
-
Fariborz Jahanian authored
in class extension is being implemented in primary class implementation (no overriding is involved). // rdar://16249335 llvm-svn: 204093
-
David Blaikie authored
We still do a few lookups into the line table mapping in MCContext that could be factored out into a single lookup (rather than looking it up once for the table label, once to set the compilation unit, once for each time we need a file ID, etc... ) but assembly output complicates that somewhat as we still need a virtual dispatch back to the MCAsmStreamer in that case. llvm-svn: 204092
-
Duncan P. N. Exon Smith authored
Reapply r204079 and r204083, this time with stubs for fputc in compiler-rt. llvm-svn: 204091
-
Richard Smith authored
llvm-svn: 204090
-
David Blaikie authored
Our handling of compilation directory in DwarfDebug was broken (incorrectly using the 'last' compilation directory (that of the last CU in the metadata list) for all function emission in any CU). By moving this handling down into MCDwarf the issue is fixed as the compilation dir is tracked correctly per line table. llvm-svn: 204089
-
Duncan P. N. Exon Smith authored
Buildbots are having trouble finding fputc(), and I can't figure out why. Reverting to investigate. llvm-svn: 204088
-
Jim Ingham authored
llvm-svn: 204087
-
Richard Smith authored
llvm-svn: 204086
-
Matt Arsenault authored
llvm-svn: 204085
-
Duncan P. N. Exon Smith authored
llvm-svn: 204084
-
Duncan P. N. Exon Smith authored
<rdar://problem/15943240> llvm-svn: 204083
-
Richard Smith authored
declared in different namespaces in the same inline namespace set. llvm-svn: 204082
-
Fariborz Jahanian authored
warnings (warning or lack there of) as well since blocks are another pattern for envoking other designated initializers. // rdar://16323233 llvm-svn: 204081
-
Duncan P. N. Exon Smith authored
In instrumentation-based profiling, we need a set of data structures to represent the counters. Previously, these were built up during static initialization. Now, they're shoved into a specially-named section so that they show up as an array. As a consequence of the reorganizing symbols, instrumentation data structures for linkonce functions are now correctly coalesced. This is the first step in a larger project to minimize runtime overhead and dependencies in instrumentation-based profilng. The larger picture includes removing all initialization overhead and making the dependency on libc optional. <rdar://problem/15943240> llvm-svn: 204080
-
Duncan P. N. Exon Smith authored
In instrumentation-based profiling, we need a set of data structures to represent the counters. Previously, these were built up during static initialization. Now, they're shoved into a specially-named section so that they show up as an array. As a consequence of the reorganizing symbols, instrumentation data structures for linkonce functions are now correctly coalesced. This is the first step in a larger project to minimize runtime overhead and dependencies in instrumentation-based profilng. The larger picture includes removing all initialization overhead and making the dependency on libc optional. <rdar://problem/15943240> llvm-svn: 204079
-
David Majnemer authored
This is as straightforward as it sounds, a renamed from shared_mutex to shared_timed_mutex. Note that libcxx .dylib and .so files built with c++14 support need to be rebuilt. llvm-svn: 204078
-
David Majnemer authored
llvm-svn: 204077
-
Dan Gohman authored
When GlobalOpt has determined that a GlobalVariable only ever has two values, it would convert the GlobalVariable to a boolean, and introduce SelectInsts at every load, to choose between the two possible values. These SelectInsts introduce overhead and other unpleasantness. This patch makes GlobalOpt just add range metadata to loads from such GlobalVariables instead. This enables the same main optimization (as seen in test/Transforms/GlobalOpt/integer-bool.ll), without introducing selects. The main downside is that it doesn't get the memory savings of shrinking such GlobalVariables, but this is expected to be negligible. llvm-svn: 204076
-
Owen Anderson authored
the MachineRegisterInfo iterators are compatible with it. llvm-svn: 204075
-
Owen Anderson authored
llvm-svn: 204074
-
Kevin Enderby authored
llvm-svn: 204073
-
Matt Arsenault authored
llvm-svn: 204072
-
Matt Arsenault authored
llvm-svn: 204071
-
Owen Anderson authored
llvm-svn: 204070
-
David Blaikie authored
See r204027 for the precursor to this that applied to asm debug info. This required some non-obvious API changes to handle the case of asm output (we never go asm->asm so this didn't come up in r204027): the modification of the file/directory name by MCDwarfLineTableHeader needed to be reflected in the MCAsmStreamer caller so it could print the appropriate .file directive, so those StringRef parameters are now non-const ref (in/out) parameters rather than just const. llvm-svn: 204069
-
Aaron Ballman authored
[C++11] Replacing CGFunctionInfo arg iterators with iterator_range arguments(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 204068
-
Owen Anderson authored
llvm-svn: 204067
-
Owen Anderson authored
llvm-svn: 204066
-
Fariborz Jahanian authored
class method with the same selctor but different argument types having one of them in class extension. // rdar://16312105 llvm-svn: 204065
-
Ed Maste authored
llvm-svn: 204064
-
Adam Nemet authored
llvm-svn: 204063
-
Aaron Ballman authored
[C++11] Replacing CallArgList writeback iterators with iterator_range writebacks(). Updating all of the usages of the iterators with range-based for loops, and removing the no-longer-needed iterator versions. llvm-svn: 204062
-
Aaron Ballman authored
[C++11] Replacing DeclContext iterators using_directives_begin() and using_directives_end() with iterator_range using_directives(). Updating all of the usages of the iterators with range-based for loops, and removing the no-longer-needed iterator versions. Also used as an opportunity to normalize the name from getUsingDirectives() to using_directives(). llvm-svn: 204061
-