platform/upstream/llvm.git
15 years agoSet field info for unions.
Anders Carlsson [Thu, 23 Jul 2009 04:59:05 +0000 (04:59 +0000)]
Set field info for unions.

llvm-svn: 76856

15 years agoremove a really old and dead header
Chris Lattner [Thu, 23 Jul 2009 04:59:02 +0000 (04:59 +0000)]
remove a really old and dead header

llvm-svn: 76855

15 years agoUse arrays as union padding. Also, since the resulting struct will always contain...
Anders Carlsson [Thu, 23 Jul 2009 04:50:01 +0000 (04:50 +0000)]
Use arrays as union padding. Also, since the resulting struct will always contain a single element and either a single i8 element or an array of i8s, there's no reason to use a packed struct.

llvm-svn: 76854

15 years agomerge one more sse41 test into sse41.ll
Chris Lattner [Thu, 23 Jul 2009 04:49:39 +0000 (04:49 +0000)]
merge one more sse41 test into sse41.ll

llvm-svn: 76853

15 years agomerge another sse41 test into sse41.ll
Chris Lattner [Thu, 23 Jul 2009 04:43:48 +0000 (04:43 +0000)]
merge another sse41 test into sse41.ll

llvm-svn: 76852

15 years agoRevert r76831, there are many Analyzer test failures on multiple platforms.
Daniel Dunbar [Thu, 23 Jul 2009 04:41:06 +0000 (04:41 +0000)]
Revert r76831, there are many Analyzer test failures on multiple platforms.

--- Reverse-merging r76831 into '.':
U    include/clang/Analysis/PathSensitive/GRExprEngine.h
U    lib/Analysis/GRExprEngine.cpp

llvm-svn: 76851

15 years agomerge sse41-pmovx.ll into sse41.ll
Chris Lattner [Thu, 23 Jul 2009 04:39:09 +0000 (04:39 +0000)]
merge  sse41-pmovx.ll into sse41.ll

llvm-svn: 76850

15 years agoAdded PHI Def & Kill tracking to PHIElimination pass.
Lang Hames [Thu, 23 Jul 2009 04:34:03 +0000 (04:34 +0000)]
Added PHI Def & Kill tracking to PHIElimination pass.

llvm-svn: 76849

15 years agochange a test to run in filecheck style. Rename it to be a general
Chris Lattner [Thu, 23 Jul 2009 04:33:02 +0000 (04:33 +0000)]
change a test to run in filecheck style.  Rename it to be a general
dumping ground of various SSE4.1 tests, since filecheck can reasonably
handle them all in one file.  Generalize it to check x86-64 stuff as
well since it has a different ABI (a convenient way to test both the
reg and mem forms of these instructions).

llvm-svn: 76848

15 years agoHandle zero width bit fields in unions correctly (by ignoring them).
Anders Carlsson [Thu, 23 Jul 2009 04:00:39 +0000 (04:00 +0000)]
Handle zero width bit fields in unions correctly (by ignoring them).

llvm-svn: 76847

15 years agoImplement union layout support.
Anders Carlsson [Thu, 23 Jul 2009 03:43:54 +0000 (03:43 +0000)]
Implement union layout support.

llvm-svn: 76846

15 years agoCheck in CGRecordLayoutBuilder which is a reimplementation of the record layout...
Anders Carlsson [Thu, 23 Jul 2009 03:17:50 +0000 (03:17 +0000)]
Check in  CGRecordLayoutBuilder which is a reimplementation of the record layout code. (Yay, no more packed structs unless absolutely necessary). We currently don't use the layouts being built but that will change when the new code is mature enough :)

llvm-svn: 76845

15 years agoThese IRgen improvements have been done.
Daniel Dunbar [Thu, 23 Jul 2009 03:03:07 +0000 (03:03 +0000)]
These IRgen improvements have been done.

Technically we could still do a bit more to avoid deferred generation of statics
which we know are used, but I seriously doubt this is important.

llvm-svn: 76844

15 years agoSupport insertps via the intrinsic and add a couple of simple
Eric Christopher [Thu, 23 Jul 2009 02:22:41 +0000 (02:22 +0000)]
Support insertps via the intrinsic and add a couple of simple
testcases to make sure it's being generated.

llvm-svn: 76843

