Thanks for using Compiler Explorer
Sponsors
Jakt
C++
Ada
Analysis
Android Java
Android Kotlin
Assembly
C
C3
Carbon
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
Nim
Objective-C
Objective-C++
OCaml
OpenCL C
Pascal
Pony
Python
Racket
Ruby
Rust
Snowball
Scala
Solidity
Spice
SPIR-V
Swift
LLVM TableGen
Toit
TypeScript Native
V
Vala
Visual Basic
WASM
Zig
Javascript
GIMPLE
Ygen
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 4.0.1
clang 5.0.0
clang 6.0.0
clang 7.0.0
clang 8.0.0
clang 9.0.0
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 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 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 = 'paint3' source_filename = "paint3" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-generic-linux" define double @julia_paint3_1955([1 x {} addrspace(10)*] addrspace(11)* nocapture nonnull readonly align 8 dereferenceable(8) %0) #0 !dbg !5 { top: %1 = bitcast [1 x {} addrspace(10)*] addrspace(11)* %0 to {} addrspace(10)* addrspace(10)* addrspace(11)*, !dbg !7 %2 = load atomic {} addrspace(10)* addrspace(10)*, {} addrspace(10)* addrspace(10)* addrspace(11)* %1 unordered, align 8, !dbg !7, !tbaa !14, !nonnull !4, !dereferenceable !18, !align !19 %3 = getelementptr inbounds {} addrspace(10)*, {} addrspace(10)* addrspace(10)* %2, i64 3, !dbg !20 %4 = bitcast {} addrspace(10)* addrspace(10)* %3 to i64 addrspace(10)*, !dbg !20 %5 = addrspacecast i64 addrspace(10)* %4 to i64 addrspace(11)*, !dbg !20 %6 = load i64, i64 addrspace(11)* %5, align 8, !dbg !20, !tbaa !30, !range !33 %.not = icmp eq i64 %6, 0, !dbg !34 br i1 %.not, label %L60, label %L14.lr.ph, !dbg !37 L14.lr.ph: ; preds = %top %7 = bitcast {} addrspace(10)* addrspace(10)* %2 to [1 x i64] addrspace(13)* addrspace(10)*, !dbg !38 %8 = addrspacecast [1 x i64] addrspace(13)* addrspace(10)* %7 to [1 x i64] addrspace(13)* addrspace(11)*, !dbg !38 %9 = load [1 x i64] addrspace(13)*, [1 x i64] addrspace(13)* addrspace(11)* %8, align 8, !dbg !38, !tbaa !43, !nonnull !4 br label %L14, !dbg !45 L14: ; preds = %L14, %L14.lr.ph %value_phi120 = phi i64 [ 0, %L14.lr.ph ], [ %14, %L14 ] %value_phi19 = phi double [ 0.000000e+00, %L14.lr.ph ], [ %13, %L14 ] %10 = getelementptr inbounds [1 x i64], [1 x i64] addrspace(13)* %9, i64 %value_phi120, i64 0, !dbg !46 %11 = bitcast i64 addrspace(13)* %10 to double addrspace(13)*, !dbg !46 %12 = load double, double addrspace(13)* %11, align 8, !dbg !46, !tbaa !47 %13 = fadd fast double %12, %value_phi19, !dbg !50 %14 = add nuw nsw i64 %value_phi120, 1, !dbg !53 %exitcond.not = icmp eq i64 %14, %6, !dbg !56 br i1 %exitcond.not, label %L60, label %L14, !dbg !45, !llvm.loop !57 L60: ; preds = %L14, %top %value_phi4 = phi double [ 0.000000e+00, %top ], [ %13, %L14 ] ret double %value_phi4, !dbg !58 } define nonnull {} addrspace(10)* @jfptr_paint3_1956({} addrspace(10)* %0, {} addrspace(10)** %1, i32 %2) #1 { top: %gcframe2 = alloca [3 x {} addrspace(10)*], align 16 %gcframe2.sub = getelementptr inbounds [3 x {} addrspace(10)*], [3 x {} addrspace(10)*]* %gcframe2, i64 0, i64 0 %3 = bitcast [3 x {} addrspace(10)*]* %gcframe2 to i8* call void @llvm.memset.p0i8.i32(i8* nonnull align 16 dereferenceable(24) %3, i8 0, i32 24, i1 false), !tbaa !59 %thread_ptr = call i8* asm "movq %fs:0, $0", "=r"() #8 %ptls_i8 = getelementptr i8, i8* %thread_ptr, i64 -32768 %4 = bitcast [3 x {} addrspace(10)*]* %gcframe2 to i64* store i64 4, i64* %4, align 16, !tbaa !59 %5 = getelementptr inbounds [3 x {} addrspace(10)*], [3 x {} addrspace(10)*]* %gcframe2, i64 0, i64 1 %6 = bitcast i8* %ptls_i8 to i64* %7 = load i64, i64* %6, align 8 %8 = bitcast {} addrspace(10)** %5 to i64* store i64 %7, i64* %8, align 8, !tbaa !59 %9 = bitcast i8* %ptls_i8 to {} addrspace(10)*** store {} addrspace(10)** %gcframe2.sub, {} addrspace(10)*** %9, align 8 %10 = bitcast {} addrspace(10)** %1 to [1 x {} addrspace(10)*] addrspace(10)** %11 = load [1 x {} addrspace(10)*] addrspace(10)*, [1 x {} addrspace(10)*] addrspace(10)** %10, align 8, !nonnull !4, !dereferenceable !61, !align !61 %12 = addrspacecast [1 x {} addrspace(10)*] addrspace(10)* %11 to [1 x {} addrspace(10)*] addrspace(11)* %13 = getelementptr inbounds [3 x {} addrspace(10)*], [3 x {} addrspace(10)*]* %gcframe2, i64 0, i64 2 %14 = bitcast {} addrspace(10)** %13 to [1 x {} addrspace(10)*] addrspace(10)** store [1 x {} addrspace(10)*] addrspace(10)* %11, [1 x {} addrspace(10)*] addrspace(10)** %14, align 16 %15 = call double @julia_paint3_1955([1 x {} addrspace(10)*] addrspace(11)* nocapture readonly %12) #0 %16 = call noalias nonnull {} addrspace(10)* @jl_gc_pool_alloc(i8* %ptls_i8, i32 1400, i32 16) #2 %17 = bitcast {} addrspace(10)* %16 to i64 addrspace(10)* %18 = getelementptr inbounds i64, i64 addrspace(10)* %17, i64 -1 store atomic i64 140482387707312, i64 addrspace(10)* %18 unordered, align 8, !tbaa !62 %19 = bitcast {} addrspace(10)* %16 to double addrspace(10)* store double %15, double addrspace(10)* %19, align 8, !tbaa !64 %20 = load i64, i64* %8, align 8, !tbaa !59 store i64 %20, i64* %6, align 8, !tbaa !59 ret {} addrspace(10)* %16 } ; Function Attrs: allocsize(1) declare noalias nonnull {} addrspace(10)* @julia.gc_alloc_obj(i8*, i64, {} addrspace(10)*) #2 ; Function Attrs: noreturn declare void @jl_throw({} addrspace(12)*) #3 ; Function Attrs: cold noreturn nounwind declare void @llvm.trap() #4 declare nonnull {} addrspace(10)* @j_throw_boundserror_1957([1 x i64] addrspace(11)* nocapture readonly, i64 signext) #0 ; Function Attrs: argmemonly nounwind willreturn declare void @llvm.lifetime.start.p0i8(i64 immarg, i8* nocapture) #5 ; Function Attrs: argmemonly nounwind willreturn declare void @llvm.lifetime.end.p0i8(i64 immarg, i8* nocapture) #5 ; Function Attrs: inaccessiblemem_or_argmemonly declare void @jl_gc_queue_root({} addrspace(10)*) #6 ; Function Attrs: allocsize(1) declare noalias nonnull {} addrspace(10)* @jl_gc_pool_alloc(i8*, i32, i32) #2 ; Function Attrs: allocsize(1) declare noalias nonnull {} addrspace(10)* @jl_gc_big_alloc(i8*, i64) #2 declare noalias nonnull {} addrspace(10)** @julia.new_gc_frame(i32) declare void @julia.push_gc_frame({} addrspace(10)**, i32) declare {} addrspace(10)** @julia.get_gc_frame_slot({} addrspace(10)**, i32) declare void @julia.pop_gc_frame({} addrspace(10)**) ; Function Attrs: allocsize(1) declare noalias nonnull {} addrspace(10)* @julia.gc_alloc_bytes(i8*, i64) #2 ; Function Attrs: argmemonly nounwind willreturn writeonly declare void @llvm.memset.p0i8.i32(i8* nocapture writeonly, i8, i32, i1 immarg) #7 attributes #0 = { "probe-stack"="inline-asm" } attributes #1 = { "probe-stack"="inline-asm" "thunk" } attributes #2 = { allocsize(1) } attributes #3 = { noreturn } attributes #4 = { cold noreturn nounwind } attributes #5 = { argmemonly nounwind willreturn } attributes #6 = { inaccessiblemem_or_argmemonly } attributes #7 = { argmemonly nounwind willreturn writeonly } attributes #8 = { nounwind } !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: "REPL[74]", directory: ".") !4 = !{} !5 = distinct !DISubprogram(name: "paint3", linkageName: "julia_paint3_1955", scope: null, file: !3, line: 1, type: !6, scopeLine: 1, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !4) !6 = !DISubroutineType(types: !4) !7 = !DILocation(line: 33, scope: !8, inlinedAt: !10) !8 = distinct !DISubprogram(name: "getproperty;", linkageName: "getproperty", scope: !9, file: !9, type: !6, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !4) !9 = !DIFile(filename: "Base.jl", directory: ".") !10 = !DILocation(line: 69, scope: !11, inlinedAt: !13) !11 = distinct !DISubprogram(name: "macro expansion;", linkageName: "macro expansion", scope: !12, file: !12, type: !6, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !4) !12 = !DIFile(filename: "simdloop.jl", directory: ".") !13 = !DILocation(line: 3, scope: !5) !14 = !{!15, !15, i64 0} !15 = !{!"jtbaa_const", !16, i64 0} !16 = !{!"jtbaa", !17, i64 0} !17 = !{!"jtbaa"} !18 = !{i64 40} !19 = !{i64 16} !20 = !DILocation(line: 151, scope: !21, inlinedAt: !23) !21 = distinct !DISubprogram(name: "size;", linkageName: "size", scope: !22, file: !22, type: !6, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !4) !22 = !DIFile(filename: "array.jl", directory: ".") !23 = !DILocation(line: 95, scope: !24, inlinedAt: !26) !24 = distinct !DISubprogram(name: "axes;", linkageName: "axes", scope: !25, file: !25, type: !6, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !4) !25 = !DIFile(filename: "abstractarray.jl", directory: ".") !26 = !DILocation(line: 116, scope: !27, inlinedAt: !28) !27 = distinct !DISubprogram(name: "axes1;", linkageName: "axes1", scope: !25, file: !25, type: !6, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !4) !28 = !DILocation(line: 282, scope: !29, inlinedAt: !10) !29 = distinct !DISubprogram(name: "eachindex;", linkageName: "eachindex", scope: !25, file: !25, type: !6, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !4) !30 = !{!31, !31, i64 0} !31 = !{!"jtbaa_arraysize", !32, i64 0} !32 = !{!"jtbaa_array", !16, i64 0} !33 = !{i64 0, i64 9223372036854775807} !34 = !DILocation(line: 83, scope: !35, inlinedAt: !37) !35 = distinct !DISubprogram(name: "<;", linkageName: "<", scope: !36, file: !36, type: !6, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !4) !36 = !DIFile(filename: "int.jl", directory: ".") !37 = !DILocation(line: 72, scope: !11, inlinedAt: !13) !38 = !DILocation(line: 0, scope: !39, inlinedAt: !40) !39 = distinct !DISubprogram(name: "getindex;", linkageName: "getindex", scope: !22, file: !22, type: !6, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !4) !40 = !DILocation(line: 4, scope: !41, inlinedAt: !42) !41 = distinct !DISubprogram(name: "macro expansion;", linkageName: "macro expansion", scope: !3, file: !3, type: !6, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !4) !42 = !DILocation(line: 77, scope: !11, inlinedAt: !13) !43 = !{!44, !44, i64 0} !44 = !{!"jtbaa_arrayptr", !32, i64 0} !45 = !DILocation(line: 75, scope: !11, inlinedAt: !13) !46 = !DILocation(line: 833, scope: !39, inlinedAt: !40) !47 = !{!48, !48, i64 0} !48 = !{!"jtbaa_arraybuf", !49, i64 0} !49 = !{!"jtbaa_data", !16, i64 0} !50 = !DILocation(line: 165, scope: !51, inlinedAt: !40) !51 = distinct !DISubprogram(name: "add_fast;", linkageName: "add_fast", scope: !52, file: !52, type: !6, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !4) !52 = !DIFile(filename: "fastmath.jl", directory: ".") !53 = !DILocation(line: 87, scope: !54, inlinedAt: !55) !54 = distinct !DISubprogram(name: "+;", linkageName: "+", scope: !36, file: !36, type: !6, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !4) !55 = !DILocation(line: 78, scope: !11, inlinedAt: !13) !56 = !DILocation(line: 83, scope: !35, inlinedAt: !45) !57 = distinct !{!57} !58 = !DILocation(line: 6, scope: !5) !59 = !{!60, !60, i64 0} !60 = !{!"jtbaa_gcframe", !16, i64 0} !61 = !{i64 8} !62 = !{!63, !63, i64 0} !63 = !{!"jtbaa_tag", !49, i64 0} !64 = !{!65, !65, i64 0} !65 = !{!"jtbaa_immut", !66, i64 0} !66 = !{!"jtbaa_value", !49, i64 0}
Become a Patron
Sponsor on GitHub
Donate via PayPal
Source on GitHub
Mailing list
Installed libraries
Wiki
Report an issue
How it works
Contact the author
CE on Mastodon
About the author
Statistics
Changelog
Version tree