summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* Revert r7561{9,8,7,6}, which depend on r75610. Daniel Dunbar2009-07-146-23/+20
| | | | | | | | | | | | | | | | | | --- Reverse-merging r75619 into '.': U lib/Target/DarwinTargetAsmInfo.cpp U lib/CodeGen/AsmPrinter/AsmPrinter.cpp --- Reverse-merging r75618 into '.': U lib/CodeGen/ELFWriter.cpp U lib/CodeGen/MachOCodeEmitter.cpp U lib/CodeGen/MachOWriter.cpp --- Reverse-merging r75617 into '.': U lib/Target/CBackend/CBackend.cpp --- Reverse-merging r75616 into '.': U tools/bugpoint/Miscompilation.cpp U tools/lto/LTOCodeGenerator.cpp U tools/lto/LTOModule.cpp llvm-svn: 75638
* Revert r75615, which depended on 75610.Daniel Dunbar2009-07-1412-47/+55
| | | | | | | | | | | | | | | | | | --- Reverse-merging r75615 into '.': U lib/Target/XCore/XCoreAsmPrinter.cpp U lib/Target/PIC16/PIC16AsmPrinter.cpp U lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp U lib/Target/MSP430/MSP430AsmPrinter.cpp U lib/Target/IA64/AsmPrinter/IA64AsmPrinter.cpp U lib/Target/CellSPU/AsmPrinter/SPUAsmPrinter.cpp U lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp U lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp U lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp U lib/Target/MSIL/MSILWriter.cpp U lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp U lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp llvm-svn: 75637
* Revert r75610 (and r75620, which was blocking the revert), in the hopes ofDaniel Dunbar2009-07-142-81/+57
| | | | | | | | | | | | | | unbreaking llvm-gcc (on Darwin). --- Reverse-merging r75620 into '.': U include/llvm/Support/Mangler.h --- Reverse-merging r75610 into '.': U test/CodeGen/X86/loop-hoist.ll G include/llvm/Support/Mangler.h U lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp U lib/VMCore/Mangler.cpp llvm-svn: 75636
* Make SCEVCallbackVH::allUsesReplacedWith more thorough in removingDan Gohman2009-07-141-4/+8
| | | | | | users from the Scalars map. llvm-svn: 75634
* Require IVUsers after LCSSA, since LCSSA does not preserve IVUsers.Dan Gohman2009-07-141-3/+3
| | | | | | | This results in the pass manager running IVUsers only once for indvars, instead of twice. llvm-svn: 75633
* Add a comment about why ScalarEvolution doesn't recognize non-loop PHIsDan Gohman2009-07-141-0/+4
| | | | | | even when they're obvious. llvm-svn: 75632
* After converting assert(0) to LLVM_UNREACHABLE we lost file/line location.Torok Edwin2009-07-141-1/+5
| | | | | | | Fix by making the LLVM_UNREACHABLE pass __FILE__ and __LINE__ to llvm_unreachable. llvm-svn: 75631
* eliminate extra space.Torok Edwin2009-07-149-25/+24
| | | | llvm-svn: 75630
* Add extra sign extension to the same bit width before int signAnton Korobeynikov2009-07-142-3/+13
| | | | | | | extension to another bit width. This is needed to get correct singed value. Patch by Artur Pietrek! llvm-svn: 75629
* Add missing break. Patch by Artur Pietrek!Anton Korobeynikov2009-07-141-0/+1
| | | | llvm-svn: 75628
* ProfileInfo interface tweaks.Daniel Dunbar2009-07-141-6/+10
| | | | | | | | | | | | - Add getExecutionCount(const Function). - Add helper Edge type. - constify. - No functionality change. llvm-svn: 75623
* rename getValueName -> getMangledName. These two files have veryChris Lattner2009-07-142-14/+17
| | | | | | dubious looking things that I need to investigate in more detail. llvm-svn: 75619
* Rename getValueName -> getMangledNameChris Lattner2009-07-143-5/+5
| | | | llvm-svn: 75618
* rename getValueName -> getMangledNameChris Lattner2009-07-141-1/+1
| | | | llvm-svn: 75617
* Rename getValueName -> getMangledName.Chris Lattner2009-07-1412-55/+47
| | | | llvm-svn: 75615
* Fix an obvious error.Bob Wilson2009-07-141-3/+3
| | | | llvm-svn: 75611
* Change the X86 asmprinter to use the mangler to apply suffixes like ↵Chris Lattner2009-07-142-57/+81
| | | | | | | | | | | | | | | | "$non_lazy_ptr" to symbols instead of doing it with "printSuffixedName". This gets us to the point where there is a real separation between computing a symbol name and printing it, something I need for MC printer stuff. This patch also fixes a corner case bug where unnamed private globals wouldn't get the private label prefix. Next up, rename all uses of getValueName -> getMangledName for better greppability, and then tackle the ppc/arm backends to eliminate "printSuffixedName". llvm-svn: 75610
* Change the internal interface to makeNameProper to take a bool thatChris Lattner2009-07-143-36/+21
| | | | | | | | | | | | indicates whether the label is private or not, instead of taking prefix stuff. One effect of this is that symbols will be generated with *just* the private prefix, instead of both the private prefix *and* the user-label-prefix, but this doesn't matter as long as it is consistent. For example we'll now get "Lfoo" instead of "L_foo". These are just assembler temporary labels anyway, so they never even make it into the .o file. llvm-svn: 75607
* Fix trivial todo in instcombine.Eli Friedman2009-07-141-1/+2
| | | | llvm-svn: 75586
* 1. In Thumb mode, select tBx instead of ARM variants.Evan Cheng2009-07-142-20/+16
| | | | | | | 2. BX does not "use" the link register, it defines it. 3. Fix a couple more places in thumb td file that still uses pre-UAL syntax. llvm-svn: 75585
* Update LoopSimplify and LoopUnswitch to use the new makeLoopInvariantDan Gohman2009-07-142-15/+15
| | | | | | function. llvm-svn: 75584
* Remove hack now that Evan fixed it so that the frame pointer isn't saved twice.Bill Wendling2009-07-141-23/+0
| | | | llvm-svn: 75581
* Fix indvars to not assume that a loop with a single unique exitDan Gohman2009-07-141-7/+5
| | | | | | block has a single unique exiting block. llvm-svn: 75579
* Introduce a new LoopInfo utility function makeLoopInvariant, whichDan Gohman2009-07-141-1/+62
| | | | | | | | | | | works similar to isLoopInvariant, except that it will do trivial hoisting to try to make the value loop invariant if it isn't already. This makes it easier for transformation passes to clear trivial instructions out of the way (the regular LICM pass doesn't run until relatively late). This is code factored out of LoopSimplify and other places. llvm-svn: 75578
* use getValueName instead of makeNameProper.Chris Lattner2009-07-141-2/+2
| | | | llvm-svn: 75577
* Fix detection of valid BFC immediates.David Goodwin2009-07-141-10/+10
| | | | llvm-svn: 75576
* Do not use Mangler to remove '1' from linkage name.Devang Patel2009-07-141-13/+4
| | | | llvm-svn: 75574
* Fix pr4544. When remating, make sure the destination register fits the ↵Evan Cheng2009-07-141-0/+11
| | | | | | | | instruction definition. It may be mismatched due to sub-register coalescing. No test case yet because the code doesn't trigger until 75408 is re-applied. llvm-svn: 75572
* Don't delete asm's just because their inputs are undefined;Dale Johannesen2009-07-141-8/+17
| | | | | | xor R, R is a common and valid idiom for zeroing a register, for example. llvm-svn: 75571
* Add a newline, now that Value's operator<< doesn't print one.Dan Gohman2009-07-141-0/+1
| | | | llvm-svn: 75568
* FreeInst is trapping.Dan Gohman2009-07-141-0/+1
| | | | llvm-svn: 75567
* Fix an obvious copy-and-paste error.Bob Wilson2009-07-141-8/+8
| | | | llvm-svn: 75566
* Revert 75308.Bob Wilson2009-07-141-33/+3
| | | | llvm-svn: 75565
* the mangler can never mangle intrinsics, don't allow this.Chris Lattner2009-07-141-4/+2
| | | | llvm-svn: 75564
* Revert 75309.Bob Wilson2009-07-141-106/+8
| | | | llvm-svn: 75562
* rename Memo/Count to AnonGlobalIDs/NextAnonGlobalID to be more Chris Lattner2009-07-141-20/+17
| | | | | | | | | | descriptive. Thange them to keep track of the ID of a global that is assigned, not the first mangled name returned for it. Without doing this, we are required to always use the same suffix for a global that gets mangled. This means that we can mangle the same global once with $stub and another time with $non_lazy_ptr or whatever. llvm-svn: 75561
* Move more functionality over to LLVMContext.Owen Anderson2009-07-133-73/+19
| | | | llvm-svn: 75559
* remove Mangler::getTypeID and related data, it was only used for manglingChris Lattner2009-07-131-9/+1
| | | | | | local symbols and we haven't had type planes since llvm 1.9. llvm-svn: 75558
* remove mangler support for mangling local names. Mangler should only be Chris Lattner2009-07-131-14/+0
| | | | | | used with globals. llvm-svn: 75557
* fix CBE & MSIL backends to not use the mangler for non-global symbols.Chris Lattner2009-07-133-27/+54
| | | | llvm-svn: 75556
* don't print redundant @PLT suffixesChris Lattner2009-07-131-4/+0
| | | | llvm-svn: 75554
* Revert an accidental commit.Evan Cheng2009-07-131-1/+1
| | | | llvm-svn: 75553
* the mangler should put suffixes on unnamed global's mangled names as well Chris Lattner2009-07-131-1/+1
| | | | | | if present. llvm-svn: 75547
* Move a bit more functionality to LLVMContext, which apparently wasn't being ↵Owen Anderson2009-07-132-19/+29
| | | | | | used anyways. llvm-svn: 75546
* Added llvm-mc support for parsing the .abort directive.Kevin Enderby2009-07-131-0/+10
| | | | llvm-svn: 75545
* Print a newline after printing a Value, now that Value's operator<<Dan Gohman2009-07-131-1/+1
| | | | | | doesn't print a newline. llvm-svn: 75543
* Two changes:Chris Lattner2009-07-131-9/+2
| | | | | | | | | | | 1) unique globals with the existing "Count" local in Mangler, not with atomic nonsense. Using atomics will give us nondeterminstic output from the compiler when using multiple threads, which is bad. 2) Do not mangle an unknown global name with a type suffix. We don't need this anymore now that llvm ir doesn't have type planes. llvm-svn: 75541
* Use assertion.Devang Patel2009-07-131-2/+4
| | | | llvm-svn: 75540
* PR4548: optimize zext+udiv+trunc to udiv.Eli Friedman2009-07-131-1/+20
| | | | llvm-svn: 75539
* Inline EvalVectorOp in order to get rid of passing-pointer-to-static-methods ↵Owen Anderson2009-07-131-38/+132
| | | | | | behavior. llvm-svn: 75538
OpenPOWER on IntegriCloud