platform/upstream/llvm.git
15 years agoIgnore undef uses.
Evan Cheng [Wed, 22 Jul 2009 21:51:42 +0000 (21:51 +0000)]
Ignore undef uses.

llvm-svn: 76799

15 years agoAdd AssumeDual method.
Ted Kremenek [Wed, 22 Jul 2009 21:51:00 +0000 (21:51 +0000)]
Add AssumeDual method.

llvm-svn: 76798

15 years agoMigrate the path-sensitive checking of 'nonnull' arguments over to the new
Ted Kremenek [Wed, 22 Jul 2009 21:46:56 +0000 (21:46 +0000)]
Migrate the path-sensitive checking of 'nonnull' arguments over to the new
'Checker' interface. An updated test case illustrates that after calling a
function with the 'nonnull' attribute we now register the fact that the passed
pointer must be non-null. This retention of information was not possible with
the previously used GRSimpleAPICheck interface.

llvm-svn: 76797

15 years agoFix the parsing of default arguments for inline member function
Eli Friedman [Wed, 22 Jul 2009 21:45:50 +0000 (21:45 +0000)]
Fix the parsing of default arguments for inline member function
definitions.

I'm not very familiar with this code, so please review.

llvm-svn: 76796

15 years agoMake 'SaveAndRestore' and friends reusable classes in libAnalysis.
Ted Kremenek [Wed, 22 Jul 2009 21:45:16 +0000 (21:45 +0000)]
Make 'SaveAndRestore' and friends reusable classes in libAnalysis.

llvm-svn: 76795

15 years agoAdd support for registering 'Checker' objects with GRExprEngine.
Ted Kremenek [Wed, 22 Jul 2009 21:43:51 +0000 (21:43 +0000)]
Add support for registering 'Checker' objects with GRExprEngine.
Add a 'previsit' stage (that dispatches to registered Checkers) when evaluating the effects of CallExprs.

llvm-svn: 76794

15 years agoAdd new 'Checker' and 'CheckerVisitor' classes, which represent a more powerful
Ted Kremenek [Wed, 22 Jul 2009 21:42:34 +0000 (21:42 +0000)]
Add new 'Checker' and 'CheckerVisitor' classes, which represent a more powerful
interface to plug in domain-specific checker logic than the current
GRSimpleAPICheck interface. The new 'Checker' interface can actually generate
new nodes, allowing it to modify the state and refine the analysis (which
GRSimpleAPIChecks could not).

llvm-svn: 76793

15 years agoAdd support for 'PreStmt' program points to GRCoreEngine and GRStmtNodeBuilder.
Ted Kremenek [Wed, 22 Jul 2009 21:40:46 +0000 (21:40 +0000)]
Add support for 'PreStmt' program points to GRCoreEngine and GRStmtNodeBuilder.

llvm-svn: 76792

15 years agoAdd 'PreStmt' program point. This will be used to represent checking for
Ted Kremenek [Wed, 22 Jul 2009 21:39:25 +0000 (21:39 +0000)]
Add 'PreStmt' program point. This will be used to represent checking for
preconditions (in GRExprEngine) before the statement itself is evaluated.

llvm-svn: 76791

15 years agoImplement operator= for ExplodedNodeSet.
Ted Kremenek [Wed, 22 Jul 2009 21:38:15 +0000 (21:38 +0000)]
Implement operator= for ExplodedNodeSet.

llvm-svn: 76790

15 years agoSwitch some clients to Value::getName(), and other getName() user
Daniel Dunbar [Wed, 22 Jul 2009 21:33:09 +0000 (21:33 +0000)]
Switch some clients to Value::getName(), and other getName() user
simplification.
 - NFC

llvm-svn: 76789

15 years agoFix the problems with template argument deduction and array types for
Douglas Gregor [Wed, 22 Jul 2009 21:30:48 +0000 (21:30 +0000)]
Fix the problems with template argument deduction and array types for
real. It turns out that we need to actually move all of the qualifiers
up to the array type itself, then recanonicalize the deduced template
argument type.

llvm-svn: 76788

15 years agoFix indentation.
Devang Patel [Wed, 22 Jul 2009 21:10:50 +0000 (21:10 +0000)]
Fix indentation.

