summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* X86: Assembly files with .cfi_cfa_def shouldn't hit llvm_unreachable()Jim Grosbach2013-11-082-1/+76
| | | | | | | | | | On darwin, when trying to create compact unwind info, a .cfi_cfa_def directive would case an llvm_unreachable() to be hit. Back off when we see this directive and generate the regular DWARF style eh_frame. rdar://15406518 llvm-svn: 194285
* Fix some minor issues with r194282 to get the tree healthy again.Lang Hames2013-11-081-1/+2
| | | | llvm-svn: 194284
* Fix grammar-o.Bill Wendling2013-11-081-2/+2
| | | | llvm-svn: 194283
* Add a method to get the object-file appropriate stack map section.Lang Hames2013-11-083-2/+8
| | | | | | Thanks to Eric Christopher for the tips on the appropriate way to do this. llvm-svn: 194282
* Fix %select numbering confusion between diagnostic and Diag call.Richard Smith2013-11-082-1/+2
| | | | llvm-svn: 194281
* [mach-o] add debugging to help explain one build bot failureNick Kledzik2013-11-081-1/+1
| | | | llvm-svn: 194280
* Make -fdump-vtable-layouts print to stdout, not stderrReid Kleckner2013-11-086-14/+14
| | | | | | | | | | | | | This makes it consistent with -fdump-record-layouts, which was moved to outs() in r186219. My reasoning for going with stdout is that when one of these options is present, the layouts are really a program output, and shouldn't be interleaved with diagnostics, which are on stderr. Reviewers: timurrrr Differential Revision: http://llvm-reviews.chandlerc.com/D2127 llvm-svn: 194279
* Add explictly exported atoms and export R_*_COPY'ed atoms.Michael J. Spencer2013-11-088-5/+56
| | | | llvm-svn: 194278
* Remove dead code from LoopUnswitchHal Finkel2013-11-081-127/+0
| | | | | | | | | | | | LoopUnswitch's code simplification routine has logic to convert conditional branches into unconditional branches, after unswitching makes the condition constant, and then remove any blocks that renders dead. Unfortunately, this code is dead, currently broken, and furthermore, has never been alive (at least as far back at 2006). No functionality change intended. llvm-svn: 194277
* clang-format: Improve formatting of operators forced to new lines.Daniel Jasper2013-11-082-4/+14
| | | | | | | | | | | | | | | | | | | | | | | Before: unsigned ContentSize = sizeof(int16_t) // DWARF ARange version number + sizeof(int32_t) // Offset of CU in the .debug_info section + sizeof(int8_t) // Pointer Size (in bytes) + sizeof(int8_t); // Segment Size (in bytes) After: unsigned ContentSize = sizeof(int16_t) // DWARF ARange version number + sizeof(int32_t) // Offset of CU in the .debug_info section + sizeof(int8_t) // Pointer Size (in bytes) + sizeof(int8_t); // Segment Size (in bytes) This fixes llvm.org/PR17687. llvm-svn: 194276
* Thread-safety analysis: check guarded_by and pt_guarded_by on array access.DeLesley Hutchins2013-11-082-14/+87
| | | | | | Currently supported only with -Wthread-safety-beta. llvm-svn: 194275
* Untabify.Richard Smith2013-11-081-29/+25
| | | | llvm-svn: 194274
* Issue a diagnostic if we see a templated friend declaration that we do notRichard Smith2013-11-087-14/+40
| | | | | | support. llvm-svn: 194273
* Revert "CalculateSpillWeights does not need to be a pass"Arnaud A. de Grandmaison2013-11-087-20/+52
| | | | | | Temporarily revert my previous commit until I understand why it breaks 3 target tests. llvm-svn: 194272
* [VirtRegMap] Fix for PR17825. Do not ignore noreturn definitions when settingQuentin Colombet2013-11-082-5/+21
| | | | | | | isPhysRegUsed if the unwind information is required. Indeed, the runtime may need a correct stack to be able to unwind the call. llvm-svn: 194271
* Make PrintAsmOperand call to the superclass to handle 'n' and 'c' operand ↵Richard Barton2013-11-081-6/+2
| | | | | | modifiers. llvm-svn: 194270
* CalculateSpillWeights does not need to be a passArnaud A. de Grandmaison2013-11-087-52/+20
| | | | | | | | | | Based on discussions with Lang Hames and Jakob Stoklund Olesen at the hacker's lab, and in the light of upcoming work on the PBQP register allocator, it was though that CalcSpillWeights does not need to be a pass. This change will enable to customize / tune the spill weight computation depending on the allocator. Update the documentation style while there. No functionnal change. llvm-svn: 194269
* clang-format: Don't auto-break short macros in WebKit style.Daniel Jasper2013-11-082-1/+12
| | | | | | This fixes llvm.org/PR17842. llvm-svn: 194268
* clang-format: Improve linebreaking and indentation for ObjC calls.Daniel Jasper2013-11-083-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | Before: popup_wdow_.reset([[RenderWidgetPopupWindow alloc] iniithContentRect: NSMakRet(origin_global.x, origin_global.y, pos.width(), pos.height()) syeMask:NSBorderlessWindowMask bking:NSBackingStoreBuffered der:NO]); [self param:function( // parameter)] After: popup_wdow_.reset([[RenderWidgetPopupWindow alloc] iniithContentRect:NSMakRet(origin_global.x, origin_global.y, pos.width(), pos.height()) syeMask:NSBorderlessWindowMask bking:NSBackingStoreBuffered der:NO]); [self param:function( // parameter)] llvm-svn: 194267
* Add ImmutableSet profiling info for 'bool'.Jordan Rose2013-11-081-0/+12
| | | | | | Useful for tri-state maps: true, false, and "no data yet". llvm-svn: 194266
* Revert 'Tweak ContainerNonEmptyMap with "int" instead of "bool"'.Jordan Rose2013-11-081-3/+3
| | | | | | | | | I've added the missing ImutProfileInfo [sic] specialization for bool, so this patch on r194235 is no longer needed. This reverts r194244 / 2baea2887dfcf023c8e3560e5d4713c42eed7b6b. llvm-svn: 194265
* ARM: fold prologue/epilogue sp updates into push/pop for code sizeTim Northover2013-11-085-32/+292
| | | | | | | | | | | | | | | | | | ARM prologues usually look like: push {r7, lr} sub sp, sp, #4 If code size is extremely important, this can be optimised to the single instruction: push {r6, r7, lr} where we don't actually care about the contents of r6, but pushing it subtracts 4 from sp as a side effect. This should implement such a conversion, predicated on the "minsize" function attribute (-Oz) since I've yet to find any code it actually makes faster. llvm-svn: 194264
* [ARM] Handling for coprocessor instructions that are undefined starting from ↵Artyom Skrobov2013-11-084-3000/+239
| | | | | | ARMv8 (Thumb encodings) llvm-svn: 194263
* [ARM] Handling for coprocessor instructions that are undefined starting from ↵Artyom Skrobov2013-11-081-0/+167
| | | | | | ARMv8 (ARM encodings) llvm-svn: 194262
* [ARM] Handling for coprocessor instructions that are undefined starting from ↵Artyom Skrobov2013-11-083-9/+59
| | | | | | ARMv8 (ARM encodings) llvm-svn: 194261
* Export MCDisassembler's SubtargetInfo, to allow architecture-aware disassemblyArtyom Skrobov2013-11-081-0/+2
| | | | llvm-svn: 194260
* CalculateSpillWeights cleanup: remove unneeded includesArnaud A. de Grandmaison2013-11-081-2/+0
| | | | llvm-svn: 194259
* Test for microMIPS trap instructions.Zoran Jovanovic2013-11-081-0/+32
| | | | llvm-svn: 194258
* llvm-ar: Let opening a directory failed in llvm-ar.NAKAMURA Takumi2013-11-082-3/+7
| | | | | | | Linux cannot open directories with open(2), although cygwin and *bsd can. Motivation: The test, Object/directory.ll, had been failing with --target=cygwin on Linux. XFAIL was improper for host issues. llvm-svn: 194257
* Thread the info about vbptr sharing through ASTRecordLayoutTimur Iskhodzhanov2013-11-084-36/+26
| | | | | | Reviewed at http://llvm-reviews.chandlerc.com/D2120 llvm-svn: 194256
* [mips][msa] Update encoding of LDI instruction.Matheus Almeida2013-11-082-8/+8
| | | | | | The encoding was updated in MSA r1.07. llvm-svn: 194255
* Remove diagnostic leftover from the ancient times when C++1y support was ↵Benjamin Kramer2013-11-081-4/+0
| | | | | | incomplete. llvm-svn: 194254
* [ARM] In ARMAsmParser, MatchCoprocessorOperandName() permitted p10 and p11 ↵Artyom Skrobov2013-11-085-28/+34
| | | | | | as operands for coprocessor instructions, resulting in encodings that clash with FP/NEON instruction encodings llvm-svn: 194253
* Revert r194247 conditional on non-MSVC.Peter Collingbourne2013-11-081-0/+5
| | | | | | | These definitions are required by the standard. MSVC rejecting them appears to be a bug. llvm-svn: 194252
* Remove ^M from the file.Bill Wendling2013-11-081-1419/+1415
| | | | llvm-svn: 194251
* clang-format: Write files atomicallyAlp Toker2013-11-081-11/+1
| | | | | | | | | | | | | | | | | | | | | | Switch clang-format over to Rewriter::overwriteChangedFiles(). The previous implementation was attempting to stream back directly to the original file and failing if it was already memory mapped by MemoryBuffer, an operation unsupported by Windows. MemoryBuffer generally mmaps files larger than the physical page size so this will have been difficult to reproduce consistently. This change also reduces flicker in code editors and IDEs on all platforms when reformatting in-place. Note that other incorrect uses of MemoryBuffer exist in LLVM/clang and will need a similar fix. A test should be added for Windows when libFormat performance issues are fixed (it takes longer than a day to format a 1MB file at present!) llvm-svn: 194250
* Improve the missing ASM parser test for MS-style assemblyAlp Toker2013-11-082-11/+13
| | | | | | | | | | | | It's better to test clang-check rather than the internal c-index-test utility. Also adds a target so we can remove the XFAILs. Thanks to Richard Barton for spotting the test failure on ARM. Test originally from r193685. llvm-svn: 194249
* Add .clang-format without column limit to subdirectory tests/.Daniel Jasper2013-11-081-0/+2
| | | | | | | | | A column limit in the test folder can lead to trouble as the RUN, CHECK, etc. comments can potentially be broken over multiple lines changing their meaning. Without column limit, clang-format will simply keep the test author's line breaks. llvm-svn: 194248
* clang-query: Unbreak msvc.NAKAMURA Takumi2013-11-081-3/+0
| | | | llvm-svn: 194247
* clang/test/CXX/drs/dr1xx.cpp: Add explicit triple x86_64-unknown-unknown to ↵NAKAMURA Takumi2013-11-081-3/+3
| | | | | | | | | | | | satisfy check7a and check8a since r194240. For i686 targets and LLP64 targets, we can see; error: 'error' diagnostics seen but not expected: File clang/test/CXX/drs/dr1xx.cpp Line 761: 'check7a' declared as an array with a negative size File clang/test/CXX/drs/dr1xx.cpp Line 765: 'check8a' declared as an array with a negative size 2 errors generated. llvm-svn: 194246
* Add History subclasses for Thread, Unwind, RegisterContext.Jason Molenda2013-11-089-2/+502
| | | | | | | | Still working out some of the details of these classes but I wanted to get the overall structure checked in. <rdar://problem/15314068> llvm-svn: 194245
* StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp: Tweak ↵NAKAMURA Takumi2013-11-081-3/+3
| | | | | | | | | ContainerNonEmptyMap with "int" instead of "bool", to appease building since r194235. In ADT/ImmutableSet, ImutProfileInfo<bool> cannot be matched to ImutProfileInteger. I didn't have idea it'd the right way if PROFILE_INTEGER_INFO(bool) could be added there. llvm-svn: 194244
* Fix tests effected by r194221David Majnemer2013-11-082-2/+2
| | | | | | | GEP expressions were folded differently from before, change the tests to reflect this. llvm-svn: 194243
* s/DebugPrint/dump/gDouglas Gregor2013-11-083-15/+15
| | | | llvm-svn: 194242
* clang-format: Properly indent ObjC calls wrapped before first selectorDaniel Jasper2013-11-082-1/+8
| | | | | | | | | | | | | | | | Before: [self // break a:a aa:aa aaaaa:aaa]; After: [self // break a:a aa:aa aaaaa:aaa]; llvm-svn: 194241
* Tests for core issue 170-200.Richard Smith2013-11-083-22/+319
| | | | llvm-svn: 194240
* Objective-C++ ARC: Improve the conversion to a const __unsafe_unretained ↵Douglas Gregor2013-11-083-9/+37
| | | | | | | | | | | | | reference. Under ARC++, a reference to a const Objective-C pointer is implicitly treated as __unsafe_unretained, and can be initialized with (e.g.) a __strong lvalue. Make sure this behavior does not break template argument deduction and (related) that partial ordering still prefers a 'T* const&' template over a 'T const&' template when this case kicks in. Fixes <rdar://problem/14467941>. llvm-svn: 194239
* ObjectiveC migrator. Added a dropped check in myFariborz Jahanian2013-11-081-1/+2
| | | | | | last patch. llvm-svn: 194238
* Fix a bogus assert I introduced in r194224Douglas Gregor2013-11-081-1/+1
| | | | llvm-svn: 194237
* [analyzer] Add IdenticalExprChecker, to find copy-pasted code.Jordan Rose2013-11-085-1/+1170
| | | | | | | | | | | | | This syntactic checker looks for expressions on both sides of comparison operators that are structurally the same. As a special case, the floating-point idiom "x != x" for "isnan(x)" is left alone. Currently this only checks comparison operators, but in the future we could extend this to include logical operators or chained if-conditionals. Checker by Per Viberg! llvm-svn: 194236
OpenPOWER on IntegriCloud