Thanks for using Compiler Explorer
Sponsors
Jakt
C++
Ada
Algol68
Analysis
Android Java
Android Kotlin
Assembly
C
C3
Carbon
C with Coccinelle
C++ with Coccinelle
C++ (Circle)
CIRCT
Clean
CMake
CMakeScript
COBOL
C++ for OpenCL
MLIR
Cppx
Cppx-Blue
Cppx-Gold
Cpp2-cppfront
Crystal
C#
CUDA C++
D
Dart
Elixir
Erlang
Fortran
F#
GLSL
Go
Haskell
HLSL
Hook
Hylo
IL
ispc
Java
Julia
Kotlin
LLVM IR
LLVM MIR
Modula-2
Mojo
Nim
Numba
Nix
Objective-C
Objective-C++
OCaml
Odin
OpenCL C
Pascal
Pony
PTX
Python
Racket
Raku
Ruby
Rust
Sail
Snowball
Scala
Slang
Solidity
Spice
SPIR-V
Swift
LLVM TableGen
Toit
Triton
TypeScript Native
V
Vala
Visual Basic
Vyper
WASM
Zig
Javascript
GIMPLE
Ygen
sway
llvm source #1
Output
Compile to binary object
Link to binary
Execute the code
Intel asm syntax
Demangle identifiers
Verbose demangling
Filters
Unused labels
Library functions
Directives
Comments
Horizontal whitespace
Debug intrinsics
Compiler
clang (assertions trunk)
clang (trunk)
clang 10.0.0
clang 10.0.1
clang 11.0.0
clang 11.0.1
clang 12.0.0
clang 12.0.1
clang 13.0.0
clang 14.0.0
clang 15.0.0
clang 16.0.0
clang 17.0.1
clang 18.1.0
clang 19.1.0
clang 20.1.0
clang 21.1.0
clang 4.0.1
clang 5.0.0
clang 6.0.0
clang 7.0.0
clang 8.0.0
clang 9.0.0
hexagon-clang 16.0.5
llc (assertions trunk)
llc (trunk)
llc 10.0.0
llc 10.0.1
llc 11.0.0
llc 11.0.1
llc 12.0.0
llc 12.0.1
llc 13.0.0
llc 14.0.0
llc 15.0.0
llc 16.0.0
llc 17.0.1
llc 18.1.0
llc 19.1.0
llc 20.1.0
llc 21.1.0
llc 3.2
llc 3.3
llc 3.9.1
llc 4.0.0
llc 4.0.1
llc 5.0.0
llc 6.0.0
llc 7.0.0
llc 8.0.0
llc 9.0.0
opt (assertions trunk)
opt (trunk)
opt 10.0.0
opt 10.0.1
opt 11.0.0
opt 11.0.1
opt 12.0.0
opt 12.0.1
opt 13.0.0
opt 14.0.0
opt 15.0.0
opt 16.0.0
opt 17.0.1
opt 18.1.0
opt 19.1.0
opt 20.1.0
opt 21.1.0
opt 3.2
opt 3.3
opt 3.9.1
opt 4.0.0
opt 4.0.1
opt 5.0.0
opt 6.0.0
opt 7.0.0
opt 8.0.0
opt 9.0.0
Options
Source code
source_filename = "bar" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128-ni:10:11:12:13" target triple = "x86_64-unknown-linux-gnu" @"+Main.Q#3179.jit" = private alias ptr, inttoptr (i64 136579587793744 to ptr) @"+Main.Q#3180.jit" = private alias ptr, inttoptr (i64 136579587797392 to ptr) @"+Main.Sampled#3177.jit" = private alias ptr, inttoptr (i64 136579588031504 to ptr) @"+Main.Sampled#3178.jit" = private alias ptr, inttoptr (i64 136579588043984 to ptr) @"jl_global#3176.jit" = private alias ptr, inttoptr (i64 136579612810032 to ptr) define swiftcc nonnull ptr addrspace(10) @julia_bar_3173(ptr nonnull swiftself %pgcstack_arg, ptr addrspace(11) nocapture noundef nonnull readonly align 8 dereferenceable(64) %"t::Tuple") local_unnamed_addr #0 !dbg !4 { top: %sret_box = alloca [4 x i64], align 8 %sret_box1 = alloca [4 x i64], align 8 %"new::Q.sroa.0" = alloca { double, double, i64, i64 }, align 8 %unionalloca = alloca [4 x i64], align 8 %0 = alloca [4 x i64], align 8 %"new::Q17.sroa.0" = alloca { double, double, i64, i64 }, align 8 #dbg_declare(ptr addrspace(11) %"t::Tuple", !24, !DIExpression(), !25) %current_task = getelementptr inbounds i8, ptr %pgcstack_arg, i64 -152 %ptls_field = getelementptr inbounds i8, ptr %pgcstack_arg, i64 16 %ptls_load = load ptr, ptr %ptls_field, align 8, !tbaa !26 %1 = getelementptr inbounds i8, ptr %ptls_load, i64 16 %safepoint = load ptr, ptr %1, align 8, !tbaa !30, !invariant.load !13 fence syncscope("singlethread") seq_cst call void @julia.safepoint(ptr %safepoint), !dbg !25 fence syncscope("singlethread") seq_cst %2 = call swiftcc { ptr addrspace(10), i8 } @j_format_local_3175(ptr noalias nocapture noundef nonnull %sret_box, ptr nonnull swiftself %pgcstack_arg, ptr addrspace(10) addrspacecast (ptr @"jl_global#3176.jit" to ptr addrspace(10)), ptr addrspace(11) nocapture nonnull readonly %"t::Tuple"), !dbg !25 %3 = extractvalue { ptr addrspace(10), i8 } %2, 0, !dbg !25 %4 = extractvalue { ptr addrspace(10), i8 } %2, 1, !dbg !25 %5 = addrspacecast ptr %sret_box to ptr addrspace(11), !dbg !25 %"t::Tuple[2]_ptr" = getelementptr inbounds i8, ptr addrspace(11) %"t::Tuple", i64 32, !dbg !32 %6 = call swiftcc { ptr addrspace(10), i8 } @j_format_local_3175(ptr noalias nocapture noundef nonnull %sret_box1, ptr nonnull swiftself %pgcstack_arg, ptr addrspace(10) addrspacecast (ptr @"jl_global#3176.jit" to ptr addrspace(10)), ptr addrspace(11) nocapture readonly %"t::Tuple[2]_ptr"), !dbg !25 %7 = extractvalue { ptr addrspace(10), i8 } %6, 0, !dbg !25 %8 = extractvalue { ptr addrspace(10), i8 } %6, 1, !dbg !25 %9 = addrspacecast ptr addrspace(10) %7 to ptr addrspace(11), !dbg !25 %10 = addrspacecast ptr %sret_box1 to ptr addrspace(11), !dbg !25 %11 = icmp slt i8 %8, 0, !dbg !25 %12 = select i1 %11, ptr addrspace(11) %9, ptr addrspace(11) %10, !dbg !25 %13 = and i8 %8, 127, !dbg !25 %exactly_isa.not = icmp eq i8 %13, 1, !dbg !25 br i1 %exactly_isa.not, label %L11, label %L14, !dbg !25 L11: ; preds = %top call void @llvm.memcpy.p0.p11.i64(ptr noundef nonnull align 8 dereferenceable(32) %"new::Q.sroa.0", ptr addrspace(11) noundef align 8 dereferenceable(32) %12, i64 32, i1 false), !dbg !36, !tbaa !39, !alias.scope !41, !noalias !44 call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %unionalloca), !dbg !25 call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %unionalloca, ptr noundef nonnull align 8 dereferenceable(32) %"new::Q.sroa.0", i64 32, i1 false), !dbg !25, !tbaa !39, !alias.scope !41, !noalias !44 br label %L18, !dbg !25 L14: ; preds = %top call void @llvm.memcpy.p0.p11.i64(ptr noundef nonnull align 8 dereferenceable(32) %"new::Q17.sroa.0", ptr addrspace(11) noundef align 8 dereferenceable(32) %12, i64 32, i1 false), !dbg !36, !tbaa !39, !alias.scope !41, !noalias !44 call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %unionalloca), !dbg !25 call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %unionalloca, ptr noundef nonnull align 8 dereferenceable(32) %"new::Q17.sroa.0", i64 32, i1 false), !dbg !25, !tbaa !39, !alias.scope !41, !noalias !44 br label %L18, !dbg !25 L18: ; preds = %L14, %L11 call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %unionalloca, i64 32, i1 false), !dbg !25 call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %unionalloca), !dbg !25 switch i8 %4, label %post_box_union [ i8 1, label %box_union i8 2, label %box_union4 ], !dbg !25 post_box_union: ; preds = %L18, %box_union4, %box_union %14 = phi ptr addrspace(10) [ %unionbox, %box_union ], [ %unionbox7, %box_union4 ], [ %3, %L18 ], !dbg !25 br i1 %exactly_isa.not, label %box_union10, label %box_union13, !dbg !25 box_union: ; preds = %L18 %unionbox = call noalias nonnull align 8 dereferenceable(32) ptr addrspace(10) @julia.gc_alloc_obj(ptr nonnull %current_task, i64 32, ptr addrspace(10) addrspacecast (ptr @"+Main.Sampled#3177.jit" to ptr addrspace(10))) #8, !dbg !25 %15 = addrspacecast ptr addrspace(10) %unionbox to ptr addrspace(11), !dbg !25 call void @llvm.memcpy.p11.p11.i64(ptr addrspace(11) noundef align 8 dereferenceable(32) %15, ptr addrspace(11) noundef align 8 dereferenceable(32) %5, i64 32, i1 false), !dbg !25, !tbaa !49, !alias.scope !50, !noalias !51 br label %post_box_union, !dbg !25 box_union4: ; preds = %L18 %unionbox7 = call noalias nonnull align 8 dereferenceable(32) ptr addrspace(10) @julia.gc_alloc_obj(ptr nonnull %current_task, i64 32, ptr addrspace(10) addrspacecast (ptr @"+Main.Sampled#3178.jit" to ptr addrspace(10))) #8, !dbg !25 %16 = addrspacecast ptr addrspace(10) %unionbox7 to ptr addrspace(11), !dbg !25 call void @llvm.memcpy.p11.p11.i64(ptr addrspace(11) noundef align 8 dereferenceable(32) %16, ptr addrspace(11) noundef align 8 dereferenceable(32) %5, i64 32, i1 false), !dbg !25, !tbaa !49, !alias.scope !50, !noalias !51 br label %post_box_union, !dbg !25 post_box_union9: ; preds = %box_union13, %box_union10 %17 = phi ptr addrspace(10) [ %unionbox12, %box_union10 ], [ %unionbox16, %box_union13 ], !dbg !25 %jl_f_tuple_ret = call nonnull ptr addrspace(10) (ptr, ptr addrspace(10), ...) @julia.call(ptr nonnull @jl_f_tuple, ptr addrspace(10) null, ptr addrspace(10) %14, ptr addrspace(10) nonnull %17), !dbg !25 ret ptr addrspace(10) %jl_f_tuple_ret, !dbg !25 box_union10: ; preds = %post_box_union %unionbox12 = call noalias nonnull align 8 dereferenceable(32) ptr addrspace(10) @julia.gc_alloc_obj(ptr nonnull %current_task, i64 32, ptr addrspace(10) addrspacecast (ptr @"+Main.Q#3179.jit" to ptr addrspace(10))) #8, !dbg !25 %18 = addrspacecast ptr addrspace(10) %unionbox12 to ptr addrspace(11), !dbg !25 call void @llvm.memcpy.p11.p0.i64(ptr addrspace(11) noundef align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %0, i64 32, i1 false), !dbg !25, !tbaa !52, !alias.scope !55, !noalias !56 br label %post_box_union9, !dbg !25 box_union13: ; preds = %post_box_union %unionbox16 = call noalias nonnull align 8 dereferenceable(32) ptr addrspace(10) @julia.gc_alloc_obj(ptr nonnull %current_task, i64 32, ptr addrspace(10) addrspacecast (ptr @"+Main.Q#3180.jit" to ptr addrspace(10))) #8, !dbg !25 %19 = addrspacecast ptr addrspace(10) %unionbox16 to ptr addrspace(11), !dbg !25 call void @llvm.memcpy.p11.p0.i64(ptr addrspace(11) noundef align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %0, i64 32, i1 false), !dbg !25, !tbaa !52, !alias.scope !55, !noalias !56 br label %post_box_union9, !dbg !25 } ; Function Attrs: noinline optnone define nonnull ptr addrspace(10) @jfptr_bar_3174(ptr addrspace(10) %"function::Core.Function", ptr noalias nocapture noundef readonly %"args::Any[]", i32 %"nargs::UInt32") local_unnamed_addr #1 { top: %pgcstack = call ptr @julia.get_pgcstack() %0 = getelementptr inbounds i8, ptr %"args::Any[]", i32 0 %1 = load ptr addrspace(10), ptr %0, align 8, !tbaa !30, !invariant.load !13, !alias.scope !57, !noalias !58, !nonnull !13, !dereferenceable !59, !align !60 %2 = addrspacecast ptr addrspace(10) %1 to ptr addrspace(11) %3 = call swiftcc nonnull ptr addrspace(10) @julia_bar_3173(ptr nonnull swiftself %pgcstack, ptr addrspace(11) nocapture readonly %2) ret ptr addrspace(10) %3 } declare ptr @julia.get_pgcstack() local_unnamed_addr ; Function Attrs: memory(argmem: readwrite, inaccessiblemem: readwrite) declare void @julia.safepoint(ptr) local_unnamed_addr #2 declare swiftcc { ptr addrspace(10), i8 } @j_format_local_3175(ptr noalias nocapture noundef, ptr nonnull swiftself, ptr addrspace(10), ptr addrspace(11) nocapture readonly) local_unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p11.i64(ptr noalias nocapture writeonly, ptr addrspace(11) noalias nocapture readonly, i64, i1 immarg) #4 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #5 declare nonnull ptr addrspace(10) @jl_f_tuple(ptr addrspace(10), ptr noalias nocapture noundef readonly, i32) declare nonnull ptr addrspace(10) @julia.call(ptr, ptr addrspace(10), ...) local_unnamed_addr ; Function Attrs: mustprogress nounwind willreturn allockind("alloc") allocsize(1) memory(argmem: read, inaccessiblemem: readwrite) declare noalias nonnull ptr addrspace(10) @julia.gc_alloc_obj(ptr, i64, ptr addrspace(10)) local_unnamed_addr #6 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p11.p11.i64(ptr addrspace(11) noalias nocapture writeonly, ptr addrspace(11) noalias nocapture readonly, i64, i1 immarg) #4 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #5 ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p11.p0.i64(ptr addrspace(11) noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7 attributes #0 = { "frame-pointer"="all" "julia.fsig"="bar(Tuple{Main.Q{Base.LinRange{Float64, Int64}}, Main.Q{Base.LinRange{Float64, Int64}}})" "probe-stack"="inline-asm" } attributes #1 = { noinline optnone "frame-pointer"="all" "probe-stack"="inline-asm" } attributes #2 = { memory(argmem: readwrite, inaccessiblemem: readwrite) } attributes #3 = { "frame-pointer"="all" "julia.fsig"="format_local(Main.Sampled{Int64, Main.AutoValues, Main.AutoOrder, Main.AutoSpan}, Type, Base.LinRange{Float64, Int64})" "probe-stack"="inline-asm" } attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #5 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #6 = { mustprogress nounwind willreturn allockind("alloc") allocsize(1) memory(argmem: read, inaccessiblemem: readwrite) } attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #8 = { nounwind willreturn allockind("alloc,uninitialized") allocsize(1) memory(argmem: read, inaccessiblemem: readwrite) } !llvm.module.flags = !{!0, !1} !llvm.dbg.cu = !{!2} !0 = !{i32 2, !"Dwarf Version", i32 4} !1 = !{i32 2, !"Debug Info Version", i32 3} !2 = distinct !DICompileUnit(language: DW_LANG_Julia, file: !3, producer: "julia", isOptimized: true, runtimeVersion: 0, emissionKind: NoDebug, nameTableKind: GNU) !3 = !DIFile(filename: "julia", directory: ".") !4 = distinct !DISubprogram(name: "bar", linkageName: "julia_bar_3173", scope: null, file: !5, line: 1, type: !6, scopeLine: 1, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !22) !5 = !DIFile(filename: "REPL[11]", directory: ".") !6 = !DISubroutineType(types: !7) !7 = !{!8, !12, !14} !8 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !9, size: 64, align: 64) !9 = !DICompositeType(tag: DW_TAG_structure_type, name: "jl_value_t", file: !10, line: 71, align: 64, elements: !11) !10 = !DIFile(filename: "julia.h", directory: "") !11 = !{!8} !12 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "#bar", align: 8, elements: !13, runtimeLang: DW_LANG_Julia, identifier: "136579589088976") !13 = !{} !14 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "Tuple", size: 512, align: 64, elements: !15, runtimeLang: DW_LANG_Julia, identifier: "136579615400976") !15 = !{!16, !16} !16 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "Q", size: 256, align: 64, elements: !17, runtimeLang: DW_LANG_Julia, identifier: "136579615397904") !17 = !{!18} !18 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "LinRange", size: 256, align: 64, elements: !19, runtimeLang: DW_LANG_Julia, identifier: "136579616013968") !19 = !{!20, !20, !21, !21} !20 = !DIBasicType(name: "Float64", size: 64, encoding: DW_ATE_unsigned) !21 = !DIBasicType(name: "Int64", size: 64, encoding: DW_ATE_unsigned) !22 = !{!23, !24} !23 = !DILocalVariable(name: "#self#", arg: 1, scope: !4, file: !5, line: 1, type: !12) !24 = !DILocalVariable(name: "t", arg: 2, scope: !4, file: !5, line: 1, type: !14) !25 = !DILocation(line: 1, scope: !4) !26 = !{!27, !27, i64 0} !27 = !{!"jtbaa_gcframe", !28, i64 0} !28 = !{!"jtbaa", !29, i64 0} !29 = !{!"jtbaa"} !30 = !{!31, !31, i64 0, i64 1} !31 = !{!"jtbaa_const", !28, i64 0} !32 = !DILocation(line: 33, scope: !33, inlinedAt: !25) !33 = distinct !DISubprogram(name: "getindex;", linkageName: "getindex", scope: !34, file: !34, type: !35, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2) !34 = !DIFile(filename: "tuple.jl", directory: ".") !35 = !DISubroutineType(types: !13) !36 = !DILocation(line: 2, scope: !37, inlinedAt: !25) !37 = distinct !DISubprogram(name: "Q;", linkageName: "Q", scope: !38, file: !38, type: !35, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2) !38 = !DIFile(filename: "REPL[1]", directory: ".") !39 = !{!40, !40, i64 0} !40 = !{!"jtbaa_stack", !28, i64 0} !41 = !{!42} !42 = !{!"jnoalias_stack", !43} !43 = !{!"jnoalias"} !44 = !{!45, !46, !47, !48} !45 = !{!"jnoalias_gcframe", !43} !46 = !{!"jnoalias_data", !43} !47 = !{!"jnoalias_typemd", !43} !48 = !{!"jnoalias_const", !43} !49 = !{!28, !28, i64 0} !50 = !{!42, !46} !51 = !{!45, !47, !48} !52 = !{!53, !53, i64 0} !53 = !{!"jtbaa_value", !54, i64 0} !54 = !{!"jtbaa_data", !28, i64 0} !55 = !{!46} !56 = !{!45, !42, !47, !48} !57 = !{!48} !58 = !{!45, !42, !46, !47} !59 = !{i64 64} !60 = !{i64 8}
Become a Patron
Sponsor on GitHub
Donate via PayPal
Compiler Explorer Shop
Source on GitHub
Mailing list
Installed libraries
Wiki
Report an issue
How it works
Contact the author
CE on Mastodon
CE on Bluesky
Statistics
Changelog
Version tree