Skip to content

Instantly share code, notes, and snippets.

@NHDaly
NHDaly / gist:84b685d302dd77e67dbbe56cf3f2fe06
Created March 14, 2022 13:45
`@code_llvm make_str("hi")`
julia> @code_llvm make_str("hi")
; @ REPL[20]:1 within `make_str`
define [1 x {}*] @julia_make_str_596({}* nonnull %0) #0 {
top:
; @ REPL[20]:2 within `make_str`
; ┌ @ Base.jl:178 within `sizeof`
%1 = bitcast {}* %0 to i64*
%2 = load i64, i64* %1, align 8
; └
; ┌ @ int.jl:83 within `<`