llvm-svn: 76787

15 years agoSimplify some uses of Value::getName()
Daniel Dunbar [Wed, 22 Jul 2009 21:10:12 +0000 (21:10 +0000)]
Simplify some uses of Value::getName()

llvm-svn: 76786

15 years agoDefine npos in a way that should make MSVC happier.
Daniel Dunbar [Wed, 22 Jul 2009 21:08:31 +0000 (21:08 +0000)]
Define npos in a way that should make MSVC happier.

llvm-svn: 76785

15 years agoMake -Wreturn-type be part of -Wmost and therefore -Wall.
Mike Stump [Wed, 22 Jul 2009 21:00:27 +0000 (21:00 +0000)]
Make -Wreturn-type be part of -Wmost and therefore -Wall.

llvm-svn: 76784

15 years agoFix some memory allocation/deallocation issues
Douglas Gregor [Wed, 22 Jul 2009 20:55:49 +0000 (20:55 +0000)]
Fix some memory allocation/deallocation issues

llvm-svn: 76783

15 years agoRemove unnecessary store to temporary std::string.
Daniel Dunbar [Wed, 22 Jul 2009 20:46:46 +0000 (20:46 +0000)]
Remove unnecessary store to temporary std::string.

llvm-svn: 76782

15 years agoPut comment printing under asm-verbose.
David Greene [Wed, 22 Jul 2009 20:33:26 +0000 (20:33 +0000)]
Put comment printing under asm-verbose.

llvm-svn: 76780

15 years agoFix a nasty little use-after-free bug.
Eli Friedman [Wed, 22 Jul 2009 20:29:16 +0000 (20:29 +0000)]
Fix a nasty little use-after-free bug.

llvm-svn: 76779

15 years agoFix indentation.
Daniel Dunbar [Wed, 22 Jul 2009 20:26:37 +0000 (20:26 +0000)]
Fix indentation.

llvm-svn: 76778

15 years agoCanonicalize the types produced by template argument deduction.
Douglas Gregor [Wed, 22 Jul 2009 20:25:36 +0000 (20:25 +0000)]
Canonicalize the types produced by template argument deduction.

llvm-svn: 76777

15 years agoImproved on performance of the algorithm for proper ordering of
Fariborz Jahanian [Wed, 22 Jul 2009 20:25:00 +0000 (20:25 +0000)]
Improved on performance of the algorithm for proper ordering of
ctor's initialization of bases and fields.

llvm-svn: 76776

15 years agoMake some changes suggested by Bill and Evan.
David Greene [Wed, 22 Jul 2009 20:08:25 +0000 (20:08 +0000)]
Make some changes suggested by Bill and Evan.

llvm-svn: 76775

15 years agoSlighty more testing for template argument deduction with array arguments
Douglas Gregor [Wed, 22 Jul 2009 20:07:21 +0000 (20:07 +0000)]
Slighty more testing for template argument deduction with array arguments

llvm-svn: 76774

15 years agoImprove template argument deduction for array types, so that a parameter
Douglas Gregor [Wed, 22 Jul 2009 20:02:25 +0000 (20:02 +0000)]
Improve template argument deduction for array types, so that a parameter

  const T

can be matched with, e.g.,

  volatile int [5]

llvm-svn: 76773

15 years agoPrep for new warning.
Mike Stump [Wed, 22 Jul 2009 20:02:03 +0000 (20:02 +0000)]
Prep for new warning.

llvm-svn: 76772

15 years agoUse isa instead of dyn_cast for conditionals.
Mike Stump [Wed, 22 Jul 2009 18:58:19 +0000 (18:58 +0000)]
Use isa instead of dyn_cast for conditionals.

llvm-svn: 76771

15 years agoUse DICompositeType->replaceAllUsesWith().
Devang Patel [Wed, 22 Jul 2009 18:57:00 +0000 (18:57 +0000)]
Use DICompositeType->replaceAllUsesWith().

This requires llvm rev. 76769 or higher.

llvm-svn: 76770

15 years agoFix thinko.
Devang Patel [Wed, 22 Jul 2009 18:56:16 +0000 (18:56 +0000)]
Fix thinko.

llvm-svn: 76769

