llvm-6502/lib
Duncan Sands fdef00f1f7 As the number of parameter attributes increases,
Verifier::visitFunction is suffering a combinatorial
explosion due to the number of mutually incompatible
attributes.  This patch tidies the whole thing up
using attribute masks.  While there I fixed some
small bugs: (1) the ByVal attribute tests cast a
type to a pointer type, which can fail.  Yes, the
fact it is of a pointer type is checked before,
but a failing check does not cause the program
to exit, it continues on outputting further errors;
(2) Nothing was checking that an sret attribute is
on the first parameter; (3) nothing was checking that
a function for which isStructReturn() is true has a
parameter with the sret attribute and vice-versa (I
don't think it is possible for this to go wrong, but
it seems right to check it).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40553 91177308-0d34-0410-b5e6-96231b3b80d8
2007-07-27 15:09:54 +00:00
..
Analysis Fix a bug introduced in my last commit. 2007-07-26 18:57:04 +00:00
Archive finishing touches of bytecode -> bitcode changes. also unbreak Windows 2007-07-06 20:28:40 +00:00
AsmParser Support for trampolines, except for X86 codegen which is 2007-07-27 12:58:54 +00:00
Bitcode remove a dead case 2007-07-05 17:18:32 +00:00
CodeGen Support for trampolines, except for X86 codegen which is 2007-07-27 12:58:54 +00:00
Debugger switch this to bitcode instead of bytecode 2007-05-06 09:29:13 +00:00
ExecutionEngine Hush a noisy warning from GCC 4.2 about overflow during conversion by using 2007-07-19 21:05:30 +00:00
Linker Report an error if one occurs in releaseModule. 2007-07-22 21:39:37 +00:00
Support Make the copy constructor of SmallPtrSet much faster. 2007-07-24 21:31:23 +00:00
System finishing touches of bytecode -> bitcode changes. also unbreak Windows 2007-07-06 20:28:40 +00:00
Target Support for trampolines, except for X86 codegen which is 2007-07-27 12:58:54 +00:00
Transforms Fix thinko. Update return status appropriately. 2007-07-26 20:21:42 +00:00
VMCore As the number of parameter attributes increases, 2007-07-27 15:09:54 +00:00
Makefile build lib/Archive instead of lib/Bytecode 2007-05-06 19:50:06 +00:00