summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* eliminate extra space.Torok Edwin2009-07-149-25/+24
| | | | llvm-svn: 75630
* Add extra sign extension to the same bit width before int signAnton Korobeynikov2009-07-142-3/+13
| | | | | | | extension to another bit width. This is needed to get correct singed value. Patch by Artur Pietrek! llvm-svn: 75629
* Add missing break. Patch by Artur Pietrek!Anton Korobeynikov2009-07-141-0/+1
| | | | llvm-svn: 75628
* Fix the buildAlisdair Meredith2009-07-141-2/+6
| | | | llvm-svn: 75627
* Move main llvm-prof functionality into a ModulePass.Daniel Dunbar2009-07-141-110/+148
| | | | | | | | | | | - To support using the ProfileInfo analysis results instead of accessing the ProfileInfoLoader directly. - Based on (part of) a patch by Andreas Neustifter. - No functionality change. llvm-svn: 75625
* ProfileInfo interface tweaks.Daniel Dunbar2009-07-142-10/+22
| | | | | | | | | | | | - Add getExecutionCount(const Function). - Add helper Edge type. - constify. - No functionality change. llvm-svn: 75623
* Basic support for C++0x unicode types. Support for literals will follow in ↵Alisdair Meredith2009-07-1421-15/+119
| | | | | | an incremental patch llvm-svn: 75622
* Use http instead https for anonymous readonly check out.Evan Cheng2009-07-141-1/+1
| | | | llvm-svn: 75621
* remove renamed method.Chris Lattner2009-07-141-4/+0
| | | | llvm-svn: 75620
* rename getValueName -> getMangledName. These two files have veryChris Lattner2009-07-142-14/+17
| | | | | | dubious looking things that I need to investigate in more detail. llvm-svn: 75619
* Rename getValueName -> getMangledNameChris Lattner2009-07-143-5/+5
| | | | llvm-svn: 75618
* rename getValueName -> getMangledNameChris Lattner2009-07-141-1/+1
| | | | llvm-svn: 75617
* rename getValueName -> getMangledNameChris Lattner2009-07-143-6/+6
| | | | llvm-svn: 75616
* Rename getValueName -> getMangledName.Chris Lattner2009-07-1412-55/+47
| | | | llvm-svn: 75615
* use new name for method.Chris Lattner2009-07-141-3/+4
| | | | llvm-svn: 75614
* Remove some tabs and fix other whitespace. No functional changes.Bob Wilson2009-07-141-7/+7
| | | | llvm-svn: 75613
* Fix a comment.Bob Wilson2009-07-141-1/+1
| | | | llvm-svn: 75612
* Fix an obvious error.Bob Wilson2009-07-141-3/+3
| | | | llvm-svn: 75611
* Change the X86 asmprinter to use the mangler to apply suffixes like ↵Chris Lattner2009-07-144-62/+93
| | | | | | | | | | | | | | | | "$non_lazy_ptr" to symbols instead of doing it with "printSuffixedName". This gets us to the point where there is a real separation between computing a symbol name and printing it, something I need for MC printer stuff. This patch also fixes a corner case bug where unnamed private globals wouldn't get the private label prefix. Next up, rename all uses of getValueName -> getMangledName for better greppability, and then tackle the ppc/arm backends to eliminate "printSuffixedName". llvm-svn: 75610
* New VNInfo alignment patch by Ryan Flynn.Lang Hames2009-07-141-14/+3
| | | | llvm-svn: 75609
* Move the RUN lines on the same file but below the code, as suggested by ↵Argyrios Kyrtzidis2009-07-144-47/+50
| | | | | | Sebastian. llvm-svn: 75608
* Change the internal interface to makeNameProper to take a bool thatChris Lattner2009-07-146-46/+31
| | | | | | | | | | | | indicates whether the label is private or not, instead of taking prefix stuff. One effect of this is that symbols will be generated with *just* the private prefix, instead of both the private prefix *and* the user-label-prefix, but this doesn't matter as long as it is consistent. For example we'll now get "Lfoo" instead of "L_foo". These are just assembler temporary labels anyway, so they never even make it into the .o file. llvm-svn: 75607
* In Stmt::printPretty(), pass the SourceManager to dump().Argyrios Kyrtzidis2009-07-141-1/+1
| | | | llvm-svn: 75606
* Handle redeclarations properly at the index-test tool.Argyrios Kyrtzidis2009-07-142-8/+18
| | | | llvm-svn: 75605
* Introduce redecl_iterator, used for iterating over the redeclarations of a ↵Argyrios Kyrtzidis2009-07-142-19/+115
| | | | | | | | | | | | | | | | | | | | | FunctionDecl or VarDecl. It iterates over all the redeclarations, regardless of the starting point. For example: 1) int f(); 2) int f(); 3) int f(); if you have the (2) FunctionDecl and call redecls_begin/redecls_end to iterate, you'll get this sequence: (2) (1) (3) The motivation to introduce this was that, previously, if (3) was a function definition, and you called getBody() at (2), it would not return it, since getBody() iterated over the previous declarations only, so it would only check (2) and (1). llvm-svn: 75604
* Introduce FunctionDecl::getLatestDeclaration() and ↵Argyrios Kyrtzidis2009-07-142-25/+96
| | | | | | | | | | VarDecl::getLatestDeclaration(). For multiple redeclarations they return the last one. Also, add some non const versions of methods. llvm-svn: 75603
* Introduce FunctionDecl::getFirstDeclaration() and ↵Argyrios Kyrtzidis2009-07-142-10/+26
| | | | | | | | VarDecl::getFirstDeclaration(). For multiple redeclarations they return the first one. llvm-svn: 75602
* Add a C++ indexing test case, where we show the references of overloaded '+' ↵Argyrios Kyrtzidis2009-07-142-0/+21
| | | | | | | | plus signs. Ok, this is a bit out of place since C++ support is way way off, but it was just too cool to not show it off :-) llvm-svn: 75601
* For C++ overloaded operator calls, set the source location of the ↵Argyrios Kyrtzidis2009-07-141-1/+1
| | | | | | DeclRefExpr to the location of the operator. llvm-svn: 75600
* For index-test, if the ASTLocation points at a CallExpr, get a Decl out of it.Argyrios Kyrtzidis2009-07-141-7/+16
| | | | llvm-svn: 75599
* Read/write a CXXOperatorCallExpr from/to PCH files.Argyrios Kyrtzidis2009-07-146-5/+42
| | | | llvm-svn: 75598
* Fixes for a couple of things:Argyrios Kyrtzidis2009-07-142-3/+17
| | | | | | | | | - Declaration context of ParmVarDecls (that we got from the Declarator) was not their containing function. - C++ out-of-line method definitions didn't get an access specifier. Both were exposed by a crash when emitting a C++ method to a PCH file (assert at Decl::CheckAccessDeclContext()). llvm-svn: 75597
* Handle struct fields through the index-test tool.Argyrios Kyrtzidis2009-07-146-3/+49
| | | | llvm-svn: 75596
* Move the test input source code to a separate file.Argyrios Kyrtzidis2009-07-142-24/+23
| | | | | | That way we can freely add new RUN lines without having to correct the line part in all the -point-at options. llvm-svn: 75595
* In ResolveLocationInAST, handle locations that are inside TagDecl definitions.Argyrios Kyrtzidis2009-07-141-4/+17
| | | | llvm-svn: 75594
* In DeclReferenceMap, map FieldDecls to the MemberExprs that reference them.Argyrios Kyrtzidis2009-07-141-0/+6
| | | | llvm-svn: 75593
* Read/write TagDecl's RBraceLoc from/to PCH files.Argyrios Kyrtzidis2009-07-142-0/+2
| | | | llvm-svn: 75592
* Pass the right brace SourceLocation from the Parser to the TagDecls.Argyrios Kyrtzidis2009-07-145-6/+10
| | | | llvm-svn: 75591
* Add the SourceLocation for the right brace in TagDecl.Argyrios Kyrtzidis2009-07-142-1/+13
| | | | llvm-svn: 75590
* Use LLVM mangler to get mangled name for debug info entry.Devang Patel2009-07-145-12/+29
| | | | llvm-svn: 75589
* Unbroke LiveInterval.Lang Hames2009-07-141-4/+7
| | | | llvm-svn: 75588
* Tidy up VNInfo alignment code. Patch contributed by Ryan Flynn.Lang Hames2009-07-141-22/+21
| | | | llvm-svn: 75587
* Fix trivial todo in instcombine.Eli Friedman2009-07-142-1/+7
| | | | llvm-svn: 75586
* 1. In Thumb mode, select tBx instead of ARM variants.Evan Cheng2009-07-142-20/+16
| | | | | | | 2. BX does not "use" the link register, it defines it. 3. Fix a couple more places in thumb td file that still uses pre-UAL syntax. llvm-svn: 75585
* Update LoopSimplify and LoopUnswitch to use the new makeLoopInvariantDan Gohman2009-07-143-17/+17
| | | | | | function. llvm-svn: 75584
* Port this unittest to use LLVMContext.Dan Gohman2009-07-141-30/+33
| | | | llvm-svn: 75583
* Update debug info generation for ObjCObjectPointer changes.Daniel Dunbar2009-07-143-5/+25
| | | | | | | | | - Previously this would crash on recursive types, and it was also incorrectly stripping off a level of indirection. - I'm not 100% convinced this is all correct, but it should be a monotonic improvment. llvm-svn: 75582
* Remove hack now that Evan fixed it so that the frame pointer isn't saved twice.Bill Wendling2009-07-141-23/+0
| | | | llvm-svn: 75581
* Instead of recovering from a wrong invalidation, this patch aims to Zhongxing Xu2009-07-144-4/+47
| | | | | | | | invalidate the region correctly. It uses the cast-to type to invalidate the region when available. To avoid invalid cast-to type like 'void*' or 'id', region store now only records non-generic casts of regions. llvm-svn: 75580
* Fix indvars to not assume that a loop with a single unique exitDan Gohman2009-07-142-7/+52
| | | | | | block has a single unique exiting block. llvm-svn: 75579
OpenPOWER on IntegriCloud