summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* convert arm/darwin stubs to use the mangler to synthesize all the names ↵Chris Lattner2009-07-151-47/+66
| | | | | | | | instead of doing it with printSuffixedName. llvm-svn: 75741
* Add getName() method to Entity.Zhongxing Xu2009-07-152-0/+10
| | | | llvm-svn: 75740
* Add new TargetRegistry.Daniel Dunbar2009-07-152-0/+315
| | | | | | | | | | | | | | | | | | | | | | | Targets implement a single global Target structure which will live in a new <Target>/TargetInfo library; this will be present in any image which the target is usable in. - Optional target specific classes can then be registered and attached to the Target description. - Registration for normal Targets will be done via the initialization functions instead of using static constructors. - This allows clients to use a single interface to obtain target data, without requiring the code generator be linked in. It also provides a natural extension point for adding new optional target data (assembler parser, disassembler, etc.). - This also provides a new entry point for obtaining a target for a particular triple (without a module). - Not yet used, however this should eventually replace the TargetMachineRegistry. llvm-svn: 75739
* Relax assertion.Ted Kremenek2009-07-151-1/+2
| | | | llvm-svn: 75738
* fix an arm codegen bug (the same as PR4482 on ppc) where available_externallyChris Lattner2009-07-153-7/+73
| | | | | | | symbols were not getting stubs. While I'm at it, add a big testcase for stub generation to make sure I don't break anything. llvm-svn: 75737
* convert [Hidden]GVNonLazyPtrs to compute the global and stub namesChris Lattner2009-07-151-27/+41
| | | | | | | with the mangler (like x86 and ppc), instead of going through printSuffixedName. llvm-svn: 75736
* use makeNameProper to add the globalprefix instead of doing it manually.Chris Lattner2009-07-151-3/+1
| | | | llvm-svn: 75734
* get the PPC stub temporary label from the mangler instead of Chris Lattner2009-07-152-33/+9
| | | | | | | using horrible string hacking. This gives us a different label, but it's just an assembler temporary, so the name doesn't matter. llvm-svn: 75733
* turn some if/then's into ?:Chris Lattner2009-07-151-12/+3
| | | | llvm-svn: 75732
* eliminate a bunch of printSuffixedName's by using info computed fromChris Lattner2009-07-151-23/+15
| | | | | | Mangler in FnStubs. llvm-svn: 75731
* More test cases revealed that the logic in StoreManager::InvalidateRegion() ↵Ted Kremenek2009-07-156-67/+79
| | | | | | | | | | | | | | | | | needs more finesse when handling the invalidation of pointers. Pointers that were invalidated as integers could later cause problems for clients using them as pointers. It is easier for us to model a symbolic value as a pointer rather than modeling a non-symbolic value as a pointer. This patch causes: - StoreManager::InvalidateRegion() to not used the casted type of a region if it would cause a pointer type to be invalidated as a non-pointer type. - Pushes RegionStore::RetrieveElement() further by handling retrievals from symbolic arrays that have been invalidated. This uses the new SymbolDerived construct that was recently introduced. The result is that the failing test in misc-ps-region-store-x86_64.m now passes. Both misc-ps-region-store-x86_64.m and misc-ps-region-store-i386.m contain a test case that motivated this change. llvm-svn: 75730
* convert FnStubs to using a more structured form, eliminatingChris Lattner2009-07-151-9/+31
| | | | | | | a couple instances of printSuffixedName (in favor of having the mangler do stuff). llvm-svn: 75729
* Introduced the notion of a "derived symbol" using the class SymbolDerived.Ted Kremenek2009-07-154-1/+86
| | | | | | | | SymbolDerived allows us to model symbolic values that are related to other symbols via a region hierarchy. For example, SymbolDerived can be used to model individual values of a symbolic array. llvm-svn: 75728
* actually $stub labels *are* private, I just missed that Chris Lattner2009-07-151-6/+2
| | | | | | printSuffixedName automatically does this. llvm-svn: 75727
* convert this to filecheck style and make it a test of darwin/PPC's Chris Lattner2009-07-151-1/+57
| | | | | | extremely elaborate pic/nopic stubs. llvm-svn: 75726
* simplify this test to test the esentials.Chris Lattner2009-07-151-57/+3
| | | | llvm-svn: 75725
* test commit; add selfRyan Flynn2009-07-151-0/+4
| | | | llvm-svn: 75724
* Fix indentation.Dan Gohman2009-07-151-18/+18
| | | | llvm-svn: 75723
* Make makeLoopInvariant report whether it made any changes or not,Dan Gohman2009-07-155-56/+28
| | | | | | and use this to simplify more code. llvm-svn: 75722
* $stub references should not be private ("L") labels.Chris Lattner2009-07-151-4/+5
| | | | llvm-svn: 75721
* simplify "EmitExternalGlobal": it is only used to output aChris Lattner2009-07-151-6/+1
| | | | | | | | reference to the personality function for a module, and those are all added to the GVStubs array by looping over MMI->getPersonalities() llvm-svn: 75720
* Convert GVStubs and HiddenGVStubs to work more like the X86 backend, thisChris Lattner2009-07-151-56/+52
| | | | | | eliminates a bunch of uses of "printSuffixedName" and "getGlobalLinkName". llvm-svn: 75719
* minor cleanups: only switch sections once before all function stubs, instead ofChris Lattner2009-07-151-16/+15
| | | | | | before each one. llvm-svn: 75718
* llvm-c/Core.h is no longer needed in lto.h, and it brings inDan Gohman2009-07-151-1/+0
| | | | | | several unwanted dependencies. llvm-svn: 75717
* Fix a fixme, patch by Ryan Flynn!Chris Lattner2009-07-151-2/+1
| | | | llvm-svn: 75716
* control reaches end of non-void function.Evan Cheng2009-07-141-0/+2
| | | | llvm-svn: 75714
* Handle cast of 'ObjCObjectRegion' in StoreManager::InvalidateRegion.Ted Kremenek2009-07-141-1/+5
| | | | llvm-svn: 75713
* Added a FIXME and prevent crash when listingFariborz Jahanian2009-07-141-5/+6
| | | | | | a dependent type in the ctor initializer-list. llvm-svn: 75712
* Added llvm-mc support for parsing the .include directive.Kevin Enderby2009-07-145-0/+45
| | | | llvm-svn: 75711
* Split out 'test2' into an i386 and x86_64 file, illustrating how theTed Kremenek2009-07-143-23/+66
| | | | | | | test behavior differs between architectures. When this is no longer the case, these tests will be merged. llvm-svn: 75708
* minor syntax cleanupChris Lattner2009-07-141-11/+5
| | | | llvm-svn: 75707
* Update for LLVM API change, and contextify a bunch of related stuff.Owen Anderson2009-07-1420-815/+916
| | | | llvm-svn: 75705
* Move EVER MORE stuff over to LLVMContext.Owen Anderson2009-07-1453-435/+422
| | | | llvm-svn: 75703
* This test currently only passes for 32-bit archs.Ted Kremenek2009-07-141-1/+1
| | | | llvm-svn: 75698
* Fix path name.Daniel Dunbar2009-07-141-1/+1
| | | | llvm-svn: 75697
* Fixed a bug in building ctor-initializer AST.Fariborz Jahanian2009-07-141-2/+3
| | | | llvm-svn: 75692
* Remove -ftraditional option, which gcc doesn't actually support. Make Eli Friedman2009-07-142-5/+6
| | | | | | | | using -traditional and -traditional-cpp with clang an error because it's unsupported in clang and causes a significant change in the semantics of the language. llvm-svn: 75690
* Use the right relocation type for X86::MOV64ri64i32Bruno Cardoso Lopes2009-07-141-0/+2
| | | | llvm-svn: 75687
* Fix bad indentation and 80-col violation.Bob Wilson2009-07-141-1/+2
| | | | llvm-svn: 75686
* Added llvm-mc support for parsing the .lsym directive.Kevin Enderby2009-07-145-0/+53
| | | | llvm-svn: 75685
* Revert 75648 for now. It is causing test failures.Devang Patel2009-07-145-30/+12
| | | | llvm-svn: 75684
* Check for PRE_INC and POST_INC.David Goodwin2009-07-141-1/+1
| | | | llvm-svn: 75683
* Fix the expansion of umax and smax in the case where one or more ofDan Gohman2009-07-142-6/+171
| | | | | | | | the operands have pointer type, so that the resulting type matches the original SCEV type, and so that unnecessary ptrtoints are avoided in common cases. llvm-svn: 75680
* Enhance RegionStoreManager to handle 'Retrieve's from SymbolicRegions. We ↵Ted Kremenek2009-07-142-4/+50
| | | | | | do this by silently wrapping the region with an ElementRegion. This fixes the failures in misc-ps-region-store.m. llvm-svn: 75679
* fix a bug in my previous patch.Chris Lattner2009-07-141-1/+1
| | | | llvm-svn: 75678
* Update CMake file.Ted Kremenek2009-07-141-0/+1
| | | | llvm-svn: 75677
* fix fallout of the LLVM codegen switching to formatted_raw_ostream.Chris Lattner2009-07-141-6/+11
| | | | llvm-svn: 75675
* allow default construction of formatted_raw_ostream.Chris Lattner2009-07-141-4/+11
| | | | llvm-svn: 75674
* fix David's merge conflictChris Lattner2009-07-141-6/+2
| | | | llvm-svn: 75673
* Tweak pretty-printing of CompoundVal to make it more useful for debugging.Ted Kremenek2009-07-141-2/+2
| | | | llvm-svn: 75672
OpenPOWER on IntegriCloud