search for: 218168

Displaying 5 results from an estimated 5 matches for "218168".

Did you mean: 21816
2016 May 12
3
Why LR is saved before calling a 'noreturn' function ?
Dear all, I don't get how llvm handles functions with __attribute__((noreturn)). It seems that LR register is backed up on the stack whilst it will never be used to return from a 'noreturn' function. I have this problem with a home-made backend but it seems that ARM flavour of clang has same behaviour. By the way, SP is also saved, I don't understand why. Is there a syntax error
2015 Jun 29
2
[LLVMdev] Hwo to guess PC-relative offset
Dear LLVM crew, I have been writing a new LLVM backend with a very simple instruction set. moving a constant value to a register is selected as a load of the constant, with a PC-relative positive offset. Thus, the constant should be stored in .text section, after the load instruction, and offset should be computed at compile time (not link time). I struggle to find out : - how llvm handle
2015 Jun 30
2
[LLVMdev] Hwo to guess PC-relative offset
> De : Joerg Sonnenberger [mailto:joerg at britannica.bec.de] > > Well, MCFixup is what a relocation is represented as internally. They get > resolved to a fixed value and replaced, if evaluateAsAbsolute is true. > Hi Joerg, Actually it fails to get resolved to a fixed value. When I compile to .o then objdump it I can see that a symbol holding the constant value was created in
2015 Jun 29
2
[LLVMdev] Hwo to guess PC-relative offset
> De : Joerg Sonnenberger [mailto:joerg at britannica.bec.de] > > The basic idea is to still create a relocation on the MC level, but fix it up later. > You didn't say if your ISA is fixed or variable length, the former, can simplify > this quite bit. The constant island pass generally tries to address two issues: > (1) Merging of identical constants. > (2) Splitting the
2012 Nov 28
2
[LLVMdev] MIPs backend generates wrong reloc info for static data
Hi all, I use llvm-clang with a MIPS target, and it seems that the backend generates wrong reloc info. I attach a very simple test case. * Compile test.c with 'clang -internal-as -g' * use mips-elf-objdump -S to get the generate assembly code (see test.lst) * use mips-elf-readelf -a to look for relocation info (see test.readelf) All relocations for static data are 0000 ?! I did not