summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* llvm-cov: clang-format the GCOV files (NFC)Justin Bogner2015-01-232-148/+195
| | | | llvm-svn: 226952
* [lld] Added REQUIRES lines to testsFilipe Cabecinhas2015-01-2317-0/+34
| | | | llvm-svn: 226951
* [lld] Re-add REQUIRES lineFilipe Cabecinhas2015-01-231-0/+2
| | | | | | Please don't remove REQUIRES lines when refreshing tests. llvm-svn: 226950
* Fix the MSVC build with the new Orc JIT APIsReid Kleckner2015-01-232-3/+9
| | | | llvm-svn: 226949
* [YAMLIO] Dirty hack: Force integral conversion to allow strong typedefs to ↵Michael J. Spencer2015-01-231-2/+3
| | | | | | convert. llvm-svn: 226948
* Get libc++ building on Sun Solaris. Patch from C Bergstrom.Eric Fiselier2015-01-235-296/+20
| | | | llvm-svn: 226947
* [Orc] Remove a bunch of constructors from ObjectLinkingLayer.Lang Hames2015-01-232-45/+11
| | | | | | | These constructors were causing trouble for MSVC and older GCCs. This should fix more of the build failures from r226940. llvm-svn: 226946
* R600/SI: Move i64 -> v2i32 load promotion into AMDGPUDAGToDAGISel::Select()Tom Stellard2015-01-233-3/+40
| | | | | | | | | | | We used to do this promotion during DAG legalization, but this caused an infinite loop in ExpandUnalignedLoad() because it assumed that i64 loads were legal if i64 was a legal type. It also seems better to report i64 loads as legal, since they actually are and we were just promoting them to simplify our tablegen files. llvm-svn: 226945
* Objective-C moderinzer [qoi], add space on rhs when needed whenFariborz Jahanian2015-01-233-0/+46
| | | | | | | converting to property-dot syntax for setters. rdar://19381786 llvm-svn: 226944
* [Object][ELF] Test unknown type.Michael J. Spencer2015-01-233-1/+12
| | | | llvm-svn: 226943
* [YAMLIO] Add support for numeric values in enums.Michael J. Spencer2015-01-232-0/+26
| | | | llvm-svn: 226942
* [Orc] LLVMLinkInOrcMCJITReplacement shouldn't be in the anonymous namespace.Lang Hames2015-01-231-1/+2
| | | | | | This should fix some of the builder errors from r226940. llvm-svn: 226941
* [Orc] New JIT APIs.Lang Hames2015-01-2329-8/+2428
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a new set of JIT APIs to LLVM. The aim of these new APIs is to cleanly support a wider range of JIT use cases in LLVM, and encourage the development and contribution of re-usable infrastructure for LLVM JIT use-cases. These APIs are intended to live alongside the MCJIT APIs, and should not affect existing clients. Included in this patch: 1) New headers in include/llvm/ExecutionEngine/Orc that provide a set of components for building JIT infrastructure. Implementation code for these headers lives in lib/ExecutionEngine/Orc. 2) A prototype re-implementation of MCJIT (OrcMCJITReplacement) built out of the new components. 3) Minor changes to RTDyldMemoryManager needed to support the new components. These changes should not impact existing clients. 4) A new flag for lli, -use-orcmcjit, which will cause lli to use the OrcMCJITReplacement class as its underlying execution engine, rather than MCJIT itself. Tests to follow shortly. Special thanks to Michael Ilseman, Pete Cooper, David Blaikie, Eric Christopher, Justin Bogner, and Jim Grosbach for extensive feedback and discussion. llvm-svn: 226940
* Move the accessor functions from DIExpression::iterator into a wrapperAdrian Prantl2015-01-233-21/+30
| | | | | | | | DIExpression::Operand, so we can write range-based for loops. Thanks to David Blaikie for the idea. llvm-svn: 226939
* [sanitizer] Update descriptor size for glibc 2.13.Sergey Matveev2015-01-231-0/+2
| | | | | | | | | See https://code.google.com/p/address-sanitizer/issues/detail?id=361 It's still not clear whether the values are correct in all cases, but at least this should unbreak our bots. llvm-svn: 226938
* lit: Make MCJIT's supported arch check case insensitiveReid Kleckner2015-01-233-4/+2
| | | | | | | | | Should make the tests run when using CMake on systems where 'uname -p' reports "amd64", such as FreeBSD. Should fix PR21559. llvm-svn: 226937
* Fix the problem with llvm-objdump and -archive-headers in printing the ↵Kevin Enderby2015-01-232-5/+5
| | | | | | | | archive header size field. This problem showed up with the clang-cmake-armv7-a15-full bot. Thanks to Renato Golin for his help. llvm-svn: 226936
* [mips] fix spelling of 'disassembler'Alexei Starovoitov2015-01-231-3/+3
| | | | | | trivial first commit llvm-svn: 226935
* LowerSwitch: replace unreachable default with popular case destinationHans Wennborg2015-01-233-65/+250
| | | | | | | | | | | | SimplifyCFG currently does this transformation, but I'm planning to remove that to allow other passes, such as this one, to exploit the unreachable default. This patch takes care to keep track of what case values are unreachable even after the transformation, allowing for more efficient lowering. Differential Revision: http://reviews.llvm.org/D6697 llvm-svn: 226934
* Fix CMake build - add readline dependency on ${PYTHON_LIBRARY}.Oleksiy Vyalov2015-01-231-0/+2
| | | | llvm-svn: 226933
* [Objdump] Output information about common symbols in a way closer to GNU ↵Colin LeMahieu2015-01-233-1/+14
| | | | | | objdump. llvm-svn: 226932
* [emacs] llvm-mode: fix parens, font-lock i*Ramkumar Ramachandra2015-01-231-10/+3
| | | | | | | | | | | | | | | | In llvm-mode, with electric-pair-mode turned on, typing a literal '[' would print out '[[', and '(' would print a '(('. This was a very annoying bug caused by overzealous syntax-table entries: the parens are already part of the '(' and ')' class by default. Fix this. While at it, notice that i32, i64, i1 etc. are not font-locked despite a clear intent to do so. The issue is that regexp-opt doesn't accept regular expressions. So, spell out the common literal integers with different widths. Differential Revision: http://reviews.llvm.org/D7036 llvm-svn: 226931
* clang-format: Fix another crasher caused by incomplete macro code.Daniel Jasper2015-01-232-5/+12
| | | | | | | | We did't properly mark all of an AnnotatedLine's children as finalized and thus would reformat the same tokens in different branches of #if/#else sequences leading to invalid replacements. llvm-svn: 226930
* [compiler-rt] Ensure AsanInitFromRtl is called from a static initializer on ↵Kuba Brecka2015-01-234-6/+83
| | | | | | | | | | | | | | | | | | | | OS X by using ASAN_DYNAMIC=1 The idea is to ensure that the ASan runtime gets initialized early (i.e. before other initializers/constructors) even when DYLD_INSERT_LIBRARIES is not used. In that case, the interceptors are not installed (on OS X, DYLD_INSERT_LIBRARIES is required for interceptors to work), and therefore ASan gets currently initialized quite late -- from the main executable's module initializer. The following issues are a consequence of this: https://code.google.com/p/address-sanitizer/issues/detail?id=363 https://code.google.com/p/address-sanitizer/issues/detail?id=357 Both of them are fixed with this patch. Reviewed at http://reviews.llvm.org/D7117 llvm-svn: 226929
* Revert " Fix the ELF shared library build targets"Greg Fitzgerald2015-01-2338-139/+162
| | | | | | This reverts commit 6a3f545b44cea46321e025d9ab773786af86cb51. llvm-svn: 226928
* Objective-C modernizer. Avoid using property-dot syntax whenFariborz Jahanian2015-01-233-0/+48
| | | | | | | receiver type is not valid for property-dot syntz use. rdar://19381786 llvm-svn: 226927
* [compiler-rt] Fix the prototype of ioctl interceptorKuba Brecka2015-01-231-1/+9
| | | | | | | | | | | | | | | | | | | | The interceptor of ioctl is using a non-standard prototype: INTERCEPTOR(int, ioctl, int d, unsigned request, void *arg) At least on OS X, the request argument should be unsigned long and not just unsigned, and also instead of the last argument (arg), the function should be accepting a variable number of arguments, so the prototype should be: int ioctl(int fildes, unsigned long request, ...); We can still keep using `unsigned` internally to save space, because we know that all possible values of `request` will fit into it. Reviewed at http://reviews.llvm.org/D7038 llvm-svn: 226926
* Attempt to fix ::sscanf Cygwin build break reported in PR22302Reid Kleckner2015-01-231-1/+3
| | | | llvm-svn: 226925
* Add tests for code completion of variadic prototypesFrancisco Lopes da Silva2015-01-231-2/+30
| | | | llvm-svn: 226924
* clang-format: Fix incorrect classification of "*".Daniel Jasper2015-01-232-13/+15
| | | | | | | | | | Before: *a = b *c; After: *a = b * c; llvm-svn: 226923
* Fix the ELF shared library build targetsGreg Fitzgerald2015-01-2338-162/+139
| | | | | | | | | | lldELF is used by each ELF backend. lldELF's ELFLinkingContext also held a reference to each backend, creating a link-time cycle. This patch moves the backend references to lldDriver. Differential Revision: http://reviews.llvm.org/D7119 llvm-svn: 226922
* Add the option, -data-in-code, to llvm-objdump used with -macho to print the ↵Kevin Enderby2015-01-235-2/+61
| | | | | | Mach-O data in code table. llvm-svn: 226921
* Classify functions by EH personality type rather than using the tripleReid Kleckner2015-01-2311-30/+105
| | | | | | | | | | | | | | | This mostly reverts commit r222062 and replaces it with a new enum. At some point this enum will grow at least for other MSVC EH personalities. Also beefs up the way we were sniffing the personality function. Previously we would emit the Itanium LSDA despite using __C_specific_handler. Reviewers: majnemer Differential Revision: http://reviews.llvm.org/D6987 llvm-svn: 226920
* Debug Info / PR22309: Allow union types to be emitted as unsigned constants.Adrian Prantl2015-01-232-1/+68
| | | | llvm-svn: 226919
* Remove some local variables in place of just querying for themEric Christopher2015-01-231-6/+4
| | | | | | in the couple of asserts. llvm-svn: 226917
* Process the -fno-signed-zeros optimization flag (PR20870)Sanjay Patel2015-01-236-5/+28
| | | | | | | | | | | | | | | | | | The driver currently accepts but ignores the -fno-signed-zeros flag. This patch passes the flag through and enables 'nsz' fast-math-flag generation in IR. The existing OpenCL flag for the same functionality is made into an alias here. It may be removed in a subsequent patch. This should resolve bug 20870 ( http://llvm.org/bugs/show_bug.cgi?id=20870 ); patches for the optimizer were checked in at: http://llvm.org/viewvc/llvm-project?view=revision&revision=225050 http://llvm.org/viewvc/llvm-project?view=revision&revision=224583 Differential Revision: http://reviews.llvm.org/D6873 llvm-svn: 226915
* Replace size() calls on containers with empty() calls where appropriate. NFCAlexander Kornienko2015-01-236-7/+7
| | | | | | | | http://reviews.llvm.org/D7090 Patch by Gábor Horváth! llvm-svn: 226914
* [sanitizer] Fix an edge case in MemoryRangeIsAvailable.Evgeniy Stepanov2015-01-231-1/+2
| | | | llvm-svn: 226913
* [clang-tidy] Use shrink_to_fit instead of copy and swap trickAlexander Kornienko2015-01-235-0/+223
| | | | | | | | | | | | | | | | The shrink_to_fit() method is more readable and more effective than the copy and swap trick to reduce the capacity of a shrinkable container. Note that, the shrink_to_fit() method is only available in C++11 and up. Example: std::vector<int>(v).swap(v); will be replaced with v.shrink_to_fit(); http://reviews.llvm.org/D7087 Patch by Gábor Horváth! llvm-svn: 226912
* [clang-tidy] Small readability-container-size-empty cleanupAlexander Kornienko2015-01-231-2/+1
| | | | | | | | | | Utilized the hasEitherOperand instead of explicit anyOf. http://reviews.llvm.org/D7142 Patch by Gábor Horváth! llvm-svn: 226911
* [Sanitizers] Intercept statfs() on FreeBSDViktor Kutuzov2015-01-231-1/+1
| | | | | | Committed unreviewed with permission. llvm-svn: 226910
* Fix handling of data-disassemble command arguments.Deepak Panickal2015-01-231-19/+10
| | | | llvm-svn: 226909
* Sema: code completion for variadic prototypes.Francisco Lopes da Silva2015-01-231-1/+3
| | | | llvm-svn: 226908
* Cleanup do-gtest.pyTamas Berghammer2015-01-231-40/+64
| | | | | | | | * Add comments * Refactor output manipulation (cleanup + minor bug fixes) * Add better error reporting on test failure llvm-svn: 226907
* Fix indentation in ValueObject.cpp (test commit)Tamas Berghammer2015-01-231-2/+2
| | | | llvm-svn: 226906
* [mips] Add new error message and improve testing for parsing the .module ↵Toma Tabacu2015-01-232-39/+50
| | | | | | | | | | | | | | | | | | | | | | | directive. Summary: We used to silently ignore any empty .module's and we used to give an error saying that we found an "unexpected token at start of statement" when the value of the option wasn't an identifier (e.g. if it was a number). We now give an error saying that we "expected .module option identifier" in both of those cases. I also fixed the other tests in mips-abi-bad.s, which all seemed to be broken. Reviewers: dsanders Reviewed By: dsanders Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D7095 llvm-svn: 226905
* This patch fixes issue with lowering below mentioned pattern :-Jyoti Allur2015-01-232-7/+51
| | | | | | | | | | | | | | | | | | _foo: smull r0, r1, r1, r0 smull r2, r3, r3, r2 adds r0, r2, r0 adc r1, r3, r1 bx lr to _foo: smull r0, r1, r1, r0 smlal r0, r1, r3, r2 bx lr llvm-svn: 226904
* Test commit.Denis Protivensky2015-01-231-1/+1
| | | | llvm-svn: 226903
* [x86] Change u8imm operands to always print as unsigned. This makes shuffle ↵Craig Topper2015-01-2314-50/+65
| | | | | | masks and the like make way more sense. llvm-svn: 226902
* DAGCombine: always constant fold FMA when target disable FP exceptionsMehdi Amini2015-01-231-1/+1
| | | | | | | | | | | | | | | | | Summary: When trying to constant fold an FMA in the DAG, getNode() fails to fold the FMA if an operand is not finite. In this case this patch allows the constant folding if !TLI->hasFloatingPointExceptions() Reviewers: resistor Reviewed By: resistor Subscribers: hfinkel, llvm-commits Differential Revision: http://reviews.llvm.org/D6912 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 226901
OpenPOWER on IntegriCloud