Chris Lattner
8ac63738b4
use efficient form of getSpelling, this speeds up -dM by 16%.
...
llvm-svn: 64244
2009-02-10 22:16:03 +00:00
Devang Patel
654e47f366
Ignore dbg intrinsic while folding unconditional branch.
...
llvm-svn: 64242
2009-02-10 22:14:17 +00:00
Evan Cheng
589a539423
Handle llvm.x86.sse2.maskmov.dqu in 64-bit.
...
llvm-svn: 64240
2009-02-10 22:06:28 +00:00
Douglas Gregor
09cfcff492
GNU allows structs with flexible array members to be placed inside
...
arrays and other structs/unions as an extension. Downgrade our error
to a warning. Fixes PR3540.
llvm-svn: 64239
2009-02-10 21:49:46 +00:00
Daniel Dunbar
e46506eaea
Pull CodeGenFunction::EmitVAArg into target specific ABIInfo classes.
...
- Missed this file.
llvm-svn: 64238
2009-02-10 21:44:36 +00:00
Evan Cheng
df15f13c34
80 col violations.
...
llvm-svn: 64237
2009-02-10 21:39:44 +00:00
Duncan Sands
6632f12c11
This is now done using a real i33, rather than
...
an emulated one. Adjust the check.
llvm-svn: 64236
2009-02-10 20:44:15 +00:00
Daniel Dunbar
2d0746fb97
Pull CodeGenFunction::EmitVAArg into target specific ABIInfo classes.
...
llvm-svn: 64235
2009-02-10 20:44:09 +00:00
Fariborz Jahanian
4e7ae06b00
Generate ir for ivar offset. This will pass
...
type-nsobject-attribute.m in the dejagnu test suite
in the nonfragile abi mode.
llvm-svn: 64233
2009-02-10 20:21:06 +00:00
Mike Stump
74a7647973
Fixup -ast-print so that:
...
We handle indentation of decls better.
We Indent extern "C" { } stuff better.
We print out structure contents more often.
We handle pass indentation information into the statement printer, so that
nested things come out more indented.
We print out FieldDecls.
We print out Vars.
We print out namespaces.
We indent functions better.
llvm-svn: 64232
2009-02-10 20:16:46 +00:00
Mike Stump
1d05068395
Refactor FieldDecls to be ValueDecls instead of NamedDecls.
...
llvm-svn: 64231
2009-02-10 20:06:48 +00:00
Douglas Gregor
85e8b3eeed
Fix a problem with bogus template shadowing warnings
...
llvm-svn: 64230
2009-02-10 19:52:54 +00:00
Douglas Gregor
dba326363c
Implement parsing, semantic analysis and ASTs for default template
...
arguments. This commit covers checking and merging default template
arguments from previous declarations, but it does not cover the actual
use of default template arguments when naming class template
specializations.
llvm-svn: 64229
2009-02-10 19:49:53 +00:00
Devang Patel
da1a632a87
Use early exits. Reduce indentation.
...
llvm-svn: 64226
2009-02-10 19:28:07 +00:00
Fariborz Jahanian
21fc74c15a
Some refactoring of Ivar offset code gen.
...
in preparation for nonfragile ivar offset work.
llvm-svn: 64225
2009-02-10 19:02:04 +00:00
Dan Gohman
1f517dd1c4
Use const, to support platforms where strrchr returns a const char *.
...
This fixes PR3535.
llvm-svn: 64224
2009-02-10 17:56:28 +00:00
Douglas Gregor
8133879c5e
Semantic analysis for non-type template parameter declarations.
...
llvm-svn: 64223
2009-02-10 17:43:50 +00:00
Dan Gohman
1093e9a021
Answer a common FAQ:
...
"Can I compile C or C++ code to platform-independent LLVM bitcode?"
llvm-svn: 64222
2009-02-10 17:26:53 +00:00
Daniel Dunbar
9403cd6d85
Tweak x86-64 ABI to allow reuse for vararg handling.
...
llvm-svn: 64221
2009-02-10 17:06:09 +00:00
Duncan Sands
d1de45a146
Pacify gcc-4.3 (thinks IsConstant may be used
...
uninitialized).
llvm-svn: 64220
2009-02-10 16:24:55 +00:00
Evan Cheng
ce3bbe515b
Fix PR3457: Ignore control successors when looking for closest scheduled successor. A control successor doesn't read result(s) produced by the scheduling unit being evaluated.
...
llvm-svn: 64210
2009-02-10 08:30:11 +00:00
Devang Patel
4bed3565f3
Do not clone llvm.dbg.func.start and corresponding llvm.dbg.region.end during inlining.
...
llvm-svn: 64209
2009-02-10 07:48:18 +00:00
Ted Kremenek
f83882987e
Updated checker build.
...
llvm-svn: 64208
2009-02-10 07:38:50 +00:00
Devang Patel
caf4485781
Enable scalar replacement of AllocaInst whose one of the user is dbg info.
...
llvm-svn: 64207
2009-02-10 07:00:59 +00:00
Anders Carlsson
7325b61e74
Fix an #ifndef that should be an #ifdef instead.
...
llvm-svn: 64206
2009-02-10 06:18:19 +00:00
Anders Carlsson
33c1b6528f
Remove the last remnants of the Obj-C EH stack code.
...
llvm-svn: 64205
2009-02-10 06:07:49 +00:00
Devang Patel
9b6c1d6313
Validate file id.
...
llvm-svn: 64204
2009-02-10 06:04:08 +00:00
Anders Carlsson
33747b6c41
Start removing the old Obj-C EH stack now that the cleanup stack is used instead.
...
llvm-svn: 64203
2009-02-10 05:52:02 +00:00
Ted Kremenek
a84522088f
Fix a crash in GRSimpleVals::EvalCast due not handling transparent unions.
...
llvm-svn: 64200
2009-02-10 05:42:58 +00:00
Sanjiv Gupta
c3f7b82628
Function temporaries can not overlap with retval or args.See the comment in source code to know the reason. Anything having .auto. in its name is local to a function in nature irrespective of the linkage specified. print static local variables in module level IDATA section.
...
llvm-svn: 64199
2009-02-10 04:20:26 +00:00
Sanjiv Gupta
e99ad00fd2
Function parameters for PIC16 are like local variables. So use the keyword ".auto." to mangle their names. The working of PIC16AsmPrinter relies on that keyword currently.
...
llvm-svn: 64198
2009-02-10 04:17:25 +00:00
Daniel Dunbar
0007961241
Support va_arg on _Complex.
...
gcc compat test suite results (Darwin x86-32 & -64):
--
# of expected passes 1110
# of unexpected failures 74
# of unresolved testcases 168
# of unsupported tests 2
llvm-svn: 64197
2009-02-10 03:03:30 +00:00
Argyrios Kyrtzidis
2ca8d5dfdf
Bring in 'CHAR_BIT' for GCC 4.3.
...
llvm-svn: 64196
2009-02-10 02:14:34 +00:00
Daniel Dunbar
2daa142765
Enable parameter passing test for x86_64.
...
llvm-svn: 64195
2009-02-10 01:53:22 +00:00
Daniel Dunbar
9bfb4de38b
ABI: Correctly handle load/store of values which have a different LLVM
...
memory representation (e.g., bool).
- This upgrades (downgrades) MultiSource/Applications/ClamAV/clamscan
to a miscompile and fixes
SingleSource/UnitTests/2003-05-31-CastToBool.
llvm-svn: 64194
2009-02-10 01:51:39 +00:00
Ted Kremenek
351f78822b
Rearrange code. No functionality change.
...
llvm-svn: 64193
2009-02-10 01:14:45 +00:00
Ted Kremenek
5b229bcea8
Fix potential padding error in PTH file and add stub code for emitting an on-disk chained hash table.
...
llvm-svn: 64192
2009-02-10 01:06:17 +00:00
Daniel Dunbar
1d425460d5
Add util Emit{LoadOf,StoreTo}Scalar methods to encapsulate conversion
...
from LLVM memory type to/from LLVM temporary type.
- No intended functionality change.
llvm-svn: 64191
2009-02-10 00:57:50 +00:00
Ted Kremenek
a446e95891
Update checker build.
...
llvm-svn: 64190
2009-02-10 00:53:39 +00:00
Douglas Gregor
97f34576d4
Teach the type-id/expression disambiguator about different
...
disambiguation contexts, so that we properly parse template arguments
such as
A<int()>
as type-ids rather than as expressions. Since this can be confusing
(especially when the template parameter is a non-type template
parameter), we try to give a friendly error message.
Almost, eliminate a redundant error message (that should have been a
note) and add some ultra-basic checks for non-type template
arguments.
llvm-svn: 64189
2009-02-10 00:53:15 +00:00
Douglas Gregor
85e0f66250
Check template template arguments against their corresponding template
...
template parameters.
llvm-svn: 64188
2009-02-10 00:24:35 +00:00
Daniel Dunbar
d5f1f55e28
Make sure to initialize local variables, even if they were ignored by
...
ABI.
llvm-svn: 64187
2009-02-10 00:06:49 +00:00
Evan Cheng
e5ade4a9a1
Implement FpSET_ST1_*.
...
llvm-svn: 64186
2009-02-09 23:32:07 +00:00
Douglas Gregor
d32e028f79
Rudimentary checking of template arguments against their corresponding
...
template parameters when performing semantic analysis of a template-id
naming a class template specialization.
llvm-svn: 64185
2009-02-09 23:23:08 +00:00
Evan Cheng
3af42a8a14
If the target cannot issue a copy for the given source and dest registers, abort instead of silently continue.
...
llvm-svn: 64184
2009-02-09 22:47:36 +00:00
Dale Johannesen
cd19967754
Fix PR 3471, and some cleanups.
...
llvm-svn: 64177
2009-02-09 22:14:15 +00:00
Anders Carlsson
ac0d7bd709
id<Foo> is a POD type.
...
llvm-svn: 64175
2009-02-09 21:53:01 +00:00
Anders Carlsson
d19fd0dd57
Move previously unsupported VLA test to vla.c
...
llvm-svn: 64173
2009-02-09 21:48:07 +00:00
Daniel Dunbar
8a1ca06456
ccc: -dM wasn't being passed to Darwin/CC1 correctly.
...
llvm-svn: 64169
2009-02-09 21:22:38 +00:00
Daniel Dunbar
7aa851246e
Update test case; VLA's are now supported.
...
llvm-svn: 64168
2009-02-09 21:19:23 +00:00