Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix the breakage caused by 76950. | Sanjiv Gupta | 2009-07-26 | 1 | -0/+3 | |
| | | | | | | PIC16 has special naming conventions for variables having section names specified via section attribute. llvm-svn: 77153 | |||||
* | Remove Value::getName{Start,End}, the last of the old Name APIs. | Daniel Dunbar | 2009-07-26 | 19 | -66/+65 | |
| | | | | llvm-svn: 77152 | |||||
* | Make sure getName().data() is always null terminated. | Daniel Dunbar | 2009-07-26 | 1 | -1/+4 | |
| | | | | llvm-svn: 77149 | |||||
* | Remove Value::getNameLen | Daniel Dunbar | 2009-07-26 | 5 | -116/+62 | |
| | | | | llvm-svn: 77148 | |||||
* | Move MSILModule and MSILWriter into the 'llvm' namespace, instead of the 'MSIL' | Nick Lewycky | 2009-07-26 | 2 | -8/+3 | |
| | | | | | | | | namespace which could very well conflict with non-LLVM code. Also clean up some spacing, remove an extra header. llvm-svn: 77146 | |||||
* | Eliminate some uses of DOUT, cerr, and getNameStart(). | Daniel Dunbar | 2009-07-26 | 11 | -288/+293 | |
| | | | | llvm-svn: 77145 | |||||
* | remove a densemap from TargetAsmInfo that was uniquing the targetflags strings, | Chris Lattner | 2009-07-26 | 7 | -70/+75 | |
| | | | | | | just use a smallstring instead. llvm-svn: 77144 | |||||
* | simplify SectionFlagsForGlobal, even though I want to kill it. | Chris Lattner | 2009-07-26 | 1 | -6/+5 | |
| | | | | llvm-svn: 77143 | |||||
* | make SectionKind keep track of whether a global had an explicit | Chris Lattner | 2009-07-26 | 1 | -21/+24 | |
| | | | | | | section specified for it or not. llvm-svn: 77142 | |||||
* | simplify this code now that SectionKind knows if a global is weak or not. | Chris Lattner | 2009-07-26 | 1 | -5/+2 | |
| | | | | llvm-svn: 77141 | |||||
* | make SectionKind know whether a symbol is weak or not in addition | Chris Lattner | 2009-07-26 | 3 | -31/+36 | |
| | | | | | | to its classification. llvm-svn: 77140 | |||||
* | rename Mergable -> Mergeable and Writable -> Writeable | Chris Lattner | 2009-07-26 | 6 | -42/+41 | |
| | | | | llvm-svn: 77138 | |||||
* | two files I missed in the last commit. | Chris Lattner | 2009-07-26 | 2 | -12/+12 | |
| | | | | llvm-svn: 77137 | |||||
* | remove a bunch of helper functions, just use SectionKind::get instead. | Chris Lattner | 2009-07-26 | 1 | -20/+25 | |
| | | | | llvm-svn: 77135 | |||||
* | simplify getSectionForMergableConstant to take a SectionKind. | Chris Lattner | 2009-07-26 | 5 | -40/+40 | |
| | | | | llvm-svn: 77134 | |||||
* | precreate 4/8/16 byte mergable sections to simplify code. | Chris Lattner | 2009-07-26 | 1 | -16/+19 | |
| | | | | llvm-svn: 77133 | |||||
* | introduce specialized mergable const sectionkinds for elements of size 4/8/16 to | Chris Lattner | 2009-07-26 | 3 | -9/+22 | |
| | | | | | | simplify targets. llvm-svn: 77132 | |||||
* | improve the default impl of getSectionForMergableConstant by | Chris Lattner | 2009-07-26 | 1 | -2/+4 | |
| | | | | | | putting readonly constants in the readonly section if we have one. llvm-svn: 77131 | |||||
* | make elf targets correctly handle constant pool entries that require ↵ | Chris Lattner | 2009-07-26 | 1 | -2/+7 | |
| | | | | | | relocations. llvm-svn: 77130 | |||||
* | Rearrange all the SectionKinds and structure them into a hierarchical | Chris Lattner | 2009-07-26 | 4 | -54/+57 | |
| | | | | | | | | | | | | | 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. llvm-svn: 77129 | |||||
* | Sort list of targets in --version. | Daniel Dunbar | 2009-07-26 | 1 | -8/+11 | |
| | | | | llvm-svn: 77127 | |||||
* | Factor commonality in triple match routines into helper template for registering | Daniel Dunbar | 2009-07-26 | 12 | -218/+31 | |
| | | | | | | classes, and migrate existing targets over. llvm-svn: 77126 | |||||
* | Oops, forgot XCore. Sorry XCore! | Daniel Dunbar | 2009-07-26 | 1 | -2/+3 | |
| | | | | llvm-svn: 77125 | |||||
* | Update for API change. | Daniel Dunbar | 2009-07-26 | 1 | -6/+46 | |
| | | | | llvm-svn: 77124 | |||||
* | Update Triple to use StringRef/Twine based APIs. | Daniel Dunbar | 2009-07-26 | 1 | -58/+35 | |
| | | | | | | - This is now shorter, simpler, safer, and more efficient, what a deal. llvm-svn: 77119 | |||||
* | put normal data into .data instead of .data.rel on elf systems. | Chris Lattner | 2009-07-26 | 1 | -21/+11 | |
| | | | | llvm-svn: 77116 | |||||
* | Remove unused header | Daniel Dunbar | 2009-07-26 | 1 | -1/+0 | |
| | | | | llvm-svn: 77115 | |||||
* | Kill Target specific ModuleMatchQuality stuff. | Daniel Dunbar | 2009-07-26 | 15 | -274/+13 | |
| | | | | | | - This was overkill and inconsistently implemented. llvm-svn: 77114 | |||||
* | Add TargetRegistry::lookupTarget. | Daniel Dunbar | 2009-07-26 | 2 | -86/+21 | |
| | | | | | | | | | | | | | | - 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. llvm-svn: 77111 | |||||
* | eliminate a pointless switch stmt. | Chris Lattner | 2009-07-26 | 1 | -11/+2 | |
| | | | | llvm-svn: 77110 | |||||
* | finish simplifying DarwinTargetAsmInfo::SelectSectionForGlobal | Chris Lattner | 2009-07-26 | 1 | -23/+16 | |
| | | | | | | | for now. Make the section switching directives more consistent by not including \n and including \t for them all. llvm-svn: 77107 | |||||
* | Rewrite getName{Start,End,Len} in terms of getName(), instead of vice-versa. | Daniel Dunbar | 2009-07-26 | 1 | -13/+3 | |
| | | | | llvm-svn: 77105 | |||||
* | simplify DarwinTargetAsmInfo::SelectSectionForGlobal a bit | Chris Lattner | 2009-07-26 | 1 | -16/+20 | |
| | | | | | | | | | | | 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. llvm-svn: 77104 | |||||
* | Simplify. | Daniel Dunbar | 2009-07-26 | 1 | -12/+5 | |
| | | | | llvm-svn: 77102 | |||||
* | Add support for ARM Neon VREV instructions. | Bob Wilson | 2009-07-26 | 3 | -0/+101 | |
| | | | | | | Patch by Anton Korzh, with some modifications from me. llvm-svn: 77101 | |||||
* | Remove Value::setName(const char*, unsigned). | Daniel Dunbar | 2009-07-26 | 2 | -9/+9 | |
| | | | | llvm-svn: 77100 | |||||
* | Remove Value::setName(const char*). | Daniel Dunbar | 2009-07-26 | 1 | -7/+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... llvm-svn: 77099 | |||||
* | Remove Value::{isName, getNameRef}. | Daniel Dunbar | 2009-07-25 | 12 | -59/+39 | |
| | | | | | | Also, change MDString to use a StringRef. llvm-svn: 77098 | |||||
* | make SectionKind be a first-class pod struct instead of just | Chris Lattner | 2009-07-25 | 7 | -54/+48 | |
| | | | | | | an enum. llvm-svn: 77096 | |||||
* | Added a test and fixed a bug in BumpPtrAllocator relating to large alignment | Reid Kleckner | 2009-07-25 | 1 | -2/+2 | |
| | | | | | | values. Hopefully this fixes PR4622. llvm-svn: 77088 | |||||
* | this is (unfortunately) several changes mixed together: | Chris Lattner | 2009-07-25 | 11 | -81/+72 | |
| | | | | | | | | | | | | | | 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. llvm-svn: 77085 | |||||
* | document some invariants. | Chris Lattner | 2009-07-25 | 1 | -1/+6 | |
| | | | | llvm-svn: 77084 | |||||
* | add the most expedient hack to fix PR4619, along with a testcase. | Chris Lattner | 2009-07-25 | 1 | -0/+5 | |
| | | | | | | Thanks to Rafael for the great example. llvm-svn: 77083 | |||||
* | SCEV objects are no longer reference-counted. | Dan Gohman | 2009-07-25 | 1 | -3/+2 | |
| | | | | llvm-svn: 77080 | |||||
* | When attempting to sign-extend an addrec by interpreting | Dan Gohman | 2009-07-25 | 1 | -2/+2 | |
| | | | | | | | the step value as unsigned, the start value and the addrec itself still need to be treated as signed. llvm-svn: 77078 | |||||
* | Convert DOUT to DEBUG. | Andreas Bolka | 2009-07-25 | 1 | -5/+5 | |
| | | | | llvm-svn: 77065 | |||||
* | Simplify JIT target selection. | Daniel Dunbar | 2009-07-25 | 16 | -145/+48 | |
| | | | | | | | | | | - Instead of requiring targets to define a JIT quality match function, we just have them specify if they support a JIT. - Target selection for the JIT just gets the host triple and looks for the best target which matches the triple and has a JIT. llvm-svn: 77060 | |||||
* | Mark attributes of return insn correctly. It was being assumed safe to ↵ | Sanjiv Gupta | 2009-07-25 | 1 | -0/+1 | |
| | | | | | | delete in isSafeToDelete (a thing checked-in 76281). llvm-svn: 77056 | |||||
* | Add new helpers for registering targets. | Daniel Dunbar | 2009-07-25 | 38 | -289/+93 | |
| | | | | | | - Less boilerplate == good. llvm-svn: 77052 | |||||
* | Finish migrating VMCore to StringRef/Twine based APIs. | Daniel Dunbar | 2009-07-25 | 9 | -72/+59 | |
| | | | | llvm-svn: 77051 |