Douglas Gregor [Wed, 29 Jul 2009 16:15:53 +0000 (16:15 +0000)]
Remove an obsolete kludge based on the previous, completely broken handling of function templates
llvm-svn: 77464
Douglas Gregor [Wed, 29 Jul 2009 16:13:25 +0000 (16:13 +0000)]
Test redefinition of class template partial specializations
llvm-svn: 77463
Douglas Gregor [Wed, 29 Jul 2009 16:09:57 +0000 (16:09 +0000)]
Use the new statement/expression profiling code to unique dependent
template arguments, as in template specialization types. This permits
matching out-of-line definitions of members for class templates that
involve non-type template parameters.
llvm-svn: 77462
David Greene [Wed, 29 Jul 2009 16:08:27 +0000 (16:08 +0000)]
Re-apply previous changes and improve column padding performance some more.
llvm-svn: 77461
Dan Gohman [Wed, 29 Jul 2009 16:00:30 +0000 (16:00 +0000)]
Add one-past-the-end language to the inbounds keyword.
llvm-svn: 77460
Dan Gohman [Wed, 29 Jul 2009 15:58:36 +0000 (15:58 +0000)]
Minor code simplification.
llvm-svn: 77459
Fariborz Jahanian [Wed, 29 Jul 2009 15:54:56 +0000 (15:54 +0000)]
Use the existing API for base offset. Use suitable llvm type
for offset ir-gen.
llvm-svn: 77458
Devang Patel [Wed, 29 Jul 2009 15:52:49 +0000 (15:52 +0000)]
Fix comment.
llvm-svn: 77457
Douglas Gregor [Wed, 29 Jul 2009 15:32:08 +0000 (15:32 +0000)]
Make the Python TestRunner work for individual tests
llvm-svn: 77456
Devang Patel [Wed, 29 Jul 2009 15:24:54 +0000 (15:24 +0000)]
trim include list.
llvm-svn: 77455
Steve Naroff [Wed, 29 Jul 2009 15:24:47 +0000 (15:24 +0000)]
Remove an ObjC-specific XFAIL (and tweak test).
llvm-svn: 77454
Steve Naroff [Wed, 29 Jul 2009 15:09:39 +0000 (15:09 +0000)]
Fix <rdar://problem/7100524> regression: "error: incompatible operand types ('void *' and 'NSString *')".
Remove XFAIL from 'conditional-expr-4.m' test case (which would have caught this).
Also tweaked several aspects of the test to jive with the current type checking.
llvm-svn: 77453
Steve Naroff [Wed, 29 Jul 2009 14:06:03 +0000 (14:06 +0000)]
Incorporate feedback from Chris (on r76979).
llvm-svn: 77452
Sebastian Redl [Wed, 29 Jul 2009 13:50:23 +0000 (13:50 +0000)]
Make functional-style casts emit correct messages, and fix a crash-on-invalid.
llvm-svn: 77451
Benjamin Kramer [Wed, 29 Jul 2009 11:21:25 +0000 (11:21 +0000)]
MSVC build fix. Patch by Olaf Krzikalla!
llvm-svn: 77450
Zhongxing Xu [Wed, 29 Jul 2009 08:13:37 +0000 (08:13 +0000)]
add a fixme
llvm-svn: 77447
Zhongxing Xu [Wed, 29 Jul 2009 08:00:02 +0000 (08:00 +0000)]
delete an undefined method.
llvm-svn: 77446
Daniel Dunbar [Wed, 29 Jul 2009 07:08:44 +0000 (07:08 +0000)]
Twines: Support numeric conversion directly (uitostr, etc).
- Provides static constructors for doing number to string conversions without
using temporaries.
- There are several ways to do this, I think given the Twine constraints this
is the simplest one.
- One FIXME for fast number -> hex conversion.
- Added another comment on one last major bit of perf work Twines need, which
is to make raw_svector_ostream more efficient.
llvm-svn: 77445
Daniel Dunbar [Wed, 29 Jul 2009 06:45:14 +0000 (06:45 +0000)]
raw_ostream: Follow the 32-bit path when printing "small" decimal numbers.
llvm-svn: 77444
Chris Lattner [Wed, 29 Jul 2009 06:44:13 +0000 (06:44 +0000)]
some wording changes.
llvm-svn: 77443
Chris Lattner [Wed, 29 Jul 2009 06:33:53 +0000 (06:33 +0000)]
more syntactic cleanups.
llvm-svn: 77442
Chris Lattner [Wed, 29 Jul 2009 06:29:53 +0000 (06:29 +0000)]
minor smallvector cleanups
llvm-svn: 77441
Chris Lattner [Wed, 29 Jul 2009 06:19:14 +0000 (06:19 +0000)]
link to a newer preso
llvm-svn: 77440
Nick Lewycky [Wed, 29 Jul 2009 06:14:52 +0000 (06:14 +0000)]
Just discard the output, no need to turn it back into text.
llvm-svn: 77439
Chris Lattner [Wed, 29 Jul 2009 05:48:09 +0000 (05:48 +0000)]
whitespace cleanup.
llvm-svn: 77438
Andreas Bolka [Wed, 29 Jul 2009 05:35:53 +0000 (05:35 +0000)]
Skeleton for pairwise subscript testing.
llvm-svn: 77437
Chris Lattner [Wed, 29 Jul 2009 05:32:07 +0000 (05:32 +0000)]
don't dump .bc file to stdout, and simplify this to a trivial testcase.
llvm-svn: 77436
Chris Lattner [Wed, 29 Jul 2009 05:25:42 +0000 (05:25 +0000)]
mingw uses .data and .text, not _data and _text.
llvm-svn: 77435
Chris Lattner [Wed, 29 Jul 2009 05:20:33 +0000 (05:20 +0000)]
fix PR4584 with a trivial patch now that the pieces are in place.
llvm-svn: 77434
Nick Lewycky [Wed, 29 Jul 2009 05:17:50 +0000 (05:17 +0000)]
Bulk erasing instructions without RAUWing them is unsafe. Instead, break them
into a new BB that has no predecessors.
llvm-svn: 77433
Chris Lattner [Wed, 29 Jul 2009 05:09:30 +0000 (05:09 +0000)]
pass the mangler down into the various SectionForGlobal methods.
No functionality change.
llvm-svn: 77432
Evan Cheng [Wed, 29 Jul 2009 05:06:11 +0000 (05:06 +0000)]
Revert AsmWriterEmitter.cpp to 74742. The recent changes are causing serious compile time regression.
llvm-svn: 77431
Chris Lattner [Wed, 29 Jul 2009 04:55:08 +0000 (04:55 +0000)]
constant prop a utostr.
llvm-svn: 77430
Chris Lattner [Wed, 29 Jul 2009 04:54:38 +0000 (04:54 +0000)]
remove some completely wrong code. 1 is never < 16. It turns out that GCC appears to put strings of any length into the ELF cstring equivalent, so just rip out the code.
llvm-svn: 77429
Daniel Dunbar [Wed, 29 Jul 2009 03:04:22 +0000 (03:04 +0000)]
Revert r77397, it causes significant regressions in llc performance.
llvm-svn: 77425
Daniel Dunbar [Wed, 29 Jul 2009 02:57:25 +0000 (02:57 +0000)]
MultiTestRunner: Reenable --vg option.
- Simplified from before and using --error-exitcode so failures show up as
failures.
llvm-svn: 77424
Daniel Dunbar [Wed, 29 Jul 2009 02:40:09 +0000 (02:40 +0000)]
Destroy the ASTConsumer prior to the Context, HTMLPrinter for example wants to
do a significant amount of work in its destructor, which may access the
context. (PR4642).
llvm-svn: 77423
Evan Cheng [Wed, 29 Jul 2009 02:18:14 +0000 (02:18 +0000)]
Optimize Thumb2 jumptable to use tbb / tbh when all the offsets fit in byte / halfword.
llvm-svn: 77422
Daniel Dunbar [Wed, 29 Jul 2009 01:59:17 +0000 (01:59 +0000)]
BlockScopeInfo::hasPrototype was uninitialized.
llvm-svn: 77421
Daniel Dunbar [Wed, 29 Jul 2009 01:46:05 +0000 (01:46 +0000)]
CharLiteralParser::IsMultiChar was sometimes uninitialized.
llvm-svn: 77420
Daniel Dunbar [Wed, 29 Jul 2009 01:10:25 +0000 (01:10 +0000)]
Add missing '"'
llvm-svn: 77416
Eric Christopher [Wed, 29 Jul 2009 01:01:19 +0000 (01:01 +0000)]
Fix comment.
llvm-svn: 77415
Bill Wendling [Wed, 29 Jul 2009 00:59:34 +0000 (00:59 +0000)]
Change the "PreferredEHDataFormat" from "absptr" if we're on a Darwin system >
Leopard.
llvm-svn: 77414
Eric Christopher [Wed, 29 Jul 2009 00:51:15 +0000 (00:51 +0000)]
Add a couple more tests for the ptest intrinsics to make sure we're
grabbing them all correctly.
llvm-svn: 77413
Bill Wendling [Wed, 29 Jul 2009 00:50:05 +0000 (00:50 +0000)]
Move comment to above method.
llvm-svn: 77412
Fariborz Jahanian [Wed, 29 Jul 2009 00:44:13 +0000 (00:44 +0000)]
Code refactoring to define getCXXRecordDeclForPointerType
and use it in several places.
llvm-svn: 77411
Devang Patel [Wed, 29 Jul 2009 00:34:02 +0000 (00:34 +0000)]
Parse named metadata.
llvm-svn: 77410
Devang Patel [Wed, 29 Jul 2009 00:33:07 +0000 (00:33 +0000)]
Add NamedMDNode.
llvm-svn: 77409
Bill Wendling [Wed, 29 Jul 2009 00:31:35 +0000 (00:31 +0000)]
- Temporarily unbreak the build by forcing the TType "absptr", which isn't
correct. But what are you going to do? I'll fix this in the future.
- Move another large loop into its own method.
llvm-svn: 77408
Eric Christopher [Wed, 29 Jul 2009 00:28:05 +0000 (00:28 +0000)]
Add support for gcc __builtin_ia32_ptest{z,c,nzc} intrinsics. Lower
to ptest instruction plus setcc. Revamp ptest instruction. Add test.
llvm-svn: 77407
Mike Stump [Wed, 29 Jul 2009 00:17:20 +0000 (00:17 +0000)]
Be sure to turn on -fblocks.
llvm-svn: 77406
Dan Gohman [Wed, 29 Jul 2009 00:02:58 +0000 (00:02 +0000)]
Remove another F_OK.
llvm-svn: 77405
Daniel Dunbar [Wed, 29 Jul 2009 00:02:19 +0000 (00:02 +0000)]
Match X86 register names to number.
llvm-svn: 77404
Andreas Bolka [Wed, 29 Jul 2009 00:02:05 +0000 (00:02 +0000)]
Fix a few typos and add links.
llvm-svn: 77403
Mike Stump [Tue, 28 Jul 2009 23:57:15 +0000 (23:57 +0000)]
Some minor cleanups, thanks Chris.
llvm-svn: 77402
David Goodwin [Tue, 28 Jul 2009 23:52:33 +0000 (23:52 +0000)]
Thumb-2: fix typo that caused incorrect stack elimination for VFP operations and very large stack frames.
llvm-svn: 77401
Mike Stump [Tue, 28 Jul 2009 23:47:15 +0000 (23:47 +0000)]
Some style fixes, thanks Chris.
llvm-svn: 77400
Bill Wendling [Tue, 28 Jul 2009 23:44:43 +0000 (23:44 +0000)]
Cleanup code to use iterators instead of ".size()".
Does any one else hate the name "const_reverse_iterator" as much as I do?
llvm-svn: 77399
Andreas Bolka [Tue, 28 Jul 2009 23:40:40 +0000 (23:40 +0000)]
Slightly reformat LDA tests to ease grepping.
llvm-svn: 77398
David Greene [Tue, 28 Jul 2009 23:26:34 +0000 (23:26 +0000)]
Improve performance of PadToColumn by eliminating flushes.
llvm-svn: 77397
Dan Gohman [Tue, 28 Jul 2009 23:25:18 +0000 (23:25 +0000)]
On "Unix", if Program::FindProgramByName is given a name containing
slashes, just go with it, regardless of whether it looks like it will
be executable. This follows the behavior of sh(1) more closely.
llvm-svn: 77396
David Greene [Tue, 28 Jul 2009 23:24:58 +0000 (23:24 +0000)]
Add some protected interfaces to allow subclass access to the buffer.
llvm-svn: 77395
Bill Wendling [Tue, 28 Jul 2009 23:23:00 +0000 (23:23 +0000)]
Doxygenify comments.
llvm-svn: 77394
Bill Wendling [Tue, 28 Jul 2009 23:22:13 +0000 (23:22 +0000)]
Split out large loop into it's very own method. No intended functionality change.
llvm-svn: 77393
Dan Gohman [Tue, 28 Jul 2009 23:22:01 +0000 (23:22 +0000)]
It isn't necessary to use F_OK when using R_OK or similar.
llvm-svn: 77392
Mike Stump [Tue, 28 Jul 2009 23:11:12 +0000 (23:11 +0000)]
Add support for -Wmissing-noreturn.
llvm-svn: 77391
David Goodwin [Tue, 28 Jul 2009 23:08:36 +0000 (23:08 +0000)]
Add a bugpoint flag to disable block extraction.
llvm-svn: 77389
Douglas Gregor [Tue, 28 Jul 2009 23:00:59 +0000 (23:00 +0000)]
Refactor the code that produces a TemplateSpecializationType, so that
canonicalization for dependent TemplateSpecializationTypes occurs
within ASTContext::getTemplateSpecializationType. Also, move template
argument canonicalization into ASTContext::getCanonicalTemplateArgument.
llvm-svn: 77388
Chris Lattner [Tue, 28 Jul 2009 22:54:04 +0000 (22:54 +0000)]
discourage else after "noreturn" statements.
llvm-svn: 77387
Chris Lattner [Tue, 28 Jul 2009 22:49:34 +0000 (22:49 +0000)]
remove extraneous braces
llvm-svn: 77386
Daniel Dunbar [Tue, 28 Jul 2009 22:46:39 +0000 (22:46 +0000)]
Update CMakeLists
llvm-svn: 77385
Daniel Dunbar [Tue, 28 Jul 2009 22:40:46 +0000 (22:40 +0000)]
Move X86 instruction parsing into X86/AsmParser.
llvm-svn: 77384
Devang Patel [Tue, 28 Jul 2009 22:30:52 +0000 (22:30 +0000)]
Clarify getName() comment.
llvm-svn: 77383
Bill Wendling [Tue, 28 Jul 2009 22:23:45 +0000 (22:23 +0000)]
Output the EH TType format and base offset only if there are types that we're
going to emit.
llvm-svn: 77382
Daniel Dunbar [Tue, 28 Jul 2009 22:22:31 +0000 (22:22 +0000)]
Make expression parsing and error/warning reporting available through the
generic MCAsmParser interface.
llvm-svn: 77381
Benjamin Kramer [Tue, 28 Jul 2009 22:08:15 +0000 (22:08 +0000)]
Fix a fixme; don't take binaries from the working directory.
This fixes clang on non-darwin platforms if a file called 'ld' or 'as'
is in the working directory. Based on patch by Pawel Worach!
llvm-svn: 77379
Devang Patel [Tue, 28 Jul 2009 22:04:55 +0000 (22:04 +0000)]
Remove unused method.
llvm-svn: 77378
Mike Stump [Tue, 28 Jul 2009 22:04:01 +0000 (22:04 +0000)]
Add noreturn support for blocks.
llvm-svn: 77377
Bill Wendling [Tue, 28 Jul 2009 22:03:50 +0000 (22:03 +0000)]
Output the correct format for Darwin.
llvm-svn: 77376
Benjamin Kramer [Tue, 28 Jul 2009 22:03:24 +0000 (22:03 +0000)]
fix unittest
llvm-svn: 77375
Fariborz Jahanian [Tue, 28 Jul 2009 22:00:58 +0000 (22:00 +0000)]
ir-gen derived-to-base conversion in implicit casts.
llvm-svn: 77374
Bill Wendling [Tue, 28 Jul 2009 21:54:03 +0000 (21:54 +0000)]
Use the preferred EH data format for the preferred EH data format.
llvm-svn: 77373
Bill Wendling [Tue, 28 Jul 2009 21:53:17 +0000 (21:53 +0000)]
Darwin outputs (DW_EH_PE_pcrel | DW_EH_PE_indirect | DW_EH_PE_sdata4) when we're
dealing with Data.
llvm-svn: 77372
Bill Wendling [Tue, 28 Jul 2009 21:50:32 +0000 (21:50 +0000)]
Remove unused parameter name.
llvm-svn: 77371
Devang Patel [Tue, 28 Jul 2009 21:49:47 +0000 (21:49 +0000)]
Rename MDNode.h header. It defines MDnode and other metadata classes.
New name is Metadata.h.
llvm-svn: 77370
Evan Cheng [Tue, 28 Jul 2009 21:49:18 +0000 (21:49 +0000)]
Fix a typo.
llvm-svn: 77369
Owen Anderson [Tue, 28 Jul 2009 21:22:35 +0000 (21:22 +0000)]
Update for LLVM API change.
llvm-svn: 77368
Owen Anderson [Tue, 28 Jul 2009 21:19:26 +0000 (21:19 +0000)]
Return ConstantVector to 2.5 API.
llvm-svn: 77366
Anders Carlsson [Tue, 28 Jul 2009 21:03:34 +0000 (21:03 +0000)]
Remove the old RecordOrganizer.
llvm-svn: 77365
Evan Cheng [Tue, 28 Jul 2009 20:53:24 +0000 (20:53 +0000)]
In thumb2 mode, add pc is unpredictable. Use add + mov pc instead (that is until more optimization goes in).
llvm-svn: 77364
David Goodwin [Tue, 28 Jul 2009 20:51:25 +0000 (20:51 +0000)]
Remove support for ORN to workaround <rdar://problem/7096522>.
llvm-svn: 77363
Daniel Dunbar [Tue, 28 Jul 2009 20:47:52 +0000 (20:47 +0000)]
Provide generic MCAsmParser when constructing target specific parsers.
llvm-svn: 77362
Ted Kremenek [Tue, 28 Jul 2009 20:46:55 +0000 (20:46 +0000)]
Fix PR 4631. The compound initializers of unions were not being evaluated, which
could cause false positives if any the subexpressions had side-effects. These
initializers weren't evaluated because the StoreManager would need to handle
them, but that's an orthogonal problem of whether or not the StoreManager can
handle the binding.
llvm-svn: 77361
Devang Patel [Tue, 28 Jul 2009 19:55:13 +0000 (19:55 +0000)]
Add DebugInfoEnumerator to collect debug info.
llvm-svn: 77360
Andreas Bolka [Tue, 28 Jul 2009 19:50:13 +0000 (19:50 +0000)]
Simplify LDA-internal interface.
llvm-svn: 77359
Andreas Bolka [Tue, 28 Jul 2009 19:49:49 +0000 (19:49 +0000)]
Add LDA statistics.
llvm-svn: 77358
Andreas Bolka [Tue, 28 Jul 2009 19:49:25 +0000 (19:49 +0000)]
Minor factoring, naming and formatting cleanups.
llvm-svn: 77357
Ted Kremenek [Tue, 28 Jul 2009 19:34:30 +0000 (19:34 +0000)]
Add missing break statement.
llvm-svn: 77356
Mike Stump [Tue, 28 Jul 2009 19:31:47 +0000 (19:31 +0000)]
Update comments.
llvm-svn: 77355
Bruno Cardoso Lopes [Tue, 28 Jul 2009 19:25:33 +0000 (19:25 +0000)]
Handle null and file symbol on doInitialization
llvm-svn: 77354