xref: /llvm-project/llvm/test/Examples/OrcV2Examples/Inputs/main-mod.ll (revision bd92b7b3c1f6d423712b8b36fe593f7dfcd373cf)
1define i32 @main(i32 %argc, ptr %argv) {
2entry:
3  %and = and i32 %argc, 1
4  %tobool = icmp eq i32 %and, 0
5  br i1 %tobool, label %if.end, label %if.then
6
7if.then:                                          ; preds = %entry
8  %call = tail call i32 @foo() #2
9  br label %return
10
11if.end:                                           ; preds = %entry
12  %call1 = tail call i32 @bar() #2
13  br label %return
14
15return:                                           ; preds = %if.end, %if.then
16  %retval.0 = phi i32 [ %call, %if.then ], [ %call1, %if.end ]
17  ret i32 %retval.0
18}
19
20declare i32 @foo()
21declare i32 @bar()
22
23^0 = module: (path: "main-mod.o", hash: (1466373418, 2110622332, 1230295500, 3229354382, 2004933020))
24^1 = gv: (name: "foo") ; guid = 6699318081062747564
25^2 = gv: (name: "main", summaries: (function: (module: ^0, flags: (linkage: external, notEligibleToImport: 0, live: 0, dsoLocal: 0, canAutoHide: 0), insts: 22, funcFlags: (readNone: 0, readOnly: 0, noRecurse: 1, returnDoesNotAlias: 0, noInline: 1, alwaysInline: 0), calls: ((callee: ^1), (callee: ^3))))) ; guid = 15822663052811949562
26^3 = gv: (name: "bar") ; guid = 16434608426314478903
27^4 = blockcount: 0
28