summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use IRBuilder while simplifying unreachable.Devang Patel2011-05-191-7/+8
| | | | llvm-svn: 131607
* Revert my previous patch. The cmake build had already been fixed.Rafael Espindola2011-05-192-2/+1
| | | | llvm-svn: 131606
* Use IRBuilder while simplifying conditional branch.Devang Patel2011-05-181-31/+36
| | | | llvm-svn: 131605
* More instcombine cleanup, towards improving debug line info.Eli Friedman2011-05-184-12/+14
| | | | llvm-svn: 131604
* Restore sanity to 131601.Jim Grosbach2011-05-181-2/+3
| | | | llvm-svn: 131603
* Fix the cmake build.Rafael Espindola2011-05-182-1/+2
| | | | llvm-svn: 131602
* Objective C functions may use a magic '\1' on the name. Handle that whenJim Grosbach2011-05-182-1/+16
| | | | | | dealing with them in the MCJIT. llvm-svn: 131601
* Shuffle StandardPasses.cpp into VMCore; add it to CMake.Eli Friedman2011-05-182-0/+1
| | | | llvm-svn: 131600
* Use IRBuilder while simplifying branch.Devang Patel2011-05-181-12/+13
| | | | llvm-svn: 131598
* Revert unintentional commit.Eli Friedman2011-05-181-26/+5
| | | | llvm-svn: 131597
* More instcombine simplifications towards better debug locations.Eli Friedman2011-05-183-18/+36
| | | | llvm-svn: 131596
* Add missing mayLoad / mayStore flags to instruction definitions without ↵Cameron Zwarich2011-05-181-0/+5
| | | | | | | | patterns, which fixes all of the CodeGen/MBlaze verifier failures. llvm-svn: 131595
* Some refactorings with respect to setting of the 'printTokenized' flag.Johnny Chen2011-05-181-20/+16
| | | | | | Add some comments. llvm-svn: 131594
* Add a header patterned after MCDwarf.h for supporting Win64 exception handlingCharles Davis2011-05-181-0/+91
| | | | | | under MC. llvm-svn: 131593
* Some better type safety enforcement in the standard pass list, along with ↵David Chisnall2011-05-181-25/+31
| | | | | | some small tidies and some fixes for bugs that the stricter checking found. llvm-svn: 131592
* Reserve the segment registers on x86 to fix verifier failures in any code thatCameron Zwarich2011-05-181-0/+9
| | | | | | uses them. llvm-svn: 131591
* Remove comments as Chris requested.Charles Davis2011-05-181-48/+12
| | | | llvm-svn: 131590
* Remove dead code which tests for boolan flag 'raw' and restore one ↵Johnny Chen2011-05-181-47/+39
| | | | | | indentation level. llvm-svn: 131589
* Added a function to lldb_private::Address:Greg Clayton2011-05-184-35/+77
| | | | | | | | | | | | | | | | addr_t Address::GetCallableLoadAddress (Target *target) const; This will resolve the load address in the Address object and optionally decorate the address up to be able to be called. For all non ARM targets, this just essentially returns the result of "Address::GetLoadAddress (target)". But for ARM targets, it checks if the address is Thumb, and if so, it returns an address with bit zero set to indicate a mode switch to Thumb. This is how we need function pointers to be for return addresses and when resolving function addresses for the JIT. It is also nice to centralize this in one spot to avoid having multiple copies of this code. llvm-svn: 131588
* Reserve r29 on Alpha. This fixes all verifier failures in CodeGen/Alpha.Cameron Zwarich2011-05-181-0/+1
| | | | llvm-svn: 131587
* Handle perfect shuffle case that generates a vrev for vectors of floats.Tanya Lattner2011-05-182-1/+17
| | | | | | Add test case. llvm-svn: 131582
* Third pass at allowing plugins to modify default passes. This time with a ↵Eli Friedman2011-05-183-150/+701
| | | | | | tweak so that we don't depend on an uninitialized argument. llvm-svn: 131581
* Use IRBuilder while simplifying return instruction.Devang Patel2011-05-181-11/+13
| | | | llvm-svn: 131580
* Fix an obvious typo in r131572.Cameron Zwarich2011-05-181-2/+2
| | | | llvm-svn: 131579
* Fix more of PR8825. Now all of CodeGen/ARM passes with VerifyCoalescing ↵Cameron Zwarich2011-05-181-4/+7
| | | | | | turned on. llvm-svn: 131578
* When forming an ICmpZero LSRUse, normalize the non-IV operandDan Gohman2011-05-182-0/+95
| | | | | | | of the comparison, so that the resulting expression is fully normalized. This fixes PR9939. llvm-svn: 131576
* Set debug location while setting insertion point.Devang Patel2011-05-181-0/+1
| | | | llvm-svn: 131575
* After consultation with doug, revert r131515.Alexis Hunt2011-05-181-9/+1
| | | | llvm-svn: 131574
* Revert r121528 as it breaks a simple testcase, which leads to, amongAlexis Hunt2011-05-187-193/+21
| | | | | | other things, libcxx not building. llvm-svn: 131573
* Add some more Win64 EH directives:Charles Davis2011-05-183-0/+64
| | | | | | | | | | | | | - StartChained and EndChained delimit a chained unwind area, which can contain additional operations to be undone if an exception occurs inside of it. - UnwindOnly declares that this function doesn't handle any exceptions. If it has a handler, it's an unwind handler instead of an exception handler. - Lsda declares the location and size of the LSDA, which in the Win64 EH scheme is kept inside the UNWIND_INFO struct. Windows itself ignores the LSDA; it's used by the Language-Specific Handler (the "Personality Function" from DWARF). llvm-svn: 131572
* Spread use of IRBuilder even more.Devang Patel2011-05-181-10/+12
| | | | llvm-svn: 131571
* Revert r131556; it's breaking buildbots/clang tests.Eli Friedman2011-05-183-695/+150
| | | | llvm-svn: 131567
* Use IRBuilder while simplifying switch instruction.Devang Patel2011-05-181-15/+18
| | | | llvm-svn: 131566
* Disassembly of tBcc was wrongly adding 4 to the SignExtend'ed imm8:'0' ↵Johnny Chen2011-05-182-1/+4
| | | | | | immediate operand. llvm-svn: 131565
* Use IRBuilder while simplifying unwind.Devang Patel2011-05-181-7/+9
| | | | llvm-svn: 131561
* Enables vararg functions that pass all arguments via registers to be ↵Chad Rosier2011-05-183-7/+105
| | | | | | optimized into tail-calls when possible. llvm-svn: 131560
* More instcombine cleanup aimed towards improving debug line info.Eli Friedman2011-05-182-25/+22
| | | | llvm-svn: 131559
* Add ARMTargetCodeGenInfo::initDwarfEHRegSizeTable() defining 16 32bit regs.Roman Divacky2011-05-181-0/+16
| | | | llvm-svn: 131558
* An imminent fix to the x86_64 byval logic will expose a flaw in theStuart Hastings2011-05-181-1/+1
| | | | | | | | x86_64 sibcall logic. I've filed PR9943 for the sibcall problem, and this patch alters the testcase to work around the flaw. When PR9943 is fixed, this patch should be reverted. llvm-svn: 131557
* Second pass at allowing plugins to modify default passes. This time without ↵David Chisnall2011-05-183-150/+695
| | | | | | bonus inter-library dependencies. llvm-svn: 131556
* Revise r131553. Just use the type of the input node and forgo the bitcast. ↵Evan Cheng2011-05-181-4/+3
| | | | | | rdar://9449159. llvm-svn: 131555
* Fix an ARMTargetLowering::LowerSELECT bug: legalized result must have same ↵Evan Cheng2011-05-181-1/+3
| | | | | | type as input. Sorry test cases only trigger when dag combine is disabled. rdar://9449178 llvm-svn: 131553
* Use IRBuilder while simplifying terminator.Devang Patel2011-05-181-4/+7
| | | | llvm-svn: 131552
* Use IRBuilder while simplifying unconditional branch.Devang Patel2011-05-181-6/+11
| | | | llvm-svn: 131551
* One more fix to:Greg Clayton2011-05-181-5/+7
| | | | | | | | | | | | bool SectionLoadList::ResolveLoadAddress (addr_t load_addr, Address &so_addr) const; Where if the address is in the last map entry, we need to look it up correctly. My previous fix was incorrect where it looked in the first if there were no addresses in the map that were > load_addr. Now we correctly look in the last entry if our std::map::lower_bound search returns the end of the collection. llvm-svn: 131550
* If the use_thumb is set, pass llvm::Triple::thumb to the ↵Johnny Chen2011-05-181-1/+1
| | | | | | | | | | InstructionLLVM.ctor() unconditionally. Otherwise, pass m_arch.GetMachine(). Followup patch for rdar://problem/9170971. llvm-svn: 131549
* Use IRBuilder while folding two entry PHINode.Devang Patel2011-05-181-6/+8
| | | | llvm-svn: 131548
* Switch more inst insertion in instcombine to IRBuilder.Eli Friedman2011-05-181-10/+6
| | | | llvm-svn: 131547
* Correct typos in TestingGuide.htmlChad Rosier2011-05-181-2/+2
| | | | llvm-svn: 131546
* Set up IRBuilder for use during simplification.Devang Patel2011-05-181-0/+3
| | | | llvm-svn: 131545
OpenPOWER on IntegriCloud