summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add DEFINE_COMPILERRT_PRIVATE_FUNCTION_UNMANGLED for use in .S files -- ↵Daniel Dunbar2010-01-183-3/+8
| | | | | | restFP and saveFP don't get USER_LABEL_PREFIX prepended for some reason. llvm-svn: 93788
* my instcombine transformations to make extension elimination moreChris Lattner2010-01-183-11/+47
| | | | | | | | aggressive changed the canonical form from sext(trunc(x)) to ashr(lshr(x)), make sure to transform a couple more things into that canonical form, and catch a case where we missed turning zext/shl/ashr into a single sext. llvm-svn: 93787
* Added a newline at the end of SMLoc.hSean Callanan2010-01-181-0/+1
| | | | llvm-svn: 93784
* Clean up the CIndex API slightly.Douglas Gregor2010-01-183-12/+25
| | | | | | | | | | | Renamed CXSourceFileLine to CXSourceLocation and added a CXFile, to better match Clang's SourceLocation. Teach clang_getDeclExtent to fill in the CXFile properly. Renamed CXSourceExtent to CXSourceRange, to better match Clang's SourceLocation. llvm-svn: 93783
* Changed the comment in the file header for SMLocSean Callanan2010-01-181-2/+2
| | | | | | to something more accurate. llvm-svn: 93782
* Have FastISel handle llvm.trap().Eric Christopher2010-01-181-0/+4
| | | | llvm-svn: 93781
* Split SMLoc out in its own header so that it canSean Callanan2010-01-182-21/+46
| | | | | | be used independently of SourceMgr. llvm-svn: 93780
* Explicitly not handle ObjCForwardProtocolDecl in GetCursorKind().Ted Kremenek2010-01-181-0/+3
| | | | llvm-svn: 93779
* Tweak USR generation to handle anonymous bitfields.Ted Kremenek2010-01-181-1/+18
| | | | llvm-svn: 93778
* Minor cleanup for jump table printing. Need a reference, not a pointer, forJim Grosbach2010-01-181-1/+1
| | | | | | printing via <<. Otherwise we just print the pointer value. llvm-svn: 93777
* filecheckize this.Chris Lattner2010-01-181-14/+22
| | | | llvm-svn: 93776
* filecheckizeChris Lattner2010-01-181-13/+19
| | | | llvm-svn: 93775
* remove a redundant test, filecheckize another.Chris Lattner2010-01-182-43/+26
| | | | llvm-svn: 93774
* Canonicalize -1 - x to ~x.Evan Cheng2010-01-182-0/+14
| | | | | | | | | | Instcombine does this but apparently there are situations where this pattern will escape the optimizer and / or created by isel. Here is a case that's seen in JavaScriptCore: %t1 = sub i32 0, %a %t2 = add i32 %t1, -1 The dag combiner pattern: ((c1-A)+c2) -> (c1+c2)-A will fold it to -1 - %a. llvm-svn: 93773
* update mkpatch, patch by Garrison Venn!Chris Lattner2010-01-181-2/+2
| | | | llvm-svn: 93771
* Add missing newline.Daniel Dunbar2010-01-181-1/+1
| | | | llvm-svn: 93767
* Make findDbgDeclare/findDbgGlobalDeclare local static functions; avoid Elts ↵Victor Hernandez2010-01-182-13/+7
| | | | | | array llvm-svn: 93764
* float, double, and long double do need extra data in theDouglas Gregor2010-01-182-6/+4
| | | | | | BuiltinTypeLoc structure. Thanks, Enea! llvm-svn: 93763
* Simplify MDNode::getFunction() and assertLocalFunction() by avoiding extra ↵Victor Hernandez2010-01-181-46/+39
| | | | | | Function* variable and smallptrset since function-local metadata cannot be cyclic llvm-svn: 93762
* Replace clang_getDeclUSR() with clang_getCursorUSR(). Also remove printing ↵Ted Kremenek2010-01-189-196/+194
| | | | | | 'contexts' from c-index-test output; it wasn't helpful and was extremely brittle. llvm-svn: 93760
* The most significant encoding bit of GPR:$src or GPR:$dst was over-specified inJohnny Chen2010-01-181-5/+5
| | | | | | | | the various MOV (register) instructions (16-bit Thumb), including tBRIND (the indirect branch). Instead of '1', it should be specified as '?', because GPR only specifies the register class, which includes both hi-and-lo registers. llvm-svn: 93759
* Patch by David Conrad:Jim Grosbach2010-01-185-1/+34
| | | | | | | "On ARMv6T2 this turns cttz into rbit, clz instead of the 4 instruction sequence it is now." llvm-svn: 93758
* While mapping llvm.dbg.declare intrinsic manually map its operand, if possible,Devang Patel2010-01-182-0/+30
| | | | | | because it points to an alloca instruction through metadata. llvm-svn: 93757
* reject some invalid IR. We already assert and reject this from theChris Lattner2010-01-181-0/+2
| | | | | | .ll parser, but PR6070 wants it in the verifier too. llvm-svn: 93756
* Add FIXME comment.Bill Wendling2010-01-181-0/+3
| | | | llvm-svn: 93755
* - Add a comment to the callback indicating that it's *extremely* not a goodBill Wendling2010-01-183-3/+6
| | | | | | | | idea, but unfortunately necessary. - Default to using 4-bytes for the LSDA pointer encoding to agree with the encoded value in the CIE. llvm-svn: 93753
* Preserve type source information in compound literal expressions.John McCall2010-01-187-38/+58
| | | | | | Patch by Enea Zaffanella! llvm-svn: 93752
* Print fix-it hints properly around tabs, from Christian Adåker!Douglas Gregor2010-01-182-0/+56
| | | | llvm-svn: 93750
* Remove ../libexec from clang program search path, clang-cc is dead.Daniel Dunbar2010-01-182-28/+0
| | | | llvm-svn: 93749
* Make printing of metadata more robust when function is not found (which is ↵Victor Hernandez2010-01-181-1/+1
| | | | | | the normal situation for non function-local metadata) llvm-svn: 93748
* Silence a control reaches end of function warning. Patch by EneaMike Stump2010-01-181-0/+1
| | | | | | Zaffanella. llvm-svn: 93743
* Mostly renaming some methods and updating comments toFariborz Jahanian2010-01-182-31/+40
| | | | | | | reflect what these methods are actually doing. One method template for future work. No change in functionality. llvm-svn: 93742
* Make CMake's clang++ installation respect DESTDIR, based on a patch byDouglas Gregor2010-01-181-1/+1
| | | | | | Ingmar Vanhassel. Fixes PR6046. llvm-svn: 93741
* Improve source-location information for builtin TypeLocs, from EneaDouglas Gregor2010-01-189-48/+333
| | | | | | Zaffanella (with a couple of my tweaks). llvm-svn: 93733
* Don't build/install clang++ in CLANG_IS_PRODUCTION build mode yet.Daniel Dunbar2010-01-181-0/+2
| | | | llvm-svn: 93732
* Fix -Asserts warning.Daniel Dunbar2010-01-181-2/+1
| | | | llvm-svn: 93731
* Fix race condition in creating objdir.Daniel Dunbar2010-01-181-4/+2
| | | | llvm-svn: 93730
* Don't try to build compiler-rt if it happens to be checked out into projects/Daniel Dunbar2010-01-181-0/+3
| | | | llvm-svn: 93729
* Encoding calling conventions in the type system, from Charles Davis!Douglas Gregor2010-01-186-42/+127
| | | | llvm-svn: 93726
* More VTT builder fixes. With these fixes we now correctly handle the very ↵Anders Carlsson2010-01-182-5/+62
| | | | | | complex VTT example from the Itanium ABI spec. llvm-svn: 93725
* Unnamed symbol index should be >= 1. This was lost during the mangler ↵Benjamin Kramer2010-01-181-1/+1
| | | | | | refactoring. Fixes PR6067. llvm-svn: 93724
* Fix refacto reported by Nicolas Geoffray.Benjamin Kramer2010-01-181-3/+1
| | | | llvm-svn: 93723
* Add support for computing size in elements for symbolic regions obtained fromZhongxing Xu2010-01-186-12/+47
| | | | | | malloc(). llvm-svn: 93722
* Update Apple-style build support for new MakefilesDaniel Dunbar2010-01-182-59/+69
| | | | llvm-svn: 93721
* Add support for "platform" configurations, which define a suite of compiler-rtDaniel Dunbar2010-01-1813-20/+358
| | | | | | | | | | | libraries to generate. - Each library may be built with different flags and for different architectures, and there is support for building Darwin style fat archives. - Uses an ambituous amount of make programming, but should be hidden to users and developers. llvm-svn: 93720
* Remove old build logic, this is going to be replaced by a more configurable ↵Daniel Dunbar2010-01-183-221/+0
| | | | | | mechanism shortly. llvm-svn: 93719
* Rename subdir 'Target' variable to 'Implementation' to be less overloaded.Daniel Dunbar2010-01-189-15/+14
| | | | llvm-svn: 93718
* Add 'SelectFunctionDir' function, to select appropriate function ↵Daniel Dunbar2010-01-184-15/+107
| | | | | | implementation based on a configuration and architecture. llvm-svn: 93717
* Add more make utility functions.Daniel Dunbar2010-01-182-2/+114
| | | | | | - With tests. :) llvm-svn: 93716
* Change subdir traversal to primarily cache information about what is ↵Daniel Dunbar2010-01-182-5/+42
| | | | | | | | | | | | available in subdirectories. - Rest of makefiles will move to using the information after it has been computed, instead of during subdir traversal. Also, add 'make info-functions' target, which prints information on all the functions available in compiler-rt. Also, add 'make help-devel' for listing help on targets intended for compiler-rt developers or direct users. llvm-svn: 93715
OpenPOWER on IntegriCloud