- Jun 20, 2014
-
-
Duncan P. N. Exon Smith authored
llvm-svn: 211337
-
Duncan P. N. Exon Smith authored
llvm-svn: 211336
-
Rafael Espindola authored
Use static instead of anonymous namespace. Delete write only variables. llvm-svn: 211335
-
Hans Wennborg authored
llvm-svn: 211334
-
Duncan P. N. Exon Smith authored
Start extracting helper functions out of -block-freq's `UnsignedFloat` into `Support/ScaledNumber.h` with the eventual goal of moving and renaming the class to `ScaledNumber`. The bike shed about names is still being painted, but I'm going with this for now. llvm-svn: 211333
-
Chandler Carruth authored
instructions available as synthetic SDNodes PACKSS and PACKUS that will select to the correct instruction variants based on the return type. This allows us to use these rather important instructions when lowering vector shuffles. Also moves the relevant instruction definitions to be split out from the fully generic multiclasses to allow them to match these new SDNodes in the same way that the UNPCK instructions do. No functionality should actually be changed here. llvm-svn: 211332
-
Hans Wennborg authored
We would previously put dllimport variables in switch lookup tables, which doesn't work because the address cannot be used in a constant initializer. This is basically the same problem that we have in PR19955. Putting TLS variables in switch tables also desn't work, because the address of such a variable is not constant. Differential Revision: http://reviews.llvm.org/D4220 llvm-svn: 211331
-
Ben Langmuir authored
Successfully loaded module files may be referenced in other ModuleManagers, so don't invalidate them. Two related things are fixed: 1) I thought the last module in the manager was always the one that failed, but it isn't. So check explicitly against the list of vetted modules from ReadASTCore. 2) We now keep the file descriptor of pcm file open, which avoids the possibility of having two different pcms for the same module loaded when building in parallel with headers being modified during a build. <rdar://problem/16835846> llvm-svn: 211330
-
Greg Clayton authored
The issue was when we called Debugger::RunIOHandler(), it would run the current IOHandler by activating it, and running it and then try to pop it and exit regardless of wether it was on top or not. The new code will push the IOHandler that was passed in, and run the IOHandlers until the one passed in is successfully popped. This allows files for the "command source" to switch input handlers: % cat /tmp/commands br s -S alignLeftEdges: br command add bt frame var po self DONE b s -n main br command add bt frame var DONE Note above we set a breakpoint, then add commands do it. The "br command add" will push the breakpoint comment gatherer until it sees "DONE" and then pop itself off the stack. The a new breakpoint will be set and it does the same thing again. Now this file can be sourced from the command line: % lldb -s /tmp/commands /path/to/a.out And your breakpoints will be correctly setup! <rdar://problem/17081650> llvm-svn: 211329
-
Rafael Espindola authored
This reverts commit r211309. It looks like it broke some bots: http://lab.llvm.org:8011/builders/clang-x86_64-ubuntu-gdb-75/builds/15563/steps/compile/logs/stdio llvm-svn: 211328
-
Alp Toker authored
Replace lots of old-school parameter passing with neat class members. No attempt made yet to modernize loops, but it's a start. llvm-svn: 211327
-
Kevin Enderby authored
which is what the darwin tools use for the Mach-O format output. llvm-svn: 211326
-
Rafael Espindola authored
Back in r128440 tools/LTO started exporting the disassembler interface. It was never clear why, but whatever the reason I am pretty sure it doesn't hold for tools/gold. llvm-svn: 211325
-
Fariborz Jahanian authored
a qualified-id type because pointer is object of a forward class declaration, include this info in a diagnostic note. // rdar://10751015 llvm-svn: 211324
-
Alp Toker authored
This utility doesn't need to know about the specifics of diagnostic levels. llvm-svn: 211323
-
Rafael Espindola authored
This fixes the processing of --plugin-opt=-jump-table-type=arity. Nice properties: * We call InitTargetOptionsFromCodeGenFlags once. * We call parseCodeGenDebugOptions once. * It works :-) llvm-svn: 211322
-
Kevin Enderby authored
data and bss symbols instead of the generic ’s’ for a symbol in a section. llvm-svn: 211321
-
Rafael Espindola authored
Thanks to Alp Toker for noticing it. llvm-svn: 211320
-
Rafael Espindola authored
No functionality change. llvm-svn: 211319
-
Rafael Espindola authored
llvm-svn: 211318
-
Rafael Espindola authored
Patch by Tom Roeder, I just added the test. llvm-svn: 211317
-
Kevin Enderby authored
fat files) to print “ (for architecture XYZ)” for fat files with more than one architecture to be like what the darwin tools do for fat files. Also clean up the Mach-O printing of archive membernames in llvm-nm to use the darwin form of "libx.a(foo.o)". llvm-svn: 211316
-
Rafael Espindola authored
The tools/lto API is not the best choice for implementing a gold plugin. Among other issues: * It is an stable ABI. Old errors stay and we have to be really careful before adding new features. * It has to support two fairly different linkers: gold and ld64. * We end up with a plugin that depends on a shared lib, something quiet unusual in LLVM land. * It hides LLVM. For some features in the gold plugin it would be really nice to be able to just get a Module or a GlobalValue. This change is intended to be a very direct translation from the C API. It will just enable other fixes and cleanups. Tested with a LTO bootstrap on linux. llvm-svn: 211315
-
Eric Christopher authored
the atomic load linked expander pass to run for a particular subtarget. This requires a check of the subtarget and so save the TargetMachine rather than only TargetLoweringInfo and update all callers. llvm-svn: 211314
-
Joerg Sonnenberger authored
Differential Revision: http://reviews.llvm.org/D2799 llvm-svn: 211313
-
Joerg Sonnenberger authored
Differential Revision: http://reviews.llvm.org/D2798 llvm-svn: 211312
-
Zachary Turner authored
Previously this led to a circular header dependency, but a recent change has since removed this dependency, so the correct fix is to simply include the header rather than forward declare. llvm-svn: 211311
-
Justin Bogner authored
Checking the filesystem seems to be a bit unreliable. Limit the tests to the VFS map for now. llvm-svn: 211310
-
David Blaikie authored
Patch by Agustín Bergé. llvm-svn: 211309
-
Eric Christopher authored
for assembly files we can't depend on the offset within the section after a string since it could be different between producers etc. Relax these tests accordingly. llvm-svn: 211308
-
Eric Christopher authored
llvm-svn: 211307
-
Justin Bogner authored
llvm-svn: 211306
-
Rafael Espindola authored
dynamic-no-pic is just another output type. If gnu ld gets support for MachO, it should also add something like LDPO_DYN_NO_PIC to the plugin interface. llvm-svn: 211305
-
Alp Toker authored
llvm-svn: 211304
-
Justin Bogner authored
This adds the -module-dependency-dir to clang -cc1, which specifies a directory to copy all of a module's dependencies into in a form suitable to be used as a VFS using -ivfsoverlay with the generated vfs.yaml. This is useful for crashdumps that involve modules, so that the module dependencies will be intact when a crash report script is used to reproduce a problem on another machine. We currently encode the absolute path to the dump directory, due to limitations in the VFS system. Until we can handle relative paths in the VFS, users of the VFS map may need to run a simple search and replace in the file. llvm-svn: 211303
-
Justin Bogner authored
A function to copy one file's contents to another. llvm-svn: 211302
-
David Greene authored
Configure creates makefiles, so it doesn't make sense to check for them to see if we can configure. llvm-svn: 211301
-
David Greene authored
Sometimes we want to install things in "standard" locations and the flavor directories interfere with that. Add an option to keep them out of the install path. llvm-svn: 211300
-
David Greene authored
Don't build with -Werror unless asked to. llvm-svn: 211299
-
Eric Christopher authored
try to execute it on windows. llvm-svn: 211298
-