15 years agoAdded -b option to override the default bitcode output file name.
Sanjiv Gupta [Wed, 22 Jul 2009 18:41:45 +0000 (18:41 +0000)]
Added -b option to override the default bitcode output file name.

llvm-svn: 76768

15 years agoUse isa<> instead of dyn_cast<>.
Devang Patel [Wed, 22 Jul 2009 18:35:25 +0000 (18:35 +0000)]
Use isa<> instead of dyn_cast<>.

llvm-svn: 76767

15 years ago"This patch implements the restrictions on union members detailed in
Douglas Gregor [Wed, 22 Jul 2009 18:25:24 +0000 (18:25 +0000)]
"This patch implements the restrictions on union members detailed in
[class.union]p1", from John McCall!

llvm-svn: 76766

15 years agoAdd replaceAllUsesWith() to FE replace debug info constructs while building complex...
Devang Patel [Wed, 22 Jul 2009 18:23:44 +0000 (18:23 +0000)]
Add replaceAllUsesWith() to FE replace debug info constructs while building complex types.

llvm-svn: 76765

15 years agoDo not print "metadata" twice while printing MDString.
Devang Patel [Wed, 22 Jul 2009 18:10:23 +0000 (18:10 +0000)]
Do not print "metadata" twice while printing MDString.
This fixes unittest failure.

llvm-svn: 76764

15 years agoRemove empty test.
Devang Patel [Wed, 22 Jul 2009 18:09:11 +0000 (18:09 +0000)]
Remove empty test.

llvm-svn: 76763

15 years agoEliminate a redudant check Eli pointed out.
Evan Cheng [Wed, 22 Jul 2009 18:08:05 +0000 (18:08 +0000)]
Eliminate a redudant check Eli pointed out.

llvm-svn: 76762

15 years agoFixed build warning. No functionality change.
Sanjiv Gupta [Wed, 22 Jul 2009 17:58:47 +0000 (17:58 +0000)]
Fixed build warning. No functionality change.

llvm-svn: 76761

15 years agoMove bug reporter "visitors" to their own file and make them part of the public
Ted Kremenek [Wed, 22 Jul 2009 17:55:28 +0000 (17:55 +0000)]
Move bug reporter "visitors" to their own file and make them part of the public
BugReporter API.  No real functionality change.

llvm-svn: 76760

15 years agoIntroduce MetadataBase, a base class for MDString and MDNode.
Devang Patel [Wed, 22 Jul 2009 17:43:22 +0000 (17:43 +0000)]
Introduce MetadataBase, a base class for MDString and MDNode.
Derive MDString directly from MetadataBase.
Introduce new bitcode block to hold metadata.

llvm-svn: 76759

15 years agoAllocate BaseOrMemberInitializers and CXXBaseSpecifier nodes
Fariborz Jahanian [Wed, 22 Jul 2009 17:41:53 +0000 (17:41 +0000)]
Allocate BaseOrMemberInitializers and CXXBaseSpecifier nodes
via ASTContext.

llvm-svn: 76758

15 years agoImplement parsing and semantic analysis for out-of-line definitions of static
Douglas Gregor [Wed, 22 Jul 2009 17:18:37 +0000 (17:18 +0000)]
Implement parsing and semantic analysis for out-of-line definitions of static
data members of class templates. We don't instantiate the definitions yet,
however.

llvm-svn: 76756

15 years agoFix a couple recent ABI regressions noticed during code review (fallout from the...
Steve Naroff [Wed, 22 Jul 2009 17:14:51 +0000 (17:14 +0000)]
Fix a couple recent ABI regressions noticed during code review (fallout from the ObjC type system rewrite).

It's unfortunate that the mangling includes the low-level structs. Nevertheless, we need this for binary compatibility with GCC.

llvm-svn: 76755

15 years agoSupport writing a StringRef to a raw_ostream directly.
Daniel Dunbar [Wed, 22 Jul 2009 17:13:20 +0000 (17:13 +0000)]
Support writing a StringRef to a raw_ostream directly.

llvm-svn: 76754

15 years agoSwitch some functions from using x86 builtins to using vector
Eli Friedman [Wed, 22 Jul 2009 17:08:01 +0000 (17:08 +0000)]
Switch some functions from using x86 builtins to using vector
operations.

llvm-svn: 76753

15 years agoAdd some documentation, to make it so the next person doens't select
Mike Stump [Wed, 22 Jul 2009 16:55:20 +0000 (16:55 +0000)]
Add some documentation, to make it so the next person doens't select
the wrong function.  :-)

