aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove Value::getNameLenDaniel Dunbar2009-07-266-120/+62
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77148 91177308-0d34-0410-b5e6-96231b3b80d8
* Move MSILModule and MSILWriter into the 'llvm' namespace, instead of the 'MSIL'Nick Lewycky2009-07-262-8/+3
| | | | | | | | | | namespace which could very well conflict with non-LLVM code. Also clean up some spacing, remove an extra header. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77146 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate some uses of DOUT, cerr, and getNameStart().Daniel Dunbar2009-07-2612-292/+299
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77145 91177308-0d34-0410-b5e6-96231b3b80d8
* remove a densemap from TargetAsmInfo that was uniquing the targetflags strings,Chris Lattner2009-07-269-77/+84
| | | | | | | just use a smallstring instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77144 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify SectionFlagsForGlobal, even though I want to kill it.Chris Lattner2009-07-261-6/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77143 91177308-0d34-0410-b5e6-96231b3b80d8
* make SectionKind keep track of whether a global had an explicitChris Lattner2009-07-262-23/+33
| | | | | | | section specified for it or not. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77142 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify this code now that SectionKind knows if a global is weak or not.Chris Lattner2009-07-261-5/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77141 91177308-0d34-0410-b5e6-96231b3b80d8
* make SectionKind know whether a symbol is weak or not in additionChris Lattner2009-07-264-36/+45
| | | | | | | to its classification. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77140 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the kind actually be private.Chris Lattner2009-07-261-4/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77139 91177308-0d34-0410-b5e6-96231b3b80d8
* rename Mergable -> Mergeable and Writable -> WriteableChris Lattner2009-07-269-82/+87
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77138 91177308-0d34-0410-b5e6-96231b3b80d8
* two files I missed in the last commit.Chris Lattner2009-07-262-12/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77137 91177308-0d34-0410-b5e6-96231b3b80d8
* remove a bunch of helper functions, just use SectionKind::get instead.Chris Lattner2009-07-262-37/+25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77135 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify getSectionForMergableConstant to take a SectionKind.Chris Lattner2009-07-268-45/+43
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77134 91177308-0d34-0410-b5e6-96231b3b80d8
* precreate 4/8/16 byte mergable sections to simplify code.Chris Lattner2009-07-262-22/+29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77133 91177308-0d34-0410-b5e6-96231b3b80d8
* introduce specialized mergable const sectionkinds for elements of size 4/8/16 toChris Lattner2009-07-264-11/+45
| | | | | | | simplify targets. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77132 91177308-0d34-0410-b5e6-96231b3b80d8
* improve the default impl of getSectionForMergableConstant byChris Lattner2009-07-261-2/+4
| | | | | | | putting readonly constants in the readonly section if we have one. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77131 91177308-0d34-0410-b5e6-96231b3b80d8
* make elf targets correctly handle constant pool entries that require ↵Chris Lattner2009-07-261-2/+7
| | | | | | relocations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77130 91177308-0d34-0410-b5e6-96231b3b80d8
* Rearrange all the SectionKinds and structure them into a hierarchicalChris Lattner2009-07-265-103/+173
| | | | | | | | | | | | | | | group instead of a bunch of random unrelated ideas. Provide predicates to categorize a SectionKind into a group, and use them instead of getKind() throughout the code. This also renames a ton of SectionKinds to be more consistent and evocative, and adds a huge number of comments on the enums so that I will hopefully be able to remember how this stuff works long from now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77129 91177308-0d34-0410-b5e6-96231b3b80d8
* Update target registration description in Writing An LLVM Backend, and addDaniel Dunbar2009-07-262-8/+57
| | | | | | | a mention in release notes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77128 91177308-0d34-0410-b5e6-96231b3b80d8
* Sort list of targets in --version.Daniel Dunbar2009-07-261-8/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77127 91177308-0d34-0410-b5e6-96231b3b80d8
* Factor commonality in triple match routines into helper template for registeringDaniel Dunbar2009-07-2614-233/+46
| | | | | | | classes, and migrate existing targets over. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77126 91177308-0d34-0410-b5e6-96231b3b80d8
* Oops, forgot XCore. Sorry XCore!Daniel Dunbar2009-07-262-2/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77125 91177308-0d34-0410-b5e6-96231b3b80d8
* Update for API change.Daniel Dunbar2009-07-262-11/+63
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77124 91177308-0d34-0410-b5e6-96231b3b80d8
* fix isReadOnly predicate to not include data that has to beChris Lattner2009-07-261-3/+1
| | | | | | | | writable because of teh dynamic linker. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77122 91177308-0d34-0410-b5e6-96231b3b80d8
* remove a dead enum case.Chris Lattner2009-07-261-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77121 91177308-0d34-0410-b5e6-96231b3b80d8
* Update Triple to use StringRef/Twine based APIs.Daniel Dunbar2009-07-263-108/+85
| | | | | | | - This is now shorter, simpler, safer, and more efficient, what a deal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77119 91177308-0d34-0410-b5e6-96231b3b80d8
* Add StringRef::{slice, split}, two convenient string operations which are simpleDaniel Dunbar2009-07-262-3/+53
| | | | | | | and efficient on a StringRef. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77117 91177308-0d34-0410-b5e6-96231b3b80d8
* put normal data into .data instead of .data.rel on elf systems.Chris Lattner2009-07-263-23/+28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77116 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unused headerDaniel Dunbar2009-07-261-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77115 91177308-0d34-0410-b5e6-96231b3b80d8
* Kill Target specific ModuleMatchQuality stuff.Daniel Dunbar2009-07-2616-286/+13
| | | | | | | - This was overkill and inconsistently implemented. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77114 91177308-0d34-0410-b5e6-96231b3b80d8
* Add TargetRegistry::lookupTarget.Daniel Dunbar2009-07-268-107/+57
| | | | | | | | | | | | | | | - This is a simplified mechanism which just looks up a target based on the target triple, with a few additional flags. - Remove getClosestStaticTargetForModule, the moral equivalent is now: lookupTarget(Mod->getTargetTriple, true, false, ...); - This no longer does the fuzzy matching with target data (based on endianness and pointer width) that getClosestStaticTargetForModule was doing, but this was deemed unnecessary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77111 91177308-0d34-0410-b5e6-96231b3b80d8
* eliminate a pointless switch stmt.Chris Lattner2009-07-261-11/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77110 91177308-0d34-0410-b5e6-96231b3b80d8
* finish simplifying DarwinTargetAsmInfo::SelectSectionForGlobalChris Lattner2009-07-263-23/+42
| | | | | | | | for now. Make the section switching directives more consistent by not including \n and including \t for them all. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77107 91177308-0d34-0410-b5e6-96231b3b80d8
* Some clients rely on getName{Start,End} not returning 0, even if the length isDaniel Dunbar2009-07-261-2/+8
| | | | | | | | 0. - I could have swore the prev change went through a make check cycle... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77106 91177308-0d34-0410-b5e6-96231b3b80d8
* Rewrite getName{Start,End,Len} in terms of getName(), instead of vice-versa.Daniel Dunbar2009-07-262-20/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77105 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify DarwinTargetAsmInfo::SelectSectionForGlobal a bitChris Lattner2009-07-262-16/+37
| | | | | | | | | | | | | and make it more aggressive, we now put: const int G2 __attribute__((weak)) = 42; into the text (readonly) segment like gcc, previously we put it into the data (readwrite) segment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77104 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify some predicates, add isMergableString()Chris Lattner2009-07-261-12/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77103 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify.Daniel Dunbar2009-07-261-12/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77102 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for ARM Neon VREV instructions.Bob Wilson2009-07-264-0/+214
| | | | | | | Patch by Anton Korzh, with some modifications from me. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77101 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove Value::setName(const char*, unsigned).Daniel Dunbar2009-07-264-12/+15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77100 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove Value::setName(const char*).Daniel Dunbar2009-07-262-8/+1
| | | | | | | | | - Split into a separate patch because there is a slight functionality change, it is no longer valid to call setName(0), which was equivalent to setName(""). I'm hoping no one depends on this... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77099 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove Value::{isName, getNameRef}.Daniel Dunbar2009-07-2515-71/+49
| | | | | | | Also, change MDString to use a StringRef. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77098 91177308-0d34-0410-b5e6-96231b3b80d8
* make SectionKind be a first-class pod struct instead of justChris Lattner2009-07-2510-70/+87
| | | | | | | an enum. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77096 91177308-0d34-0410-b5e6-96231b3b80d8
* Added a test and fixed a bug in BumpPtrAllocator relating to large alignmentReid Kleckner2009-07-252-2/+50
| | | | | | | values. Hopefully this fixes PR4622. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77088 91177308-0d34-0410-b5e6-96231b3b80d8
* this is (unfortunately) several changes mixed together:Chris Lattner2009-07-2514-89/+100
| | | | | | | | | | | | | | | | | 1. Spell SectionFlags::Writeable as "Writable". 2. Add predicates for deriving SectionFlags from SectionKinds. 3. Sink ELF-specific getSectionPrefixForUniqueGlobal impl into ELFTargetAsmInfo. 4. Fix SectionFlagsForGlobal to know that BSS/ThreadBSS has the BSS bit set (the real fix for PR4619). 5. Fix isSuitableForBSS to not put globals with explicit sections set in BSS (which was the reason #4 wasn't fixed earlier). 6. Remove my previous hack for PR4619. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77085 91177308-0d34-0410-b5e6-96231b3b80d8
* document some invariants.Chris Lattner2009-07-252-4/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77084 91177308-0d34-0410-b5e6-96231b3b80d8
* add the most expedient hack to fix PR4619, along with a testcase.Chris Lattner2009-07-252-0/+13
| | | | | | | Thanks to Rafael for the great example. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77083 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a few comments to say "backedge-taken count" instead ofDan Gohman2009-07-251-2/+3
| | | | | | | "trip count". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77081 91177308-0d34-0410-b5e6-96231b3b80d8
* SCEV objects are no longer reference-counted.Dan Gohman2009-07-251-3/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77080 91177308-0d34-0410-b5e6-96231b3b80d8
* Update comments to new-style syntax.Dan Gohman2009-07-251-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77079 91177308-0d34-0410-b5e6-96231b3b80d8