summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove invalid assertJakob Stoklund Olesen2010-07-021-1/+0
| | | | llvm-svn: 107505
* Handle unindexed instructions in SlotIndices.Jakob Stoklund Olesen2010-07-021-7/+12
| | | | | | | SlotIndexes::insertMachineInstrInMaps would crash when trying to insert an instruction imediately after an unmapped debug value. llvm-svn: 107504
* Properly handle debug values during inline spilling.Jakob Stoklund Olesen2010-07-021-13/+32
| | | | llvm-svn: 107503
* Implement GetProgramFileSpec().Eli Friedman2010-07-021-17/+4
| | | | llvm-svn: 107502
* Add hacky, incomplete Linux host implementation; barely enough to allowEli Friedman2010-07-023-0/+970
| | | | | | compiling lldb. Someone else might try to improve it, though. :) llvm-svn: 107501
* beautify outputGabor Greif2010-07-021-0/+1
| | | | llvm-svn: 107500
* Add const qualification; fixes error on gcc 4.4.Eli Friedman2010-07-021-1/+1
| | | | llvm-svn: 107499
* use ArgOperand APIGabor Greif2010-07-021-2/+2
| | | | llvm-svn: 107498
* Don't visit implicitly defined functions (default constructors and theCraig Silverstein2010-07-021-3/+6
| | | | | | | | like). Our goal with this visitor is to visit exactly what people type. Reviewed by chandlerc. llvm-svn: 107497
* Don't claim to preserve AliasAnalysis. First, this is doesn't actuallyDan Gohman2010-07-021-1/+0
| | | | | | | have any effect, and second, deleting stores can potentially invalidate an AliasAnalysis, and there's currently no notification for this. llvm-svn: 107496
* Reword the definition of the noalias attribute. The intention is forDan Gohman2010-07-022-26/+39
| | | | | | | | | | | | | | | | the noalias argument on function attributes be usable to model the C99 restrict keyword on arguments, and to allow AliasAnalysis to consider a noalias-attributed argument to be an "identified object". To support this, refactor a new "based on" concept out of the current pointer aliasing "associated" concept. This "based on" concept is very similar to (though it is not identical with) the "based on" concept in C99. Also, reword the definition of NoAlias to more closely describe the concept that the optimizer uses. llvm-svn: 107495
* Updated to llvm/clang from July 2, 2010 at 8:00AM.Greg Clayton2010-07-024-8/+10
| | | | llvm-svn: 107494
* Rematerialize as much as possible before inserting spills and reloads.Jakob Stoklund Olesen2010-07-022-60/+185
| | | | | | | | | | This allows us to recognize the common case where all uses could be rematerialized, and no stack slot allocation is necessary. If some values could be fully rematerialized, remove them from the live range before allocating a stack slot for the rest. llvm-svn: 107492
* Move the "current scope" state from the Parser into Action. ThisDouglas Gregor2010-07-0217-291/+319
| | | | | | | | | | | | | | allows Sema some limited access to the current scope, which we only use in one way: when Sema is performing some kind of declaration that is not directly driven by the parser (e.g., due to template instantiatio or lazy declaration of a member), we can find the Scope associated with a DeclContext, if that DeclContext is still in the process of being parsed. Use this to make the implicit declaration of special member functions in a C++ class more "scope-less", rather than using the NULL Scope hack. llvm-svn: 107491
* 80-column and trailing whitespace cleanup.Jim Grosbach2010-07-021-28/+33
| | | | llvm-svn: 107490
* grammar tweaksJim Grosbach2010-07-021-3/+3
| | | | llvm-svn: 107489
* Fix incorrect asm-printing of some NEON immediates. Fix weak testcase soBob Wilson2010-07-023-38/+24
| | | | | | | that it checks the immediate values, not just the instructions opcodes. Radar 8110263. llvm-svn: 107487
* By default, warn about commas at the end of an enumerator list in C++/C89.Douglas Gregor2010-07-022-2/+2
| | | | llvm-svn: 107485
* Handle CXXConstructorDecl, CXXDestructorDecl, and CXXConversionDecl for PCH.Argyrios Kyrtzidis2010-07-023-17/+135
| | | | | | <vector> header can be used correctly through PCH now. llvm-svn: 107483
* use ArgOperand API (found by my previous commit)Gabor Greif2010-07-021-6/+6
| | | | llvm-svn: 107482
* back out r107480, it was just testing the waters anyway...Gabor Greif2010-07-021-21/+1
| | | | llvm-svn: 107481
* [test commit, just to tickle the selfhost buildbots; I'll back out in a few ↵Gabor Greif2010-07-021-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | minutes] second round of low-level interface squeeze-out: making all of CallInst's low-level operand accessors private If you get compile errors I strongly urge you to update your code. I tried to write the necessary clues into the header where the compiler may point to, but no guarantees. It works for my GCC. You have several options to update your code: - you can use the v2.8 ArgOperand accessors - you can go via a temporary CallSite - you can upcast to, say, User and call its low-level accessors if your code is definitely operand-order agnostic. If you run into serious problems, please comment in below thread (and back out this revision only if absolutely necessary): <http://groups.google.com/group/llvm-dev/browse_thread/thread/64650cf343b28271> llvm-svn: 107480
* Provide some test cases for C++ PCH.Argyrios Kyrtzidis2010-07-021-0/+35
| | | | llvm-svn: 107479
* Disable Decl::CheckAccessDeclContext() temporarily.Argyrios Kyrtzidis2010-07-021-4/+6
| | | | llvm-svn: 107478
* Fix reading FunctionDecls from PCH.Argyrios Kyrtzidis2010-07-022-45/+47
| | | | llvm-svn: 107477
* Fix reading ClassTemplateDecl's ClassTemplateSpecializationDecls and ↵Argyrios Kyrtzidis2010-07-022-11/+23
| | | | | | | | ClassTemplatePartialSpecializationDecls. Store/read also their template arguments because they may be initializing and not be able to provide them. llvm-svn: 107476
* Fully read/write CXXRecordDecl for PCH.Argyrios Kyrtzidis2010-07-029-45/+129
| | | | llvm-svn: 107475
* Fix reading of DependentNameType.Argyrios Kyrtzidis2010-07-022-1/+5
| | | | llvm-svn: 107474
* Allow reading of InjectedClassNameType from PCH even when its decl is ↵Argyrios Kyrtzidis2010-07-022-1/+7
| | | | | | currently initializing. llvm-svn: 107473
* Fix broken reading of member pointer from PCH.Argyrios Kyrtzidis2010-07-021-1/+1
| | | | llvm-svn: 107472
* - Allow a typedef type to be read from PCH even if its decl is currently ↵Argyrios Kyrtzidis2010-07-024-45/+66
| | | | | | | | initializing. - Fix creation of TemplateSpecializationType. llvm-svn: 107471
* Fix broken reading of "#lines" from PCH.Argyrios Kyrtzidis2010-07-021-2/+3
| | | | llvm-svn: 107470
* Generally types expect an initialized TypeDecl; its safer and less ↵Argyrios Kyrtzidis2010-07-022-16/+16
| | | | | | complicated to delay PCH reading the type of a TypeDecl. llvm-svn: 107469
* Add some side-effect free Create methods for TypeDecl subclasses and use ↵Argyrios Kyrtzidis2010-07-027-13/+37
| | | | | | them for PCH reading. llvm-svn: 107468
* Create a ASTUnitTU class to interface ASTUnit to the Indexer.Zhongxing Xu2010-07-021-2/+37
| | | | llvm-svn: 107467
* add -analyze-function option.Zhongxing Xu2010-07-021-2/+12
| | | | llvm-svn: 107463
* add -view-call-graph option to wpa.Zhongxing Xu2010-07-021-5/+11
| | | | llvm-svn: 107462
* Change CallGraph::Prog to be a reference. idx::Program means to be a global ↵Zhongxing Xu2010-07-023-4/+6
| | | | | | object to the Index library. llvm-svn: 107461
* Added a method to get a stream's byte order.Sean Callanan2010-07-022-0/+19
| | | | llvm-svn: 107460
* More leaks detection:Greg Clayton2010-07-026-144/+124
| | | | | | | | | | - fixed 3 posix spawn attributes leaks - fixed us always leaking CXXBaseSpecifier objects when we create class base classes. Clang apparently copies the base classes we pass in. Fixed some code formatting in ClangASTContext.cpp. llvm-svn: 107459
* Comment a non-obvious member variable.Dan Gohman2010-07-021-0/+2
| | | | llvm-svn: 107458
* Remember to save first...Jim Ingham2010-07-021-1/+42
| | | | llvm-svn: 107457
* Resolve dueling commits... Plus add docs for Resolve & ResolveUsername.Jim Ingham2010-07-021-0/+4
| | | | llvm-svn: 107456
* Remove duplicate def'n from FileSpec.h.Jim Ingham2010-07-022-29/+53
| | | | | | Add user name completion to the file completer. llvm-svn: 107455
* IndirectBr is not safe to speculatively execute (!)Dan Gohman2010-07-021-0/+1
| | | | llvm-svn: 107454
* Removed the thread specific data that was being used for demangling sinceGreg Clayton2010-07-021-55/+4
| | | | | | | | removing it didn't cause any performance loss, and leaks were showing up when run under instruments when we tried to re-use the buffer. We are now leak free and still just as performant. llvm-svn: 107453
* Rename CreateReg to CreateRegs, and MakeReg to CreateReg.Dan Gohman2010-07-025-14/+15
| | | | llvm-svn: 107451
* Handle typedef function declarations correctly, such asCraig Silverstein2010-07-011-6/+12
| | | | | | | | | typedef int (*Myfunc)(int); Myfunc func; Reviewed by chandlerc llvm-svn: 107450
* Shrink down SSE3 code by more multiclass refactoringBruno Cardoso Lopes2010-07-011-149/+99
| | | | llvm-svn: 107448
* A dumber way to invoke the test suite.Johnny Chen2010-07-011-0/+43
| | | | | | | Use this script to visit each python test case under the specified directory and run python unittest.main() on each test case. llvm-svn: 107447
OpenPOWER on IntegriCloud