15 years agoDo not call getMangledName on Intrinsics.
Sanjiv Gupta [Thu, 23 Jul 2009 02:11:04 +0000 (02:11 +0000)]
Do not call getMangledName on Intrinsics.

llvm-svn: 76842

15 years agoMDString
Devang Patel [Thu, 23 Jul 2009 02:00:51 +0000 (02:00 +0000)]
MDString
- Rename member function size(). New name is length().
- Store string beginning and length. Earlier it used to store string end.

llvm-svn: 76841

15 years agoAdd test for pinsrd and pinsrb instructions.
Eric Christopher [Thu, 23 Jul 2009 01:58:04 +0000 (01:58 +0000)]
Add test for pinsrd and pinsrb instructions.

llvm-svn: 76840

15 years agoMinor cosmetics: indentation, formatting, naming.
Andreas Bolka [Thu, 23 Jul 2009 01:57:06 +0000 (01:57 +0000)]
Minor cosmetics: indentation, formatting, naming.

llvm-svn: 76839

15 years agoReverting r76825 and r76828, since they caused clang runtime errors and some build...
Reid Kleckner [Thu, 23 Jul 2009 01:40:54 +0000 (01:40 +0000)]
Reverting r76825 and r76828, since they caused clang runtime errors and some build failure involving memset.

llvm-svn: 76838

15 years agoadd header for 'memset'.
Zhongxing Xu [Thu, 23 Jul 2009 01:38:47 +0000 (01:38 +0000)]
add header for 'memset'.

llvm-svn: 76837

15 years agoSilence "uninitialized use" warning.
Devang Patel [Thu, 23 Jul 2009 01:36:16 +0000 (01:36 +0000)]
Silence "uninitialized use" warning.

llvm-svn: 76836

15 years agoHide constructors.
Devang Patel [Thu, 23 Jul 2009 01:19:53 +0000 (01:19 +0000)]
Hide constructors.

llvm-svn: 76835

15 years agoDerive MDNode from MetadataBase instead of Constant. Emit MDNodes into METADATA_BLOCK...
Devang Patel [Thu, 23 Jul 2009 01:07:34 +0000 (01:07 +0000)]
Derive MDNode from MetadataBase instead of Constant. Emit MDNodes into METADATA_BLOCK in bitcode file.

llvm-svn: 76834

15 years agoAdd initial implementation of checking for uses of floating point as a loop counter.
Ted Kremenek [Thu, 23 Jul 2009 01:07:19 +0000 (01:07 +0000)]
Add initial implementation of checking for uses of floating point as a loop counter.

llvm-svn: 76833

15 years agoAdd instance predicate method to match static method.
Ted Kremenek [Thu, 23 Jul 2009 01:06:10 +0000 (01:06 +0000)]
Add instance predicate method to match static method.

llvm-svn: 76832

15 years agoAdd 'previsit' Checker pass for ObjCMessageExprs.
Ted Kremenek [Thu, 23 Jul 2009 01:05:31 +0000 (01:05 +0000)]
Add 'previsit' Checker pass for ObjCMessageExprs.

llvm-svn: 76831

15 years agoRemove a bunch of FIXME's related to ObjC type checking.
Steve Naroff [Thu, 23 Jul 2009 01:01:38 +0000 (01:01 +0000)]
Remove a bunch of FIXME's related to ObjC type checking.

- Move Sema::ObjCQualifiedIdTypesAreCompatible(), Sema::QualifiedIdConformsQualifiedId(), and a couple helper functions to ASTContext.
- Change ASTContext::canAssignObjCInterfaces() to use ASTContext:: ObjCQualifiedIdTypesAreCompatible().
- Tweak several test cases to accommodate the new/improved type checking.

llvm-svn: 76830

15 years agoFix error message for correct opcode.
Eric Christopher [Thu, 23 Jul 2009 01:01:32 +0000 (01:01 +0000)]
Fix error message for correct opcode.

llvm-svn: 76829

15 years agoMake the JIT code emitter properly retry and ask for more memory when it runs
Reid Kleckner [Thu, 23 Jul 2009 00:49:59 +0000 (00:49 +0000)]
Make the JIT code emitter properly retry and ask for more memory when it runs
out of memory, and also make the default memory manager allocate more memory
when it runs out.

Also, switch function stubs and global data over to using the BumpPtrAllocator.

