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
; ModuleID = 'outlined' source_filename = "outlined" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128-ni:10:11:12:13" target triple = "x86_64-unknown-linux-gnu" @llvm.compiler.used = appending global [4 x i8*] [i8* bitcast (void ({} addrspace(10)*)* @ijl_gc_queue_root to i8*), i8* bitcast (void ({} addrspace(10)*)* @jl_gc_queue_binding to i8*), i8* bitcast ({} addrspace(10)* (i8*, i32, i32)* @ijl_gc_pool_alloc to i8*), i8* bitcast ({} addrspace(10)* (i8*, i64)* @ijl_gc_big_alloc to i8*)], section "llvm.metadata" ; Function Attrs: noinline define void @julia_outlined_2722() #0 !dbg !5 { top: %0 = call {}*** @julia.get_pgcstack() %1 = bitcast {}*** %0 to {}**, !dbg !7 %current_task1 = getelementptr inbounds {}*, {}** %1, i64 -12, !dbg !7 %2 = call noalias nonnull {} addrspace(10)* @julia.gc_alloc_obj({}** %current_task1, i64 8, {} addrspace(10)* addrspacecast ({}* inttoptr (i64 140546186621008 to {}*) to {} addrspace(10)*)) #2, !dbg !7 %3 = bitcast {} addrspace(10)* %2 to i64 addrspace(10)*, !dbg !7 store i64 0, i64 addrspace(10)* %3, align 8, !dbg !7, !tbaa !17 %4 = call i64 inttoptr (i64 140546548186240 to i64 ()*)(), !dbg !23 call void inttoptr (i64 140546548210160 to void (i64, {} addrspace(10)*, {} addrspace(10)*)*)(i64 %4, {} addrspace(10)* %2, {} addrspace(10)* addrspacecast ({}* inttoptr (i64 140546425247192 to {}*) to {} addrspace(10)*)), !dbg !26 %5 = addrspacecast {} addrspace(10)* %2 to {} addrspace(11)*, !dbg !30 %6 = call nonnull {}* @julia.pointer_from_objref({} addrspace(11)* %5) #4, !dbg !30 call void (...) @jl_f_donotdelete({}* %6), !dbg !30 ret void, !dbg !16 } define nonnull {} addrspace(10)* @jfptr_outlined_2723({} addrspace(10)* %0, {} addrspace(10)** %1, i32 %2) #1 { top: %3 = call {}*** @julia.get_pgcstack() call void @julia_outlined_2722() #7 ret {} addrspace(10)* addrspacecast ({}* inttoptr (i64 140546423308296 to {}*) to {} addrspace(10)*) } declare {}*** @julia.get_pgcstack() ; Function Attrs: allocsize(1) declare noalias nonnull {} addrspace(10)* @julia.gc_alloc_obj({}**, i64, {} addrspace(10)*) #2 ; Function Attrs: inaccessiblememonly nounwind willreturn declare nonnull {} addrspace(10)* @jl_f_donotdelete({} addrspace(10)*, {} addrspace(10)**, i32) #3 ; Function Attrs: nounwind readnone declare nonnull {}* @julia.pointer_from_objref({} addrspace(11)*) #4 ; Function Attrs: argmemonly nofree nosync nounwind willreturn declare void @llvm.lifetime.start.p0i8(i64 immarg, i8* nocapture) #5 ; Function Attrs: argmemonly nofree nosync nounwind willreturn declare void @llvm.lifetime.end.p0i8(i64 immarg, i8* nocapture) #5 ; Function Attrs: inaccessiblemem_or_argmemonly declare void @ijl_gc_queue_root({} addrspace(10)*) #6 ; Function Attrs: inaccessiblemem_or_argmemonly declare void @jl_gc_queue_binding({} addrspace(10)*) #6 ; Function Attrs: allocsize(1) declare noalias nonnull {} addrspace(10)* @ijl_gc_pool_alloc(i8*, i32, i32) #2 ; Function Attrs: allocsize(1) declare noalias nonnull {} addrspace(10)* @ijl_gc_big_alloc(i8*, i64) #2 attributes #0 = { noinline "probe-stack"="inline-asm" } attributes #1 = { "probe-stack"="inline-asm" "thunk" } attributes #2 = { allocsize(1) } attributes #3 = { inaccessiblememonly nounwind willreturn "thunk" } attributes #4 = { nounwind readnone } attributes #5 = { argmemonly nofree nosync nounwind willreturn } attributes #6 = { inaccessiblemem_or_argmemonly } attributes #7 = { "probe-stack"="inline-asm" } !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: FullDebug, enums: !4, nameTableKind: GNU) !3 = !DIFile(filename: "/home/premc/spring-2022/exp13/test/core.jl", directory: ".") !4 = !{} !5 = distinct !DISubprogram(name: "outlined", linkageName: "julia_outlined_2722", scope: null, file: !3, line: 4338, type: !6, scopeLine: 4338, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !4) !6 = !DISubroutineType(types: !4) !7 = !DILocation(line: 8, scope: !8, inlinedAt: !10) !8 = distinct !DISubprogram(name: "RefValue;", linkageName: "RefValue", scope: !9, file: !9, type: !6, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !4) !9 = !DIFile(filename: "refvalue.jl", directory: ".") !10 = !DILocation(line: 10, scope: !8, inlinedAt: !11) !11 = !DILocation(line: 134, scope: !12, inlinedAt: !14) !12 = distinct !DISubprogram(name: "Ref;", linkageName: "Ref", scope: !13, file: !13, type: !6, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !4) !13 = !DIFile(filename: "refpointer.jl", directory: ".") !14 = !DILocation(line: 4344, scope: !15, inlinedAt: !16) !15 = distinct !DISubprogram(name: "#198;", linkageName: "#198", scope: !3, file: !3, type: !6, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !4) !16 = !DILocation(line: 4338, scope: !5) !17 = !{!18, !18, i64 0} !18 = !{!"jtbaa_mutab", !19, i64 0} !19 = !{!"jtbaa_value", !20, i64 0} !20 = !{!"jtbaa_data", !21, i64 0} !21 = !{!"jtbaa", !22, i64 0} !22 = !{!"jtbaa"} !23 = !DILocation(line: 366, scope: !24, inlinedAt: !26) !24 = distinct !DISubprogram(name: "getptls;", linkageName: "getptls", scope: !25, file: !25, type: !6, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !4) !25 = !DIFile(filename: "boot.jl", directory: ".") !26 = !DILocation(line: 48, scope: !27, inlinedAt: !29) !27 = distinct !DISubprogram(name: "finalizer;", linkageName: "finalizer", scope: !28, file: !28, type: !6, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !4) !28 = !DIFile(filename: "gcutils.jl", directory: ".") !29 = !DILocation(line: 4345, scope: !15, inlinedAt: !16) !30 = !DILocation(line: 4348, scope: !15, inlinedAt: !16)
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