Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | [Sparc] Implements exception handling in SPARC with DwarfCFI. | Venkatraman Govindaraju | 2013-09-26 | 3 | -4/+23 | |
| | | | | llvm-svn: 191432 | |||||
* | [Sparc] Use correct instruction pattern for CMPri. | Venkatraman Govindaraju | 2013-09-22 | 1 | -1/+1 | |
| | | | | llvm-svn: 191180 | |||||
* | [Sparc] Make SPARC instructions' encoding well defined such that TableGen ↵ | Venkatraman Govindaraju | 2013-09-22 | 4 | -39/+70 | |
| | | | | | | can automatically generate code emitter. llvm-svn: 191168 | |||||
* | [Sparc] Clean up MOVcc instructions so that TableGen can encode them ↵ | Venkatraman Govindaraju | 2013-09-22 | 2 | -29/+105 | |
| | | | | | | correctly. No functionality change intended. llvm-svn: 191167 | |||||
* | [Sparc] Clean up branch instructions, so that TableGen can encode branch ↵ | Venkatraman Govindaraju | 2013-09-22 | 3 | -23/+26 | |
| | | | | | | conditions as well. No functionality change intended. llvm-svn: 191166 | |||||
* | ISelDAG: spot chain cycles involving MachineNodes | Tim Northover | 2013-09-22 | 1 | -1/+3 | |
| | | | | | | | | | | | | | | | | | Previously, the DAGISel function WalkChainUsers was spotting that it had entered already-selected territory by whether a node was a MachineNode (amongst other things). Since it's fairly common practice to insert MachineNodes during ISelLowering, this was not the correct check. Looking around, it seems that other nodes get their NodeId set to -1 upon selection, so this makes sure the same thing happens to all MachineNodes and uses that characteristic to determine whether we should stop looking for a loop during selection. This should fix PR15840. llvm-svn: 191165 | |||||
* | [Sparc] Add support for TLS in sparc. | Venkatraman Govindaraju | 2013-09-22 | 7 | -10/+238 | |
| | | | | llvm-svn: 191164 | |||||
* | [SPARC] Make functions with GLOBAL_OFFSET_TABLE access as non-leaf functions. | Venkatraman Govindaraju | 2013-09-22 | 1 | -0/+4 | |
| | | | | llvm-svn: 191160 | |||||
* | [Sparc] Emit .register directive to declare the use of global registers %g2, ↵ | Venkatraman Govindaraju | 2013-09-22 | 1 | -0/+26 | |
| | | | | | | %g4, %g6 and %g7. llvm-svn: 191158 | |||||
* | [Sparc] Fix lowering FABS on fp128 (long double) on pre-v9 targets. | Venkatraman Govindaraju | 2013-09-21 | 1 | -6/+6 | |
| | | | | llvm-svn: 191154 | |||||
* | [Sparc] Correctly handle call to functions with ReturnsTwice attribute. | Venkatraman Govindaraju | 2013-09-05 | 4 | -4/+46 | |
| | | | | | | | | | | | | In sparc, setjmp stores only the registers %fp, %sp, %i7 and %o7. longjmp restores the stack, and the callee-saved registers (all local/in registers: %i0-%i7, %l0-%l7) using the stored %fp and register windows. However, this does not guarantee that the longjmp will restore the registers, as they were when the setjmp was called. This is because these registers may be clobbered after returning from setjmp, but before calling longjmp. This patch prevents the registers %i0-%i5, %l0-l7 to live across the setjmp call using the register mask. llvm-svn: 190033 | |||||
* | [Sparc] Fix an assertion failure while lowering fcmp on long double. | Venkatraman Govindaraju | 2013-09-04 | 1 | -1/+1 | |
| | | | | | | | This assertion is triggered because an integer constant is created with wrong type. llvm-svn: 189948 | |||||
* | [Sparc] Add support for soft long double (fp128). | Venkatraman Govindaraju | 2013-09-03 | 3 | -18/+422 | |
| | | | | llvm-svn: 189780 | |||||
* | [Sparc] Implement spill and load for long double(f128) registers. | Venkatraman Govindaraju | 2013-09-02 | 2 | -36/+123 | |
| | | | | llvm-svn: 189768 | |||||
* | [Sparc] Add long double (f128) instructions to sparc backend. | Venkatraman Govindaraju | 2013-08-25 | 5 | -1/+250 | |
| | | | | llvm-svn: 189198 | |||||
* | [Sparc] Added V9's extra floating point registers and their aliases. | Venkatraman Govindaraju | 2013-08-25 | 2 | -1/+58 | |
| | | | | llvm-svn: 189195 | |||||
* | Use register masks on SPARC call instructions. | Jakob Stoklund Olesen | 2013-08-23 | 2 | -4/+14 | |
| | | | | llvm-svn: 189085 | |||||
* | Add an OtherPreserved field to the CalleeSaved TableGen class. | Jakob Stoklund Olesen | 2013-08-23 | 3 | -2/+13 | |
| | | | | | | | | | | This field specifies registers that are preserved across function calls, but that should not be included in the generates SaveList array. This can be used ot generate regmasks for architectures that save registers through other means, like SPARC's register windows. llvm-svn: 189084 | |||||
* | [Sparc] Use HWEncoding instead of unused Num field in Sparc register ↵ | Venkatraman Govindaraju | 2013-08-20 | 2 | -12/+9 | |
| | | | | | | definitions. Also, correct the definitions of RETL and RET instructions. llvm-svn: 188738 | |||||
* | [Sparc] Enable xword directive in sparcv9. | Venkatraman Govindaraju | 2013-08-10 | 1 | -3/+6 | |
| | | | | llvm-svn: 188141 | |||||
* | Target/*/CMakeLists.txt: Add the dependency to CommonTableGen explicitly for ↵ | NAKAMURA Takumi | 2013-08-06 | 1 | -1/+1 | |
| | | | | | | | | | each corresponding CodeGen. Without explicit dependencies, both per-file action and in-CommonTableGen action could run in parallel. It races to emit *.inc files simultaneously. llvm-svn: 187780 | |||||
* | [Sparc] Rewrite MBB's live-in registers for leaf functions. Also, add | Venkatraman Govindaraju | 2013-07-30 | 2 | -7/+20 | |
| | | | | | | | | register i7 as a live-in if current function's return address is taken. This revision fixes PR16269. llvm-svn: 187433 | |||||
* | [Sparc] Use call's debugloc for the unimp instruction. | Venkatraman Govindaraju | 2013-07-30 | 1 | -1/+1 | |
| | | | | llvm-svn: 187402 | |||||
* | Use SmallVectorImpl& instead of SmallVector to avoid repeating small vector ↵ | Craig Topper | 2013-07-14 | 1 | -3/+3 | |
| | | | | | | size. llvm-svn: 186274 | |||||
* | [Sparc]: Add memory operands for the frame references in the storeRegToStackSlot | Venkatraman Govindaraju | 2013-06-26 | 1 | -8/+30 | |
| | | | | | | and loadRegFromStackSlot. llvm-svn: 184935 | |||||
* | The getRegForInlineAsmConstraint function should only accept MVT value types. | Chad Rosier | 2013-06-22 | 2 | -2/+2 | |
| | | | | llvm-svn: 184642 | |||||
* | Access the TargetLoweringInfo from the TargetMachine object instead of ↵ | Bill Wendling | 2013-06-19 | 1 | -5/+7 | |
| | | | | | | caching it. The TLI may change between functions. No functionality change. llvm-svn: 184360 | |||||
* | DebugInfo: remove target-specific Frame Index handling for DBG_VALUE ↵ | David Blaikie | 2013-06-16 | 3 | -31/+0 | |
| | | | | | | | | | | MachineInstrs Frame index handling is now target-agnostic, so delete the target hooks for creation & asm printing of target-specific addressing in DBG_VALUEs and any related functions. llvm-svn: 184067 | |||||
* | [Sparc] Delete FPMover Pass and remove Fp* Pseudo-instructions from Sparc ↵ | Venkatraman Govindaraju | 2013-06-08 | 7 | -162/+61 | |
| | | | | | | backend. llvm-svn: 183613 | |||||
* | Remember the anyext patterns. | Jakob Stoklund Olesen | 2013-06-07 | 1 | -0/+2 | |
| | | | | llvm-svn: 183589 | |||||
* | Add missing zextloadi1 to i64 patterns. PR16721. | Jakob Stoklund Olesen | 2013-06-07 | 1 | -0/+3 | |
| | | | | llvm-svn: 183587 | |||||
* | Don't cache the instruction and register info from the TargetMachine, because | Bill Wendling | 2013-06-07 | 4 | -9/+10 | |
| | | | | | | | | the internals of TargetMachine could change. No functionality change intended. llvm-svn: 183565 | |||||
* | Fix a typo in asm string of BP* family of instructions. With this fix | Roman Divacky | 2013-06-07 | 1 | -1/+1 | |
| | | | | | | I am able to compile/assemble/link/run /bin/echo from FreeBSD. llvm-svn: 183537 | |||||
* | [Sparc]: Use cmp instruction instead of subcc to compare integers. | Venkatraman Govindaraju | 2013-06-07 | 3 | -17/+19 | |
| | | | | llvm-svn: 183463 | |||||
* | Cache the TargetLowering info object as a pointer. | Bill Wendling | 2013-06-06 | 1 | -4/+4 | |
| | | | | | | | Caching it as a pointer allows us to reset it if the TargetMachine object changes. llvm-svn: 183361 | |||||
* | Sparc: No functionality change. Cleanup whitespaces, comment formatting etc., | Venkatraman Govindaraju | 2013-06-04 | 19 | -154/+157 | |
| | | | | llvm-svn: 183243 | |||||
* | Sparc: Add support for indirect branch and blockaddress in Sparc backend. | Venkatraman Govindaraju | 2013-06-03 | 4 | -0/+37 | |
| | | | | llvm-svn: 183094 | |||||
* | Sparc: When storing 0, use %g0 directly in the store instruction instead of | Venkatraman Govindaraju | 2013-06-03 | 2 | -0/+8 | |
| | | | | | | using two instructions (sethi and store). llvm-svn: 183090 | |||||
* | Sparc: Combine add/or/sethi instruction with restore if possible. | Venkatraman Govindaraju | 2013-06-02 | 1 | -22/+177 | |
| | | | | llvm-svn: 183088 | |||||
* | Sparc: Perform leaf procedure optimization by default | Venkatraman Govindaraju | 2013-06-02 | 1 | -1/+1 | |
| | | | | llvm-svn: 183083 | |||||
* | Sparc: Mark functions calling llvm.vastart and llvm.returnaddress intrinsics ↵ | Venkatraman Govindaraju | 2013-06-01 | 1 | -0/+6 | |
| | | | | | | as non-leaf functions. llvm-svn: 183079 | |||||
* | [Sparc] Generate correct code for leaf functions with stack objects | Venkatraman Govindaraju | 2013-06-01 | 4 | -30/+79 | |
| | | | | llvm-svn: 183067 | |||||
* | Make SubRegIndex size mandatory, following r183020. | Ahmed Bougacha | 2013-05-31 | 1 | -2/+2 | |
| | | | | | | | This also makes TableGen able to compute sizes/offsets of synthesized indices representing tuples. llvm-svn: 183061 | |||||
* | Order CALLSEQ_START and CALLSEQ_END nodes. | Andrew Trick | 2013-05-29 | 1 | -4/+6 | |
| | | | | | | | | | | | | Fixes PR16146: gdb.base__call-ar-st.exp fails after pre-RA-sched=source fixes. Patch by Xiaoyi Guo! This also fixes an unsupported dbg.value test case. Codegen was previously incorrect but the test was passing by luck. llvm-svn: 182885 | |||||
* | SparcFrameLowering.cpp: Mark verifyLeafProcRegUse() as UNUSED. ↵ | NAKAMURA Takumi | 2013-05-29 | 1 | -1/+1 | |
| | | | | | | [-Wunused-function] llvm-svn: 182850 | |||||
* | [Sparc] Add support for leaf functions in sparc backend. | Venkatraman Govindaraju | 2013-05-29 | 6 | -28/+123 | |
| | | | | llvm-svn: 182822 | |||||
* | Track IR ordering of SelectionDAG nodes 2/4. | Andrew Trick | 2013-05-25 | 3 | -28/+28 | |
| | | | | | | | Change SelectionDAG::getXXXNode() interfaces as well as call sites of these functions to pass in SDLoc instead of DebugLoc. llvm-svn: 182703 | |||||
* | Also expand 64-bit bitcasts. | Jakob Stoklund Olesen | 2013-05-20 | 1 | -0/+2 | |
| | | | | llvm-svn: 182229 | |||||
* | Implement spill and fill of I64Regs. | Jakob Stoklund Olesen | 2013-05-20 | 1 | -2/+9 | |
| | | | | llvm-svn: 182228 | |||||
* | Mark i64 SETCC as expand so it is turned into a SELECT_CC. | Jakob Stoklund Olesen | 2013-05-20 | 1 | -0/+2 | |
| | | | | llvm-svn: 182227 |