maleadt / LLVM.jl

Julia wrapper for the LLVM C API
Other
132 stars 41 forks source link

Support for LLVM memoryeffects attribute #422

Open wsmoses opened 3 months ago

wsmoses commented 3 months ago

With readonly/readnone/writeonly being no longer permissible as llvm fn args in later LLVM's a nice way to query for this would be helpful

maleadt commented 3 months ago

Needs something like https://github.com/llvm/llvm-project/pull/75123 but for setMemoryEffects/getMemoryEffects.

wsmoses commented 3 months ago

Enzyme.jl now vendors its own version of this here to be able to not crash on 1.11: https://github.com/EnzymeAD/Enzyme.jl/blob/e9804331d9e5ef6c277982e68f9077203b6d1a37/src/compiler/utils.jl#L1

Happy to have that brought in upstream here.