<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div>Here it is:</div><div><br></div><div>; ModuleID = 'omp_hello.c'</div><div>target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"</div><div>target triple = "x86_64-unknown-linux-gnu"</div><div><br></div><div>%ident_t = type { i32, i32, i32, i32, i8* }</div><div>%struct.anon = type { i32* }</div><div><br></div><div>@.str = private unnamed_addr constant [30 x i8] c"Hello World from thread = %d\0A\00", align 1</div><div>@.str.1 = private unnamed_addr constant [24 x i8] c"Number of threads = %d\0A\00", align 1</div><div>@.str.2 = private unnamed_addr constant [23 x i8] c";unknown;unknown;0;0;;\00", align 1</div><div>@0 = private unnamed_addr constant %ident_t { i32 0, i32 66, i32 0, i32 0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i32 0, i32 0) }</div><div>@1 = private unnamed_addr constant %ident_t { i32 0, i32 2, i32 0, i32 0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i32 0, i32 0) }</div><div><br></div><div>; Function Attrs: nounwind optsize uwtable</div><div>define i32 @main(i32 %argc, i8** nocapture readnone %argv) #0 {</div><div>entry:</div><div> %a = alloca i32, align 4</div><div> %agg.captured = alloca %struct.anon, align 8</div><div> tail call void @omp_set_num_threads(i32 4) #4</div><div> %0 = bitcast i32* %a to i8*</div><div> call void @llvm.lifetime.start(i64 4, i8* %0) #1</div><div> store i32 5, i32* %a, align 4, !tbaa !1</div><div> %1 = getelementptr inbounds %struct.anon, %struct.anon* %agg.captured, i64 0, i32 0</div><div> store i32* %a, i32** %1, align 8, !tbaa !5</div><div> call void (%ident_t*, i32, void (i32*, i32*, ...)*, ...) @__kmpc_fork_call(%ident_t* nonnull @1, i32 1, void (i32*, i32*, ...)* bitcast (void (i32*, i32*, %struct.anon*)* @.omp_outlined. to void (i32*, i32*, ...)*), %struct.anon* nonnull %agg.captured) #1</div><div> call void @llvm.lifetime.end(i64 4, i8* %0) #1</div><div> ret i32 0</div><div>}</div><div><br></div><div>; Function Attrs: nounwind</div><div>declare void @llvm.lifetime.start(i64, i8* nocapture) #1</div><div><br></div><div>; Function Attrs: optsize</div><div>declare void @omp_set_num_threads(i32) #2</div><div><br></div><div>; Function Attrs: nounwind optsize uwtable</div><div>define internal void @.omp_outlined.(i32* nocapture readonly %.global_tid., i32* nocapture readnone %.bound_tid., %struct.anon* nocapture readonly %__context) #0 {</div><div>entry:</div><div> %call = tail call i32 @omp_get_thread_num() #4</div><div> %0 = getelementptr inbounds %struct.anon, %struct.anon* %__context, i64 0, i32 0</div><div> %ref = load i32*, i32** %0, align 8, !tbaa !5</div><div> %1 = load i32, i32* %ref, align 4, !tbaa !1</div><div> %call1 = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %1) #4</div><div> %cmp = icmp eq i32 %call, 0</div><div> br i1 %cmp, label %if.then, label %if.end</div><div><br></div><div>if.then: ; preds = %entry</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>call void asm "negl %eax;", ""()</div><div> %call2 = tail call i32 @omp_get_num_threads() #4</div><div> %call3 = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %call2) #4</div><div> br label %if.end</div><div><br></div><div>if.end: ; preds = %if.then, %entry</div><div> %2 = load i32, i32* %.global_tid., align 4, !tbaa !1</div><div> %3 = tail call i32 @__kmpc_cancel_barrier(%ident_t* nonnull @0, i32 %2) #1</div><div> ret void</div><div>}</div><div><br></div><div>; Function Attrs: optsize</div><div>declare i32 @omp_get_thread_num() #2</div><div><br></div><div>; Function Attrs: nounwind optsize</div><div>declare i32 @printf(i8* nocapture readonly, ...) #3</div><div><br></div><div>; Function Attrs: optsize</div><div>declare i32 @omp_get_num_threads() #2</div><div><br></div><div>declare i32 @__kmpc_cancel_barrier(%ident_t*, i32)</div><div><br></div><div>; Function Attrs: nounwind</div><div>declare void @llvm.lifetime.end(i64, i8* nocapture) #1</div><div><br></div><div>declare void @__kmpc_fork_call(%ident_t*, i32, void (i32*, i32*, ...)*, ...)</div><div><br></div><div>attributes #0 = { nounwind optsize uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }</div><div>attributes #1 = { nounwind }</div><div>attributes #2 = { optsize "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }</div><div>attributes #3 = { nounwind optsize "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }</div><div>attributes #4 = { nounwind optsize }</div><div><br></div><div>!llvm.ident = !{!0}</div><div><br></div><div>!0 = !{!"clang version 3.8.0 (trunk 243832)"}</div><div>!1 = !{!2, !2, i64 0}</div><div>!2 = !{!"int", !3, i64 0}</div><div>!3 = !{!"omnipotent char", !4, i64 0}</div><div>!4 = !{!"Simple C/C++ TBAA"}</div><div>!5 = !{!3, !3, i64 0}</div><div><br></div><div>Erdem</div> </div></body>
</html>