search for: _z4testi

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

Did you mean: _z4testv
2014 Nov 04
10
[LLVMdev] lifetime.start/end clarification
...void doSomething(); char b[33]; }; void bar(X &); void baz(); void test(int i) { if (i==9) { X x; x.doSomething(); label: bar(x); } else { baz(); if (i==0) goto label; } } Produces: %struct.X = type { [33 x i8] } define void @_Z4testi(i32 %i) { entry: %x = alloca %struct.X, align 1 %cmp = icmp eq i32 %i, 9 br i1 %cmp, label %if.then, label %if.else if.then: ; preds = %entry %0 = getelementptr inbounds %struct.X* %x, i64 0, i32 0, i64 0 call void @llvm.lifetime.start(i6...
2012 Jul 24
0
[LLVMdev] regarding opt -indvars
... -o indvars.ll > /dev/null indvars.ll : ; ModuleID = 'test.ll' target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32-S128" target triple = "i386-pc-linux-gnu" define i32 @_Z4testi(i32 %a) nounwind readnone { entry:   %cmp1 = icmp sgt i32 %a, 2   br i1 %cmp1, label %for.body.preheader, label %for.end for.body.preheader:                               ; preds = %entry   br label %for.body for.body:                                         ; preds = %for.body.preheader, %for.bo...
2014 Nov 04
3
[LLVMdev] lifetime.start/end clarification
...t; > > baz(); > > > > if (i==0) > > > > goto label; > > > > } > > > > } > > > > > > > > Produces: > > > > > > > > %struct.X = type { [33 x i8] } > > > > > > > > define void @_Z4testi(i32 %i) { > > > > entry: > > > > %x = alloca %struct.X, align 1 > > > > %cmp = icmp eq i32 %i, 9 > > > > br i1 %cmp, label %if.then, label %if.else > > > > > > > > if.then: ; preds = %entry > > > > %0 = getelementpt...
2012 Jul 24
4
[LLVMdev] loop detection
Hello . I'm trying to implement FunctionPass for detecting loops in llvm IR. How can I get <condition> for loop from llvm::Loop object.? Is there any example? Thanks in advance, Edvard  -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120723/85e7f2f9/attachment.html>
2014 Nov 05
2
[LLVMdev] lifetime.start/end clarification
...void doSomething(); char b[33]; }; void bar(X &); void baz(); void test(int i) { if (i==9) { X x; x.doSomething(); label: bar(x); } else { baz(); if (i==0) goto label; } } Produces: %struct.X = type { [33 x i8] } define void @_Z4testi(i32 %i) { entry: %x = alloca %struct.X, align 1 %cmp = icmp eq i32 %i, 9 br i1 %cmp, label %if.then, label %if.else if.then: ; preds = %entry %0 = getelementptr inbounds %struct.X* %x, i64 0, i32 0, i64 0 call void @llvm.lifetime.start(i6...