llvm-svn: 76752

15 years agofix some wording problems Daniel pointed out, make a example actually real.
Chris Lattner [Wed, 22 Jul 2009 16:54:14 +0000 (16:54 +0000)]
fix some wording problems Daniel pointed out, make a example actually real.

llvm-svn: 76751

15 years agodoxygenify
Chris Lattner [Wed, 22 Jul 2009 16:53:56 +0000 (16:53 +0000)]
doxygenify

llvm-svn: 76750

15 years agofix typo noticed by Duncan
Chris Lattner [Wed, 22 Jul 2009 16:30:39 +0000 (16:30 +0000)]
fix typo noticed by Duncan

llvm-svn: 76747

15 years agocast signed APInt constructor params to uint64_t to suppress signedness warning
Ryan Flynn [Wed, 22 Jul 2009 16:17:36 +0000 (16:17 +0000)]
cast signed APInt constructor params to uint64_t to suppress signedness warning

llvm-svn: 76744

15 years agoFix <rdar://problem/6770276> Support Class<Proto> syntax.
Steve Naroff [Wed, 22 Jul 2009 16:07:01 +0000 (16:07 +0000)]
Fix <rdar://problem/6770276> Support Class<Proto> syntax.

llvm-svn: 76741

15 years agoTest template instantiation for member functions of class templates defined
Douglas Gregor [Wed, 22 Jul 2009 15:45:39 +0000 (15:45 +0000)]
Test template instantiation for member functions of class templates defined
out of line.

llvm-svn: 76740

15 years agoAdd newline at end of file.
Duncan Sands [Wed, 22 Jul 2009 13:20:41 +0000 (13:20 +0000)]
Add newline at end of file.

llvm-svn: 76736

15 years agoThread local globals don't require special handling by the linker and so can
Richard Osborne [Wed, 22 Jul 2009 11:01:00 +0000 (11:01 +0000)]
Thread local globals don't require special handling by the linker and so can
be placed in the standard data / bss sections.

llvm-svn: 76735

15 years agoRemove a comment that was copy+pasted from the wrong place,
Torok Edwin [Wed, 22 Jul 2009 10:49:23 +0000 (10:49 +0000)]
Remove a comment that was copy+pasted from the wrong place,
there is no MachineFunction here.

llvm-svn: 76734

15 years agoRevert commit 76707, it was breaking the llvm-gcc build
Duncan Sands [Wed, 22 Jul 2009 10:35:05 +0000 (10:35 +0000)]
Revert commit 76707, it was breaking the llvm-gcc build
on linux platforms.  The binutils assembler does not
recognize the "s" flag, see for example
http://sourceware.org/binutils/docs/as/Section.html

llvm-svn: 76733

15 years agoDon't give a massive inlining cost bonus to available_externally
Eli Friedman [Wed, 22 Jul 2009 08:12:59 +0000 (08:12 +0000)]
Don't give a massive inlining cost bonus to available_externally
functions with a single use; eliminating the single use may eliminate
the function from the current module, but usually doesn't eliminate
it from the final program.

llvm-svn: 76730

15 years agoDon't forget D16 - D31 are clobbered by calls and sjlj eh.
Evan Cheng [Wed, 22 Jul 2009 06:46:53 +0000 (06:46 +0000)]
Don't forget D16 - D31 are clobbered by calls and sjlj eh.

llvm-svn: 76729

15 years agoAdd R12 to the list of registers clobbered by 16-bit Thumb calls as a pre-caution...
Evan Cheng [Wed, 22 Jul 2009 06:37:28 +0000 (06:37 +0000)]
Add R12 to the list of registers clobbered by 16-bit Thumb calls as a pre-caution. r12 could be live once we have mixed 32-bit and 16-bit instructions.

llvm-svn: 76728

15 years agoFix a obvious copy-n-paste bug.
Evan Cheng [Wed, 22 Jul 2009 06:12:40 +0000 (06:12 +0000)]
Fix a obvious copy-n-paste bug.

