summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't constrain the section order in tests that don't depend on it.Rafael Espindola2015-04-2938-182/+156
| | | | llvm-svn: 236102
* Revert 2 tests from "Tests for r236055."Renato Golin2015-04-292-30/+0
| | | | | | | This partially reverts commit r236056, as the two tests were using the same names and, when executed in parallel, were having intermittent failures. llvm-svn: 236101
* clang-format: Add ability to align assignment operators.Daniel Jasper2015-04-296-332/+579
| | | | | | | | | | | | | | | | | | | | | | | | | In Objective-C some style guides use a style where assignment operators are aligned, in an effort to increase code readability. This patch adds an option to the format library which allows this functionality. It is disabled by default for all the included styles, so it must be explicitly enabled. The option will change code such as: - (void)method { NSNumber *one = @1; NSNumber *twentyFive = @25; } to: - (void)method { NSNumber *one = @1; NSNumber *twentyFive = @25; } Patch by Matt Oakes. Thank you! Accidentally reformatted all the tests... llvm-svn: 236100
* [mips] Correct 128-bit shifts on 64-bit targets.Daniel Sanders2015-04-294-17/+17
| | | | | | | | | | | | | | | | Summary: The existing code was correct for 32-bit GPR's but not 64-bit GPR's. It now accounts for both cases. Reviewers: vkalintiris Reviewed By: vkalintiris Subscribers: llvm-commits, mohit.bhakkad, sagar Differential Revision: http://reviews.llvm.org/D9337 llvm-svn: 236099
* This patch adds support aarch64-linux-gnu (SysV) abi in lldb.Omair Javaid2015-04-2911-5/+1247
| | | | | | | | | This code is also an import from MacOSx implementation as SysV abi is similar to what has been implemented for MacOS but may require a few tweaks. http://reviews.llvm.org/D8538 llvm-svn: 236098
* This patch adds required piece of code for SysV Abi for arm. Omair Javaid2015-04-2910-6/+1014
| | | | | | | | | | Its mostly imported from MacOSx ABI for arm which is similar. Further tweaking a updates may be required at a later stage. http://reviews.llvm.org/D8539 llvm-svn: 236097
* [mips] [IAS] Inline assemble-time shifting out of createLShiftOri. NFC.Toma Tabacu2015-04-291-15/+24
| | | | | | | | | | | | | | | | Summary: Do the assemble-time shifts from createLShiftOri at the source, which groups all the shifting together, closer to the main logic path, and store the results in concisely-named variables to improve code clarity. Reviewers: dsanders Reviewed By: dsanders Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D8973 llvm-svn: 236096
* Fix bug in gdb-remote xml parser which failed to parse xml split over ↵Aidan Dodds2015-04-291-1/+2
| | | | | | multiple rsp packets. llvm-svn: 236095
* fixed 80-chars; NFCElena Demikhovsky2015-04-291-5/+7
| | | | llvm-svn: 236093
* Fixed masked gather/scatter switch-caseElena Demikhovsky2015-04-291-0/+2
| | | | llvm-svn: 236092
* clang-format: Fix selective indentaiton in nested blocks.Daniel Jasper2015-04-292-1/+16
| | | | | | | | | | | | Buggy case: someFunction( [] { // comment int i; // invoke formatting here. }, // force line break aaa); llvm-svn: 236091
* Add support for -stack-list-variables.Hafiz Abid Qadeer2015-04-297-7/+465
| | | | | | | | This command is able to list both local variables and stack arguments for a specific thread/frame. Args are denoted with 'arg="1"'. Patch from Chuck Ries. llvm-svn: 236090
* [TableGen] Use range-based for loops. NFC.Craig Topper2015-04-291-23/+9
| | | | llvm-svn: 236089
* [TableGen] Fold a couple dyn_casts into the ifs that check their results. NFCCraig Topper2015-04-291-11/+8
| | | | llvm-svn: 236088
* [TableGen] Replace some dyn_casts followed by an assert with just a regular ↵Craig Topper2015-04-292-25/+11
| | | | | | cast which asserts internally. NFC llvm-svn: 236087
* fixed comments, blanks, nullptr; NFCElena Demikhovsky2015-04-292-6/+5
| | | | llvm-svn: 236086
* [OPENMP] Fix crash on reductions codegen for short circuit reduction operations.Alexey Bataev2015-04-292-2/+8
| | | | llvm-svn: 236084
* [TableGen] Use range-based for loops. NFCCraig Topper2015-04-291-57/+28
| | | | llvm-svn: 236083
* Revert r236052, it caused linker errors when building 32-bit applications.Nico Weber2015-04-298-278/+153
| | | | llvm-svn: 236082
* Drop Dragonegg from the release export scriptHans Wennborg2015-04-291-1/+1
| | | | | | Follow-up to r236077. llvm-svn: 236081
* Use an "early return" idiom for the error case. NFCFilipe Cabecinhas2015-04-291-8/+6
| | | | llvm-svn: 236080
* Check that we have a valid PointerType element type before calling get()Filipe Cabecinhas2015-04-293-1/+4
| | | | | | | | Same as r236073 but for PointerType. Bug found with AFL fuzz. llvm-svn: 236079
* Use the ArrayType member function for array element types.Filipe Cabecinhas2015-04-291-1/+1
| | | | | | ArrayType and StructType accept the same types, so no test. llvm-svn: 236078
* Drop Dragonegg support from the release scriptHans Wennborg2015-04-291-113/+2
| | | | | | | | | It doesn't have a maintainer and none of the release testers test it, so I don't think it should be part of the release. http://reviews.llvm.org/D9331 llvm-svn: 236077
* Turn an assert into report_fatal_error since it's reachable based on user inputFilipe Cabecinhas2015-04-293-1/+7
| | | | | | Bug found with AFL fuzz. llvm-svn: 236076
* Add -Wpessimizing-move and -Wredundant-move warnings.Richard Trieu2015-04-295-0/+396
| | | | | | | | | | | | | | | -Wpessimizing-move warns when a call to std::move would prevent copy elision if the argument was not wrapped in a call. This happens when moving a local variable in a return statement when the variable is the same type as the return type or using a move to create a new object from a temporary object. -Wredundant-move warns when an implicit move would already be made, so the std::move call is not needed, such as when moving a local variable in a return that is different from the return type. Differential Revision: http://reviews.llvm.org/D7633 llvm-svn: 236075
* [Orc] It's not valid to pass a null resolver to addModuleSet. Use a no-opLang Hames2015-04-291-4/+19
| | | | | | resolver with a diagnostic instread. llvm-svn: 236074
* Make sure that isValidElementType(Type) before calling ↵Filipe Cabecinhas2015-04-294-2/+11
| | | | | | | | {Array,Struct}Type::get(Type) Bug found with AFL fuzz. llvm-svn: 236073
* PR20625: Instantiate static constexpr member function of a local struct in a ↵Richard Smith2015-04-292-0/+21
| | | | | | | | | | | | function template earlier. This is necessary in order to allow the use of a constexpr member function, or a member function with deduced return type, of a local class within a surrounding instantiated function template specialization. Patch by Michael Park! llvm-svn: 236063
* RegisterCoalescer: hide terminal rule option by defaultMatthias Braun2015-04-281-1/+1
| | | | llvm-svn: 236062
* test-release.sh: Drop some unused command-line options.Hans Wennborg2015-04-281-12/+0
| | | | | | These haven't done anything since before r142165. llvm-svn: 236061
* Stop emitting the soft-float and soft-float-abi target featuresEric Christopher2015-04-281-23/+1
| | | | | | | for ARM while the backend will only ignore them. No functional change intended. llvm-svn: 236060
* Debug Info: Represent local anonymous unions as anonymous unionsAdrian Prantl2015-04-282-25/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in the debug info. This patch deletes a hack that emits the members of local anonymous unions as local variables. Besides being morally wrong, the existing representation using local variables breaks internal assumptions about the local variables' storage size. Compiling ``` void fn1() { union { int i; char c; }; i = c; } ``` with -g -O3 -verify will cause the verifier to fail after SROA splits the 32-bit storage for the "local variable" c into two pieces because the second piece is clearly outside the 8-bit range that is expected for a variable of type char. Given the choice I'd rather fix the debug representation than weaken the verifier. Debuggers generally already know how to deal with anonymous unions when they are members of C++ record types, but they may have problems finding the local anonymous struct members in the expression evaluator. rdar://problem/20730771 llvm-svn: 236059
* Map directly from signature symbol to group index. NFC.Rafael Espindola2015-04-281-10/+13
| | | | llvm-svn: 236058
* Fix Sema tests using __try by adding tripleReid Kleckner2015-04-283-5/+5
| | | | llvm-svn: 236057
* Tests for r236055.Eric Christopher2015-04-284-0/+58
| | | | | | Patch by Teresa Johnson. llvm-svn: 236056
* This change is the first of 3 patches to add support for specifyingEric Christopher2015-04-282-18/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the profile output from the command line via -fprofile-instr-generate=<path>, where the specified output path/file will be overridden by the LLVM_PROFILE_FILE environment variable. Several changes are made to the runtime to support this: Add a new interface __llvm_profile_override_default_filename that will set the profile output filename, but allows LLVM_PROFILE_FILE to override. This is the interface used by the new option. Refactor the pid-expansion done for LLVM_PROFILE_FILE into a separate routine that can be shared by the various filename setting routines (so that the filename from the option can also use the "%p" syntax). Move the truncation into setFilename, and only truncate if there is a new filename specified (to maintain support for appending to the same profile file in the case of multiple shared objects built with profiling). Move the handling for a NULL filename passed to __llvm_profile_set_filename and __llvm_profile_override_default_filename into the new setFilenamePossiblyWithPid routine. This now correctly resets the output file to default.profraw instead of NULL. The handling for a null LLVM_PROFILE_FILE (which should not reset) is done by caller setFilenameFromEnvironment. Patch by Teresa Johnson. llvm-svn: 236055
* Reuse a lookup in an assert.Eric Christopher2015-04-281-3/+3
| | | | llvm-svn: 236054
* Remove redundant temporary std::vector.Rafael Espindola2015-04-281-25/+7
| | | | | | | New sections are added to the end of the list, so the RelSections array was redundant. llvm-svn: 236053
* [SEH] Add 32-bit lowering code for __tryReid Kleckner2015-04-288-153/+278
| | | | | | | | | | | | | | | | | | | | This is just the clang-side of 32-bit SEH. LLVM still needs work, and it will determinstically fail to compile until it's feature complete. On x86, all outlined handlers have no parameters, but they do implicitly take the EBP value passed in and use it to address locals of the parent frame. We model this with llvm.frameaddress(1). This works (mostly), but __finally block inlining can break it. For now, we apply the 'noinline' attribute. If we really want to inline __finally blocks on 32-bit x86, we should teach the inliner how to untangle frameescape and framerecover. Promote the error diagnostic from codegen to sema. It now rejects SEH on non-Windows platforms. LLVM doesn't implement SEH on non-x86 Windows platforms, but there's nothing preventing it. llvm-svn: 236052
* Fix the typo in r236044. NFC.Steven Wu2015-04-281-1/+1
| | | | llvm-svn: 236051
* ARM: fix peephole optimisation of TSTTim Northover2015-04-282-16/+28
| | | | | | | | | | | We were trying to look through COPY instructions, but only to the next instruction in a BB and incorrectly anyway. The cases where that would actually be a good idea are rare enough (and not even tested!) that it's not worth trying to get right. rdar://20721342 llvm-svn: 236050
* Avoid one more walk over all sections. NFC.Rafael Espindola2015-04-281-9/+3
| | | | | | Set the group section index as they are created. llvm-svn: 236049
* Style updatesAndrew Kaylor2015-04-281-18/+19
| | | | llvm-svn: 236048
* Use a range loop. NFC.Rafael Espindola2015-04-281-3/+2
| | | | llvm-svn: 236047
* [WinEH] Split blocks at calls to llvm.eh.begincatchAndrew Kaylor2015-04-286-36/+206
| | | | | | Differential Revision: http://reviews.llvm.org/D9311 llvm-svn: 236046
* Avoid an extra walk over the sections just to assign sections to groups.Rafael Espindola2015-04-281-30/+41
| | | | | | Assign the sections in the same pass we compute the index. llvm-svn: 236045
* Fix -fno-gnu-inline-asm doesn't catch file scope asmSteven Wu2015-04-282-0/+5
| | | | | | | | | | | | | | | | | | Summary: FileScopeAsm should be treated the same as funcion level inline asm. -fno-gnu-inline-asm should trigger an error if file scope asm is used. I missed this case from r226340. This should not affect ms-extension because it is not allowed in the file scope. Reviewers: bob.wilson, rnk Reviewed By: rnk Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D9328 llvm-svn: 236044
* Fix assertion failure if a lambda array-capture is followed by a this capture.Richard Smith2015-04-283-13/+13
| | | | llvm-svn: 236043
* Sparc: Add alternate aliases for conditional branch instructions.James Y Knight2015-04-282-0/+30
| | | | llvm-svn: 236042
OpenPOWER on IntegriCloud