- Nov 20, 2013
-
-
Chandler Carruth authored
Somehow, this ADT got missed which is moderately terrifying considering the efficiency of move for it. The code to implement move semantics for it is pretty horrible currently but was written to reasonably closely match the rest of the code. Unittests that cover both copying and moving (at a basic level) added. llvm-svn: 195239
-
- Nov 19, 2013
-
-
John Thompson authored
YAML I/O - Added default trait support for std:string. Making another attempt at this, this time doing a clean build on Linux, and running the LLVM, clang, and extra tests, to try to make sure there's no problems. llvm-svn: 195134
-
Juergen Ributzka authored
This patch removes most of the trivial cases of weak vtables by pinning them to a single object file. The memory leaks in this version have been fixed. Thanks Alexey for pointing them out. Differential Revision: http://llvm-reviews.chandlerc.com/D2068 Reviewed by Andy llvm-svn: 195064
-
- Nov 18, 2013
-
-
Aaron Ballman authored
Checking for a return value with FormatMessage; if the call fails, there's no guarantee that the buffer will be non-null. llvm-svn: 195019
-
Aaron Ballman authored
llvm-svn: 195018
-
Alexander Kornienko authored
Fixes http://llvm.org/PR16221, http://llvm.org/PR15927 Phabricator: http://llvm-reviews.chandlerc.com/D1236 Patch by Andrew Tulloch! llvm-svn: 195016
-
Alexey Samsonov authored
This change is incorrect. If you delete virtual destructor of both a base class and a subclass, then the following code: Base *foo = new Child(); delete foo; will not cause the destructor for members of Child class. As a result, I observe plently of memory leaks. Notable examples I investigated are: ObjectBuffer and ObjectBufferStream, AttributeImpl and StringSAttributeImpl. llvm-svn: 194997
-
- Nov 17, 2013
-
-
Michael Gottesman authored
[block-freq] Add BlockFrequency::scale that returns a remainder from the division and make the private scale in BlockFrequency more performant. This change is the first in a series of changes improving LLVM's Block Frequency propogation implementation to not lose probability mass in branchy code when propogating block frequency information from a basic block to its successors. This patch is a simple infrastructure improvement that does not actually modify the block frequency algorithm. The specific changes are: 1. Changes the division algorithm used when scaling block frequencies by branch probabilities to a short division algorithm. This gives us the remainder for free as well as provides a nice speed boost. When I benched the old routine and the new routine on a Sandy Bridge iMac with disabled turbo mode performing 8192 iterations on an array of length 32768, I saw ~600% increase in speed in mean/median performance. 2. Exposes a scale method that returns a remainder. This is important so we can ensure that when we scale a block frequency by some branch probability BP = N/D, the remainder from the division by D can be retrieved and propagated to other children to ensure no probability mass is lost (more to come on this). llvm-svn: 194950
-
- Nov 16, 2013
-
-
Jim Grosbach authored
llvm-svn: 194906
-
- Nov 15, 2013
-
-
Juergen Ributzka authored
This patch removes most of the trivial cases of weak vtables by pinning them to a single object file. Differential Revision: http://llvm-reviews.chandlerc.com/D2068 Reviewed by Andy llvm-svn: 194865
-
Rui Ueyama authored
Summary: Make identify_magic to recognize COFF import file. Reviewers: Bigcheese CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2165 llvm-svn: 194852
-
- Nov 14, 2013
-
-
Rui Ueyama authored
Summary: Some machine-type-neutral object files containing only undefined symbols actually do exist in the Windows standard library. Need to recognize them as COFF files. Reviewers: Bigcheese CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2164 llvm-svn: 194734
-
NAKAMURA Takumi authored
llvm-svn: 194681
-
NAKAMURA Takumi authored
llvm-svn: 194680
-
Nick Kledzik authored
llvm-svn: 194655
-
Nick Kledzik authored
llvm-svn: 194644
-
- Nov 13, 2013
-
-
Benjamin Kramer authored
Otherwise it's impossible to use it. Also don't include C++ headers in a C header. llvm-svn: 194581
-
- Nov 06, 2013
-
-
Peter Zotov authored
llvm-svn: 194144
-
Peter Zotov authored
Presence of using namespace llvm depended on several #ifdef's, and this broke the build on mswin32. llvm-svn: 194142
-
Peter Zotov authored
Original patch by Chris Wailes llvm-svn: 194139
-
- Nov 04, 2013
-
-
Benjamin Kramer authored
This is just bdver2 + FSGSBase. llvm-svn: 193984
-
Filip Pizlo authored
stack traces by default if you use PrettyStackTraceProgram, so that existing LLVM-based tools will continue to get it without any changes. llvm-svn: 193971
-
- Nov 03, 2013
-
-
Filip Pizlo authored
When LLVM is embedded in a larger application, it's not OK for LLVM to intercept crashes. LLVM already has the ability to disable this functionality. This patch exposes it via the C API. llvm-svn: 193937
-
- Oct 31, 2013
-
-
Nuno Lopes authored
llvm-svn: 193795
-
Rafael Espindola authored
Patch by Robin Hahling. llvm-svn: 193750
-
Richard Sandiford authored
As on other hosts, the CPU identification instruction is priveleged, so we need to look through /proc/cpuinfo. I copied the PowerPC way of handling "generic". Several tests were implicitly assuming z10 and so failed on z196. llvm-svn: 193742
-
- Oct 30, 2013
-
-
Rui Ueyama authored
startswith_lower is ocassionally useful and I think worth adding. endwith_lower is added for completeness. Differential Revision: http://llvm-reviews.chandlerc.com/D2041 llvm-svn: 193706
-
Nuno Lopes authored
the case [x, INT_MIN) was not handled optimally llvm-svn: 193694
-
- Oct 28, 2013
-
-
Nuno Lopes authored
llvm-svn: 193523
-
- Oct 25, 2013
-
-
Rafael Espindola authored
llvm-svn: 193429
-
- Oct 24, 2013
-
-
John Thompson authored
llvm-svn: 193350
-
John Thompson authored
llvm-svn: 193344
-
- Oct 22, 2013
-
-
Alp Toker authored
This is a stopgap fix for cast warnings introduced in r192864. A proper fix should be investigated by the author when possible. llvm-svn: 193160
-
- Oct 19, 2013
-
-
Michael J. Spencer authored
llvm-svn: 193007
-
Michael J. Spencer authored
llvm-svn: 193004
-
- Oct 18, 2013
- Oct 17, 2013
-
-
Filip Pizlo authored
I expose the API with some caveats: - The C++ API involves a traditional void* opaque pointer for the fatal error callback. The C API doesn’t do this. I don’t think that the void* opaque pointer makes any sense since this is a global callback - there will only be one of them. So if you need to pass some data to your callback, just put it in a global variable. - The bindings will ignore the gen_crash_diag boolean. I ignore it because (1) I don’t know what it does, (2) it’s not documented AFAIK, and (3) I couldn’t imagine any use for it. I made the gut call that it probably wasn’t important enough to expose through the C API. llvm-svn: 192864
-
- Oct 16, 2013
-
-
Rui Ueyama authored
The magic bytes should not include the trailing NUL byte. llvm-svn: 192769
-
Rui Ueyama authored
Some background: One can pass compiled resource files (.res files) directly to the linker on Windows. If a resource file is given, the linker will run "cvtres" command in background to convert the resource file to a COFF file to link it. What I'm trying to do with this patch is to make the linker to recognize the resource file by file magic, so that it can run cvtres command. Differential Revision: http://llvm-reviews.chandlerc.com/D1943 llvm-svn: 192742
-