summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* clang-format.py: Make formatting unnamed buffers work again (broke in r190691).Nico Weber2013-10-251-3/+4
| | | | llvm-svn: 193433
* DIEHash: Summary hashing of member functionsDavid Blaikie2013-10-252-1/+19
| | | | llvm-svn: 193432
* Try to fix the build on windows.Rafael Espindola2013-10-251-2/+2
| | | | llvm-svn: 193431
* Don't check for -L options that gcc doesn't use.Rafael Espindola2013-10-251-2/+0
| | | | | | | GCC on fedora 18 ARM only uses 2 -L options. Clang prints two extra ones, but we should not include them in the test as they are not required. llvm-svn: 193430
* Change MemoryBuffer::getFile to take a Twine.Rafael Espindola2013-10-253-15/+15
| | | | llvm-svn: 193429
* I am about to change llvm::MemoryBuffer::getFile take take a Twine. ChangeRafael Espindola2013-10-253-3/+5
| | | | | | clang first so that the build still works. llvm-svn: 193428
* DIEHash: Summary hashing of nested typesDavid Blaikie2013-10-254-1/+73
| | | | llvm-svn: 193427
* Update the key/value documentation for the qHostInfo packet.Greg Clayton2013-10-251-3/+10
| | | | llvm-svn: 193426
* <rdar://problem/15263540>Greg Clayton2013-10-253-1/+44
| | | | | | | | Added a new key that we understand for the "qHostInfo" packet: "default_packet_timeout:T;" where T is a default packet timeout in seconds. This allows GDB servers with known slow packet response times to increase the default timeout to a value that makes sense for the connection. llvm-svn: 193425
* [PECOFF] Fix doublequote escaping.Rui Ueyama2013-10-251-4/+3
| | | | llvm-svn: 193424
* Just detect a distro as being fedora or not.Rafael Espindola2013-10-251-18/+4
| | | | | | | We don't have any checks that depend on the version of fedora, so we can simplify. llvm-svn: 193423
* [X86][AVX512] Add patterns that match the AVX512 floating point register ↵Quentin Colombet2013-10-252-0/+19
| | | | | | | | vbroadcast intrinsics. Patch by Cameron McInally <cameron.mcinally@nyu.edu> llvm-svn: 193422
* [X86][AVX512] Add patterns that match the AVX512 floating point vbroadcast ↵Quentin Colombet2013-10-252-0/+19
| | | | | | | | intrinsics. Patch by Cameron McInally <cameron.mcinally@nyu.edu> llvm-svn: 193421
* [bugpoint] Increase the default memory limit for subprocesses to 300MB.Daniel Sanders2013-10-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Currently shared library builds (BUILD_SHARED_LIBS=ON in cmake) fail three bugpoint tests (BugPoint/remove_arguments_test.ll, BugPoint/crash-narrowfunctiontest.ll, and BugPoint/metadata.ll). If I run the bugpoint commands that llvm-lit runs with without -silence-passes I see errors such as this: opt: error while loading shared libraries: libLLVMSystemZInfo.so: failed to map segment from shared object: Cannot allocate memory It seems that the increased size of the binaries in a shared library build is causing the subprocess to exceed the 100MB memory limit. This patch therefore increases the default limit to a level at which these tests pass. Reviewers: dsanders Reviewed By: dsanders CC: llvm-commits, rafael Differential Revision: http://llvm-reviews.chandlerc.com/D2013 llvm-svn: 193420
* Merge two adjacent ifs.Rafael Espindola2013-10-251-3/+2
| | | | llvm-svn: 193419
* Add -Wstring-plus-char, which warns when adding char literals to C strings.Jordan Rose2013-10-255-5/+109
| | | | | | | | | | | Specifically, this warns when a character literal is added (using '+') to a variable with type 'char *' (or any other pointer to character type). Like -Wstring-plus-int, there is a fix-it to change "foo + 'a'" to "&foo['a']" iff the character literal is on the right side of the string. Patch by Anders Rönnholm! llvm-svn: 193418
* [sanitizer] Disable tmpnam_r interceptor on Mac.Evgeniy Stepanov2013-10-251-1/+1
| | | | llvm-svn: 193417
* llvm-c-test: Don't leak memory buffers.Benjamin Kramer2013-10-251-0/+2
| | | | | | Detected by valgrind. llvm-svn: 193416
* [sanitizer] Intercept tmpnam, tmpnam_r, tempnam.Evgeniy Stepanov2013-10-255-0/+73
| | | | llvm-svn: 193415
* Used OwningPtr to clean up some memory management in Consumed.cpp.Chris Wailes2013-10-251-12/+7
| | | | llvm-svn: 193414
* Try to fix the openbsd bot.Rafael Espindola2013-10-251-1/+1
| | | | llvm-svn: 193413
* Call destroy from ~BasicCallGraph.Rafael Espindola2013-10-252-1/+5
| | | | | | | | | | | | This fix a memory leak found by valgrind. Calling it from the base class destructor would not destroy the BasicCallGraph bits. FIXME: BasicCallGraph is the only thing that inherits from CallGraph. Can we merge the two? llvm-svn: 193412
* [msandr] Add NATIVE_EXEC macro for building client for running in DynamoRIO ↵Evgeniy Stepanov2013-10-252-7/+26
| | | | | | | | | | | | hybrid mode only. When running application in DynamoRIO hybrid mode only, only uninstrumented modules will run in DynamoRIO and be instrumented by the client, so we do not need module table in MSanDR. Patch by Qin Zhao. llvm-svn: 193411
* clang-format: Adapt line break penalties for LLVM style.Daniel Jasper2013-10-254-8/+18
| | | | | | | | | | | | | | | | | | | | Specifically make clang-format less eager to break after the opening parenthesis of a function call. Before: aaaaaaaaaaaaaaaaa( aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa); After: aaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa); Apparently that is preferable. This penalties are adapted conservatively, we might have to increase them a little bit further. llvm-svn: 193410
* [sanitizer] Remove pthread_attr_getstackaddr interceptor.Evgeniy Stepanov2013-10-254-10/+0
| | | | | | The function is deprecated. llvm-svn: 193409
* [sanitizer] Fix Android build.Evgeniy Stepanov2013-10-251-3/+1
| | | | llvm-svn: 193408
* Update DWARFDebugPubnamesSet 64-bit DWARF to use new DWARFDataExtractorEd Maste2013-10-251-15/+4
| | | | llvm-svn: 193407
* [msan] Zerofill initstate_r buffer in random_r test.Evgeniy Stepanov2013-10-251-1/+3
| | | | llvm-svn: 193406
* [sanitizer] Intercept pthread_attr_get*.Evgeniy Stepanov2013-10-259-7/+175
| | | | llvm-svn: 193405
* Use c comments.Rafael Espindola2013-10-251-3/+3
| | | | llvm-svn: 193404
* ARM: allow .thumb_func to be separated from symbol definitionTim Northover2013-10-254-18/+23
| | | | | | | | | | When assembling, a .thumb_func directive is supposed to be applicable to the next symbol definition, even if there are intervening directives. We were racing ahead to try and find it, and this commit should fix the issue. Patch by Gabor Ballabas llvm-svn: 193403
* The FIXME was indeed fixed in the linker, comment removed.Yaron Keren2013-10-251-4/+0
| | | | llvm-svn: 193402
* [msan] Separate access and origin blocks in msan reports with an extra ↵Evgeniy Stepanov2013-10-251-0/+1
| | | | | | whiteline. llvm-svn: 193401
* tsan: do not crash when apparently bogus fd is passed to e.g. closeDmitry Vyukov2013-10-251-2/+34
| | | | | | | | some tests test libc/filesystem error handling paths (e.g. close(INT_MAX)), currently such tests fail with this change they work as expected llvm-svn: 193400
* ARM: don't expand atomicrmw inline on Cortex-M0Tim Northover2013-10-253-9/+14
| | | | | | | | | | There's a barrier instruction so that should still be used, but most actual atomic operations are going to need a platform decision on the correct behaviour (either nop if single-threaded or OS-support otherwise). rdar://problem/15287210 llvm-svn: 193399
* LegalizeDAG: allow libcalls for max/min atomic operationsTim Northover2013-10-254-0/+104
| | | | | | | | | | | ARM processors without ldrex/strex need to be able to make libcalls for all atomic operations, including the newer min/max versions. The alternative would probably be expanding these operations in terms of cmpxchg (as x86 does always), but in the configurations where this matters code-size tends to be paramount so the libcall is more desirable. llvm-svn: 193398
* Sema: Do not allow lambda expressions to appear inside of constant expressionsDavid Majnemer2013-10-255-14/+30
| | | | | | | | | We would previously not diagnose this which would lead to crashes (on very strange code). This fixes PR17675. llvm-svn: 193397
* [sanitizer] Intercept random_r.Evgeniy Stepanov2013-10-255-0/+31
| | | | llvm-svn: 193396
* Remove dead variables.Benjamin Kramer2013-10-251-11/+2
| | | | llvm-svn: 193395
* ARM: tweak test to pass on all platformsTim Northover2013-10-251-1/+3
| | | | | | | A TableGen indeterminacy means that the reason for the failure can vary, and Windows gets the other option. llvm-svn: 193394
* Optimize concat_vectors(X, undef) -> scalar_to_vector(X).Nadav Rotem2013-10-253-48/+33
| | | | | | | This optimization is not SSE specific so I am moving it to DAGco. The new scalar_to_vector dag node exposed a missing pattern in the AArch64 target that I needed to add. llvm-svn: 193393
* Switch __ARM_ARCH_7S__ to __ARM_ARCH_EXT_IDIV__ for use of sdiv/udiv assembly.Stephen Hines2013-10-256-6/+6
| | | | | | | | | __ARM_ARCH_EXT_IDIV__ is the define that ARM is using to indicate the presence of hardware integer divide (sdiv/udiv). Previously, this code was only being invoked for processors marked 7S. We now can correctly generate hardware divides on cortex-a15 devices. llvm-svn: 193392
* Fix ODR violation.Richard Smith2013-10-252-4/+4
| | | | llvm-svn: 193391
* llvm-cov dump to dbgs() instead of outs().Yuchen Wu2013-10-251-13/+14
| | | | llvm-svn: 193390
* Support for reading program counts in llvm-cov.Yuchen Wu2013-10-252-13/+34
| | | | | | | | | | | | | llvm-cov will now be able to read program counts from the GCDA file and output it in the same format as gcov. The program summary tag was identified from gcov-io.h as "\0\0\0\a3". There is currently a bug in GCOVProfiling.cpp which does not generate the run- or program-counting IR, so this change was tested manually by modifying the GCDA file and comparing the gcov and llvm-cov outputs. llvm-svn: 193389
* Consider used attributes in hidden decls.Rafael Espindola2013-10-252-0/+16
| | | | | | Without this patch we would warn and fail to output the function in the test. llvm-svn: 193388
* [PECOFF] Output error message to diagnostics.Rui Ueyama2013-10-251-1/+1
| | | | llvm-svn: 193387
* Simplify and refactor the uninitialized field warning.Richard Trieu2013-10-253-194/+155
| | | | | | | | | | | Change the uninitialized field warnings so that field initializers are checked inside the constructor. Previously, in class initializers were checked separately. Running one set of checks also simplifies the logic for preventing duplicate warnings. Added new checks to warn when an uninitialized field is used in base class initialization. Also fixed misspelling of uninitialized and moved all code for this warning together. llvm-svn: 193386
* [PECOFF] Handle edge case where no section alignment is specified.Rui Ueyama2013-10-253-17/+46
| | | | llvm-svn: 193385
* Concatenate strings at compile time.Rui Ueyama2013-10-251-14/+16
| | | | llvm-svn: 193384
OpenPOWER on IntegriCloud