We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 724c622 commit 36170a2Copy full SHA for 36170a2
src/llvm/attributes.jl
@@ -447,6 +447,29 @@ function annotate!(mod::LLVM.Module)
447
end
448
449
450
+ for fname in
451
+ ("memhash_seed",)
452
+ if haskey(funcs, fname)
453
+ for fn in funcs[fname]
454
+ if LLVM.version().major <= 15
455
+ push!(function_attributes(fn), LLVM.EnumAttribute("readonly"))
456
+ else
457
+ push!(
458
+ function_attributes(fn),
459
+ EnumAttribute(
460
+ "memory",
461
+ MemoryEffect(
462
+ (MRI_Ref << getLocationPos(ArgMem)) |
463
+ (MRI_NoModRef << getLocationPos(InaccessibleMem)) |
464
+ (MRI_NoModRef << getLocationPos(Other)),
465
+ ).data,
466
+ ),
467
+ )
468
+ end
469
470
471
472
+
473
for fname in ("jl_types_equal", "ijl_types_equal")
474
if haskey(funcs, fname)
475
for fn in funcs[fname]
0 commit comments