summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
Commit message (Collapse)AuthorAgeFilesLines
...
* Make sure Thumb2 uses the right call instructions.Evan Cheng2009-07-293-19/+80
| | | | llvm-svn: 77507
* 1. Introduce a new TargetOperandInfo::getRegClass() helper methodChris Lattner2009-07-292-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 Lattner2009-07-2910-24/+25
| | | | | | support multiple different pointer register classes. llvm-svn: 77501
* - Fix an obvious copy and paste error.Evan Cheng2009-07-293-6/+7
| | | | | | - Darwin Thumb2 call clobbers r9. llvm-svn: 77500
* Add llvm_unreachable for ... unreachable code!Eric Christopher2009-07-291-1/+1
| | | | llvm-svn: 77480
* Change Neon VLDn intrinsics to return multiple values instead of reallyBob Wilson2009-07-291-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 Lattner2009-07-291-5/+8
| | | | llvm-svn: 77442
* minor smallvector cleanupsChris Lattner2009-07-291-3/+3
| | | | llvm-svn: 77441
* whitespace cleanup.Chris Lattner2009-07-291-6/+5
| | | | llvm-svn: 77438
* mingw uses .data and .text, not _data and _text.Chris Lattner2009-07-291-2/+2
| | | | llvm-svn: 77435
* fix PR4584 with a trivial patch now that the pieces are in place.Chris Lattner2009-07-291-3/+3
| | | | llvm-svn: 77434
* pass the mangler down into the various SectionForGlobal methods.Chris Lattner2009-07-2914-59/+56
| | | | | | No functionality change. llvm-svn: 77432
* constant prop a utostr.Chris Lattner2009-07-291-2/+1
| | | | llvm-svn: 77430
* remove some completely wrong code. 1 is never < 16. It turns out that GCC ↵Chris Lattner2009-07-291-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 Cheng2009-07-297-44/+204
| | | | | | / halfword. llvm-svn: 77422
* Fix comment.Eric Christopher2009-07-291-2/+2
| | | | llvm-svn: 77415
* Change the "PreferredEHDataFormat" from "absptr" if we're on a Darwin system >Bill Wendling2009-07-292-10/+18
| | | | | | Leopard. llvm-svn: 77414
* Add support for gcc __builtin_ia32_ptest{z,c,nzc} intrinsics. LowerEric Christopher2009-07-293-3/+46
| | | | | | to ptest instruction plus setcc. Revamp ptest instruction. Add test. llvm-svn: 77407
* Match X86 register names to number.Daniel Dunbar2009-07-292-4/+27
| | | | llvm-svn: 77404
* Thumb-2: fix typo that caused incorrect stack elimination for VFP operations ↵David Goodwin2009-07-281-1/+1
| | | | | | and very large stack frames. llvm-svn: 77401
* Move X86 instruction parsing into X86/AsmParser.Daniel Dunbar2009-07-281-23/+268
| | | | llvm-svn: 77384
* Output the correct format for Darwin.Bill Wendling2009-07-281-5/+7
| | | | llvm-svn: 77376
* Darwin outputs (DW_EH_PE_pcrel | DW_EH_PE_indirect | DW_EH_PE_sdata4) when we'reBill Wendling2009-07-281-2/+5
| | | | | | dealing with Data. llvm-svn: 77372
* Rename MDNode.h header. It defines MDnode and other metadata classes.Devang Patel2009-07-287-7/+7
| | | | | | New name is Metadata.h. llvm-svn: 77370
* Return ConstantVector to 2.5 API.Owen Anderson2009-07-282-7/+7
| | | | llvm-svn: 77366
* In thumb2 mode, add pc is unpredictable. Use add + mov pc instead (that is ↵Evan Cheng2009-07-285-18/+7
| | | | | | until more optimization goes in). llvm-svn: 77364
* Remove support for ORN to workaround <rdar://problem/7096522>.David Goodwin2009-07-281-3/+5
| | | | llvm-svn: 77363
* Provide generic MCAsmParser when constructing target specific parsers.Daniel Dunbar2009-07-281-6/+8
| | | | llvm-svn: 77362
* more simplifications and cleanup. :)Chris Lattner2009-07-281-18/+17
| | | | llvm-svn: 77350
* Change ConstantArray to 2.5 API.Owen Anderson2009-07-281-1/+1
| | | | llvm-svn: 77347
* Add workaround for <rdar://problem/7098328>.David Goodwin2009-07-281-1/+2
| | | | llvm-svn: 77340
* Fix PR4639, a ELF-TLS regression from some of my refactoring.Chris Lattner2009-07-281-1/+1
| | | | llvm-svn: 77336
* the apple "ld_classic" linker doesn't support .literal16 in 32-bitChris Lattner2009-07-284-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 Goodwin2009-07-281-1/+10
| | | | llvm-svn: 77329
* fix unused variable warningChris Lattner2009-07-281-1/+1
| | | | llvm-svn: 77326
* tADDrSPI doesn't have a predicate operand, but tADDhirr and tADDi3 have.Evan Cheng2009-07-281-0/+5
| | | | llvm-svn: 77305
* Code clean up. No functionality changes.Evan Cheng2009-07-281-21/+32
| | | | llvm-svn: 77301
* - More refactoring. This gets rid of all of the getOpcode calls.Evan Cheng2009-07-2816-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 testerChris Lattner2009-07-281-1/+1
| | | | llvm-svn: 77295
* Rip all of the global variable lowering logic out of TargetAsmInfo. SinceChris Lattner2009-07-2852-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 Lattner2009-07-281-1/+1
| | | | llvm-svn: 77293
* ORN does not require (and can not have) the ".w" suffix. "Orthogonality" is ↵David Goodwin2009-07-271-7/+13
| | | | | | a dirty word at ARM. llvm-svn: 77275
* llvm-mc: Move AsmLexer::getCurStrVal to StringRef based API.Daniel Dunbar2009-07-271-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 creatingChris Lattner2009-07-272-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 Anderson2009-07-271-18/+18
| | | | llvm-svn: 77247
* Remove TPat. No patterns depend on just isThumb(). Must use either T1Pat ↵David Goodwin2009-07-272-30/+26
| | | | | | (isThumb1Only()) or T2Pat (is Thumb2). llvm-svn: 77242
* Sink getSectionPrefixForUniqueGlobal down into the TAI Chris Lattner2009-07-273-111/+148
| | | | | | implementations that need it, rearrange ELFTAI. llvm-svn: 77236
* remove dead code.Chris Lattner2009-07-272-6/+3
| | | | llvm-svn: 77233
* More DCE.Evan Cheng2009-07-274-17/+1
| | | | llvm-svn: 77231
* convertToThreeAddress can't handle Thumb2 instructions (which don't have ↵Evan Cheng2009-07-271-10/+7
| | | | | | same address mode as ARM instructions). llvm-svn: 77230
OpenPOWER on IntegriCloud