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
Vyper
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 = 'max_tuple' source_filename = "max_tuple" 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-w64-windows-gnu-elf" @"+Core.Float64#3429" = private unnamed_addr constant ptr @"+Core.Float64#3429.jit" @"+Core.Float64#3429.jit" = private alias ptr, inttoptr (i64 140704474769456 to ptr) ; Function Signature: max_tuple(NTuple{8, Float64}) ; Function Attrs: uwtable define double @julia_max_tuple_3427(ptr nocapture noundef nonnull readonly align 8 dereferenceable(64) %"t::Tuple") #0 { top: %pgcstack = call ptr @julia.get_pgcstack() %current_task = getelementptr inbounds i8, ptr %pgcstack, i32 -144 %world_age = getelementptr inbounds i8, ptr %current_task, i32 152 %0 = load i64, ptr %world_age, align 8 %"t::Tuple[2]_ptr" = getelementptr inbounds i8, ptr %"t::Tuple", i32 8 %"t::Tuple[3]_ptr" = getelementptr inbounds i8, ptr %"t::Tuple", i32 16 %"t::Tuple[4]_ptr" = getelementptr inbounds i8, ptr %"t::Tuple", i32 24 %"t::Tuple[5]_ptr" = getelementptr inbounds i8, ptr %"t::Tuple", i32 32 %"t::Tuple[6]_ptr" = getelementptr inbounds i8, ptr %"t::Tuple", i32 40 %"t::Tuple[7]_ptr" = getelementptr inbounds i8, ptr %"t::Tuple", i32 48 %"t::Tuple[8]_ptr" = getelementptr inbounds i8, ptr %"t::Tuple", i32 56 %"t::Tuple.unbox" = load double, ptr %"t::Tuple", align 8 %"t::Tuple[2]_ptr.unbox" = load double, ptr %"t::Tuple[2]_ptr", align 8 %1 = fcmp fast olt double %"t::Tuple.unbox", %"t::Tuple[2]_ptr.unbox" %ifelse_cond = xor i1 %1, true %"t::Tuple[2]_ptr.unbox1" = load double, ptr %"t::Tuple[2]_ptr", align 8 %"t::Tuple.unbox2" = load double, ptr %"t::Tuple", align 8 %2 = select i1 %ifelse_cond, double %"t::Tuple.unbox2", double %"t::Tuple[2]_ptr.unbox1" %"t::Tuple[3]_ptr.unbox" = load double, ptr %"t::Tuple[3]_ptr", align 8 %3 = fcmp fast olt double %2, %"t::Tuple[3]_ptr.unbox" %ifelse_cond3 = xor i1 %3, true %"t::Tuple[3]_ptr.unbox4" = load double, ptr %"t::Tuple[3]_ptr", align 8 %4 = select i1 %ifelse_cond3, double %2, double %"t::Tuple[3]_ptr.unbox4" %"t::Tuple[4]_ptr.unbox" = load double, ptr %"t::Tuple[4]_ptr", align 8 %5 = fcmp fast olt double %4, %"t::Tuple[4]_ptr.unbox" %ifelse_cond5 = xor i1 %5, true %"t::Tuple[4]_ptr.unbox6" = load double, ptr %"t::Tuple[4]_ptr", align 8 %6 = select i1 %ifelse_cond5, double %4, double %"t::Tuple[4]_ptr.unbox6" %"t::Tuple[5]_ptr.unbox" = load double, ptr %"t::Tuple[5]_ptr", align 8 %7 = fcmp fast olt double %6, %"t::Tuple[5]_ptr.unbox" %ifelse_cond7 = xor i1 %7, true %"t::Tuple[5]_ptr.unbox8" = load double, ptr %"t::Tuple[5]_ptr", align 8 %8 = select i1 %ifelse_cond7, double %6, double %"t::Tuple[5]_ptr.unbox8" %"t::Tuple[6]_ptr.unbox" = load double, ptr %"t::Tuple[6]_ptr", align 8 %9 = fcmp fast olt double %8, %"t::Tuple[6]_ptr.unbox" %ifelse_cond9 = xor i1 %9, true %"t::Tuple[6]_ptr.unbox10" = load double, ptr %"t::Tuple[6]_ptr", align 8 %10 = select i1 %ifelse_cond9, double %8, double %"t::Tuple[6]_ptr.unbox10" %"t::Tuple[7]_ptr.unbox" = load double, ptr %"t::Tuple[7]_ptr", align 8 %11 = fcmp fast olt double %10, %"t::Tuple[7]_ptr.unbox" %ifelse_cond11 = xor i1 %11, true %"t::Tuple[7]_ptr.unbox12" = load double, ptr %"t::Tuple[7]_ptr", align 8 %12 = select i1 %ifelse_cond11, double %10, double %"t::Tuple[7]_ptr.unbox12" %"t::Tuple[8]_ptr.unbox" = load double, ptr %"t::Tuple[8]_ptr", align 8 %13 = fcmp fast olt double %12, %"t::Tuple[8]_ptr.unbox" %ifelse_cond13 = xor i1 %13, true %"t::Tuple[8]_ptr.unbox14" = load double, ptr %"t::Tuple[8]_ptr", align 8 %14 = select i1 %ifelse_cond13, double %12, double %"t::Tuple[8]_ptr.unbox14" ret double %14 } ; Function Attrs: noinline optnone uwtable define nonnull ptr @jfptr_max_tuple_3428(ptr %"function::Core.Function", ptr noalias nocapture noundef readonly %"args::Any[]", i32 %"nargs::UInt32") #1 { top: %pgcstack = call ptr @julia.get_pgcstack() %0 = getelementptr inbounds i8, ptr %"args::Any[]", i32 0 %1 = load ptr, ptr %0, align 8 %2 = call double @julia_max_tuple_3427(ptr nocapture readonly %1) %"+Core.Float64#3429" = load ptr, ptr @"+Core.Float64#3429", align 8 %Float64 = ptrtoint ptr %"+Core.Float64#3429" to i64 %3 = inttoptr i64 %Float64 to ptr %current_task = getelementptr inbounds i8, ptr %pgcstack, i32 -144 %"box::Float64" = call noalias nonnull align 8 dereferenceable(8) ptr @julia.gc_alloc_obj(ptr %current_task, i64 8, ptr %3) #4 store double %2, ptr %"box::Float64", align 8 ret ptr %"box::Float64" } declare ptr @julia.get_pgcstack() ; Function Attrs: nounwind willreturn allockind("alloc") allocsize(1) memory(argmem: read, inaccessiblemem: readwrite) declare noalias nonnull ptr @julia.gc_alloc_obj(ptr, i64, ptr) #2 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare void @llvm.dbg.declare(metadata, metadata, metadata) #3 attributes #0 = { uwtable "frame-pointer"="all" "julia.fsig"="max_tuple(NTuple{8, Float64})" } attributes #1 = { noinline optnone uwtable "frame-pointer"="all" } attributes #2 = { nounwind willreturn allockind("alloc") allocsize(1) memory(argmem: read, inaccessiblemem: readwrite) } attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #4 = { nounwind willreturn allockind("alloc,uninitialized") allocsize(1) memory(argmem: read, inaccessiblemem: readwrite) } !llvm.module.flags = !{!0, !1, !2} !0 = !{i32 2, !"Dwarf Version", i32 4} !1 = !{i32 2, !"Debug Info Version", i32 3} !2 = !{i32 2, !"julia.debug_level", i32 2}
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
CE on Bluesky
About the author
Statistics
Changelog
Version tree