Created
November 2, 2021 03:28
-
-
Save stellaraccident/d1c12afa0bacd4af8867a89f2f6e92f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#loc1 = loc("/home/stella/src/iree-samples/pydm/simple/lists.py":40:0) | |
module @module { | |
func @main(%arg0: i32 loc("/home/stella/src/iree-samples/pydm/simple/lists.py":40:0), %arg1: i32 loc("/home/stella/src/iree-samples/pydm/simple/lists.py":40:0)) -> (i32, i32) { | |
%c-4_i32 = arith.constant -4 : i32 loc(#loc2) | |
%c-7_i32 = arith.constant -7 : i32 loc(#loc3) | |
%c0_i32 = arith.constant 0 : i32 loc(#loc3) | |
%c-1_i32 = arith.constant -1 : i32 loc(#loc4) | |
%c2 = arith.constant 2 : index loc(#loc1) | |
%c1 = arith.constant 1 : index loc(#loc1) | |
%c0 = arith.constant 0 : index loc(#loc1) | |
%c3 = arith.constant 3 : index loc(#loc5) | |
%c78_i32 = arith.constant 78 : i32 loc(#loc1) | |
%c9_i32 = arith.constant 9 : i32 loc(#loc6) | |
%0 = iree.list.create : !iree.list<!iree.variant> loc(#loc1) | |
iree.list.resize %0, %c2 : !iree.list<!iree.variant> loc(#loc1) | |
iree.list.set %0[%c0], %c78_i32 : !iree.list<!iree.variant>, i32 loc(#loc1) | |
iree.list.set %0[%c1], %arg0 : !iree.list<!iree.variant>, i32 loc(#loc1) | |
%1 = iree.list.create : !iree.list<!iree.variant> loc(#loc1) | |
iree.list.resize %1, %c2 : !iree.list<!iree.variant> loc(#loc1) | |
iree.list.set %1[%c0], %c78_i32 : !iree.list<!iree.variant>, i32 loc(#loc1) | |
iree.list.set %1[%c1], %arg1 : !iree.list<!iree.variant>, i32 loc(#loc1) | |
%2 = iree.list.create : !iree.list<!iree.variant> loc(#loc6) | |
iree.list.resize %2, %c2 : !iree.list<!iree.variant> loc(#loc6) | |
iree.list.set %2[%c0], %c78_i32 : !iree.list<!iree.variant>, i32 loc(#loc6) | |
iree.list.set %2[%c1], %c9_i32 : !iree.list<!iree.variant>, i32 loc(#loc6) | |
%3 = iree.list.create %c3 : !iree.list<!iree.variant> loc(#loc5) | |
iree.list.resize %3, %c3 : !iree.list<!iree.variant> loc(#loc5) | |
iree.list.set %3[%c0], %0 : !iree.list<!iree.variant>, !iree.list<!iree.variant> loc(#loc5) | |
iree.list.set %3[%c1], %1 : !iree.list<!iree.variant>, !iree.list<!iree.variant> loc(#loc5) | |
iree.list.set %3[%c2], %2 : !iree.list<!iree.variant>, !iree.list<!iree.variant> loc(#loc5) | |
%4 = iree.list.size %3 : !iree.list<!iree.variant> loc(#loc3) | |
%5 = arith.index_cast %4 : index to i32 loc(#loc3) | |
%6 = arith.addi %5, %c-1_i32 : i32 loc(#loc3) | |
%7 = arith.index_cast %6 : i32 to index loc(#loc3) | |
%8 = arith.cmpi ult, %7, %4 : index loc(#loc3) | |
cond_br %8, ^bb1(%7 : index), ^bb7 loc(#loc3) | |
^bb1(%9: index loc("/home/stella/src/iree-samples/pydm/simple/lists.py":40:0)): // pred: ^bb0 | |
%10 = iree.list.get %3[%9] : !iree.list<!iree.variant> -> !iree.list<!iree.variant> loc(#loc3) | |
br ^bb2(%c0_i32, %10 : i32, !iree.list<!iree.variant>) loc(#loc3) | |
^bb2(%11: i32 loc("/home/stella/src/iree-samples/pydm/simple/lists.py":40:0), %12: !iree.list<!iree.variant> loc("/home/stella/src/iree-samples/pydm/simple/lists.py":40:0)): // 2 preds: ^bb1, ^bb7 | |
%13 = arith.cmpi eq, %c0_i32, %11 : i32 loc(#loc3) | |
cond_br %13, ^bb3, ^bb6(%11, %c0_i32 : i32, i32) loc(#loc3) | |
^bb3: // pred: ^bb2 | |
%14 = iree.list.get %12[%c0] : !iree.list<!iree.variant> -> i32 loc(#loc2) | |
%15 = arith.cmpi eq, %c78_i32, %14 : i32 loc(#loc2) | |
cond_br %15, ^bb4, ^bb5(%c-4_i32, %c0_i32 : i32, i32) loc(#loc2) | |
^bb4: // pred: ^bb3 | |
%16 = iree.list.get %12[%c1] : !iree.list<!iree.variant> -> i32 loc(#loc2) | |
br ^bb5(%c0_i32, %16 : i32, i32) loc(#loc2) | |
^bb5(%17: i32 loc("/home/stella/src/iree-samples/pydm/simple/lists.py":40:0), %18: i32 loc("/home/stella/src/iree-samples/pydm/simple/lists.py":40:0)): // 2 preds: ^bb3, ^bb4 | |
%19 = arith.cmpi eq, %c0_i32, %17 : i32 loc(#loc2) | |
cond_br %19, ^bb6(%c0_i32, %18 : i32, i32), ^bb6(%17, %c0_i32 : i32, i32) loc(#loc2) | |
^bb6(%20: i32 loc("/home/stella/src/iree-samples/pydm/simple/lists.py":40:0), %21: i32 loc("/home/stella/src/iree-samples/pydm/simple/lists.py":40:0)): // 3 preds: ^bb2, ^bb5, ^bb5 | |
return %20, %21 : i32, i32 loc(#loc3) | |
^bb7: // pred: ^bb0 | |
%22 = iree.list.create : !iree.list<!iree.variant> loc(#loc3) | |
br ^bb2(%c-7_i32, %22 : i32, !iree.list<!iree.variant>) loc(#loc3) | |
} loc(#loc1) | |
} loc(#loc0) | |
#loc0 = loc(unknown) | |
#loc2 = loc("/home/stella/src/iree-samples/pydm/simple/lists.py":42:9) | |
#loc3 = loc("/home/stella/src/iree-samples/pydm/simple/lists.py":42:2) | |
#loc4 = loc("/home/stella/src/iree-samples/pydm/simple/lists.py":42:13) | |
#loc5 = loc("/home/stella/src/iree-samples/pydm/simple/lists.py":41:8) | |
#loc6 = loc("/home/stella/src/iree-samples/pydm/simple/lists.py":41:15) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment