llvm-6502/test/FrontendC
Chris Lattner 1afcace3a3 Land the long talked about "type system rewrite" patch. This
patch brings numerous advantages to LLVM.  One way to look at it
is through diffstat:
 109 files changed, 3005 insertions(+), 5906 deletions(-)

Removing almost 3K lines of code is a good thing.  Other advantages
include:

1. Value::getType() is a simple load that can be CSE'd, not a mutating
   union-find operation.
2. Types a uniqued and never move once created, defining away PATypeHolder.
3. Structs can be "named" now, and their name is part of the identity that
   uniques them.  This means that the compiler doesn't merge them structurally
   which makes the IR much less confusing.
4. Now that there is no way to get a cycle in a type graph without a named
   struct type, "upreferences" go away.
5. Type refinement is completely gone, which should make LTO much MUCH faster
   in some common cases with C++ code.
6. Types are now generally immutable, so we can use "Type *" instead 
   "const Type *" everywhere.

Downsides of this patch are that it removes some functions from the C API,
so people using those will have to upgrade to (not yet added) new API.  
"LLVM 3.0" is the right time to do this.

There are still some cleanups pending after this, this patch is large enough
as-is.




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134829 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-09 17:41:24 +00:00
..
ARM Fix this test to actually check something and be able to be compiled. 2011-06-27 22:30:14 +00:00
2002-01-23-LoadQISIReloadFailure.c
2002-01-24-ComplexSpaceInType.c
2002-01-24-HandleCallInsnSEGV.c
2002-02-13-ConditionalInCall.c
2002-02-13-ReloadProblem.c
2002-02-13-TypeVarNameCollision.c
2002-02-13-UnnamedLocal.c
2002-02-14-EntryNodePreds.c
2002-02-16-RenamingTest.c
2002-02-17-ArgumentAddress.c
2002-02-18-64bitConstant.c
2002-02-18-StaticData.c
2002-03-11-LargeCharInString.c
2002-03-12-ArrayInitialization.c
2002-03-12-StructInitialize.c
2002-03-12-StructInitializer.c
2002-03-14-BrokenPHINode.c
2002-03-14-BrokenSSA.c
2002-03-14-QuotesInStrConst.c
2002-04-07-SwitchStmt.c
2002-04-08-LocalArray.c
2002-04-09-StructRetVal.c
2002-04-10-StructParameters.c
2002-05-23-StaticValues.c
2002-05-23-TypeNameCollision.c
2002-05-24-Alloca.c
2002-06-25-FWriteInterfaceFailure.c
2002-07-14-MiscListTests.c
2002-07-14-MiscTests2.c
2002-07-14-MiscTests3.c
2002-07-14-MiscTests.c
2002-07-16-HardStringInit.c
2002-07-17-StringConstant.c
2002-07-29-Casts.c
2002-07-30-SubregSetAssertion.c
2002-07-30-UnionTest.c
2002-07-30-VarArgsCallFailure.c
2002-07-31-BadAssert.c
2002-07-31-SubregFailure.c
2002-08-02-UnionTest.c
2002-08-19-RecursiveLocals.c
2002-09-08-PointerShifts.c
2002-09-18-UnionProblem.c
2002-09-19-StarInLabel.c
2002-10-12-TooManyArguments.c
2002-12-15-GlobalBoolTest.c
2002-12-15-GlobalConstantTest.c
2002-12-15-GlobalRedefinition.c
2002-12-15-StructParameters.c
2003-01-30-UnionInit.c
2003-03-03-DeferredType.c
2003-06-22-UnionCrash.c
2003-06-23-GCC-fold-infinite-recursion.c
2003-06-26-CFECrash.c
2003-06-29-MultipleFunctionDefinition.c
2003-07-22-ArrayAccessTypeSafety.c
2003-08-06-BuiltinSetjmpLongjmp.c
2003-08-17-DeadCodeShortCircuit.c
2003-08-18-SigSetJmp.c
2003-08-18-StructAsValue.c
2003-08-20-BadBitfieldRef.c
2003-08-20-PrototypeMismatch.c
2003-08-20-vfork-bug.c
2003-08-21-BinOp-Type-Mismatch.c
2003-08-21-StmtExpr.c
2003-08-21-WideString.c
2003-08-23-LocalUnionTest.c
2003-08-29-BitFieldStruct.c
2003-08-29-HugeCharConst.c
2003-08-29-StructLayoutBug.c
2003-08-30-AggregateInitializer.c
2003-08-30-LargeIntegerBitfieldMember.c
2003-09-18-BitfieldTests.c
2003-09-30-StructLayout.c
2003-10-02-UnionLValueError.c
2003-10-06-NegateExprType.c
2003-10-09-UnionInitializerBug.c
2003-10-28-ident.c
2003-10-29-AsmRename.c
2003-11-01-C99-CompoundLiteral.c
2003-11-01-EmptyStructCrash.c
2003-11-01-GlobalUnionInit.c
2003-11-03-AddrArrayElement.c
2003-11-04-EmptyStruct.c
2003-11-04-OutOfMemory.c
2003-11-08-PointerSubNotGetelementptr.c
2003-11-12-VoidString.c
2003-11-13-TypeSafety.c
2003-11-16-StaticArrayInit.c
2003-11-18-CondExprLValue.c
2003-11-19-AddressOfRegister.c
2003-11-19-BitFieldArray.c
2003-11-20-Bitfields.c
2003-11-20-ComplexDivision.c
2003-11-20-UnionBitfield.c
2003-11-26-PointerShift.c
2003-11-27-ConstructorCast.c
2003-11-27-UnionCtorInitialization.c
2003-12-14-ExternInlineSupport.c
2004-01-01-UnknownInitSize.c
2004-01-08-ExternInlineRedefine.c
2004-02-12-LargeAggregateCopy.c
2004-02-13-BuiltinFrameReturnAddress.c
2004-02-13-IllegalVararg.c
2004-02-13-Memset.c
2004-02-14-ZeroInitializer.c
2004-02-20-Builtins.c
2004-03-07-ComplexDivEquals.c
2004-03-07-ExternalConstant.c
2004-03-09-LargeArrayInitializers.c
2004-03-15-SimpleIndirectGoto.c
2004-03-16-AsmRegisterCrash.c
2004-05-07-VarArrays.c
2004-05-21-IncompleteEnum.c
2004-06-08-OpaqueStructArg.c
2004-06-17-UnorderedBuiltins.c
2004-06-17-UnorderedCompares.c
2004-06-18-VariableLengthArrayOfStructures.c
2004-07-06-FunctionCast.c
2004-08-06-LargeStructTest.c
2004-11-25-UnnamedBitfieldPadding.c
2004-11-27-InvalidConstantExpr.c
2004-11-27-StaticFunctionRedeclare.c
2004-11-27-VariableSizeInStructure.c
2005-01-02-ConstantInits.c
2005-01-02-PointerDifference.c
2005-01-02-VAArgError-ICE.c
2005-02-20-AggregateSAVEEXPR.c
2005-02-27-MarkGlobalConstant.c Update llvm-gcc's tests. 2011-01-14 17:01:20 +00:00
2005-03-05-OffsetOfHack.c
2005-03-06-OffsetOfStructCrash.c
2005-03-11-Prefetch.c
2005-04-09-ComplexOps.c
2005-05-06-CountBuiltins.c
2005-05-10-GlobalUnionInit.c
2005-06-15-ExpandGotoInternalProblem.c
2005-07-20-SqrtNoErrno.c
2005-07-26-UnionInitCrash.c
2005-07-28-IncorrectWeakGlobal.c
2005-09-20-ComplexConstants.c
2005-09-24-AsmUserPrefix.c
2005-09-24-BitFieldCrash.c
2005-10-18-VariableSizedElementCrash.c
2005-12-04-AttributeUsed.c
2005-12-04-DeclarationLineNumbers.c
2006-01-13-Includes.c
2006-01-13-StackSave.c
2006-01-16-BitCountIntrinsicsUnsigned.c
2006-01-23-FileScopeAsm.c
2006-03-03-MissingInitializer.c Update llvm-gcc's tests. 2011-01-14 17:01:20 +00:00
2006-03-16-VectorCtor.c
2006-03-17-KnRMismatch.c
2006-05-01-AppleAlignmentPragma.c Fix a ton of comment typos found by codespell. Patch by 2011-04-15 05:18:47 +00:00
2006-05-19-SingleEltReturn.c
2006-07-31-PR854.c
2006-09-11-BitfieldRefCrash.c
2006-09-18-fwrite-cast-crash.c
2006-09-21-IncompleteElementType.c
2006-09-25-DebugFilename.c
2006-09-25-DebugFilename.h
2006-09-28-SimpleAsm.c
2006-10-30-ArrayCrash.c
2006-12-14-ordered_expr.c
2007-01-06-KNR-Proto.c
2007-01-20-VectorICE.c
2007-01-24-InlineAsmCModifier.c
2007-02-04-AddrLValue-2.c
2007-02-04-AddrLValue.c
2007-02-04-EmptyStruct.c
2007-02-04-WITH_SIZE_EXPR.c
2007-02-05-nested.c
2007-02-07-AddrLabel.c
2007-02-16-VariableSizeStructArg.c
2007-02-16-VoidPtrDiff.c
2007-02-16-WritableStrings.c Update llvm-gcc's tests. 2011-01-14 17:01:20 +00:00
2007-02-25-C-DotDotDot.c
2007-03-01-VarSizeArrayIdx.c
2007-03-05-DataLayout.c
2007-03-06-VarSizeInStruct1.c
2007-03-06-VarSizeInStruct2.c
2007-03-26-BitfieldAfterZeroWidth.c
2007-03-26-ZeroWidthBitfield.c
2007-03-27-ArrayCompatible.c
2007-03-27-VarLengthArray.c
2007-04-05-PackedBitFields-2.c
2007-04-05-PackedBitFields.c
2007-04-05-PackedStruct.c
2007-04-05-PadBeforeZeroLengthField.c
2007-04-05-UnPackedStruct.c
2007-04-11-InlineAsmStruct.c
2007-04-11-InlineAsmUnion.c
2007-04-11-InlineStorageClassC89.c
2007-04-11-InlineStorageClassC99.c
2007-04-11-PR1321.c
2007-04-13-InlineAsmStruct2.c
2007-04-13-InlineAsmUnion2.c
2007-04-14-FNoBuiltin.c
2007-04-17-ZeroSizeBitFields.c
2007-04-24-bit-not-expr.c
2007-04-24-str-const.c
2007-04-24-VolatileStructCopy.c
2007-05-07-NestedStructReturn.c
2007-05-07-PaddingElements.c
2007-05-08-PCH.c
2007-05-11-str-const.c
2007-05-15-PaddingElement.c
2007-05-16-EmptyStruct.c
2007-05-29-UnionCopy.c
2007-06-05-NoInlineAttribute.c
2007-06-15-AnnotateAttribute.c
2007-06-18-SextAttrAggregate.c
2007-07-29-RestrictPtrArg.c
2007-08-01-LoadStoreAlign.c
2007-08-21-ComplexCst.c
2007-08-22-CTTZ.c
2007-09-05-ConstCtor.c
2007-09-12-PragmaPack.c
2007-09-14-NegatePointer.c
2007-09-17-WeakRef.c
2007-09-20-GcrootAttribute.c
2007-09-26-Alignment.c
2007-09-27-ComplexIntCompare.c
2007-09-28-PackedUnionMember.c
2007-10-01-BuildArrayRef.c
2007-10-02-VolatileArray.c
2007-10-15-VoidPtr.c
2007-10-30-Volatile.c
2007-11-07-AlignedMemcpy.c
2007-11-07-CopyAggregateAlign.c
2007-11-07-ZeroAggregateAlign.c
2007-11-27-SExtZExt.c
2007-11-28-GlobalInitializer.c
2007-12-16-AsmNoUnwind.c
2007-12-VarArrayDebug.c
2008-01-04-WideBitfield.c
2008-01-07-UnusualIntSize.c
2008-01-11-ChainConsistency.c
2008-01-21-PackedBitFields.c
2008-01-21-PackedStructField.c
2008-01-24-StructAlignAndBitFields.c
2008-01-25-ByValReadNone.c
2008-01-25-ZeroSizedAggregate.c
2008-01-28-PragmaMark.c
2008-01-28-UnionSize.c
2008-02-11-AnnotateBuiltin.c
2008-03-03-CtorAttrType.c
2008-03-05-syncPtr.c
2008-03-24-BitField-And-Alloca.c
2008-03-26-PackedBitFields.c
2008-04-08-NoExceptions.c
2008-05-06-CFECrash.c
2008-05-12-TempUsedBeforeDef.c
2008-05-19-AlwaysInline.c
2008-07-08-FAbsAttributes.c
2008-08-07-AlignPadding1.c
2008-08-07-AlignPadding2.c
2008-08-07-GEPIntToPtr.c
2008-09-03-WeakAlias.c
2008-10-13-FrontendCrash.c
2008-10-30-ZeroPlacement.c
2008-11-02-WeakAlias.c
2008-11-08-InstCombineSelect.c
2008-11-11-AnnotateStructFieldAttribute.c
2008-12-23-AsmIntPointerTie.c
2009-01-05-BlockInlining.c
2009-01-20-k8.c
2009-01-21-InvalidIterator.c
2009-02-13-zerosize-union-field-ppc.c
2009-02-13-zerosize-union-field.c
2009-02-17-BitField-dbg.c Pass -disable-cfi to llc. 2011-05-06 18:01:58 +00:00
2009-03-01-MallocNoAlias.c
2009-03-08-ZeroEltStructCrash.c
2009-03-09-WeakDeclarations-1.c
2009-03-13-dbg.c
2009-04-22-UnknownSize.c
2009-04-28-UnionArrayCrash.c
2009-05-04-EnumInreg.c
2009-05-17-AlwaysInline.c
2009-06-14-HighlyAligned.c
2009-06-18-StaticInitTailPadPack.c
2009-07-14-VoidPtr.c
2009-07-15-pad-wchar_t-array.c
2009-07-17-VoidParameter.c
2009-07-22-StructLayout.c
2009-08-11-AsmBlocksComplexJumpTarget.c
2009-09-24-SqrtErrno.c
2009-12-07-BitFieldAlignment.c
2010-01-05-LinkageName.c Pass -disable-cfi. 2011-05-06 17:44:58 +00:00
2010-01-13-MemBarrier.c
2010-01-14-FnType-DebugInfo.c
2010-01-14-StaticVariable.c Pass -disable-cfi to llc. 2011-05-06 18:01:58 +00:00
2010-01-18-Inlined-Debug.c
2010-02-10-PointerName.c
2010-02-15-DbgStaticVar.c
2010-02-16-DbgVarScope.c Pass -disable-cfi to llc. 2011-05-06 18:01:58 +00:00
2010-02-18-Dbg-VectorType.c
2010-03-5-LexicalScope.c
2010-03-10-arm-asmreg.c
2010-05-14-Optimized-VarType.c
2010-05-18-asmsched.c Fix test to be less sensitive to coalescing. 2011-05-05 16:48:00 +00:00
2010-05-18-palignr.c
2010-05-26-AsmSideEffect.c
2010-05-31-palignr.c
2010-06-11-SaveExpr.c
2010-06-17-asmcrash.c
2010-06-28-DbgLocalVar.c
2010-06-28-nowarn.c
2010-07-08-DeclDebugLineNo.c
2010-07-14-overconservative-align.c
2010-07-14-ref-off-end.c
2010-07-27-MinNoFoldConst.c Fix a ton of comment typos found by codespell. Patch by 2011-04-15 05:18:47 +00:00
2010-08-12-asm-aggr-arg.c
2010-11-16-asmblock.c
2010-12-01-CommonGlobal.c Test case for r120740. Radar 8712503. 2010-12-02 21:25:55 +00:00
2011-02-21-DATA-common.c Test case for r126127. Radar 9012638. 2011-02-21 18:08:40 +00:00
2011-03-02-UnionInitializer.c Test cases for r127309. <rdar://problem/9055247> 2011-03-09 03:59:52 +00:00
2011-03-08-ZeroFieldUnionInitializer.c Add a RUN line to the test case to make it functional. <rdar://problem/9055247> 2011-03-09 04:02:40 +00:00
2011-03-31-ArrayRefFolding.c Testcase for r128619 (PR9571). 2011-03-31 08:13:57 +00:00
alignstack.c
always-inline.c
arrayderef.c
asm-reg-var-local.c
Atomics-no64bit.c
Atomics.c
attribute_constructor.c
BasicInstrs.c
block-copy.c
crash-invalid-array.c
dg.exp
exact-div-expr.c
extern-weak.c
fp-logical.c
func-aligned.c
funccall.c
hidden-visibility.c Update llvm-gcc's tests. 2011-01-14 17:01:20 +00:00
implicit-arg.c
inline-asm-function.c
inline-asm-mrv.c
libcalls-d.c
libcalls-ld.c
libcalls.c
misaligned-param.c
mmx-inline-asm.c Land the long talked about "type system rewrite" patch. This 2011-07-09 17:41:24 +00:00
nested-functions.c
pr2394.c
pr3518.c Update llvm-gcc's tests. 2011-01-14 17:01:20 +00:00
pr4349.c Update for r132493 change. 2011-06-02 22:11:49 +00:00
pr5406.c
ptr-rotate.c
redef-ext-inline.c
sret2.c
sret.c
struct-matching-constraint.c Add a testcase, enabled only on arm, for llvm-gcc r132366. 2011-06-01 18:23:56 +00:00
unaligned-memcpy.c
union-align.c
vla-1.c
vla-2.c
vla-3.c Testcase for llvm-gcc commit r128230. 2011-03-24 21:59:03 +00:00
wchar-const.c
weak_constant.c