Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Make sure Thumb2 uses the right call instructions. | Evan Cheng | 2009-07-29 | 3 | -19/+80 | |
| | | | | llvm-svn: 77507 | |||||
* | 1. Introduce a new TargetOperandInfo::getRegClass() helper method | Chris Lattner | 2009-07-29 | 2 | -15/+17 | |
| | | | | | | | | | | | | | and convert code to using it, instead of having lots of things poke the isLookupPtrRegClass() method directly. 2. Make PointerLikeRegClass contain a 'kind' int, and store it in the existing regclass field of TargetOperandInfo when the isLookupPtrRegClass() predicate is set. Make getRegClass pass this into TargetRegisterInfo::getPointerRegClass(), allowing targets to have multiple ptr_rc things. llvm-svn: 77504 | |||||
* | Give getPointerRegClass() a "kind" value so that targets can | Chris Lattner | 2009-07-29 | 10 | -24/+25 | |
| | | | | | | support multiple different pointer register classes. llvm-svn: 77501 | |||||
* | - Fix an obvious copy and paste error. | Evan Cheng | 2009-07-29 | 3 | -6/+7 | |
| | | | | | | - Darwin Thumb2 call clobbers r9. llvm-svn: 77500 | |||||
* | Add llvm_unreachable for ... unreachable code! | Eric Christopher | 2009-07-29 | 1 | -1/+1 | |
| | | | | llvm-svn: 77480 | |||||
* | Change Neon VLDn intrinsics to return multiple values instead of really | Bob Wilson | 2009-07-29 | 1 | -26/+26 | |
| | | | | | | | wide vectors. Likewise, change VSTn intrinsics to take separate arguments for each vector in a multi-vector struct. Adjust tests accordingly. llvm-svn: 77468 | |||||
* | more syntactic cleanups. | Chris Lattner | 2009-07-29 | 1 | -5/+8 | |
| | | | | llvm-svn: 77442 | |||||
* | minor smallvector cleanups | Chris Lattner | 2009-07-29 | 1 | -3/+3 | |
| | | | | llvm-svn: 77441 | |||||
* | whitespace cleanup. | Chris Lattner | 2009-07-29 | 1 | -6/+5 | |
| | | | | llvm-svn: 77438 | |||||
* | mingw uses .data and .text, not _data and _text. | Chris Lattner | 2009-07-29 | 1 | -2/+2 | |
| | | | | llvm-svn: 77435 | |||||
* | fix PR4584 with a trivial patch now that the pieces are in place. | Chris Lattner | 2009-07-29 | 1 | -3/+3 | |
| | | | | llvm-svn: 77434 | |||||
* | pass the mangler down into the various SectionForGlobal methods. | Chris Lattner | 2009-07-29 | 14 | -59/+56 | |
| | | | | | | No functionality change. llvm-svn: 77432 | |||||
* | constant prop a utostr. | Chris Lattner | 2009-07-29 | 1 | -2/+1 | |
| | | | | llvm-svn: 77430 | |||||
* | remove some completely wrong code. 1 is never < 16. It turns out that GCC ↵ | Chris Lattner | 2009-07-29 | 1 | -20/+10 | |
| | | | | | | appears to put strings of any length into the ELF cstring equivalent, so just rip out the code. llvm-svn: 77429 | |||||
* | Optimize Thumb2 jumptable to use tbb / tbh when all the offsets fit in byte ↵ | Evan Cheng | 2009-07-29 | 7 | -44/+204 | |
| | | | | | | / halfword. llvm-svn: 77422 | |||||
* | Fix comment. | Eric Christopher | 2009-07-29 | 1 | -2/+2 | |
| | | | | llvm-svn: 77415 | |||||
* | Change the "PreferredEHDataFormat" from "absptr" if we're on a Darwin system > | Bill Wendling | 2009-07-29 | 2 | -10/+18 | |
| | | | | | | Leopard. llvm-svn: 77414 | |||||
* | Add support for gcc __builtin_ia32_ptest{z,c,nzc} intrinsics. Lower | Eric Christopher | 2009-07-29 | 3 | -3/+46 | |
| | | | | | | to ptest instruction plus setcc. Revamp ptest instruction. Add test. llvm-svn: 77407 | |||||
* | Match X86 register names to number. | Daniel Dunbar | 2009-07-29 | 2 | -4/+27 | |
| | | | | llvm-svn: 77404 | |||||
* | Thumb-2: fix typo that caused incorrect stack elimination for VFP operations ↵ | David Goodwin | 2009-07-28 | 1 | -1/+1 | |
| | | | | | | and very large stack frames. llvm-svn: 77401 | |||||
* | Move X86 instruction parsing into X86/AsmParser. | Daniel Dunbar | 2009-07-28 | 1 | -23/+268 | |
| | | | | llvm-svn: 77384 | |||||
* | Output the correct format for Darwin. | Bill Wendling | 2009-07-28 | 1 | -5/+7 | |
| | | | | llvm-svn: 77376 | |||||
* | Darwin outputs (DW_EH_PE_pcrel | DW_EH_PE_indirect | DW_EH_PE_sdata4) when we're | Bill Wendling | 2009-07-28 | 1 | -2/+5 | |
| | | | | | | dealing with Data. llvm-svn: 77372 | |||||
* | Rename MDNode.h header. It defines MDnode and other metadata classes. | Devang Patel | 2009-07-28 | 7 | -7/+7 | |
| | | | | | | New name is Metadata.h. llvm-svn: 77370 | |||||
* | Return ConstantVector to 2.5 API. | Owen Anderson | 2009-07-28 | 2 | -7/+7 | |
| | | | | llvm-svn: 77366 | |||||
* | In thumb2 mode, add pc is unpredictable. Use add + mov pc instead (that is ↵ | Evan Cheng | 2009-07-28 | 5 | -18/+7 | |
| | | | | | | until more optimization goes in). llvm-svn: 77364 | |||||
* | Remove support for ORN to workaround <rdar://problem/7096522>. | David Goodwin | 2009-07-28 | 1 | -3/+5 | |
| | | | | llvm-svn: 77363 | |||||
* | Provide generic MCAsmParser when constructing target specific parsers. | Daniel Dunbar | 2009-07-28 | 1 | -6/+8 | |
| | | | | llvm-svn: 77362 | |||||
* | more simplifications and cleanup. :) | Chris Lattner | 2009-07-28 | 1 | -18/+17 | |
| | | | | llvm-svn: 77350 | |||||
* | Change ConstantArray to 2.5 API. | Owen Anderson | 2009-07-28 | 1 | -1/+1 | |
| | | | | llvm-svn: 77347 | |||||
* | Add workaround for <rdar://problem/7098328>. | David Goodwin | 2009-07-28 | 1 | -1/+2 | |
| | | | | llvm-svn: 77340 | |||||
* | Fix PR4639, a ELF-TLS regression from some of my refactoring. | Chris Lattner | 2009-07-28 | 1 | -1/+1 | |
| | | | | llvm-svn: 77336 | |||||
* | the apple "ld_classic" linker doesn't support .literal16 in 32-bit | Chris Lattner | 2009-07-28 | 4 | -8/+15 | |
| | | | | | | | mode, and "ld64" (the default linker) falls back to it in -static mode. llvm-svn: 77334 | |||||
* | Add Thumb-2 patterns for ARMsrl_flag and ARMsra_flag. | David Goodwin | 2009-07-28 | 1 | -1/+10 | |
| | | | | llvm-svn: 77329 | |||||
* | fix unused variable warning | Chris Lattner | 2009-07-28 | 1 | -1/+1 | |
| | | | | llvm-svn: 77326 | |||||
* | tADDrSPI doesn't have a predicate operand, but tADDhirr and tADDi3 have. | Evan Cheng | 2009-07-28 | 1 | -0/+5 | |
| | | | | llvm-svn: 77305 | |||||
* | Code clean up. No functionality changes. | Evan Cheng | 2009-07-28 | 1 | -21/+32 | |
| | | | | llvm-svn: 77301 | |||||
* | - More refactoring. This gets rid of all of the getOpcode calls. | Evan Cheng | 2009-07-28 | 16 | -566/+607 | |
| | | | | | | | | | | | - This change also makes it possible to switch between ARM / Thumb on a per-function basis. - Fixed thumb2 routine which expand reg + arbitrary immediate. It was using using ARM so_imm logic. - Use movw and movt to do reg + imm when profitable. - Other code clean ups and minor optimizations. llvm-svn: 77300 | |||||
* | fix a casting problem on the llvm-x86_64-linux tester | Chris Lattner | 2009-07-28 | 1 | -1/+1 | |
| | | | | llvm-svn: 77295 | |||||
* | Rip all of the global variable lowering logic out of TargetAsmInfo. Since | Chris Lattner | 2009-07-28 | 52 | -1230/+1409 | |
| | | | | | | | | | | | | | | | | | | | | it is highly specific to the object file that will be generated in the end, this introduces a new TargetLoweringObjectFile interface that is implemented for each of ELF/MachO/COFF/Alpha/PIC16 and XCore. Though still is still a brutal and ugly refactoring, this is a major step towards goodness. This patch also: 1. fixes a bunch of dangling pointer problems in the PIC16 backend. 2. disables the TargetLowering copy ctor which PIC16 was accidentally using. 3. gets us closer to xcore having its own crazy target section flags and pic16 not having to shadow sections with its own objects. 4. fixes wierdness where ELF targets would set CStringSection but not CStringSection_. Factor the code better. 5. fixes some bugs in string lowering on ELF targets. llvm-svn: 77294 | |||||
* | don't copy TargetLowering. | Chris Lattner | 2009-07-28 | 1 | -1/+1 | |
| | | | | llvm-svn: 77293 | |||||
* | ORN does not require (and can not have) the ".w" suffix. "Orthogonality" is ↵ | David Goodwin | 2009-07-27 | 1 | -7/+13 | |
| | | | | | | a dirty word at ARM. llvm-svn: 77275 | |||||
* | llvm-mc: Move AsmLexer::getCurStrVal to StringRef based API. | Daniel Dunbar | 2009-07-27 | 1 | -4/+4 | |
| | | | | | | - My DFS traversal of LLVM is, at least for now, nearly complete! :) llvm-svn: 77258 | |||||
* | hoist MCContext/MCStreamer up to AsmPrinter since we're going to start creating | Chris Lattner | 2009-07-27 | 2 | -30/+1 | |
| | | | | | | | MCSections soon instead of Section for all targets, and we need something to own them. llvm-svn: 77252 | |||||
* | Move ConstantFP construction back to the 2.5-ish API. | Owen Anderson | 2009-07-27 | 1 | -18/+18 | |
| | | | | llvm-svn: 77247 | |||||
* | Remove TPat. No patterns depend on just isThumb(). Must use either T1Pat ↵ | David Goodwin | 2009-07-27 | 2 | -30/+26 | |
| | | | | | | (isThumb1Only()) or T2Pat (is Thumb2). llvm-svn: 77242 | |||||
* | Sink getSectionPrefixForUniqueGlobal down into the TAI | Chris Lattner | 2009-07-27 | 3 | -111/+148 | |
| | | | | | | implementations that need it, rearrange ELFTAI. llvm-svn: 77236 | |||||
* | remove dead code. | Chris Lattner | 2009-07-27 | 2 | -6/+3 | |
| | | | | llvm-svn: 77233 | |||||
* | More DCE. | Evan Cheng | 2009-07-27 | 4 | -17/+1 | |
| | | | | llvm-svn: 77231 | |||||
* | convertToThreeAddress can't handle Thumb2 instructions (which don't have ↵ | Evan Cheng | 2009-07-27 | 1 | -10/+7 | |
| | | | | | | same address mode as ARM instructions). llvm-svn: 77230 |