summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix the breakage caused by 76950. Sanjiv Gupta2009-07-261-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 Dunbar2009-07-2619-66/+65
| | | | llvm-svn: 77152
* Make sure getName().data() is always null terminated.Daniel Dunbar2009-07-261-1/+4
| | | | llvm-svn: 77149
* Remove Value::getNameLenDaniel Dunbar2009-07-265-116/+62
| | | | llvm-svn: 77148
* 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. llvm-svn: 77146
* Eliminate some uses of DOUT, cerr, and getNameStart().Daniel Dunbar2009-07-2611-288/+293
| | | | llvm-svn: 77145
* remove a densemap from TargetAsmInfo that was uniquing the targetflags strings,Chris Lattner2009-07-267-70/+75
| | | | | | just use a smallstring instead. llvm-svn: 77144
* simplify SectionFlagsForGlobal, even though I want to kill it.Chris Lattner2009-07-261-6/+5
| | | | llvm-svn: 77143
* make SectionKind keep track of whether a global had an explicitChris Lattner2009-07-261-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 Lattner2009-07-261-5/+2
| | | | llvm-svn: 77141
* make SectionKind know whether a symbol is weak or not in additionChris Lattner2009-07-263-31/+36
| | | | | | to its classification. llvm-svn: 77140
* rename Mergable -> Mergeable and Writable -> WriteableChris Lattner2009-07-266-42/+41
| | | | llvm-svn: 77138
* two files I missed in the last commit.Chris Lattner2009-07-262-12/+12
| | | | llvm-svn: 77137
* remove a bunch of helper functions, just use SectionKind::get instead.Chris Lattner2009-07-261-20/+25
| | | | llvm-svn: 77135
* simplify getSectionForMergableConstant to take a SectionKind.Chris Lattner2009-07-265-40/+40
| | | | llvm-svn: 77134
* precreate 4/8/16 byte mergable sections to simplify code.Chris Lattner2009-07-261-16/+19
| | | | llvm-svn: 77133
* introduce specialized mergable const sectionkinds for elements of size 4/8/16 toChris Lattner2009-07-263-9/+22
| | | | | | simplify targets. llvm-svn: 77132
* improve the default impl of getSectionForMergableConstant byChris Lattner2009-07-261-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 Lattner2009-07-261-2/+7
| | | | | | relocations. llvm-svn: 77130
* Rearrange all the SectionKinds and structure them into a hierarchicalChris Lattner2009-07-264-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 Dunbar2009-07-261-8/+11
| | | | llvm-svn: 77127
* Factor commonality in triple match routines into helper template for registeringDaniel Dunbar2009-07-2612-218/+31
| | | | | | classes, and migrate existing targets over. llvm-svn: 77126
* Oops, forgot XCore. Sorry XCore!Daniel Dunbar2009-07-261-2/+3
| | | | llvm-svn: 77125
* Update for API change.Daniel Dunbar2009-07-261-6/+46
| | | | llvm-svn: 77124
* Update Triple to use StringRef/Twine based APIs.Daniel Dunbar2009-07-261-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 Lattner2009-07-261-21/+11
| | | | llvm-svn: 77116
* Remove unused headerDaniel Dunbar2009-07-261-1/+0
| | | | llvm-svn: 77115
* Kill Target specific ModuleMatchQuality stuff.Daniel Dunbar2009-07-2615-274/+13
| | | | | | - This was overkill and inconsistently implemented. llvm-svn: 77114
* Add TargetRegistry::lookupTarget.Daniel Dunbar2009-07-262-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 Lattner2009-07-261-11/+2
| | | | llvm-svn: 77110
* finish simplifying DarwinTargetAsmInfo::SelectSectionForGlobalChris Lattner2009-07-261-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 Dunbar2009-07-261-13/+3
| | | | llvm-svn: 77105
* simplify DarwinTargetAsmInfo::SelectSectionForGlobal a bitChris Lattner2009-07-261-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 Dunbar2009-07-261-12/+5
| | | | llvm-svn: 77102
* Add support for ARM Neon VREV instructions.Bob Wilson2009-07-263-0/+101
| | | | | | Patch by Anton Korzh, with some modifications from me. llvm-svn: 77101
* Remove Value::setName(const char*, unsigned).Daniel Dunbar2009-07-262-9/+9
| | | | llvm-svn: 77100
* Remove Value::setName(const char*).Daniel Dunbar2009-07-261-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 Dunbar2009-07-2512-59/+39
| | | | | | Also, change MDString to use a StringRef. llvm-svn: 77098
* make SectionKind be a first-class pod struct instead of justChris Lattner2009-07-257-54/+48
| | | | | | an enum. llvm-svn: 77096
* Added a test and fixed a bug in BumpPtrAllocator relating to large alignmentReid Kleckner2009-07-251-2/+2
| | | | | | values. Hopefully this fixes PR4622. llvm-svn: 77088
* this is (unfortunately) several changes mixed together:Chris Lattner2009-07-2511-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 Lattner2009-07-251-1/+6
| | | | llvm-svn: 77084
* add the most expedient hack to fix PR4619, along with a testcase.Chris Lattner2009-07-251-0/+5
| | | | | | Thanks to Rafael for the great example. llvm-svn: 77083
* SCEV objects are no longer reference-counted.Dan Gohman2009-07-251-3/+2
| | | | llvm-svn: 77080
* When attempting to sign-extend an addrec by interpretingDan Gohman2009-07-251-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 Bolka2009-07-251-5/+5
| | | | llvm-svn: 77065
* Simplify JIT target selection.Daniel Dunbar2009-07-2516-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 Gupta2009-07-251-0/+1
| | | | | | delete in isSafeToDelete (a thing checked-in 76281). llvm-svn: 77056
* Add new helpers for registering targets.Daniel Dunbar2009-07-2538-289/+93
| | | | | | - Less boilerplate == good. llvm-svn: 77052
* Finish migrating VMCore to StringRef/Twine based APIs.Daniel Dunbar2009-07-259-72/+59
| | | | llvm-svn: 77051
OpenPOWER on IntegriCloud