aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* add an explanatory comment about why we drop these in readonly andChris Lattner2009-07-271-2/+6
| | | | | | | not in mergable git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77210 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not seed mstadata into the value map.Devang Patel2009-07-271-25/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77208 91177308-0d34-0410-b5e6-96231b3b80d8
* make COFF work like ELF and macho, by splitting out into its ownChris Lattner2009-07-275-68/+113
| | | | | | | header even though there is only one COFF target. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77204 91177308-0d34-0410-b5e6-96231b3b80d8
* don't create default text/data sections for all targets.Chris Lattner2009-07-271-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77203 91177308-0d34-0410-b5e6-96231b3b80d8
* Apparently alpha doesn't use ElfTargetAsmInfo (?)Chris Lattner2009-07-271-0/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77202 91177308-0d34-0410-b5e6-96231b3b80d8
* Thumb-2 does not have RSC.David Goodwin2009-07-271-34/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77201 91177308-0d34-0410-b5e6-96231b3b80d8
* Add ".w" suffix for wide thumb-2 instructions.David Goodwin2009-07-2748-166/+167
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77199 91177308-0d34-0410-b5e6-96231b3b80d8
* inline a method.Chris Lattner2009-07-272-34/+25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77198 91177308-0d34-0410-b5e6-96231b3b80d8
* apparently we have "windows" and "coff", which are different(?)Chris Lattner2009-07-271-0/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77197 91177308-0d34-0410-b5e6-96231b3b80d8
* sink text/data section creation down into the target-specific places that Chris Lattner2009-07-272-1/+5
| | | | | | | | should know about them. PECoff doesn't share these, and I want all sections to be created by object-file-specific code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77196 91177308-0d34-0410-b5e6-96231b3b80d8
* Test case to check that separate section is created for a global variable ↵Sanjiv Gupta2009-07-271-0/+5
| | | | | | specified with section attribute. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77195 91177308-0d34-0410-b5e6-96231b3b80d8
* Change the assembly syntax for nsw, nuw, and exact, putting themDan Gohman2009-07-277-151/+131
| | | | | | | | after their associated opcodes rather than before. This makes them a little easier to read. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77194 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix wording in comments.Dan Gohman2009-07-272-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77193 91177308-0d34-0410-b5e6-96231b3b80d8
* update testcase.Chris Lattner2009-07-271-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77192 91177308-0d34-0410-b5e6-96231b3b80d8
* 32-bit darwin targets support .literal16 too.Chris Lattner2009-07-272-10/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77191 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove trailing slashes from include paths. Some versions of mingw don't ↵Benjamin Kramer2009-07-272-2/+2
| | | | | | like them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77188 91177308-0d34-0410-b5e6-96231b3b80d8
* Test commit: fix typoBenjamin Kramer2009-07-271-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77187 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate getNamed/getUnnamedSection, adding a new and unified ↵Chris Lattner2009-07-2715-111/+108
| | | | | | | | | getOrCreateSection instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77186 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate SectionFlags, just embed a SectionKind into SectionChris Lattner2009-07-2724-239/+191
| | | | | | | instead and drive things based off of that. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77184 91177308-0d34-0410-b5e6-96231b3b80d8
* If CPSR is modified but the def is dead, then it's ok to fold the load / store.Evan Cheng2009-07-271-2/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77182 91177308-0d34-0410-b5e6-96231b3b80d8
* Use t2LDRi12 and t2STRi12 to load / store to / from stack frames. Eliminate ↵Evan Cheng2009-07-277-31/+76
| | | | | | more getOpcode calls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77181 91177308-0d34-0410-b5e6-96231b3b80d8
* Generate a libcall for i8 multiply.Sanjiv Gupta2009-07-272-0/+16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77179 91177308-0d34-0410-b5e6-96231b3b80d8
* fixed incorrect lowering of ISD::SUB node. SUB has only one result value.Sanjiv Gupta2009-07-271-5/+14
| | | | | | | It wasn't caught during tests because we never got a sub generated, (i8 was always getting promoted to int, which in turn was broken into subc/sube). Though the optimizer leaves an i8 sub now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77178 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the right instructions to copy between GPR and the more strictive tGPR ↵Evan Cheng2009-07-272-5/+12
| | | | | | classes. t2MOV does not match the RC requirements. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77175 91177308-0d34-0410-b5e6-96231b3b80d8
* Merge isLoadFromStackSlot into one since it behaves the same regardless of ↵Evan Cheng2009-07-273-49/+23
| | | | | | sub-target. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77174 91177308-0d34-0410-b5e6-96231b3b80d8
* Just use a single isMoveInstr to catch all the cases.Evan Cheng2009-07-273-32/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77173 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename tMOVhi2lor to tMOVgpr2tgpr. It's not moving from a high register to a ↵Evan Cheng2009-07-264-24/+24
| | | | | | low register. It's moving from a GPR register class to a more restrictive tGPR class. Also change tMOVlor2hir, and tMOVhir2hir. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77172 91177308-0d34-0410-b5e6-96231b3b80d8
* Reorganize code a bit to reduce indentation. No visible functionality Eli Friedman2009-07-261-287/+287
| | | | | | | | change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77171 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix libLTO:Nick Lewycky2009-07-262-6/+13
| | | | | | | | | | | | | * Call InitializeAllTargets on every path where we might query the TargetRegistry. This fixes PR4604. * flush the formatted_raw_ostream& or else not all of the assembly will make it to the .s file. (It doesn't do this in its destructor?!) * Due to a reversed conditional, libLTO was reporting many symbols as both defined and undefined, including two definitions of the same symbol name in its symbol list. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77170 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't use llvm_report_error in libSystem, this is a layering violation.Daniel Dunbar2009-07-261-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77169 91177308-0d34-0410-b5e6-96231b3b80d8
* untangle a TargetAsmInfo hack where ELFTargetAsmInfo would create aChris Lattner2009-07-2616-51/+36
| | | | | | | | | | | 'unnamed' bss section, but some impls would want a named one. Since they don't have consistent behavior, just make each target do their own thing, instead of doing something "sortof common" then having targets change immutable objects later. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77165 91177308-0d34-0410-b5e6-96231b3b80d8
* Refactor. Get rid of a few more getOpcode() calls.Evan Cheng2009-07-266-18/+44
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77164 91177308-0d34-0410-b5e6-96231b3b80d8
* reduce indentationChris Lattner2009-07-261-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77161 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the RHS length instead of the LHS length. They are both the same,Chris Lattner2009-07-261-1/+1
| | | | | | | | | | | | | | but this ends up compiling code like this: int foo(const StringRef &R) { return R == "food"; } to use a constant sized memcmp instead of a variable memcmp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77160 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77153 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove Value::getName{Start,End}, the last of the old Name APIs.Daniel Dunbar2009-07-2621-81/+67
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77152 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure getName().data() is always null terminated.Daniel Dunbar2009-07-261-1/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77149 91177308-0d34-0410-b5e6-96231b3b80d8
* 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