llvm-project/clang/test/CodeGen
Eli Friedman aee9e54dca Don't swap function decls, and add them to the scope as they are
encountered.  Mixing up the decls is unintuitive, and confuses the AST 
destruction code. Fixes PR2360.

Note that there is a need to look up the characteristics and 
declarations of a function associated with a particular name or decl, 
but the original swapping code doesn't solve it properly. 
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-May/001644.html is one 
suggestion for how to fix that.

llvm-svn: 51584
2008-05-27 05:07:37 +00:00
..
2007-11-29-ArraySizeFromInitializer.c Commit test for CL 44440. 2007-12-02 07:47:19 +00:00
2008-02-07-bitfield-bug.c Fix codegen of 2008-02-07 18:18:58 +00:00
2008-02-08-bitfield-bug.c Fix a bitfield regression. Reported by Anders Carlsson. 2008-02-08 19:46:46 +00:00
2008-02-26-inline-asm-bug.c Fix a bug in ConvertAsmString function. 2008-02-26 19:19:58 +00:00
OpaqueStruct.c Convert opaque type when struct definition is seen. 2007-12-21 19:35:28 +00:00
address-space.c this started failing because a GEP was constant folded, 2008-04-13 19:54:28 +00:00
array.c Codegen array initializers. 2007-10-26 17:44:44 +00:00
atomic.c Added support to generate some atomic operators (add, sub, and, or etc..) 2008-05-09 22:40:52 +00:00
attributes.c The operand to the visibility attribute is required to be a quoted string, not a bare identifier. 2008-03-04 18:08:48 +00:00
bitfield-init.c Don't try to take the address of a bitfield; fixes PR2310. 2008-05-12 15:06:05 +00:00
bitfield.c Simplify bitfield codegen. 2008-02-07 19:29:53 +00:00
bool-bitfield.c Fix support for _Bool bitfields. The issue is that the bitfield width 2008-05-17 20:03:47 +00:00
boolassign.c Fix a bug where CodeGen would attempt to erase an instruction that was 2008-01-29 18:13:51 +00:00
builtin-stackaddress.c Fix test (it was incorrectly succeeding). 2008-05-20 09:04:19 +00:00
builtinmemcpy.c Implement CodeGen for __builtin_memcpy. 2008-05-19 23:27:48 +00:00
builtinshufflevector.c Implementation of __builtin_shufflevector, a portable builtin capable of 2008-05-14 19:38:39 +00:00
cast.c Fix a codegen crash on test/CodeGen/cast.c, reported by Keith. 2007-12-12 04:13:20 +00:00
cfstring.c Put back the flags field in the constant CF string type. 2007-11-19 00:25:30 +00:00
complex.c Since isComplexType() no longer returns true for _Complex integers, the code 2008-04-04 16:54:41 +00:00
compound-literal.c Remove illegal test. 2008-05-19 20:17:34 +00:00
compound.c implement codegen support for aggregates casted to void. 2008-02-16 23:55:16 +00:00
conditional-gnu-ext.c Fix sema support for the gnu ?: expression with a 2007-11-26 01:40:58 +00:00
conditional.c Patch for PR2334, and a similar ObjC bug. 2008-05-16 17:37:11 +00:00
const-init.c Some const initializer tests for stuff I just committed. 2008-02-21 18:07:36 +00:00
cxx-default-arg.cpp Add support for C++ default arguments, and rework Parse-Sema 2008-04-08 04:40:51 +00:00
dostmt.c new test 2007-10-09 20:37:41 +00:00
enum.c use -emit-llvm-bc 2007-12-27 20:35:58 +00:00
exprs.c implement codegen support for sizeof(void), fixing PR2080. 2008-02-21 05:45:29 +00:00
extern-block-var.c Implement extern block var. 2008-02-16 22:30:38 +00:00
func-decl-cleanup.c Don't swap function decls, and add them to the scope as they are 2008-05-27 05:07:37 +00:00
func-return-member.c Enable CodeGen for member expressions based on call expressions returning aggregate types. This enables expressions like 'foo().member.submember'. 2007-12-29 05:02:41 +00:00
functions.c implement codegen for functions whose function body type don't match 2007-12-02 06:27:33 +00:00
global-with-initialiser.c improve codegen for global variable initializers, implementing 2007-11-23 22:07:55 +00:00
globalinit.c Relax an assertion, fixing PR1968 2008-02-05 06:37:34 +00:00
init-with-member-expr.c Fix PR2049, updating Eli's patch that fixes to mainline. This produces incorrect 2008-04-04 18:42:16 +00:00
init.c add a testcase 2008-05-04 00:56:25 +00:00
int-to-pointer.c Check in these testcases. 2007-07-13 20:18:44 +00:00
long-double-x86.c Generalize the float type generation code, and specifically fix the 2008-05-27 04:20:05 +00:00
mandel.c testcase that doesn't work quite yet 2007-08-27 05:23:45 +00:00
merge-statics.c pull .ll and .bc writing out of the ASTConsumer destructors into some top 2008-02-06 01:42:25 +00:00
ocu-vector.c OCUVector -> ExtVector, shorthand for extended vector, per feedback from Chris. 2008-04-18 23:10:10 +00:00
opaque-pointer.c A pointer to an opaque type is an "opaque type definition". 2008-01-30 21:21:08 +00:00
pointer-arithmetic.c Remove broken assert from CodeGen. Better check is done in Sema. 2007-12-26 05:21:37 +00:00
pointer-to-int.c Fix a typo that prevented pointer-to-int conversions from working. 2007-10-31 23:18:02 +00:00
shared-string-literals.c Adding code gen tests for writable and shared string literals. 2007-11-28 06:27:12 +00:00
statements.c explicitly document that return statement argument does not necessarily follow the result type of the function. Add testcase. 2008-02-06 21:20:34 +00:00
static-forward-decl.c Add a more reliable check for whether a static declaration has already 2008-05-27 04:58:01 +00:00
staticinit.c Implement codegen for the following static var init. 2008-02-26 21:41:45 +00:00
string-init.c Fix the emission of expressions like char a[10] = "asdf"; previously, 2008-05-19 17:51:16 +00:00
string-literal.c no need to verify this, no errors/warnings are expected. 2007-12-27 20:31:56 +00:00
struct-comma.c Implement codegen for comma operator for structs. 2008-05-20 07:56:31 +00:00
struct-x86-darwin.c pull .ll and .bc writing out of the ASTConsumer destructors into some top 2008-02-06 01:42:25 +00:00
struct.c Fix the codegen of structs with flexible array members. 2008-02-06 05:33:51 +00:00
switch.c Emit basic block for switch body; fixes PR2307. 2008-05-12 16:08:04 +00:00
trunc-array-initializer.c Treat discarding array initializer elements as an extwarn (so -pedantic-errors flags it). Allow CodeGen to truncate the initializer if needed. 2007-12-02 08:49:54 +00:00
typedef.c fix a bug handling typedefs in member expr codegen. Patch 2007-11-30 18:02:19 +00:00
types.c Fix PR2081 (problems codegen'ing some recursive structures) patch 2008-04-03 05:50:42 +00:00
union.c A small testcase; no patch, since it was a bug in a patch I never 2008-05-21 13:21:01 +00:00
vector.c Add RUN line. 2008-02-02 04:49:12 +00:00
weak-global.c A global without initializer must be emitted as weak. 2008-02-19 00:04:15 +00:00
whilestmt.c Recognize while(1) and avoid extra blocks. 2007-10-09 20:51:27 +00:00
writable-strings.c Fix typo in writable string test 2007-11-28 06:52:03 +00:00
x86-inline-asm.c Convert x86 target specific inline asm constraints to LLVM. 2008-02-26 18:33:46 +00:00