llvm-6502/test/Verifier
Chris Lattner df98617b23 Reimplement the old and horrible bison parser for .ll files with a nice
and clean recursive descent parser.

This change has a couple of ramifications:
1. The parser code is about 400 lines shorter (in what we maintain, not
   including what is autogenerated).
2. The code should be significantly faster than the old code because we 
   don't have to work around bison's poor handling of datatypes with 
   ctors/dtors.  This also makes the code much more resistant to memory 
   leaks.
3. We now get caret diagnostics from the .ll parser, woo.
4. The actual diagnostics emited from the parser are completely different
   so a bunch of testcases had to be updated.
5. I now disallow "%ty = type opaque %ty = type i32".  There was no good
   reason to support this, it was just an accident of the old 
   implementation.  I have no reason to think that anyone is actually using
   this.
6. The syntax for sticking a global variable has changed to make it 
   unambiguous.  I don't think anyone is depending on this since only clang
   supports this and it is not solid yet, so I'm not worried about anything
   breaking.
7. This gets rid of the last use of bison, and along with it the .cvs files.
   I'll prune this from the makefiles as a subsequent commit.

There are a few minor cleanups that can be done after this commit (suggestions
welcome!) but this passes dejagnu testing and is ready for its time in the
limelight.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61558 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-02 07:01:27 +00:00
..
2002-04-13-RetTypes.ll All of these tests had out of date syntax and were never even running through 2008-03-16 07:55:46 +00:00
2002-11-05-GetelementptrPointers.ll Reimplement the old and horrible bison parser for .ll files with a nice 2009-01-02 07:01:27 +00:00
2004-05-21-SwitchConstantMismatch.ll For all RUN lines starting with "not", redirect stderr to /dev/null so tests 2008-06-10 12:57:32 +00:00
2005-03-21-UndefinedTypeReference.ll Reimplement the old and horrible bison parser for .ll files with a nice 2009-01-02 07:01:27 +00:00
2006-07-11-StoreStruct.ll
2006-10-15-AddrLabel.ll Reimplement the old and horrible bison parser for .ll files with a nice 2009-01-02 07:01:27 +00:00
2006-12-12-IntrinsicDefine.ll All of these tests had out of date syntax and were never even running through 2008-03-16 07:55:46 +00:00
2007-12-21-InvokeParamAttrs.ll For all RUN lines starting with "not", redirect stderr to /dev/null so tests 2008-06-10 12:57:32 +00:00
2008-01-11-VarargAttrs.ll For all RUN lines starting with "not", redirect stderr to /dev/null so tests 2008-06-10 12:57:32 +00:00
2008-03-01-AllocaSized.ll Fix PR2113 by verifying allocations. 2008-03-01 09:01:57 +00:00
2008-08-22-MemCpyAlignment.ll Verify that the alignment argument to llvm.memcpy is a constant 2008-08-23 05:31:10 +00:00
2008-11-15-RetVoid.ll Correct this error message. 2008-11-15 17:50:47 +00:00
aliasing-chain.ll Add testcase for prev. commit. Minor fixes 2008-03-22 08:37:05 +00:00
AmbiguousPhi.ll All of these tests had out of date syntax and were never even running through 2008-03-16 07:55:46 +00:00
byval-1.ll For all RUN lines starting with "not", redirect stderr to /dev/null so tests 2008-06-10 12:57:32 +00:00
byval-2.ll Diagnose uses of unsized types with the byval attribute in the 2008-08-27 14:48:06 +00:00
byval-4.ll Eliminate questionable syntax for stdin redirection. This probably also speeds things up a bit. 2008-05-20 22:07:21 +00:00
dg.exp sabre brings to my attention that the 'tr' suffix is also obsolete 2008-05-20 21:00:03 +00:00
gcread-ptrptr.ll
gcroot-alloca.ll For all RUN lines starting with "not", redirect stderr to /dev/null so tests 2008-06-10 12:57:32 +00:00
gcroot-meta.ll For all RUN lines starting with "not", redirect stderr to /dev/null so tests 2008-06-10 12:57:32 +00:00
gcroot-ptrptr.ll For all RUN lines starting with "not", redirect stderr to /dev/null so tests 2008-06-10 12:57:32 +00:00
gcwrite-ptrptr.ll For all RUN lines starting with "not", redirect stderr to /dev/null so tests 2008-06-10 12:57:32 +00:00
invoke-1.ll Remove llvm-upgrade and update tests. 2008-03-10 07:21:50 +00:00
invoke-2.ll
PhiGrouping.ll All of these tests had out of date syntax and were never even running through 2008-03-16 07:55:46 +00:00
README.txt Regressions/ is long gone. 2008-03-16 07:31:23 +00:00
SelfReferential.ll Fix this test. 2008-03-01 09:00:21 +00:00

This directory contains testcases that the verifier is supposed to detect as
malformed LLVM code.  Testcases for situations that the verifier incorrectly
identifies as malformed should go in the test/Assembler directory.