summaryrefslogtreecommitdiff
path: root/utils
Commit message (Collapse)AuthorAge
...
* Option parsing: support case-insensitive option matching.Rui Ueyama2013-08-27
| | | | | | | | | | | | | | Link.exe's command line options are case-insensitive. This patch adds a new attribute to OptTable to let the option parser to compare options, ignoring case. Command lines are generally case-insensitive on Windows. CL.exe is an exception. So this new attribute should be useful for other commands running on Windows. Differential Revision: http://llvm-reviews.chandlerc.com/D1485 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189416 91177308-0d34-0410-b5e6-96231b3b80d8
* Add function attribute 'optnone'.Andrea Di Biagio2013-08-23
| | | | | | | | | | This function attribute indicates that the function is not optimized by any optimization or code generator passes with the exception of interprocedural optimization passes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189101 91177308-0d34-0410-b5e6-96231b3b80d8
* Add an OtherPreserved field to the CalleeSaved TableGen class.Jakob Stoklund Olesen2013-08-23
| | | | | | | | | | This field specifies registers that are preserved across function calls, but that should not be included in the generates SaveList array. This can be used ot generate regmasks for architectures that save registers through other means, like SPARC's register windows. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189084 91177308-0d34-0410-b5e6-96231b3b80d8
* AVX-512: Added masked SHIFT commands, more encoding testsElena Demikhovsky2013-08-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189005 91177308-0d34-0410-b5e6-96231b3b80d8
* ARM: use TableGen patterns to select CMOV operations.Tim Northover2013-08-22
| | | | | | | | | | | | Back in the mists of time (2008), it seems TableGen couldn't handle the patterns necessary to match ARM's CMOV node that we convert select operations to, so we wrote a lot of fairly hairy C++ to do it for us. TableGen can deal with it now: there were a few minor differences to CodeGen (see tests), but nothing obviously worse that I could see, so we should probably address anything that *does* come up in a localised manner. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188995 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove llvm-lit from the cmake install target.Hans Wennborg2013-08-22
| | | | | | Since it's an llvm-internal tool, we shouldn't install it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188976 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Fix a couple lingering Py3 compat issues in ProgressBar.Daniel Dunbar2013-08-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188951 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Lift XFAIL handling to core infrastructure.Daniel Dunbar2013-08-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188949 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Allow formats to return lit.Test.Result instances directly.Daniel Dunbar2013-08-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188948 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Factor out a separate Test.Result() object.Daniel Dunbar2013-08-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188947 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Simplify --time-tests code.Daniel Dunbar2013-08-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188946 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Extract TestFormat base class, for future use.Daniel Dunbar2013-08-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188945 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Rewrite TODO list, and elaborate on some things.Daniel Dunbar2013-08-16
| | | | | | | - If anyone is interested in lit's feature set, I'd appreciate any comments on the elaborated items. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188590 91177308-0d34-0410-b5e6-96231b3b80d8
* FileCheck: Fix stray quote in CHECK-LABEL error message.Stephen Lin2013-08-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188564 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixing a warning about control reaching the end of a non-void function.Aaron Ballman2013-08-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188524 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Remove some done TODOs.Daniel Dunbar2013-08-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188502 91177308-0d34-0410-b5e6-96231b3b80d8
* [llvm-build] Make Py3 compatible.Daniel Dunbar2013-08-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188424 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Add test coverage of gtest format.Daniel Dunbar2013-08-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188417 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Ensure test output is converted to strings where possible.Daniel Dunbar2013-08-14
| | | | | | - This cleans up the text output of failing tests when run under PY3. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188416 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Support parsing scripts with inconsistent or invalid encodings.Daniel Dunbar2013-08-14
| | | | | | | | | | | | - For whatever reason, we have a lot of test files with bogus unicode characters. This patch allows those scripts to still be parsed on Python3 by changing the parsing logic to work on binary files, and only require the actual script commands to be convertible to ascii. - This patch has been tweaked to now ensure that the command strings are not of unicode type on Python 2.6-7. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188398 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r188376, "[lit] Support parsing scripts with inconsistent or invalid ↵Daniel Dunbar2013-08-14
| | | | | | encodings.", this doesn't work yet for bots using the internal shell. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188379 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Support parsing scripts with inconsistent or invalid encodings.Daniel Dunbar2013-08-14
| | | | | | | | | - For whatever reason, we have a lot of test files with bogus unicode characters. This patch allows those scripts to still be parsed on Python3 by changing the parsing logic to work on binary files, and only require the actual script commands to be convertible to ascii. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188376 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Fix a relative import issue I missed earlier.Daniel Dunbar2013-08-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188360 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Avoid StringIO.Daniel Dunbar2013-08-14
| | | | | | | - We barely used it, and it is very hard to use in a 2.5-3 compatible way because of changing expectations for its input types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188359 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Fix tests to execute lit with same python as invoked with.Daniel Dunbar2013-08-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188358 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Factor ShTest format script command parsing from other processing.Daniel Dunbar2013-08-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188357 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Move executeCommand() into lit.util.Daniel Dunbar2013-08-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188356 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Move formats into their own subpackage.Daniel Dunbar2013-08-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188355 91177308-0d34-0410-b5e6-96231b3b80d8
* Lit: Introduce "%/[STpst] into parseIntegratedTestScript(), to normalize ↵NAKAMURA Takumi2013-08-14
| | | | | | substitutions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188348 91177308-0d34-0410-b5e6-96231b3b80d8
* [Mips][msa] Value types for MSA support.Jack Carter2013-08-13
| | | | | | | | | | Added v8f16 to ValueTypes.h, ValueTypes.cpp, ValueTypes.td, and CodeGenTarget.cpp Patch by Daniel Sanders git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188326 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Support use of setup.py from other directories.Daniel Dunbar2013-08-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188309 91177308-0d34-0410-b5e6-96231b3b80d8
* [FileCheck] Fix a bug that cause FileCheck to misidentify check-prefixRui Ueyama2013-08-12
| | | | | | | | | FileCheck should check to make sure the prefix was found, and not a word containing it (e.g -check-prefix=BASEREL shouldn't match NOBASEREL). Patch by Ron Ofir. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188221 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r188164: Stablize MCK_Reg ordering in AsmMatcherEmitterRichard Sandiford2013-08-12
| | | | | | | Apparently caused a failure on Darwin git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188166 91177308-0d34-0410-b5e6-96231b3b80d8
* Stablize MCK_Reg ordering in AsmMatcherEmitterRichard Sandiford2013-08-12
| | | | | | | | | | | | | | | | clang bootstraps intermittently failed for me due a difference in the MCK_Reg ordering in ARMGenAsmMatcher.inc. E.g. in my latest run the stage 1 and stage 3 versions were the same but the stage 2 one was different (though still functionally correct). This meant that the .o comparison failed. MCK_Regs were assigned by iterating over a std::set< std::set<Record*> >, and since std::set is sorted lexicographically, the order depended on the order of the pointer values. This patch replaces the pointer ordering with LessRecordByID. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188164 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Remove old ExamplesTests directory.Daniel Dunbar2013-08-09
| | | | | | | - The actual tests have better coverage than those, and they weren't useful anymore. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188110 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Move ManyTests examples to lit/examples/many-tests.Daniel Dunbar2013-08-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188109 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Drop deprecated aliases for lit and old module names.Daniel Dunbar2013-08-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188108 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Update lit's own tests to use lit_config and lit package, as appropriate.Daniel Dunbar2013-08-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188107 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Fix typo.Daniel Dunbar2013-08-09
| | | | | | - Noticed by edward-san (IRC). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188096 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Rename lit.{TestFormats,Util} to their aliased names {formats,util}.Daniel Dunbar2013-08-09
| | | | | | | - With compatibility hack in lit.__init__, so this hopefully shouldn't break anything. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188040 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Inject the lit specific config object as 'lit_config' when loading ↵Daniel Dunbar2013-08-09
| | | | | | | | | | config files. - Injecting it as 'lit' is gross, since that name should be used to refer to the actual package. For now both are available so it is possibly to cleanup test config files incrementally. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188039 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Split TestingConfig.frompath() into separate ctor and load methods.Daniel Dunbar2013-08-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188038 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Eliminate mustExist parameter from TestingConfig.frompath().Daniel Dunbar2013-08-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188034 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Only create config copies when a local config file is present.Daniel Dunbar2013-08-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188033 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Eliminate parent argument from TestingConfig.frompath(), which is ↵Daniel Dunbar2013-08-09
| | | | | | effectively unused. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188032 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Change --show-{tests,suites} to exit after printing.Daniel Dunbar2013-08-08
| | | | | | - This is a more sensible behavior than printing and also running tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188009 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Remove --repeat option, which wasn't that useful.Daniel Dunbar2013-08-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188008 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Eliminate some nested imports.Daniel Dunbar2013-08-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188007 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Remove on_clone member, which is no longer used.Daniel Dunbar2013-08-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188006 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Remove unnecessary list copy.Daniel Dunbar2013-08-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187934 91177308-0d34-0410-b5e6-96231b3b80d8