summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Try to fix s390x build bot.Bill Wendling2014-01-061-1/+1
| | | | llvm-svn: 198577
* ARM: move ARMUnwindOp.h into SupportSaleem Abdulrasool2014-01-064-37/+41
| | | | | | | | | Move the ARM EHABI unwind opcode definitions from the ARM MCTargetDesc into LLVM Support. This enables sharing of the definitions across the ARM target code as well as llvm-readobj. This will allow implementation of the unwind decoding in llvm-readobj. llvm-svn: 198576
* This helper method isn't needed, and it's unsafe for it to use StringRef in ↵Aaron Ballman2014-01-051-33/+12
| | | | | | the first place. Replaced the unsafe code with the proper accessor. llvm-svn: 198569
* SPARC: Make helper function static.Benjamin Kramer2014-01-051-2/+2
| | | | llvm-svn: 198567
* Fix ModR/M byte output for 16-bit addressing modes (PR18220)Craig Topper2014-01-052-1/+67
| | | | | | | | | Add some tests to validate correct register selection, including a fix to an existing test which was requiring the *wrong* output. Patch from David Woodhouse. llvm-svn: 198566
* ELF relocation types for sparc.Venkatraman Govindaraju2014-01-051-0/+59
| | | | llvm-svn: 198565
* Remove opcode from MOV32r0 that I accidentally left when I converted it to ↵Craig Topper2014-01-051-2/+1
| | | | | | Pseudo. Remove FIXME as well. llvm-svn: 198564
* ARM: style changes to LDRD, STRD definitionSaleem Abdulrasool2014-01-051-11/+9
| | | | | | | | Fix indentation, name registers similar to ARM ARM. No functionality change! llvm-svn: 198563
* AVX-512: changed property name from "neverHasSideEffects=1" to ↵Elena Demikhovsky2014-01-053-25/+36
| | | | | | | | "hasSideEffects=0", added this property to VMOVSS/VMOVSD; Optimized a truncate pattern. llvm-svn: 198562
* [Mips] Add support for DT_MIPS_RLD_MAP and DT_MIPS_PLTGOT dynamicSimon Atanasyan2014-01-054-1/+45
| | | | | | section tags to the llvm-readobj. llvm-svn: 198561
* [Mips] Rename the test case input file. No functional changes.Simon Atanasyan2014-01-053-2/+3
| | | | llvm-svn: 198560
* clang-format: Spacing inside enum braces.Daniel Jasper2014-01-052-1/+4
| | | | | | | | | | Before (in Google style): enum ShortEnum {A, B, C}; After: enum ShortEnum { A, B, C }; llvm-svn: 198559
* clang-format: Allow formatting short enums on a single line.Daniel Jasper2014-01-053-16/+22
| | | | | | | | | | | | | | | | | Before: enum ShortEnum { A, B, C }; After: enum ShortEnum { A, B, C }; This seems to be the predominant choice in LLVM/Clang as well as in Google style. llvm-svn: 198558
* AVX-512: Added more intrinsics for convert and min/max.Elena Demikhovsky2014-01-055-51/+132
| | | | | | Removed vzeroupper from AVX-512 mode - our optimization gude does not recommend to insert vzeroupper at all. llvm-svn: 198557
* [PM] Add a definition for the static PassID in the CallGraphAnalysis.Chandler Carruth2014-01-051-0/+6
| | | | | | | Missed this when adding the skeleton analysis. Caught by a build break in the next patch I'm working on when trying to use the analysis. llvm-svn: 198556
* Add in a unittest for the one-use pattern matcher.Chandler Carruth2014-01-051-0/+20
| | | | llvm-svn: 198552
* Add the other form of movq xmm,xmm for the disassembler.Craig Topper2014-01-051-0/+9
| | | | llvm-svn: 198551
* Use patterns to remove some duplicate instructions.Craig Topper2014-01-052-11/+7
| | | | llvm-svn: 198550
* Fix 'declartion' typosAlp Toker2014-01-053-4/+4
| | | | llvm-svn: 198549
* Pre-declare '::type_info' in MicrosoftMode only, not MicrosoftExtAlp Toker2014-01-053-5/+6
| | | | | | | | It was previously enabled in both but should only have been part of the drop-in quirks mode that is 'MicrosoftMode' given that it's only useful for compatibility with the Microsoft headers/runtime. llvm-svn: 198548
* Fix encoding for PUSH64i16. Add In64BitMode Predicate. Remove disassembler hack.Craig Topper2014-01-052-4/+5
| | | | llvm-svn: 198547
* Remove no longer needed x86 disassembler hack.Craig Topper2014-01-051-6/+0
| | | | llvm-svn: 198546
* Mark x86 _alt instructions as AsmParserOnly so they will be omitted from ↵Craig Topper2014-01-053-7/+6
| | | | | | disassembler without string matches. llvm-svn: 198545
* Use new ForceDisassemble flag on the 2-byte forms of INC/DEC for 32-bit mode ↵Craig Topper2014-01-052-5/+4
| | | | | | and remove disassmbler table emitter hack. llvm-svn: 198544
* Add a new x86 specific instruction flag to force some isCodeGenOnly ↵Craig Topper2014-01-058-12/+25
| | | | | | instructions to go through to the disassembler tables without resorting to string matches. Apply flag to all _REV instructions. llvm-svn: 198543
* Tweak the parse recovery in r198540Alp Toker2014-01-051-3/+8
| | | | | | | Cover a hypothetical case when we might not have reached the final argument declaration for some reason during recovery, and split out for readability. llvm-svn: 198542
* Add support to the pattern match library for matching NSW and NUWChandler Carruth2014-01-052-0/+164
| | | | | | | | | | | instructions. I needed this for a quick experiment I was making, and while I've no idea if that will ever get committed, I didn't want to throw away the pattern match code and for anyone else to have to write it again. I've added unittests to make sure this works correctly. In fun news, this also uncovered the IRBuilder bug. Doh! llvm-svn: 198541
* Fix bungled parse recovery in K&R function declarationsAlp Toker2014-01-052-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | void knrNoSemi(i) int i { } Adherents of The C Programming Language unfortunate enough to miss a semicolon as above would be met with a cascade of errors spanning the remainder of the TU. This patch introduces a beautiful parse error recovery, complete with helpful FixIt to restore sanity. Before (output redacted for brevity): error: 'error' diagnostics seen but not expected: File declarators.c Line 119: declaration does not declare a parameter File declarators.c Line 123: declaration does not declare a parameter File declarators.c Line 127: parameter named 'func_E12' is missing File declarators.c Line 127: expected ';' at end of declaration File declarators.c Line 133: parameter named 'func_E13' is missing File declarators.c Line 133: expected ';' at end of declaration File declarators.c Line 139: parameter named 'func_E14' is missing File declarators.c Line 139: expected ';' at end of declaration File declarators.c Line 145: parameter named 'func_E15' is missing File declarators.c Line 145: expected ';' at end of declaration File declarators.c Line 150: expected function body after function declarator File declarators.c Line 119: declaration of 'enum E11' will not be visible outside of this function File declarators.c Line 123: declaration of 'enum E12' will not be visible outside of this function File declarators.c Line 133: ISO C forbids forward references to 'enum' types File declarators.c Line 133: declaration of 'enum E13' will not be visible outside of this function File declarators.c Line 139: ISO C forbids forward references to 'enum' types File declarators.c Line 139: declaration of 'enum E14' will not be visible outside of this function File declarators.c Line 145: ISO C forbids forward references to 'enum' types File declarators.c Line 145: declaration of 'enum E15' will not be visible outside of this function ... After: declarators.c:103:24: error: expected ';' at end of declaration void knrNoSemi(i) int i { } ^ ; Patch found in a sealed envelope dated 1978 with the message "Do not open until January 2014" llvm-svn: 198540
* Parse: Token consumption modernization and loop de-nestingAlp Toker2014-01-055-59/+51
| | | | | | Cleanup only. llvm-svn: 198539
* Fix a bug in IRBuilder that's been there for who knows how long. ItChandler Carruth2014-01-052-2/+53
| | | | | | | | failed to correctly propagate the NUW and NSW flags to the constant folder for two instructions. I've added a unittest to cover flag propagation for the rest of the instructions and constant expressions. llvm-svn: 198538
* Attempt to fix buildbots by XFAILing some architectures.Bill Wendling2014-01-051-0/+2
| | | | llvm-svn: 198537
* Add lit.local.cfg for MC/SparcVenkatraman Govindaraju2014-01-051-0/+4
| | | | llvm-svn: 198536
* Replace nested switch statements.Rui Ueyama2014-01-051-25/+26
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D2501 llvm-svn: 198535
* Use a shorter name for the IRBuilder member. This will help the testsChandler Carruth2014-01-051-54/+54
| | | | | | I'm adding next be a lot more readable. llvm-svn: 198534
* [Sparc] Add initial implementation of MC Code emitter for sparc.Venkatraman Govindaraju2014-01-0511-4/+397
| | | | llvm-svn: 198533
* Simplify the PatternMatch unittest by giving it a module, function, andChandler Carruth2014-01-051-166/+105
| | | | | | | | | basic block to hold instructions, and managing all of their lifetimes in a fixture. This makes it easy to sink the expectations into the test cases themselves which also makes things a bit more explicit and clearer IMO. llvm-svn: 198532
* Emit an error message if the value passed to __builtin_returnaddress isn't a ↵Bill Wendling2014-01-059-0/+82
| | | | | | | | | | constant __builtin_returnaddress requires that the value passed into is be a constant. However, at -O0 even a constant expression may not be converted to a constant. Emit an error message intead of crashing. llvm-svn: 198531
* Mark the 64-bit x86 push/pop instructions as In64BitMode. Mark the ↵Craig Topper2014-01-053-22/+19
| | | | | | corresponding 32-bit versions with the same encodings Not64BitMode. Remove hack from tablegen disassembler table emitter. Fix bad test. llvm-svn: 198530
* Don't use PrintFatalError(which calls exit) for 'Primary decode conflict'. ↵Craig Topper2014-01-051-3/+4
| | | | | | Just skip emitting the table. This way the main function will delete the output file instead of it remaining empty and confusing dependency checks if build is invoked a second time. llvm-svn: 198529
* Add a FIXME.Nico Weber2014-01-051-0/+3
| | | | llvm-svn: 198528
* Add missed cleanup from r198456Alp Toker2014-01-041-4/+6
| | | | | | | All other uses of this macro in LLVM/clang have been moved to the function definition so follow suite (and the usage advice) here too for consistency. llvm-svn: 198516
* Tag x86 move to/from debug/control registers with Not64BitMode/In64BitMode. ↵Craig Topper2014-01-042-12/+19
| | | | | | Remove disassembler hack. llvm-svn: 198515
* Switch to using C++ style casts.Joerg Sonnenberger2014-01-047-76/+87
| | | | llvm-svn: 198505
* Revert "Fix PR18361: Invalidate LoopDispositions after LoopSimplify hoists ↵Alp Toker2014-01-043-104/+10
| | | | | | | | | | | | | | | | | things." This commit was the source of crasher PR18384: While deleting: label %for.cond127 An asserting value handle still pointed to this value! UNREACHABLE executed at llvm/lib/IR/Value.cpp:671! Reverting to get the builders green, feel free to re-land after fixing up. (Renato has a handy isolated repro if you need it.) This reverts commit r198478. llvm-svn: 198503
* Revert "ToolingTest.cpp: Fix r158592, ↵Alp Toker2014-01-041-5/+0
| | | | | | | | | | | runToolOnCode.FindsNoTopLevelDeclOnEmptyCode on msvc. LangOpts.MicrosoftExt still appends "class type_info;"." type_info has been made an implicitly predeclared type in r198497 and will no longer appear as a user-declared type so we can remove this old hack. This reverts commit r158595. llvm-svn: 198502
* Move MS predefined type_info out of InitializePredefinedMacrosAlp Toker2014-01-042-1/+7
| | | | | | | | | | | Instead of keeping it in amongst the macros, build the declaration at Sema init the same way we do with other predeclared and builtin types. In practice this means the declaration is marked implicit and therefore won't show up as an unwanted user-declared type in tooling which has been a frequently reported issue (though I haven't been able to cook up a test). llvm-svn: 198497
* Only mark dump() function definitions 'used' in debug buildsAlp Toker2014-01-0417-59/+44
| | | | | | | | | | | | | | | | This has the dual effect of (1) enabling more dead-stripping in release builds and (2) ensuring that debug helper functions aren't stripped away in debug builds, as they're intended to be called from the debugger. Note that the attribute is applied to definitions rather than declarations in headers going forward because it's now conditional on NDEBUG: /// \brief Mark debug helper function definitions like dump() that should not be /// stripped from debug builds. Requires corresponding macro added in LLVM r198456. llvm-svn: 198489
* [Sparc] Add the initial implementation of an asm parser for sparc/sparcv9.Venkatraman Govindaraju2014-01-0411-6/+689
| | | | llvm-svn: 198484
* 80 cols fixes.Yaron Keren2014-01-041-99/+123
| | | | llvm-svn: 198482
* Implement the functions: clz, clzl, clzll, ctz, ctzl, and ctzllYaron Keren2014-01-041-27/+88
| | | | | | | | for libcxx when compiled with Visual C++ on Win32 and Win64. clang and gcc (MinGW) compilers provide these implementations themselves. llvm-svn: 198481
OpenPOWER on IntegriCloud