Displaying 8 results from an estimated 8 matches for "newfuncroot".
2008 Nov 17
1
[LLVMdev] Question about ExtractLoop
...xtractLoop is applied to the loop (containing bb), it will generate an
additional function as follows.
--------------------------------------------------------------------------------------------------------------------------------
define internal void @walk_bb(%struct.node2* %list2, i32* %.out) {
newFuncRoot:
br label %bb
bb2.exitStub: ; preds = %bb
ret void
bb: ; preds = %bb, %newFuncRoot
%list2_addr.05 = phi %struct.node2* [ %list2, %newFuncRoot ], [ %4,
%bb ] ; <%struct.node2*> [#uses=2]
%sum.04 = phi i32 [ 0, %newFuncRoot ]...
2017 Nov 29
4
CodeExtractor buggy?
...ct.S* [ %0, %2 ], [ %.ph, %.loopexit ]
%7 = getelementptr inbounds %struct.S, %struct.S* %6, i64 0, i32 1
%8 = load i32, i32* %7, align 4, !tbaa !2
ret i32 %8
}
; Function Attrs: nounwind uwtable
define internal void @foo_(%struct.S*, i32, %struct.S** %.out, %struct.S** %.out1) #1 {
newFuncRoot:
br label %2
.loopexit.exitStub: ; preds = %11, %2
store %struct.S* %4, %struct.S** %.out
store %struct.S* %6, %struct.S** %.out1
ret void
; <label>:2: ; preds = %newFuncRoot, %11
%3 = phi i32 [ %10, %11...
2013 Oct 25
3
[LLVMdev] Question About Function Cloning
...%0 = load i32* %val, align 4
%call3 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds
([11 x i8]* @.str1, i32 0, i32 0), i32 %0)
ret i32 1
}
declare i32 @printf(i8*, ...) #1
; Function Attrs: nounwind
define internal void @main_for.cond(i32* %i1, i32* %num_iter, i32* %val) #2 {
newFuncRoot:
br label %for.cond
for.end.exitStub: ; preds = %for.cond
ret void
for.cond: ; preds = %for.inc,
%newFuncRoot
%0 = load i32* %i1, align 4
%1 = load i32* %num_iter, align 4
%cmp = icmp slt i32 %0, %1
br i1...
2012 Nov 14
0
[LLVMdev] CodeExtractor doesn't work with debugging metadata
...l i32 @Foo(), !dbg !14
store i32 %call, i32* %a, align 4, !dbg !14
After Extraction
define i32 @Fn() nounwind {
entry:
%a = alloca i32, align 4
...
call void @extractedFn(i32* %a)
define internal void @extractedFn(i32* %a) noinline {
newFuncRoot:
call void @llvm.dbg.declare(metadata !{i32* %a}, metadata !19), !dbg !14 ;; metadata now references variable not allocated in this function
%call = call i32 @Foo(), !dbg !14
store i32 %call, i32* %a, align 4, !dbg !14
Thanks,
Stuart Rudderham
2010 May 13
1
[LLVMdev] Attention: About to Break SystemZ and possibly other Back Ends
...ile "/Volumes/Sandbox/llvm/llvm.src/test/CodeGen/SystemZ/2009-07-10-BadIncomingArgOffset.ll"
.text
.globl mp_mul_radix_test_bb3
.align 2
.type mp_mul_radix_test_bb3, at function
mp_mul_radix_test_bb3: # @mp_mul_radix_test_bb3
# BB#0: # %newFuncRoot
stmg %r6, %r15, 48(%r15)
aghi %r15, -160
# kill: R3W<def> R3D<kill>
lr %r12, %r2
lg %r11, 328(%r15)
lg %r1, 320(%r15)
lgr %r10, %r4
lgfr %r9, %r3
lghi %r3, -1
lgr %r2, %r9
lgr %r4, %r1
brasl %r14, rdft
lgfr %r2, %r12
lgr %r3, %r9
lgr...
2020 Aug 05
10
[RFC] Machine Function Splitter - Split out cold blocks from machine functions using profile data
...unc_end0-foo
# -- End function
.p2align 4, 0x90 # -- Begin function
foo.cold.1
.type foo.cold.1, at function
foo.cold.1: # @foo.cold.1
# %bb.0: # %newFuncRoot
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
callq R1
incl %ebp
movl %ebp, (%rbx)
addq $8, %rsp
popq %rbx
popq %rbp
retq
.Lfunc_end1:...
2020 Aug 10
2
[RFC] Machine Function Splitter - Split out cold blocks from machine functions using profile data
...unc_end0-foo
# -- End function
.p2align 4, 0x90 # -- Begin function foo.cold.1
.type foo.cold.1, at function
foo.cold.1: # @foo.cold.1
# %bb.0: # %newFuncRoot
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
callq R1
incl %ebp
movl %ebp, (%rbx)
addq $8, %rsp
popq %rbx
popq %rbp
retq
.Lfunc_end1:...
2020 Aug 05
3
[RFC] Machine Function Splitter - Split out cold blocks from machine functions using profile data
...gt;
>> .p2align 4, 0x90 # -- Begin
>> function foo.cold.1
>>
>> .type foo.cold.1, at function
>>
>> foo.cold.1: # @foo.cold.1
>>
>> # %bb.0: # %newFuncRoot
>>
>> pushq %rbp
>>
>> pushq %rbx
>>
>> pushq %rax
>>
>> movq %rsi, %rbx
>>
>> movl %edi, %ebp
>>
>> callq R1
>>
>> incl %ebp
>>
>>...