Skip to content

Instantly share code, notes, and snippets.

@alexcrichton
Created September 7, 2017 19:38
Show Gist options
  • Save alexcrichton/add34401bd905c7a3e2489a47a0b373c to your computer and use it in GitHub Desktop.
Save alexcrichton/add34401bd905c7a3e2489a47a0b373c to your computer and use it in GitHub Desktop.
; Function Attrs: norecurse uwtable
define i32 @macro_thread_local() unnamed_addr #2 personality i32 (i32, i32, i64, %"unwind::libunwind::_Unwind_Exception"*, %"unwind::libunwind::_Unwind_Context"*)* @rust_eh_personality {
start:
%0 = load i32, i32* getelementptr inbounds ({ { { i32, [4 x i8] } }, { { i1 } }, { { i1 } }, [2 x i8] }, { { { i32, [4 x i8] } }, { { i1 } }, { { i1 } }, [2 x i8] }* @_ZN10playground5MACRO7__getit5__KEY17h50de45ad343ebbbaE, i64 0, i32 0, i32 0, i32 0), align 8, !range !1
%cond8.i.i = icmp eq i32 %0, 0
br i1 %cond8.i.i, label %bb21.i.i, label %bb17.bb15_crit_edge.i.i
bb17.bb15_crit_edge.i.i: ; preds = %start
%_22.0.idx.val.pre.i2.i = load i32, i32* bitcast (i8* getelementptr inbounds ({ { { i32, [4 x i8] } }, { { i1 } }, { { i1 } }, [2 x i8] }, { { { i32, [4 x i8] } }, { { i1 } }, { { i1 } }, [2 x i8] }* @_ZN10playground5MACRO7__getit5__KEY17h50de45ad343ebbbaE, i64 0, i32 0, i32 0, i32 1, i64 0) to i32*), align 4
br label %"_ZN46_$LT$std..thread..local..LocalKey$LT$T$GT$$GT$4with17h4cf24ff033b1a3d6E.exit"
bb21.i.i: ; preds = %start
store i64 12884901889, i64* bitcast ({ { { i32, [4 x i8] } }, { { i1 } }, { { i1 } }, [2 x i8] }* @_ZN10playground5MACRO7__getit5__KEY17h50de45ad343ebbbaE to i64*), align 8
br label %"_ZN46_$LT$std..thread..local..LocalKey$LT$T$GT$$GT$4with17h4cf24ff033b1a3d6E.exit"
"_ZN46_$LT$std..thread..local..LocalKey$LT$T$GT$$GT$4with17h4cf24ff033b1a3d6E.exit": ; preds = %bb17.bb15_crit_edge.i.i, %bb21.i.i
%_22.0.idx.val.i.i = phi i32 [ %_22.0.idx.val.pre.i2.i, %bb17.bb15_crit_edge.i.i ], [ 3, %bb21.i.i ]
ret i32 %_22.0.idx.val.i.i
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment