Displaying 6 results from an estimated 6 matches for "uses_anonymous_args".
2007 Apr 11
2
[LLVMdev] ideas for TLS implementation
...;awT",%progbits <== special section for
tls symbols
.align 2
.type a, %object
.size a, 4
a:
.word 1
.text
.align 2
.global f
.type f, %function
f:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
str lr, [sp, #-4]!
ldr r3, .L2
bl __aeabi_read_tp @ load_tp_soft <== get thread pointer
(abi dependent)
ldr r0, [r0, r3]
ldr pc, [sp], #4
.L3:
.align 2
.L2:
.word a(tpoff) <== offset of "a"...
2018 Apr 10
1
How to get the case value from Machine Instruction
...e value form the MI?
For the case in https://bugs.llvm.org/show_bug.cgi?id=34902.
as follows.
#############################
* GCC v7.1 generated assembly
#############################
** Options: -Os -marm -march=armv7-a
foo:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
sub r0, r0, #15
push {r4, lr}
cmp r0, #5
ldrls pc, [pc, r0, asl #2]
b .L1
.L4:
.word .L3
.word .L5
.word .L6
.word .L7
.word .L8
.word .L9
.L3:
mov r0, #5
b...
2007 Apr 11
0
[LLVMdev] ideas for TLS implementation
...> .align 2
> .type a, %object
> .size a, 4
> a:
> .word 1
> .text
> .align 2
> .global f
> .type f, %function
> f:
> @ args = 0, pretend = 0, frame = 0
> @ frame_needed = 0, uses_anonymous_args = 0
> str lr, [sp, #-4]!
> ldr r3, .L2
> bl __aeabi_read_tp @ load_tp_soft <== get thread pointer
> (abi dependent)
> ldr r0, [r0, r3]
> ldr pc, [sp], #4
> .L3:
> .align 2
> .L2:
> .word...
2018 Apr 09
0
How to get the case value from Machine Instruction
Some glitch in the emailer? I have received this message 3 times in a row!?
I think that by the time it gets as far as MI-level there is no reversible
method of determining the 'case' label at all. The reason I say this, is
that I have often seen optimisations that coalesce groups of values into
interesting logical tests and jump-tables are completely avoided. For
example, a simple
2013 Feb 04
2
[LLVMdev] ARM c++ exceptions handling not working with clang/llvm-3.2?
...rodata
.align 2
.LC0:
.ascii "Exception Nr %d occurred\012\000"
.text
.align 2
.global main
.type main, %function
main:
.fnstart
.LFB6:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
stmfd sp!, {fp, lr}
.save {fp, lr}
.setfp fp, sp, #4
add fp, sp, #4
.pad #8
sub sp, sp, #8
mov r0, #4
bl __cxa_allocate_exception
mov r3, r0
mov r2, #20
str r2, [r3, #0]
mov r0, r3
ldr r1, .L9
mo...
2018 Apr 09
2
How to get the case value from Machine Instruction
Hi, guys
I am interesting about how to get the switch case value form the Machine Instruction.
I know the switch will be converted to jump-table in the Machine Instruction.
And in the phase CodeGen , the case-value of SwitchInst can get esasly.
but it seems no case -value in Machine Instruction.
The MI as follows:
Frame Objects:
fi#0: size=1, align=0, at location [SP]
fi#1: size=4,