This makes it so the JIT no longer mmaps (or the equivalent on Windows) 16 MB
of memory, and instead allocates in 512K slabs.  I suspect this size could go
lower, especially on embedded platforms, now that more slabs can be allocated.

llvm-svn: 76828

15 years agoAdd constructor used to initialize base/member in
Fariborz Jahanian [Thu, 23 Jul 2009 00:42:24 +0000 (00:42 +0000)]
Add constructor used to initialize base/member in
CXXBaseOrMemberInitializer AST node. Needed by
its clients to do the initialization.

llvm-svn: 76826

15 years agoParameterize the BumpPtrAllocator over a slab allocator. It defaults to using
Reid Kleckner [Thu, 23 Jul 2009 00:30:41 +0000 (00:30 +0000)]
Parameterize the BumpPtrAllocator over a slab allocator.  It defaults to using
malloc, so there should be no functional changes to other code.

These changes are necessary since I have plans to use this allocator in the JIT
memory manager, and it needs a special allocator.

I also added some tests which helped me pinpoint some bugs.

llvm-svn: 76825

15 years agoFix case, apparently some people still build on case sensitive
Mike Stump [Thu, 23 Jul 2009 00:20:25 +0000 (00:20 +0000)]
Fix case, apparently some people still build on case sensitive
filesystems.

llvm-svn: 76824

15 years agoRevert r75663 (and r76805), as it is causing regressions on powerpc.
Dan Gohman [Thu, 23 Jul 2009 00:09:46 +0000 (00:09 +0000)]
Revert r75663 (and r76805), as it is causing regressions on powerpc.

llvm-svn: 76823

15 years agoAdd warning for falling off the end of a function that should return a
Mike Stump [Wed, 22 Jul 2009 23:56:57 +0000 (23:56 +0000)]
Add warning for falling off the end of a function that should return a
value.  This is on by default, and controlled by -Wreturn-type (-Wmost
-Wall).  I believe there should be very few false positives, though
the most interesting case would be:

  int() { bar(); }

when bar does:

  bar() { while (1) ; }

Here, we assume functions return, unless they are marked with the
noreturn attribute.  I can envision a fixit note for functions that
never return normally that don't have a noreturn attribute to add a
noreturn attribute.

If anyone spots other false positives, let me know!

llvm-svn: 76821

15 years agoImplement support for out-of-line definitions of the class members of class
Douglas Gregor [Wed, 22 Jul 2009 23:48:44 +0000 (23:48 +0000)]
Implement support for out-of-line definitions of the class members of class
templates, e.g.,

  template<typename T>
  struct Outer {
    struct Inner;
  };

  template<typename T>
  struct Outer<T>::Inner {
    // ...
  };

Implementing this feature required some extensions to ActOnTag, which
now takes a set of template parameter lists, and is the precursor to
removing the ActOnClassTemplate function from the parser Action
interface. The reason for this approach is simple: the parser cannot
tell the difference between a class template definition and the
definition of a member of a class template; both have template
parameter lists, and semantic analysis determines what that template
parameter list means.

There is still some cleanup to do with ActOnTag and
ActOnClassTemplate. This commit provides the basic functionality we
need, however.

llvm-svn: 76820

15 years agoremove SectionFlags::Small: it is only used on Xcore, and we'll find
Chris Lattner [Wed, 22 Jul 2009 23:27:22 +0000 (23:27 +0000)]
remove SectionFlags::Small: it is only used on Xcore, and we'll find
a better solution for it in the future.

llvm-svn: 76818

15 years agox86 isel tweak: use lea (%reg,%reg) instead of lea (,%reg,2).
Dan Gohman [Wed, 22 Jul 2009 23:26:55 +0000 (23:26 +0000)]
x86 isel tweak: use lea (%reg,%reg) instead of lea (,%reg,2).

llvm-svn: 76817

15 years agoFix test breakage.
Eli Friedman [Wed, 22 Jul 2009 23:24:42 +0000 (23:24 +0000)]
Fix test breakage.

llvm-svn: 76816

15 years agoChange Preprocessor to keep a copy of LangOptions instead of reference, like ASTContext.
Argyrios Kyrtzidis [Wed, 22 Jul 2009 23:13:42 +0000 (23:13 +0000)]
Change Preprocessor to keep a copy of LangOptions instead of reference, like ASTContext.

Now when creating a Preprocessor we can pass it a temporary LangOptions object instead of having to remember to keep it around.

