summaryrefslogtreecommitdiffstats
path: root/llvm/utils
Commit message (Collapse)AuthorAgeFilesLines
* Revert r191940 to see if it fixes the build bots.Craig Topper2013-10-044-46/+1
| | | | llvm-svn: 191941
* Add OPC_CheckChildSame0-3 to the DAG isel matcher. This replaces sequences ↵Craig Topper2013-10-044-1/+46
| | | | | | of MoveChild, CheckSame, MoveParent. Saves 846 bytes from the X86 DAG isel matcher, ~300 from ARM, ~840 from Hexagon. llvm-svn: 191940
* Add XOP disassembler support. Fixes PR13933.Craig Topper2013-10-033-3/+72
| | | | llvm-svn: 191874
* Add v4f16 to supported value types.Pete Cooper2013-10-031-0/+1
| | | | | | This is useful for some ARM intrinsics such as VCVTN which does a <4 x float> <-> <4 x half> conversion. llvm-svn: 191870
* Remove several unused variables.Rafael Espindola2013-10-014-12/+0
| | | | | | Patch by Alp Toker. llvm-svn: 191757
* Fix pattern sort in DAGISelEmitter.cppRichard Sandiford2013-10-011-9/+7
| | | | | | | The old code skipped one of the sorting criteria if either pattern had no types. This could lead to cycles of the form X < Y, Y < Z, Z < X. llvm-svn: 191735
* Filter out repeated sections from the X86 disassembler modRMTable. Saves ↵Craig Topper2013-09-302-87/+67
| | | | | | about ~43K from a released build. Unfortunately the disassembler tables are still upwards of 800K. llvm-svn: 191652
* Various x86 disassembler fixes.Craig Topper2013-09-301-6/+18
| | | | | | | | | | | Add VEX_LIG to scalar FMA4 instructions. Use VEX_LIG in some of the inheriting checks in disassembler table generator. Make use of VEX_L_W, VEX_L_W_XS, VEX_L_W_XD contexts. Don't let VEX_L_W, VEX_L_W_XS, VEX_L_W_XD, VEX_L_W_OPSIZE inherit from their non-L forms unless VEX_LIG is set. Let VEX_L_W, VEX_L_W_XS, VEX_L_W_XD, VEX_L_W_OPSIZE inherit from all of their non-L or non-W cases. Increase ranking on VEX_L_W, VEX_L_W_XS, VEX_L_W_XD, VEX_L_W_OPSIZE so they get chosen over non-L/non-W forms. llvm-svn: 191649
* Mark the x86 machine model as incomplete. PR17367.Andrew Trick2013-09-251-0/+5
| | | | | | | | | | | | Ideally, the machinel model is added at the time the instructions are defined. But many instructions in X86InstrSSE.td still need a model. Without this workaround the scheduler asserts because x86 already has itinerary classes for these instructions, indicating they should be modeled by the scheduler. Since we use the new machine model for other instructions, it expects a new machine model for these too. llvm-svn: 191391
* Fix doxygen comments to use correct function name.Craig Topper2013-09-252-2/+2
| | | | llvm-svn: 191356
* Replace EVT with MVT in CodeGenDAGAPatterns.cpp.Craig Topper2013-09-251-14/+14
| | | | llvm-svn: 191355
* Patch that forces MergeFunctions pass for clang.Stepan Dyatkovskiy2013-09-241-0/+14
| | | | | | | It is temporary patch. We need to keep it in trunk, since it makes easer to test it on buildbots on different platforms. Once we see stable MergeFunctions behaviour with satisfied perfomance, this patch will be removed. llvm-svn: 191331
* Fix formatting to match coding standards.Craig Topper2013-09-241-10/+7
| | | | llvm-svn: 191280
* Initial support for Neon scalar instructions.Jiangning Liu2013-09-242-1/+6
| | | | | | | | | | Patch by Ana Pazos. 1.Added support for v1ix and v1fx types. 2.Added Scalar Pairwise Reduce instructions. 3.Added initial implementation of Scalar Arithmetic instructions. llvm-svn: 191263
* Add missing index comments to the left side of the DAG ISel matcher table ↵Craig Topper2013-09-221-2/+6
| | | | | | for each individual case of SwitchOpcode/Type. llvm-svn: 191181
* Provide basic type safety for array_pod_sort comparators.Benjamin Kramer2013-09-222-6/+7
| | | | | | | | This makes using array_pod_sort significantly safer. The implementation relies on function pointer casting but that should be safe as we're dealing with void* here. llvm-svn: 191175
* Missed using check type enum in one placeMatt Arsenault2013-09-171-6/+6
| | | | llvm-svn: 190897
* Use function's argument instead of the global flag.Matt Arsenault2013-09-171-3/+3
| | | | | | For now it happens the argument is always the same. llvm-svn: 190896
* FileCheck refactor: use enum instead of bunch of boolsMatt Arsenault2013-09-171-76/+88
| | | | llvm-svn: 190893
* TableGen: fix constness of new comparison function.Tim Northover2013-09-161-1/+1
| | | | | | libc++ didn't seem to like a non-const call operator. llvm-svn: 190797
* TableGen: give asm match classes deterministic order.Tim Northover2013-09-161-23/+46
| | | | | | | | | | | | | | | TableGen was sorting the entries in some of its internal data structures by pointer. This order filtered through to the final matching table and affected the diagnostics produced on bad assembly occasionally. It also turns out STL algorithms are ridiculously easy to misuse on containers with custom order methods. (No bugs before, or now that I know of, but plenty in the middle). This should fix the sanitizer bot, which ends up with weird pointers. llvm-svn: 190793
* AsmMatcher: emit subtarget feature enum in deterministic order.Tim Northover2013-09-161-7/+7
| | | | llvm-svn: 190792
* Fix the build for git repositories with multiple remotes.Daniel Sanders2013-09-161-1/+1
| | | | | | | | | | | | | | | Summary: When a git repository had multiple remotes, ${repository} will be set to a multiline string. This causes compilation errors in SVNVersion.inc. Fix this by limiting the output of utils/GetRepositoryPath to the first remote (which is reasonably likely to be 'origin'). Reviewers: jordan_rose CC: llvm-commits, t.p.northover Differential Revision: http://llvm-reviews.chandlerc.com/D1659 llvm-svn: 190778
* Replace some unnecessary vector copies with references.Benjamin Kramer2013-09-151-1/+1
| | | | llvm-svn: 190770
* [lit] Add an --output option, for writing results in a machine readable form.Daniel Dunbar2013-09-145-3/+96
| | | | llvm-svn: 190738
* Fix build failure reported by Tobias Markmann in bug 17203.Daniel Sanders2013-09-131-1/+1
| | | | | | | | | | | | | | svn 1.8.0 emits an additional line matching 'URL:' in its 'svn info' command ('Relative URL:'). Changed the grep to match only the intended line so that a valid SVNVersion.inc is generated. The problem doesnt occur with the svn version I'm using (1.7.5) but Tobias has confirmed that the change fixes the problem. See http://llvm.org/bugs/show_bug.cgi?id=17203 llvm-svn: 190685
* Add an instruction deprecation feature to TableGen.Joey Gouly2013-09-124-0/+50
| | | | | | | | | | | | | | | | | | | | | | The 'Deprecated' class allows you to specify a SubtargetFeature that the instruction is deprecated on. The 'ComplexDeprecationPredicate' class allows you to define a custom predicate that is called to check for deprecation. For example: ComplexDeprecationPredicate<"MCR"> would mean you would have to define the following function: bool getMCRDeprecationInfo(MCInst &MI, MCSubtargetInfo &STI, std::string &Info) Which returns 'false' for not deprecated, and 'true' for deprecated and store the warning message in 'Info'. The MCTargetAsmParser constructor was chaned to take an extra argument of the MCInstrInfo class, so out-of-tree targets will need to be changed. llvm-svn: 190598
* [lit] Add support for attach arbitrary metrics to test results.Daniel Dunbar2013-09-115-2/+119
| | | | | | | | | - This is a work-in-progress and all details are subject to change, but I am trying to build up support for allowing lit to be used as a driver for performance tests (or other tests which might want to record information beyond simple PASS/FAIL). llvm-svn: 190535
* llvm-tblgen: Mangle operand replacements into the strings in printAliasInstr.Benjamin Kramer2013-09-111-40/+45
| | | | | | Cuts down the bloat in the AArch64 asm writer a bit. llvm-svn: 190527
* llvm-tblgen: Stabilize subreg index tables.Benjamin Kramer2013-09-111-2/+2
| | | | | | Otherwise SequenceToOffsetTable will sort by pointer and becomes non-deterministic. llvm-svn: 190514
* debuginfo-tests: Add support for an lldb wrapper scriptAdrian Prantl2013-09-061-1/+18
| | | | | | to be used on darwin in lieu of gdb. llvm-svn: 190186
* [lit] Allow config files to pass arbitrary values to child configs.Daniel Dunbar2013-09-034-12/+8
| | | | | | | - This aligns with how existing test suites end up wanting to use the local config files, conceptually it makes sense to consider them to be inherited. llvm-svn: 189885
* TableGen: Enumerate Schedule Model too.Vincent Lejeune2013-09-031-1/+9
| | | | llvm-svn: 189839
* Tidy up. Comment grammar.Jim Grosbach2013-08-291-2/+2
| | | | llvm-svn: 189618
* Tidy up. Trailing whitespace.Jim Grosbach2013-08-291-39/+39
| | | | llvm-svn: 189617
* Move StringToOffsetTable into the TableGen include directory so I can use it ↵Craig Topper2013-08-292-84/+1
| | | | | | in clang. llvm-svn: 189567
* [lit] [tests] Add missing test input file.Daniel Dunbar2013-08-291-0/+6
| | | | llvm-svn: 189561
* [lit] Fix internal shell's argv[0] handling.Daniel Dunbar2013-08-292-3/+5
| | | | | | | - At least on OS X, it is important for correct behavior of /bin/[ that argv[0] is passed as written, and not as the full executable path. llvm-svn: 189559
* [lit] Add support for multiprocessing, under --use-processes for now.Daniel Dunbar2013-08-293-39/+115
| | | | llvm-svn: 189556
* [lit] Implement --max-time support by using provider cancel method.Daniel Dunbar2013-08-291-10/+16
| | | | llvm-svn: 189555
* [lit] Refactor test execution logic into lit.run.Run.Daniel Dunbar2013-08-292-123/+158
| | | | llvm-svn: 189554
* [lit] Put display lock inside the ThreadResultsConsumer.Daniel Dunbar2013-08-291-17/+9
| | | | llvm-svn: 189553
* [lit] Factor out a results consumer interface for test execution.Daniel Dunbar2013-08-291-20/+44
| | | | | | - Also, change TestProvider interface to operate on test indices. llvm-svn: 189552
* [lit] Move top-level execute code into Run object.Daniel Dunbar2013-08-294-41/+49
| | | | llvm-svn: 189551
* [lit] Factor out Run class to capture configuration + discovered tests.Daniel Dunbar2013-08-292-18/+29
| | | | llvm-svn: 189550
* [lit] Change lit.Test.ResultCode to be unique across pickling.Daniel Dunbar2013-08-291-0/+11
| | | | llvm-svn: 189549
* [lit] Add a TODO.Daniel Dunbar2013-08-291-0/+29
| | | | llvm-svn: 189546
* [lit] Update shtest format to return lit.Test.Result objects.Daniel Dunbar2013-08-291-40/+21
| | | | llvm-svn: 189545
* [lit] Update LitTestCase to support lit.Test.Result.Daniel Dunbar2013-08-291-5/+13
| | | | llvm-svn: 189544
* Option parsing: support case-insensitive option matching.Rui Ueyama2013-08-281-5/+10
| | | | | | Re-submitting r189416 with fix for Windows build on where strcasecmp is not defined. llvm-svn: 189501
OpenPOWER on IntegriCloud