Ted Kremenek
e9814186ac
PTH:
...
- Use canonical FileID when using getSpelling() caching. This
addresses some cache misses we were seeing with -fsyntax-only on
Cocoa.h
- Added Preprocessor::getPhysicalCharacterAt() utility method for
clients to grab the first character at a specified sourcelocation.
This uses the PTH spelling cache.
- Modified Sema::ActOnNumericConstant() to use
Preprocessor::getPhysicalCharacterAt() instead of
SourceManager::getCharacterData() (to get PTH hits).
These changes cause -fsyntax-only to not page in any sources from
Cocoa.h. We see a speedup of 27%.
llvm-svn: 62193
2009-01-13 23:19:12 +00:00
Douglas Gregor
2b136fe2a5
Permitting typedefs without a name is a Microsoft/GNU extension
...
llvm-svn: 62192
2009-01-13 23:10:51 +00:00
Devang Patel
7b13aeedea
Keep "has debug info" big in MachineModuleInfo to avoid circular dependency between AsmPrinter and CodeGen.
...
llvm-svn: 62191
2009-01-13 23:02:17 +00:00
Devang Patel
fe9581f0cd
Undo previous checkin.
...
llvm-svn: 62190
2009-01-13 22:54:57 +00:00
Dale Johannesen
0aeabdff57
Fix testsuite regressions from recursive inlining.
...
llvm-svn: 62189
2009-01-13 22:43:37 +00:00
Ted Kremenek
7cbdcc25d4
Fix corner cases in PTH getSpelling() binary search.
...
llvm-svn: 62187
2009-01-13 22:16:45 +00:00
Ted Kremenek
b0b4f74b6b
PTH: Fix remaining cases where the spelling cache in the PTH file was being missed when it shouldn't. This shaves another 7% off PTH time for -Eonly on Cocoa.h
...
llvm-svn: 62186
2009-01-13 22:05:50 +00:00
Devang Patel
dd25a9d0aa
Use DwarfWriter to record dbg variables.
...
llvm-svn: 62185
2009-01-13 21:44:10 +00:00
Devang Patel
ca997988c3
Use dwarf writer to decide whether the module has debug info or not.
...
llvm-svn: 62184
2009-01-13 21:25:00 +00:00
Daniel Dunbar
d064502da3
ccc: Fix a test case.
...
llvm-svn: 62183
2009-01-13 21:11:28 +00:00
Chris Lattner
6675aed559
use a slightly more sensible position for an array ref's "getExprLoc"
...
llvm-svn: 62182
2009-01-13 21:11:15 +00:00
Daniel Dunbar
3ff18a5119
ccc: Darwin: Implement some important general argument translations
...
for the Darwin tool chain.
- Ideally we would localize these to tool specific argument
processing but for now this matches gcc closely.
llvm-svn: 62181
2009-01-13 21:07:43 +00:00
Dan Gohman
0fdf71cb9d
Add bt instructions that take immediate operands.
...
llvm-svn: 62180
2009-01-13 20:33:23 +00:00
Dan Gohman
eb2591bbdd
Fix a few more JIT encoding issues in the BT instructions.
...
llvm-svn: 62179
2009-01-13 20:32:45 +00:00
Dan Gohman
5d4afb7bd9
Use assertions to check for conditions that should never happen.
...
llvm-svn: 62178
2009-01-13 20:25:24 +00:00
Dan Gohman
1407484178
The list-td and list-tdrr schedulers don't yet support physreg
...
scheduling dependencies. Add assertion checks to help catch
this.
It appears the Mips target defaults to list-td, and it has a
regression test that uses a physreg dependence. Such code was
liable to be miscompiled, and now evokes an assertion failure.
llvm-svn: 62177
2009-01-13 20:24:13 +00:00
Dan Gohman
59af77376c
Make instcombine ensure that all allocas are explicitly aligned at at
...
least their preferred alignment.
llvm-svn: 62176
2009-01-13 20:18:38 +00:00
Douglas Gregor
89100920d6
Turn off some Destroy calls that are currenly causing double-destruction of ScopedDecls. We will re-enable this later, when we have time to fully solve the ownership issue.
...
llvm-svn: 62175
2009-01-13 19:47:12 +00:00
Sanjiv Gupta
45da8b779c
Checking in conditionals, function call, arrays and libcalls implementation.
...
llvm-svn: 62174
2009-01-13 19:18:47 +00:00
Dan Gohman
13141d5538
Avoid referring to edge D after the Succs or Preds arrays have
...
been modified, to avoid trouble in the (unlikely) scenario that
D is a reference to an element in one of those arrays.
llvm-svn: 62173
2009-01-13 19:08:45 +00:00
Daniel Dunbar
28cffd3dbc
ccc: Allow internal tool chain specific argument translation.
...
- Pulled -Xarch processing into this.
- Get rid of manual creation of forwarding arg array.
- Use Darwin/CC1 instead of generic GCC cc1 on X86.
llvm-svn: 62172
2009-01-13 18:51:26 +00:00
Anders Carlsson
bc12e92068
Use the unqualified type for GCCs struct/union cast extension
...
llvm-svn: 62170
2009-01-13 17:00:51 +00:00
Duncan Sands
ffc6133318
When replacing uses and the same node is reached
...
via two paths, process it once not twice, d'oh!
Analysis, testcase and original patch thanks to
Mon Ping Wang.
llvm-svn: 62169
2009-01-13 15:17:14 +00:00
Duncan Sands
ab2fd9e4b9
Mark this XFAIL for the moment.
...
llvm-svn: 62168
2009-01-13 15:15:46 +00:00
Duncan Sands
90d2a7bd72
Fix some typos. Also, the WidenedVectors map
...
was not being cleaned by ExpungeNode.
llvm-svn: 62167
2009-01-13 14:42:39 +00:00
Duncan Sands
013be76241
Correct a comment - this is not a sign extension.
...
llvm-svn: 62166
2009-01-13 14:04:14 +00:00
Duncan Sands
944ccc5d6a
Correct a comment.
...
llvm-svn: 62165
2009-01-13 13:48:44 +00:00
Argyrios Kyrtzidis
be40b7e332
DeclContext::KindTrait was not meant to be used outside of DeclContext::CastTo (causes compilation error on MSVC).
...
Add DeclContext::getDeclKind() and use that instead of DeclContext::KindTrait.
llvm-svn: 62164
2009-01-13 13:11:58 +00:00
Nick Lewycky
52348300a4
Wind SCEV back in time, to Nov 18th. This 'fixes' PR3275, PR3294, PR3295,
...
PR3296 and PR3302.
llvm-svn: 62160
2009-01-13 09:18:58 +00:00
Chris Lattner
6e66d0a6a1
add a new insertAfter method, patch by Tom Jablin!
...
llvm-svn: 62158
2009-01-13 07:43:51 +00:00
Daniel Dunbar
70ff972e52
ccc: Bug fix, '-f...' should be part of the '-f' group.
...
llvm-svn: 62157
2009-01-13 07:39:45 +00:00
Daniel Dunbar
c838568803
Add simple tool for comparing drivers (hardcoded to gcc and xcc) which
...
support -###.
llvm-svn: 62156
2009-01-13 07:38:29 +00:00
Chris Lattner
1a579351d2
make -march=cpp handle the nocapture attribute, make it assert if it
...
sees attributes it doesn't know.
llvm-svn: 62155
2009-01-13 07:22:22 +00:00
Daniel Dunbar
eb83389b30
ccc: Darwin/Link also runs dsymutil in one very particular situation.
...
llvm-svn: 62154
2009-01-13 06:44:28 +00:00
Zhongxing Xu
13e82c0b6b
Print function parameters in DeclContextPrinter.
...
llvm-svn: 62153
2009-01-13 06:25:33 +00:00
Daniel Dunbar
fc8d8effb6
ccc: Bug fix and gcc compatibility tweak.
...
- --gstabs only goes to Darwin/Assembler when dealing with an
assembly file from the command line.
- Relative placement of -o option for cc1 moves depending on
-fsyntax-only/-S, how quaint.
llvm-svn: 62152
2009-01-13 06:25:31 +00:00
Evan Cheng
4f9c47aab9
Un-tabify.
...
llvm-svn: 62151
2009-01-13 06:08:37 +00:00
Owen Anderson
b282d1b6ff
Fix fallout from r62144. Evan, please double check this.
...
llvm-svn: 62150
2009-01-13 06:05:10 +00:00
Daniel Dunbar
34bafa4a40
ccc: Add option groups.
...
- Simple mechanism for group together sets of options so the driver
can efficiently deal with them as a group (i.e., for forwarding -i*
to cc1).
- Use to finish off the major missing pieces of Darwin/CC1 support.
llvm-svn: 62149
2009-01-13 05:54:38 +00:00
Anders Carlsson
6393773c4b
Warn when someone tries to pass a variable with a non-POD type to a varargs function/method/block.
...
llvm-svn: 62148
2009-01-13 05:48:52 +00:00
Douglas Gregor
02a0acd0bc
Fix argument-passing bugs in a call to object
...
llvm-svn: 62147
2009-01-13 05:10:00 +00:00
Daniel Dunbar
fab583b7c6
ccc: Darwin/CC1: Hardcode (for now) some -m options to match gcc.
...
llvm-svn: 62146
2009-01-13 04:51:51 +00:00
Daniel Dunbar
8af0d3447e
ccc: Allow host to over-ride default arch based on command line
...
arguments (e.g., -m32 and -m64).
llvm-svn: 62145
2009-01-13 04:05:40 +00:00
Evan Cheng
f343168f1f
FIX llvm-gcc bootstrap on x86_64 linux. If a virtual register is copied to a physical register, it's not necessarily defined by a copy. We have to watch out it doesn't clobber any sub-register that might be live during its live interval. If the live interval crosses a basic block, then it's not safe to check with the less conservative check (by scanning uses and defs) because it's possible a sub-register might be live out of the block.
...
llvm-svn: 62144
2009-01-13 03:57:45 +00:00
Zhongxing Xu
d90c6d92e9
Improve c++ methods printing in DeclContextPrinter.
...
llvm-svn: 62143
2009-01-13 03:26:38 +00:00
Zhongxing Xu
2436f86024
add a fixme.
...
llvm-svn: 62142
2009-01-13 03:07:41 +00:00
Zhongxing Xu
100f30bd0d
Improve DeclContextPrinter: print enum name.
...
llvm-svn: 62140
2009-01-13 02:41:08 +00:00
Daniel Dunbar
dec798bf37
Bug fix, __private_extern__ globals were always introducing a definition.
...
llvm-svn: 62139
2009-01-13 02:25:00 +00:00
Zhongxing Xu
cff637a568
Add KillStruct to region store.
...
- put the killed region in the kill set.
- set its default value to unknown.
- removes all bindings for its subregions.
llvm-svn: 62138
2009-01-13 01:49:57 +00:00
Ted Kremenek
f9d3f0711a
Updated checker build.
...
llvm-svn: 62137
2009-01-13 01:41:37 +00:00