| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
| |
that would require > 3 instructions to materialize), load the immediate from a
constpool entry.
llvm-svn: 33667
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
.set PCRELV0, (LJTI1_0_0-(LPCRELL0+4))
LPCRELL0:
add r1, pc, #PCRELV0
This is not legal since add r1, pc, #c requires the constant be a multiple of 4.
Do the following instead:
.set PCRELV0, (LJTI1_0_0-(LPCRELL0+4))
LPCRELL0:
mov r1, #PCRELV0
add r1, pc
- In thumb mode, it's not possible to use .set generate a pc relative stub
address. The stub is ARM code which is in a different section from the thumb
code. Load the value from a constpool instead.
- Some asm printing clean up.
llvm-svn: 33664
|
| |
|
|
|
|
| |
confusion with external linkage types.
llvm-svn: 33663
|
| |
|
|
| |
llvm-svn: 33658
|
| |
|
|
|
|
| |
.destructor sections.
llvm-svn: 33657
|
| |
|
|
| |
llvm-svn: 33656
|
| |
|
|
|
|
| |
sp, imm instructions implicitly multiply the offset by 4.
llvm-svn: 33653
|
| |
|
|
| |
llvm-svn: 33652
|
| |
|
|
|
|
|
| |
instructions that use these address modes to instructions that use
t_addrmode_sp.
llvm-svn: 33651
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
spilled (if it is not already).
- If LR is spilled, use BL to implement far jumps. LR is not used as a GPR
in thumb mode so it can be clobbered if it is properly spilled / restored
in prologue / epilogue.
- If LR is force spilled but no far jump has been emitted, try undo'ing the
spill by:
push lr -> delete
pop pc -> bx lr
llvm-svn: 33650
|
| |
|
|
| |
llvm-svn: 33649
|
| |
|
|
| |
llvm-svn: 33644
|
| |
|
|
| |
llvm-svn: 33639
|
| |
|
|
|
|
| |
address nodes.
llvm-svn: 33636
|
| |
|
|
|
|
| |
regs.
llvm-svn: 33635
|
| |
|
|
| |
llvm-svn: 33634
|
| |
|
|
| |
llvm-svn: 33633
|
| |
|
|
| |
llvm-svn: 33632
|
| |
|
|
|
|
| |
for "inreg" calls
llvm-svn: 33631
|
| |
|
|
| |
llvm-svn: 33630
|
| |
|
|
| |
llvm-svn: 33628
|
| |
|
|
| |
llvm-svn: 33622
|
| |
|
|
| |
llvm-svn: 33619
|
| |
|
|
|
|
| |
What compiler are people using that accepts this code?
llvm-svn: 33603
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. New parameter attribute called 'inreg'. It has meaning "place this
parameter in registers, if possible". This is some generalization of
gcc's regparm(n) attribute. It's currently used only in X86-32 backend.
2. Completely rewritten CC handling/lowering code inside X86 backend.
Merged stdcall + c CCs and fastcall + fast CC.
3. Dropped CSRET CC. We cannot add struct return variant for each
target-specific CC (e.g. stdcall + csretcc and so on).
4. Instead of CSRET CC introduced 'sret' parameter attribute. Setting in
on first attribute has meaning 'This is hidden pointer to structure
return. Handle it gently'.
5. Fixed small bug in llvm-extract + add new feature to
FunctionExtraction pass, which relinks all internal-linkaged callees
from deleted function to external linkage. This will allow further
linking everything together.
NOTEs: 1. Documentation will be updated soon.
2. llvm-upgrade should be improved to translate csret => sret.
Before this, there will be some unexpected test fails.
llvm-svn: 33597
|
| |
|
|
| |
llvm-svn: 33585
|
| |
|
|
| |
llvm-svn: 33574
|
| |
|
|
| |
llvm-svn: 33571
|
| |
|
|
| |
llvm-svn: 33569
|
| |
|
|
| |
llvm-svn: 33568
|
| |
|
|
| |
llvm-svn: 33562
|
| |
|
|
|
|
| |
Now we can compile llvm-gcc on arm-linux-gnueabi!
llvm-svn: 33558
|
| |
|
|
| |
llvm-svn: 33556
|
| |
|
|
|
|
| |
scattered relocations.
llvm-svn: 33555
|
| |
|
|
| |
llvm-svn: 33551
|
| |
|
|
|
|
| |
for debugging and exception handling.
llvm-svn: 33550
|
| |
|
|
| |
llvm-svn: 33549
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
unconditional branch following it. Simply invert the condition and swap
destinations if the conditional branch can reach the destination of the
unconditional branch:
beq L1
b L2
=>
bne L2
b L1
llvm-svn: 33548
|
| |
|
|
| |
llvm-svn: 33543
|
| |
|
|
| |
llvm-svn: 33542
|
| |
|
|
| |
llvm-svn: 33537
|
| |
|
|
|
|
|
| |
The Module::setEndianness and Module::setPointerSize methods have been
removed. Instead you can get/set the DataLayout. Adjust thise accordingly.
llvm-svn: 33530
|
| |
|
|
|
|
|
| |
Remove the Function::renameLocalSymbols function as it is no longer
needed.
llvm-svn: 33522
|
| |
|
|
|
|
|
| |
is unnecessary when we are fixing up a conditional branch since we will be
adding a unconditional branch to the destination of the original branch.
llvm-svn: 33517
|
| |
|
|
| |
llvm-svn: 33515
|
| |
|
|
| |
llvm-svn: 33512
|
| |
|
|
| |
llvm-svn: 33510
|
| |
|
|
| |
llvm-svn: 33509
|
| |
|
|
| |
llvm-svn: 33508
|
| |
|
|
|
|
|
| |
- Do not round up to max. alignment of stack object if it is > stack alignment.
It will have to be handled with dynamic aligning code.
llvm-svn: 33505
|