summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add missing #include's to cctype when using isdigit/alpha/etc.Will Dietz2013-10-1222-0/+23
| | | | llvm-svn: 192519
* Report the summed hit count in the breakpoint line.Jim Ingham2013-10-121-1/+1
| | | | | | <rdar://problem/15183226> llvm-svn: 192518
* Debug Info: remove form from function addDIEEntry.Manman Ren2013-10-113-26/+17
| | | | | | | | | The form must be a reference form in addDIEEntry. Which reference form to use will be decided by the callee. No functionality change. llvm-svn: 192517
* Updated IRExecutionUnit to reflect changes inSean Callanan2013-10-111-0/+4
| | | | | | RTDYLDMemoryManager. llvm-svn: 192516
* Consumed analysis: replace the consumes attribute with a set_typestateDeLesley Hutchins2013-10-116-95/+143
| | | | | | attribute. Patch by chris.wailes@gmail.com; reviewed and edited by delesley. llvm-svn: 192515
* Fixing problems in lli's RemoteMemoryManager.Andrew Kaylor2013-10-114-9/+11
| | | | | | | | This fixes a problem from a previous check-in where a return value was omitted. Previously the remote/stubs-remote.ll and remote/stubs-sm-pic.ll tests were reporting passes, but they should have been failing. Those tests attempt to link against an external symbol and remote symbol resolution is not supported. The old RemoteMemoryManager implementation resulted in local symbols being used for resolution and the child process crashed but the test didn't notice. With this check-in remote symbol resolution fails, and so the test (correctly) fails. llvm-svn: 192514
* Consumed analysis: switch from tests_consumed/unconsumed to a generalDeLesley Hutchins2013-10-1110-152/+67
| | | | | | tests_typestate attribute. Patch by chris.wailes@gmail.com. llvm-svn: 192513
* Improve the error message for attempting to build a for range loop using aRichard Trieu2013-10-113-2/+38
| | | | | | | | | function parameter that has array type. Such a parameter will be treated as a pointer type instead, resulting in a missing begin function error is a suggestion to dereference the pointer. This provides a different, more informative diagnostic as well as point to the parameter declaration. llvm-svn: 192512
* <rdar://problem/15192088>Enrico Granata2013-10-111-1/+3
| | | | | | | gdb-format a (as in p/a) would fail as it needed to set a byte size (unsurprisingly enough) This should be acknowledged by the condition check and not cause a failure llvm-svn: 192511
* <rdar://problem/15191078>Greg Clayton2013-10-113-1/+37
| | | | | | Fixed Module::ResolveSymbolContextForAddress() to be able to also look in the SymbolVendor's SymbolFile's ObjectFile for a more meaningful symbol when a symbol lookup finds a synthetic symbol from the main object file. This will help lookups on MacOSX as the main executable might be stripped, but the dSYM file always has a full symbol table. llvm-svn: 192510
* Prune unused local variable.Rui Ueyama2013-10-111-3/+1
| | | | llvm-svn: 192509
* Consumed analysis: check destructor calls.DeLesley Hutchins2013-10-112-21/+76
| | | | | | | This allows the callable_when attribute to be attached to destructors. Original patch by chris.wailes@gmail.com, reviewed and edited by delesley. llvm-svn: 192508
* Don't break string literals inside preprocessor directives.Alexander Kornienko2013-10-113-8/+33
| | | | | | | | | | | | | | | | | | Summary: This way we avoid breaking code which uses unknown preprocessor directives with long string literals. The specific use case in http://llvm.org/PR17035 isn't very common, but it seems to be a good idea to avoid this kind of problem anyway. Reviewers: djasper Reviewed By: djasper CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D1813 llvm-svn: 192507
* ObjectiveC migrator. also support migration toFariborz Jahanian2013-10-113-10/+92
| | | | | | | NS_ENUM/NS_OPTIONS macros when typedef declaration precedes enum declaration. // rdar://15200915 llvm-svn: 192506
* Changed clang-format-diff.py to output diff by default. Added -i option to ↵Alexander Kornienko2013-10-111-3/+22
| | | | | | | | | | | | | | | | | | | | | | apply changes to files instead. Summary: "svn diff|clang-format-diff.py" will just output the diff. Now it's possible to use: svn diff|clang-format-diff.py|patch -p0 as an equivalent to: svn diff|clang-format-diff.py -i ;) Reviewers: djasper Reviewed By: djasper CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1840 llvm-svn: 192505
* Adding multiple object support to MCJIT EH frame handlingAndrew Kaylor2013-10-1115-88/+210
| | | | llvm-svn: 192504
* Support formatting of preprocessor branches.Manuel Klimek2013-10-1111-68/+265
| | | | | | | | | | | | | | | | | | | | | We now correctly format: void SomeFunction(int param1, #ifdef X NoTemplate param2, #else template < #ifdef A MyType<Some> > #else Type1, Type2> #endif param2, #endif param3) { f(); } llvm-svn: 192503
* Only use the MS record layout when using the MS C++ ABIReid Kleckner2013-10-111-5/+5
| | | | | | We're not ready to use it everywhere we use a win32 triple yet. llvm-svn: 192502
* R600: Add scalar i32 add testMatt Arsenault2013-10-111-0/+16
| | | | llvm-svn: 192501
* Use CHECK-LABELMatt Arsenault2013-10-111-8/+8
| | | | llvm-svn: 192500
* Fix typoMatt Arsenault2013-10-111-1/+1
| | | | llvm-svn: 192499
* Turn struct-path aware TBAA on by default.Manman Ren2013-10-118-13/+15
| | | | | | | | Use -no-struct-path-tbaa to turn it off. This is the same as r191695, which was reverted because it depends on a commit that has issues. llvm-svn: 192497
* Use castAs instead of cast in thunk generationReid Kleckner2013-10-112-1/+16
| | | | | | | | Calling convention attributes can add sugar to methods that we have to look through. This fixes an assertion failure in the provided test case. llvm-svn: 192496
* Fix unused variable warning in MS record layout.Reid Kleckner2013-10-111-3/+1
| | | | llvm-svn: 192495
* Adds Microsoft compatiable C++ record layout code to clang.Warren Hunt2013-10-1115-95/+852
| | | | llvm-svn: 192494
* [libclang] Introduce clang_Type_getCXXRefQualifier whichexposes ↵Argyrios Kyrtzidis2013-10-116-5/+109
| | | | | | | | ref-qualifier information of function type. Patch by Che-Liang Chiou! llvm-svn: 192493
* fConversion: Attempt #2 at fixing the MSVC build.Benjamin Kramer2013-10-111-2/+2
| | | | llvm-svn: 192492
* <rdar://problem/13635174>Greg Clayton2013-10-1125-119/+208
| | | | | | | | Added a way to set hardware breakpoints from the "breakpoint set" command with the new "--hardware" option. Hardware breakpoints are not a request, they currently are a requirement. So when breakpoints are specified as hardware breakpoints, they might fail to be set when they are able to be resolved and should be used sparingly. This is currently hooked up for GDB remote debugging. Linux and FreeBSD should quickly enable this feature if possible, or return an error for any breakpoints that are hardware breakpoint sites in the "virtual Error Process::EnableBreakpointSite (BreakpointSite *bp_site);" function. llvm-svn: 192491
* clang-format: Don't remove 'unknown' tokens.Daniel Jasper2013-10-113-1/+28
| | | | | | | | | | | In certain macros or incorrect string literals, the token stream can contain 'unknown' tokens, e.g. a single backslash or a set of empty ticks. clang-format simply treated them as whitespace and removed them prior to this patch. This fixes llvm.org/PR17215 llvm-svn: 192490
* Implemented TruncInst in the IRInterpreter.Sean Callanan2013-10-111-0/+37
| | | | | | <rdar://problem/15188389> llvm-svn: 192489
* This reverts r192484, which I really shouldn't have checked in. Apologies.Richard Mitton2013-10-111-1/+1
| | | | llvm-svn: 192488
* IfConversion: Try to unbreak the MSVC build.Benjamin Kramer2013-10-111-1/+1
| | | | llvm-svn: 192487
* Use existing llvm::RoundUpToAlignment in ELF note parsingEd Maste2013-10-111-9/+2
| | | | llvm-svn: 192486
* Fixed bad return code, which would cause invalid expressions to silently fail.Richard Mitton2013-10-111-1/+1
| | | | llvm-svn: 192484
* Mips: Disassemble sign-extended 64 bit immediates properly.Benjamin Kramer2013-10-112-1/+6
| | | | | | This doesn't change the meaning of the output, but makes look right. PR17539. llvm-svn: 192483
* Remove kill flags after if conversion if necessaryMatthias Braun2013-10-112-66/+119
| | | | | | | | | | | | | | | | | | | When if converting something like: true: ... = R0<kill> false: ... = R0<kill> then the instructions of the true block must not have a <kill> flag anymore, as the instruction of the false block follow and do still read the R0 value. Specifically this patch determines the set of register live-in in the false block (possibly after simulating the liveness changes of the duplicated instructions). Each of these live-in registers mustn't be killed. llvm-svn: 192482
* Introduce ad hoc liveness tracking utility: LiveRegUnitsMatthias Braun2013-10-111-0/+156
| | | | | | | Contains a set of live register (units) and code to move forward and backward in the schedule while updating the live set. llvm-svn: 192481
* [DAGCombiner] Load slicing test case: attempt to really fix the buildbots ↵Quentin Colombet2013-10-111-2/+2
| | | | | | | | (used sse4.2 instead of avx!). <rdar://problem/14477220> llvm-svn: 192480
* Add warning about CHECK-DAG with variable definitionRenato Golin2013-10-111-9/+37
| | | | llvm-svn: 192479
* Debug Info Testing Case: check for the name of a structure.Manman Ren2013-10-111-0/+1
| | | | llvm-svn: 192478
* Really fix CHECK-LABEL and CHECK-DAG interaction. This actually just ↵Stephen Lin2013-10-112-9/+28
| | | | | | restores the initial implementation that was in r186162 but got lost in some subsequent refactoring. More explicit variable names and comments are present now to hopefully prevent repeat regression, as well as another test. llvm-svn: 192477
* [DAGCombiner] Reapply load slicing (192471) with a test that explicitly set ↵Quentin Colombet2013-10-113-2/+743
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sse4.2 support. This should fix the buildbots. Original commit message: [DAGCombiner] Slice a big load in two loads when the element are next to each other in memory and the target has paired load and performs post-isel loads combining. E.g., this optimization will transform something like this: a = load i64* addr b = trunc i64 a to i32 c = lshr i64 a, 32 d = trunc i64 c to i32 into: b = load i32* addr1 d = load i32* addr2 Where addr1 = addr2 +/- sizeof(i32), if the target supports paired load and performs post-isel loads combining. One should overload TargetLowering::hasPairedLoad to provide this information. The default is false. <rdar://problem/14477220> llvm-svn: 192476
* [DAGCombiner] Revert load slicing (r192471), until I figure out why it fails ↵Quentin Colombet2013-10-113-743/+2
| | | | | | on ubuntu. llvm-svn: 192474
* Remove extra braces.Eric Christopher2013-10-111-2/+1
| | | | llvm-svn: 192473
* Revert "Tests: Be less dependent on a specific schedule/regalloc"Matthias Braun2013-10-1110-53/+55
| | | | | | | | | This reverts r192454 Apparently FileCheck isn't as smart as I though and does not enforce a topological order between variable defs+uses. llvm-svn: 192472
* [DAGCombiner] Slice a big load in two loads when the element are next to eachQuentin Colombet2013-10-113-2/+743
| | | | | | | | | | | | | | | | | | | | | | | | other in memory and the target has paired load and performs post-isel loads combining. E.g., this optimization will transform something like this: a = load i64* addr b = trunc i64 a to i32 c = lshr i64 a, 32 d = trunc i64 c to i32 into: b = load i32* addr1 d = load i32* addr2 Where addr1 = addr2 +/- sizeof(i32), if the target supports paired load and performs post-isel loads combining. One should overload TargetLowering::hasPairedLoad to provide this information. The default is false. <rdar://problem/14477220> llvm-svn: 192471
* [ELF] Add alias options for start-group/end-group options.Shankar Easwaran2013-10-112-0/+21
| | | | | | | | | | | | | There are aliases for --start-group/--end-group options represented by -( and -) respectively in the command line. This change adds and improves the test for the alias options to be tested. Looks like users use this option widely than explicitly using --start-group/--end-group. llvm-svn: 192470
* Simplify indirect rld_map for mips (rework r192408).Ed Maste2013-10-115-35/+20
| | | | | | | | | Just pass a Target* into ObjectFileELF::GetImageInfoAddress so that it can do the extra dereference necessary on MIPS, instead of passing a flag back to the caller. Review: http://llvm-reviews.chandlerc.com/D1899 llvm-svn: 192469
* ObjectiveC migrator: fixes a bug when in NS_ENUM/NS_OPTIONSFariborz Jahanian2013-10-115-8/+38
| | | | | | | migration, the typedef has annotations. // rdar://15200602 llvm-svn: 192468
* Expected FreeBSD failure due to pr 17430Ed Maste2013-10-111-0/+1
| | | | llvm-svn: 192467
OpenPOWER on IntegriCloud