llvm-svn: 76815

15 years agoImprove CFG support for C++ throw expressions.
Mike Stump [Wed, 22 Jul 2009 22:56:04 +0000 (22:56 +0000)]
Improve CFG support for C++ throw expressions.

llvm-svn: 76814

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

llvm-svn: 76813

15 years agoAdd new keywords to the vim syntax highlighting.
Dan Gohman [Wed, 22 Jul 2009 22:45:50 +0000 (22:45 +0000)]
Add new keywords to the vim syntax highlighting.

llvm-svn: 76812

15 years agoAdd new optimization keywords to the polygen grammar.
Dan Gohman [Wed, 22 Jul 2009 22:45:30 +0000 (22:45 +0000)]
Add new optimization keywords to the polygen grammar.

llvm-svn: 76811

15 years agoRename the new unsigned and signed keywords to nuw and nsw,
Dan Gohman [Wed, 22 Jul 2009 22:44:56 +0000 (22:44 +0000)]
Rename the new unsigned and signed keywords to nuw and nsw,
which stand for no-unsigned-wrap and no-signed-wrap.

llvm-svn: 76810

15 years agoRefactor 'PostStmt' and 'PreStmt' to subclass a common parent 'StmtPoint'.
Ted Kremenek [Wed, 22 Jul 2009 22:35:28 +0000 (22:35 +0000)]
Refactor 'PostStmt' and 'PreStmt' to subclass a common parent 'StmtPoint'.

Educate GRExprEngine::VisitGraph() about 'PreStmt'.

Mark the constructor of 'PostStmt' to be explicit, preventing implicit
conversions and the selection of the wrong 'generateNode' method in
GRStmtNodeBuilder.

Constify a bunch of arguments, which falls out of the changes to ProgramPoint.

llvm-svn: 76809

15 years agoReorder if-else branches as suggested by Bill.
David Greene [Wed, 22 Jul 2009 22:32:19 +0000 (22:32 +0000)]
Reorder if-else branches as suggested by Bill.

llvm-svn: 76808

15 years agoSlight code reorganization to allow instantiating post-inc/dec.
Eli Friedman [Wed, 22 Jul 2009 22:25:00 +0000 (22:25 +0000)]
Slight code reorganization to allow instantiating post-inc/dec.

llvm-svn: 76807

15 years agoFix typo in addrmode definition.
David Goodwin [Wed, 22 Jul 2009 22:24:31 +0000 (22:24 +0000)]
Fix typo in addrmode definition.

llvm-svn: 76806

15 years agoAdd -march=ppc32 lines so that this test doesn't ever default to ppc64.
Dan Gohman [Wed, 22 Jul 2009 22:08:31 +0000 (22:08 +0000)]
Add -march=ppc32 lines so that this test doesn't ever default to ppc64.

llvm-svn: 76805

15 years agoCalls to Sema::MatchTemplateParametersToScopeSpecifier should not depend on the order...
Douglas Gregor [Wed, 22 Jul 2009 22:05:02 +0000 (22:05 +0000)]
Calls to Sema::MatchTemplateParametersToScopeSpecifier should not depend on the order of evaluation of their arguments to be correct.

llvm-svn: 76804

15 years agoUse getTargetConstant instead of getConstant since it's meant as an constant operand.
Evan Cheng [Wed, 22 Jul 2009 22:03:29 +0000 (22:03 +0000)]
Use getTargetConstant instead of getConstant since it's meant as an constant operand.

llvm-svn: 76803

15 years agoMake the grep line in this test more specific, to avoid
Dan Gohman [Wed, 22 Jul 2009 22:02:42 +0000 (22:02 +0000)]
Make the grep line in this test more specific, to avoid
unintended matches.

llvm-svn: 76802

15 years agoConstify the key in Mi2IndexMap.
David Greene [Wed, 22 Jul 2009 21:56:14 +0000 (21:56 +0000)]
Constify the key in Mi2IndexMap.

llvm-svn: 76801

15 years agoUse SaveAndRestore in 'clang/Analysis/Support/SaveAndRestore.h'
Ted Kremenek [Wed, 22 Jul 2009 21:52:10 +0000 (21:52 +0000)]
Use SaveAndRestore in 'clang/Analysis/Support/SaveAndRestore.h'

llvm-svn: 76800

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