Skip to content

Commit 674fd0d

Browse files
authored
Cleanup objid attributes (#1642)
1 parent 3d5f8e2 commit 674fd0d

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/compiler.jl

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ end
155155
end
156156

157157
const nofreefns = Set{String}((
158+
"ijl_gc_run_pending_finalizers", "jl_gc_run_pending_finalizers",
158159
"ijl_typeassert", "jl_typeassert",
159160
"ijl_f_isdefined", "jl_f_isdefined",
160161
"ijl_field_index", "jl_field_index",
@@ -3312,7 +3313,7 @@ function annotate!(mod, mode)
33123313
end
33133314
end
33143315

3315-
for fname in ("julia.typeof",)
3316+
for fname in ("julia.typeof", "jl_object_id_", "jl_object_id", "ijl_object_id_", "ijl_object_id")
33163317
if haskey(fns, fname)
33173318
fn = fns[fname]
33183319
if LLVM.version().major <= 15
@@ -3487,17 +3488,6 @@ function annotate!(mod, mode)
34873488
end
34883489
end
34893490

3490-
for rfn in ("jl_object_id_", "jl_object_id", "ijl_object_id_", "ijl_object_id")
3491-
if haskey(fns, rfn)
3492-
fn = fns[rfn]
3493-
if LLVM.version().major <= 15
3494-
push!(function_attributes(fn), LLVM.EnumAttribute("readnone"))
3495-
else
3496-
push!(function_attributes(fn), EnumAttribute("memory", NoEffects.data))
3497-
end
3498-
end
3499-
end
3500-
35013491
# Key of jl_eqtable_get/put is inactive, definitionally
35023492
for rfn in ("jl_eqtable_get", "ijl_eqtable_get")
35033493
if haskey(fns, rfn)

0 commit comments

Comments
 (0)