llvm-svn: 76727

15 years agoMake vectorized floating-point comparisons work without crashing.
Eli Friedman [Wed, 22 Jul 2009 06:07:16 +0000 (06:07 +0000)]
Make vectorized floating-point comparisons work without crashing.

llvm-svn: 76726

15 years agoGet rid one of the getRegisterNumbering. Also add D16 - D31.
Evan Cheng [Wed, 22 Jul 2009 05:55:18 +0000 (05:55 +0000)]
Get rid one of the getRegisterNumbering. Also add D16 - D31.

llvm-svn: 76725

15 years agoremove Bill from the author list: his contribution (describing llvm::Ostream
Chris Lattner [Wed, 22 Jul 2009 05:43:01 +0000 (05:43 +0000)]
remove Bill from the author list: his contribution (describing llvm::Ostream
and friends) has been removed awhile ago.

llvm-svn: 76724

15 years agoadd some more topics to the coding standards doc:
Chris Lattner [Wed, 22 Jul 2009 05:40:54 +0000 (05:40 +0000)]
add some more topics to the coding standards doc:

* Use Early Exits and 'continue' to Simplify Code
* Turn Predicate Loops into Predicate Functions
* Spaces Before Parentheses
* Namespace Indentation
* Anonymous Namespaces

llvm-svn: 76723

15 years agoAttempt to fix BuildBot breakage with MSVC.
Eli Friedman [Wed, 22 Jul 2009 05:06:41 +0000 (05:06 +0000)]
Attempt to fix BuildBot breakage with MSVC.

llvm-svn: 76722

15 years agoRestructure ProgramPoint to have the 'Kind' value be its own instance
Ted Kremenek [Wed, 22 Jul 2009 04:38:22 +0000 (04:38 +0000)]
Restructure ProgramPoint to have the 'Kind' value be its own instance
variable.  This gives us much more flexibility with defining more
ProgramPoints, which is the direction we are heading.  The removal of
various bit-mangling of pointers also cleans up the logic.

llvm-svn: 76721

15 years agoTemporarily disable most use of region casts in RegionStoreManager,
Ted Kremenek [Wed, 22 Jul 2009 04:35:42 +0000 (04:35 +0000)]
Temporarily disable most use of region casts in RegionStoreManager,
instead preferring to use the a region's actual type when creating
symbols and using the QualType passed to Retrieve for implicit
casting.  This preprocessor logic is temporary; eventually we will
either remove region casts or keep them.

Temporarily toggle (via preprocessor directives) that SymbolicRegions
with heap storage are not undefined, but instead should be
symbolicated.  If we want to model that a SymbolicRegion is
uninitialized, we can explicitly model that by binding UndefinedVal to
that region.  It turns out that we want to treat most heap objects as
being defined, not the other way around.

llvm-svn: 76720

15 years agoFix a crasher in StoreManager::InvalidateRegion() caused by using the
Ted Kremenek [Wed, 22 Jul 2009 04:23:20 +0000 (04:23 +0000)]
Fix a crasher in StoreManager::InvalidateRegion() caused by using the
'cast type' of a region to invalidate its binding.  This only occurs
when using RegionStoreManager, as it records the cast type.  I'm
currently considering removing the notion of a cast type (see
comments in code).

llvm-svn: 76719

15 years agofix some formatting stuff, patch by Edward O'Callaghan!
Chris Lattner [Wed, 22 Jul 2009 04:21:40 +0000 (04:21 +0000)]
fix some formatting stuff, patch by Edward O'Callaghan!

llvm-svn: 76718

15 years agoPreserve address space information through member accesses, e.g.,
Mon P Wang [Wed, 22 Jul 2009 03:08:17 +0000 (03:08 +0000)]
Preserve address space information through member accesses, e.g.,
   __attribute__((address_space(1))) struct {int arr[ 3 ]; }  *p1;
   ... = p1->arr[2];  // load from address space 1

llvm-svn: 76717

15 years agoRemove an unneeded header.
Mike Stump [Wed, 22 Jul 2009 01:39:14 +0000 (01:39 +0000)]
Remove an unneeded header.

llvm-svn: 76716

15 years agoRemove intrinsic support for __builtin_ia32_vec_set_v16qi and
Eric Christopher [Wed, 22 Jul 2009 01:11:48 +0000 (01:11 +0000)]
Remove intrinsic support for __builtin_ia32_vec_set_v16qi and
__builtin_ia32_vec_set_v4si as these should be lowered in the
front-end to inserts.

llvm-svn: 76714

15 years agoAdd support for MMX VSETCC.
Eli Friedman [Wed, 22 Jul 2009 01:06:52 +0000 (01:06 +0000)]
Add support for MMX VSETCC.

llvm-svn: 76713

15 years agoAdded the unconditional JMP with an 8-bit relocation for the
Sean Callanan [Wed, 22 Jul 2009 01:05:20 +0000 (01:05 +0000)]
Added the unconditional JMP with an 8-bit relocation for the
assembler / disassembler.

llvm-svn: 76712

15 years agoAdd an entry.
Evan Cheng [Wed, 22 Jul 2009 00:58:27 +0000 (00:58 +0000)]
Add an entry.

llvm-svn: 76711

15 years agoinline the two MergeableConstSection implementations into their
Chris Lattner [Wed, 22 Jul 2009 00:47:11 +0000 (00:47 +0000)]
inline the two MergeableConstSection implementations into their
only caller.

llvm-svn: 76710

15 years agoPrep for new warning.
Mike Stump [Wed, 22 Jul 2009 00:43:08 +0000 (00:43 +0000)]
Prep for new warning.

llvm-svn: 76709

15 years agoMinor mod. per Doug's comment.
Fariborz Jahanian [Wed, 22 Jul 2009 00:42:46 +0000 (00:42 +0000)]
Minor mod. per Doug's comment.

llvm-svn: 76708

15 years agoset the ELF "small" flag on objects that end up in .rodata.cst4 consistently,
Chris Lattner [Wed, 22 Jul 2009 00:41:56 +0000 (00:41 +0000)]
set the ELF "small" flag on objects that end up in .rodata.cst4 consistently,
updating a mips testcase to expect it.

llvm-svn: 76707

15 years agodon't set the small flag yet.
Chris Lattner [Wed, 22 Jul 2009 00:30:39 +0000 (00:30 +0000)]
don't set the small flag yet.

llvm-svn: 76706

15 years agoremove the SelectSectionForMachineConst hook, replacing it with
Chris Lattner [Wed, 22 Jul 2009 00:28:43 +0000 (00:28 +0000)]
remove the SelectSectionForMachineConst hook, replacing it with
a new getSectionForMergableConstant hook.  This removes one dependence
of TAI on Type, and provides the hook with enough info to make the
right decision based on whether the global has relocations etc.

llvm-svn: 76705

15 years agoComplain if we're entering the context of a dependent nested-name-specifier but
Douglas Gregor [Wed, 22 Jul 2009 00:28:09 +0000 (00:28 +0000)]
Complain if we're entering the context of a dependent nested-name-specifier but
cannot match that nested-name-specifier to a class template or class template
partial specialization.

llvm-svn: 76704

15 years agoLet each target determines whether a machine instruction is dead. If true, that allow...
Evan Cheng [Wed, 22 Jul 2009 00:25:27 +0000 (00:25 +0000)]
Let each target determines whether a machine instruction is dead. If true, that allows late codeine passes to delete it.

This is considered a workaround. The problem is some targets are not modeling side effects correctly. PPC is apparently one of those. This patch allows ppc llvm-gcc to bootstrap on Darwin. Once we find out which instruction definitions are wrong, we can remove the PPCInstrInfo workaround.

llvm-svn: 76703

15 years agoGet rid of the Pass+Context magic.
Owen Anderson [Wed, 22 Jul 2009 00:24:57 +0000 (00:24 +0000)]
Get rid of the Pass+Context magic.

llvm-svn: 76702

15 years agoreimplement Constant::ContainsRelocations as
Chris Lattner [Wed, 22 Jul 2009 00:05:44 +0000 (00:05 +0000)]
reimplement Constant::ContainsRelocations as
Constant::getRelocationInfo(), which has a much simpler
to use API.  It still should not be part of libvmcore, but
is better than it was.  Also teach it to be smart about
hidden visibility.

llvm-svn: 76700

15 years agoMisc. doc fixes following suggestions from Eli.
Dan Gohman [Wed, 22 Jul 2009 00:04:19 +0000 (00:04 +0000)]
Misc. doc fixes following suggestions from Eli.

llvm-svn: 76699

15 years agoFixing cp island pass. Step 1: Determine whether the constant pool offset can be
Evan Cheng [Tue, 21 Jul 2009 23:56:01 +0000 (23:56 +0000)]
Fixing cp island pass. Step 1: Determine whether the constant pool offset can be
negative on an individual bases rather than basing on whether it's in thumb
mode.

llvm-svn: 76698

15 years agoFix comment.
Evan Cheng [Tue, 21 Jul 2009 23:54:22 +0000 (23:54 +0000)]
Fix comment.

llvm-svn: 76693

15 years agoBasic parsing and semantic analysis for out-of-line definitions of the
Douglas Gregor [Tue, 21 Jul 2009 23:53:31 +0000 (23:53 +0000)]
Basic parsing and semantic analysis for out-of-line definitions of the
member functions of class templates, e.g.,

  template<typename T>
  struct X {
    void f(T);
  };

  template<typename T> X<T>::f(T) { /* ... */ }

llvm-svn: 76692

15 years agoRevert this, we can now avoid error cascades better.
Mike Stump [Tue, 21 Jul 2009 23:52:50 +0000 (23:52 +0000)]
Revert this, we can now avoid error cascades better.

llvm-svn: 76691

15 years agoRevert this, was a bug in my new warning code, not the test case.
Mike Stump [Tue, 21 Jul 2009 23:50:15 +0000 (23:50 +0000)]
Revert this, was a bug in my new warning code, not the test case.

llvm-svn: 76690

15 years agosimplify code now that it is inlined.
Chris Lattner [Tue, 21 Jul 2009 23:49:55 +0000 (23:49 +0000)]
simplify code now that it is inlined.

llvm-svn: 76689

15 years agoExposed PHIElimination pass within CodeGen.
Lang Hames [Tue, 21 Jul 2009 23:47:33 +0000 (23:47 +0000)]
Exposed PHIElimination pass within CodeGen.

llvm-svn: 76688

15 years agoRevert this, we have a better way to do this.
Mike Stump [Tue, 21 Jul 2009 23:47:12 +0000 (23:47 +0000)]
Revert this, we have a better way to do this.

llvm-svn: 76687

15 years agoNow that RelocBehaviour() is never overloaded, it doesn't need to be
Chris Lattner [Tue, 21 Jul 2009 23:47:11 +0000 (23:47 +0000)]
Now that RelocBehaviour() is never overloaded, it doesn't need to be
virtual.  Just inline it into its two current call sites in preparation
for simplifying the code.

llvm-svn: 76686

15 years agoRevert this, we have a better way to handle this.
Mike Stump [Tue, 21 Jul 2009 23:45:39 +0000 (23:45 +0000)]
Revert this, we have a better way to handle this.

llvm-svn: 76685

15 years agoAdd intrinsic for __builtin_ia32_vec_set_v4si which turns out to be
Eric Christopher [Tue, 21 Jul 2009 23:43:14 +0000 (23:43 +0000)]
Add intrinsic for __builtin_ia32_vec_set_v4si which turns out to be
pinsrd in sse4.1.

llvm-svn: 76684

15 years agothis doesn't break any of the 4 ia64 tests.
Chris Lattner [Tue, 21 Jul 2009 23:42:24 +0000 (23:42 +0000)]
this doesn't break any of the 4 ia64 tests.

llvm-svn: 76683

15 years agoalpha doesn't need to redefine this: it only supports PIC codegen anyway.
Chris Lattner [Tue, 21 Jul 2009 23:41:35 +0000 (23:41 +0000)]
alpha doesn't need to redefine this: it only supports PIC codegen anyway.

llvm-svn: 76682

15 years agoRevert recent change, I now have a better way to solve this (thanks Chris).
Mike Stump [Tue, 21 Jul 2009 23:41:23 +0000 (23:41 +0000)]
Revert recent change, I now have a better way to solve this (thanks Chris).

llvm-svn: 76681