Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | implement and document support for filecheck variables. This | Chris Lattner | 2009-09-27 | 1 | -43/+172 |
| | | | | | | | | | | allows matching and remembering a string and then matching and verifying that the string occurs later in the file. Change X86/xor.ll to use this in some cases where the test was checking for an arbitrary register allocation decision. llvm-svn: 82891 | ||||
* | remove support for "NoSub" from regex. It seems like a minor optimization | Chris Lattner | 2009-09-26 | 1 | -1/+1 |
| | | | | | | and makes the API more annoying. Add a Regex::getNumMatches() method. llvm-svn: 82877 | ||||
* | reject attempts to use ()'s in patterns, these are reserved for filecheck. | Chris Lattner | 2009-09-25 | 1 | -3/+15 |
| | | | | llvm-svn: 82780 | ||||
* | reimplement the regex matching strategy by building a single | Chris Lattner | 2009-09-25 | 1 | -88/+51 |
| | | | | | | | | | | | | | | | | | regex and matching it instead of trying to match chunks at a time. Matching chunks at a time broke with check lines like CHECK: foo {{.*}}bar because the .* would eat the entire rest of the line and bar would never match. Now we just escape the fixed strings for the user, so that something like: CHECK: a() {{.*}}??? is matched as: CHECK: {{a\(\) .*\?\?\?}} transparently "under the covers". llvm-svn: 82779 | ||||
* | special case Patterns that are a single fixed string. This is a microscopic | Chris Lattner | 2009-09-25 | 1 | -0/+16 |
| | | | | | | perf win and is needed for future changes. llvm-svn: 82777 | ||||
* | filecheck should not match a \n with a . | Chris Lattner | 2009-09-25 | 1 | -3/+1 |
| | | | | llvm-svn: 82758 | ||||
* | turn a std::pair into a real class. | Chris Lattner | 2009-09-25 | 1 | -23/+34 |
| | | | | llvm-svn: 82754 | ||||
* | add and document regex support for FileCheck. You can now do stuff like: | Chris Lattner | 2009-09-24 | 1 | -11/+116 |
| | | | | | | | | ; CHECK: movl {{%e[a-z][xi]}}, %eax or whatever. llvm-svn: 82717 | ||||
* | Use CanonicalizeInputFile to canonicalize the entire buffer containing the | Chris Lattner | 2009-09-24 | 1 | -57/+40 |
| | | | | | | | CHECK strings, instead of canonicalizing the patterns directly. This allows Pattern to just contain a StringRef instead of std::string. llvm-svn: 82713 | ||||
* | change 'not' matching to use Pattern, move pattern parsing logic into | Chris Lattner | 2009-09-24 | 1 | -32/+51 |
| | | | | | | the Pattern class. llvm-svn: 82712 | ||||
* | refactor out the match string into its own Pattern class. | Chris Lattner | 2009-09-24 | 1 | -33/+50 |
| | | | | llvm-svn: 82711 | ||||
* | fix a FileCheck bug where: | Chris Lattner | 2009-09-21 | 1 | -3/+3 |
| | | | | | | | | | | ; CHECK: foo ; CHECK-NOT: foo ; CHECK: bar would always fail. llvm-svn: 82424 | ||||
* | rewrite CountNumNewlinesBetween to be in terms of StringRef. | Chris Lattner | 2009-09-20 | 1 | -13/+15 |
| | | | | llvm-svn: 82410 | ||||
* | implement and document support for CHECK-NOT | Chris Lattner | 2009-09-20 | 1 | -8/+50 |
| | | | | llvm-svn: 82408 | ||||
* | rewrite FileCheck in terms of StringRef instead of manual pointer pairs. | Chris Lattner | 2009-09-20 | 1 | -68/+37 |
| | | | | llvm-svn: 82407 | ||||
* | when emitting errors about CHECK-NEXT directives, show the line that the | Chris Lattner | 2009-08-16 | 1 | -2/+6 |
| | | | | | | CHECK-NEXT is on. llvm-svn: 79164 | ||||
* | implement support for CHECK-NEXT: in filecheck. | Chris Lattner | 2009-08-15 | 1 | -26/+105 |
| | | | | llvm-svn: 79123 | ||||
* | simplify some code. | Chris Lattner | 2009-08-15 | 1 | -8/+13 |
| | | | | llvm-svn: 79121 | ||||
* | rewrite FindStringInBuffer to use an explicit loop instead of | Chris Lattner | 2009-08-15 | 1 | -19/+27 |
| | | | | | | | trying to wrap strstr which is just too inconvenient. Make it use a StringRef to avoid ".c_str()" calls. llvm-svn: 79120 | ||||
* | Instead of using an std::pair, use a custom struct. | Chris Lattner | 2009-08-15 | 1 | -12/+21 |
| | | | | llvm-svn: 79119 | ||||
* | Fix an ENABLE_EXPENSIVE_CHECKS error. | Daniel Dunbar | 2009-08-02 | 1 | -2/+3 |
| | | | | llvm-svn: 77845 | ||||
* | Tweak comment. | Daniel Dunbar | 2009-07-11 | 1 | -2/+2 |
| | | | | llvm-svn: 75391 | ||||
* | improve filecheck's "scanning from here" caret position. | Chris Lattner | 2009-07-11 | 1 | -0/+11 |
| | | | | llvm-svn: 75371 | ||||
* | make filecheck default to canonicalizing horizontal whitespace | Chris Lattner | 2009-07-11 | 1 | -0/+66 |
| | | | | | | away. This way you can write a space and it matches arbitrary spaces and tabs. llvm-svn: 75370 | ||||
* | stop on the first file mismatch. | Chris Lattner | 2009-07-09 | 1 | -0/+1 |
| | | | | llvm-svn: 75076 | ||||
* | Add a new little "FileCheck" utility for regression testing. | Chris Lattner | 2009-07-08 | 1 | -0/+174 |
llvm-svn: 75022 |