summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [utils] Kill another no-longer-useful utility script.Daniel Dunbar2013-01-251-117/+0
| | | | | | | - We are long past the days of getting clang to fail in mass on swaths of code, fortunately. llvm-svn: 173523
* Remove some introspection functions.Bill Wendling2013-01-2510-94/+143
| | | | | | | | The 'getSlot' function and its ilk allow introspection into the AttributeSet class. However, that class should be opaque. Allow access through accessor methods instead. llvm-svn: 173522
* simplify code by removing excessive bracing.Fariborz Jahanian2013-01-251-20/+12
| | | | llvm-svn: 173521
* Initial implementation of PPCTargetTransformInfoHal Finkel2013-01-257-0/+277
| | | | | | | | | | This provides a place to add customized operation cost information and control some other target-specific IR-level transformations. The only non-trivial logic in this checkin assigns a higher cost to unaligned loads and stores (covered by the included test case). llvm-svn: 173520
* Missing newline in a warning message.Jim Ingham2013-01-251-1/+1
| | | | llvm-svn: 173519
* Fix a warning in the new DWARFheader. Add a new line at the end of the file.Nadav Rotem2013-01-251-1/+2
| | | | llvm-svn: 173518
* Add support for applying in-memory relocations to the .debug_line section ↵Andrew Kaylor2013-01-2513-11/+137
| | | | | | and, in the case of ELF files, using symbol addresses when available for relocations to the .debug_info section. Also extending the llvm-rtdyld tool to add the ability to dump line number information for testing purposes. llvm-svn: 173517
* Attach enum's documentation to its typedef ifFariborz Jahanian2013-01-252-0/+40
| | | | | | latter does not have one of its own. // rdar://13067629 llvm-svn: 173516
* The standard ARM C++ ABI dictates that inline functions areJohn McCall2013-01-2519-180/+853
| | | | | | | | never key functions. We did not implement that rule for the iOS ABI, which was driven by what was implemented in gcc-4.2. However, implement it now for other ARM-based platforms. llvm-svn: 173515
* First pass at abstracting out a class for the target C++ ABI.John McCall2013-01-2512-58/+230
| | | | llvm-svn: 173514
* Add file to CMakeLists (file added in r173505)Dmitri Gribenko2013-01-251-0/+1
| | | | llvm-svn: 173513
* Optimize ModuleManager::visit() by precomputing the visitation orderDouglas Gregor2013-01-252-66/+86
| | | | | | | | | | and limiting ourselves to two memory allocations. 10% speedup in -fsyntax-only time for modules. With this change, we can actually see some performance different from the global module index, but it's still about 1%. llvm-svn: 173512
* Remove useless 'XPASS: *' from testsDmitri Gribenko2013-01-256-6/+1
| | | | llvm-svn: 173511
* Temporarily disabling ms-asm testRenato Golin2013-01-251-0/+1
| | | | llvm-svn: 173510
* XFAIL close-stderr on win32Reid Kleckner2013-01-251-0/+3
| | | | | | | | The test runner does not rewrite instances of /dev/null inside the quoted sh command. /dev/null does not exist, so opt will fail to open it, and return a non-zero exit code. llvm-svn: 173509
* Set the +x bit on two batch scriptsReid Kleckner2013-01-252-0/+0
| | | | | | | | Cygwin git-svn will faithfully forward the svn properties all the way down to the NTFS executable permission. Without the +x bit, tests using these scripts fail with "Access Denied". llvm-svn: 173508
* Add parens to suppress an MSVC 2012 << precedence warningReid Kleckner2013-01-251-1/+1
| | | | | | | It doesn't seem to like instantiating the isUInt<unsigned N> template with 6+3, and then doing <<N. llvm-svn: 173507
* FileCheck-ify some grep testsReid Kleckner2013-01-253-7/+10
| | | | | | | | These tests in particular try to use escaped square brackets as an argument to grep, which is failing for me with native win32 python. It appears the backslash is being lost near the CreateProcess*() call. llvm-svn: 173506
* Add an insert() method to MapVector. Adds the first MapVector unit test.Nick Lewycky2013-01-252-0/+54
| | | | llvm-svn: 173505
* This test actually passes, just add the missing expected-errorDmitri Gribenko2013-01-251-3/+3
| | | | llvm-svn: 173504
* In this patch, we teach X86_64TargetMachine that it has a ILP32Eli Bendersky2013-01-256-22/+82
| | | | | | | | | | | | | | | | | | | | | (defined by the x32 ABI) mode, in which case its pointers are 32-bits in size. This knowledge is also added to X86RegisterInfo that now returns the appropriate registers in getPointerRegClass. There are many outcomes to this change. In order to keep the patches separate and manageable, we start by focusing on some simple testable cases. The patch adds a test with passing a pointer to a function - focusing on the difference between the two data models for x86-64. Another test is added for handling of 'sret' arguments (and functionality is added in X86ISelLowering to make it work). A note on naming: the "x32 ABI" document refers to the AMD64 architecture (in LLVM it's distinguished by being is64Bits() in the x86 subtarget) with two variations: the LP64 (default) data model, and the ILP32 data model. This patch adds predicates to the subtarget which are consistent with this naming scheme. llvm-svn: 173503
* Add back a RUN line removed by mistake by a previous commitEli Bendersky2013-01-251-0/+1
| | | | llvm-svn: 173502
* Add instruction encodings / disassembly support for l4r instructions.Richard Osborne2013-01-254-18/+94
| | | | llvm-svn: 173501
* LoopVectorize: Refactor the code that vectorizes loads/stores to remove ↵Nadav Rotem2013-01-251-145/+113
| | | | | | duplication. llvm-svn: 173500
* Use the new 'getSlotIndex' method to retrieve the attribute's slot index.Bill Wendling2013-01-256-8/+8
| | | | llvm-svn: 173499
* Now that llvm-dwarfdump supports flags to specify which DWARF section to dump,Eli Bendersky2013-01-2541-45/+44
| | | | | | | use them in tests that run llvm-dwarfdump. This is in order to make tests as specific as possible. llvm-svn: 173498
* Use const reference instead of vector copying.Jakub Staszak2013-01-251-1/+2
| | | | llvm-svn: 173497
* Migrate test from grep to -fdiagnostics-parseable-fixitsDmitri Gribenko2013-01-251-1/+9
| | | | llvm-svn: 173496
* Add an accessor method to get the slot's index. This will limit the use of ↵Bill Wendling2013-01-254-12/+25
| | | | | | AttributeWithIndex. llvm-svn: 173495
* Use the correct format in the STW / SETPSC instruction names.Richard Osborne2013-01-253-9/+9
| | | | llvm-svn: 173494
* Fix order of operands for crc8_l4rRichard Osborne2013-01-254-27/+48
| | | | | | | | The order in which operands appear in the encoded instruction is different to order in which they appear in assembly. This changes the XCore backend to use the instruction encoding order. llvm-svn: 173493
* Remove empty directories.Daniel Dunbar2013-01-250-0/+0
| | | | llvm-svn: 173492
* [utils] Remove the OptionalTests subdir no one runs.Daniel Dunbar2013-01-254-371/+0
| | | | llvm-svn: 173491
* [utils] Remove C++Tests that I don't think anyone uses anymore.Daniel Dunbar2013-01-2510-333/+0
| | | | llvm-svn: 173490
* When encountering an unknown file format, ObjectFile::createObjectFile shouldEli Bendersky2013-01-252-1/+8
| | | | | | | | | politely report it instead of running into llvm_unreachable. Also patch llvm-dwarfdump to actually check whether the file it's attempting to dump is a valid object file. llvm-svn: 173489
* [CMake] Setup include dirs properly.Michael J. Spencer2013-01-253-24/+16
| | | | llvm-svn: 173488
* This is no trule.David Blaikie2013-01-251-1/+1
| | | | llvm-svn: 173487
* Silence unintended fallthrough diagnostic on a case label preceded with a ↵Alexander Kornienko2013-01-252-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | normal label. Summary: It's unlikely that a fallthrough is unintended in the following code: switch (n) { ... label: case 1: ... goto label; ... } Reviewers: rsmith, doug.gregor Reviewed By: doug.gregor CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D329 llvm-svn: 173486
* Disable confirmation prompts for testingDaniel Malea2013-01-252-0/+6
| | | | | | | - set auto-confirm to false when running TestExprs (avoid hang when using API) - set prompt-on-quit to false in test helper (avoid timeout when using lldb CLI) llvm-svn: 173485
* FileCheck'ize testsDmitri Gribenko2013-01-252-6/+11
| | | | llvm-svn: 173484
* Remove hardcoded -arch from lang/cpp testcase makefilesDaniel Malea2013-01-253-2/+5
| | | | | | - skip rdar12991846 (already marked expected-fail) to avoid introducing a i386 crash llvm-svn: 173483
* Migrate tests to -verify and merge themDmitri Gribenko2013-01-252-7/+8
| | | | llvm-svn: 173482
* Improve the !add TableGen test case.Hal Finkel2013-01-251-0/+3
| | | | | | Suggested by Sean Silva. llvm-svn: 173481
* Add command-line flags for DWARF dumping.Eli Bendersky2013-01-255-65/+131
| | | | | | | Flags for dumping specific DWARF sections added in lib/DebugInfo and llvm-dwarfdump. llvm-svn: 173480
* Add instruction encodings / disassembly support for l5r instructions.Richard Osborne2013-01-254-12/+66
| | | | llvm-svn: 173479
* Fixed typo.Michael Gottesman2013-01-251-2/+2
| | | | llvm-svn: 173478
* Fix order of operands for l5r instructions.Richard Osborne2013-01-252-18/+22
| | | | | | | With this change the operands order matches the order in which the operands are encoded in the instruction. llvm-svn: 173477
* Use correct mnemonic / instruction name for ldivu.Richard Osborne2013-01-251-4/+3
| | | | llvm-svn: 173476
* LoopVectorize: Simplify code. No functionality change.Benjamin Kramer2013-01-251-26/+17
| | | | llvm-svn: 173475
* added ability to dynamically change the ExportList of an alreadyPedro Artigas2013-01-251-0/+10
| | | | | | created InternalizePass (useful for pass reuse) llvm-svn: 173474
OpenPOWER on IntegriCloud