[llvm-dev] A question on address space

Kavindu Gimhan Zoysa via llvm-dev llvm-dev at lists.llvm.org
Sat Jul 3 23:45:44 PDT 2021


Hi all,

I have some unclear points related to non-integral address space. I am
really sorry if I misunderstood this concept.

If I specify a non-default address space in LLVM IR (Let’s say we use
address space 1 for GC statepoint-example as shown here
<https://releases.llvm.org/11.0.1/docs/Statepoints.html#rewritestatepointsforgc>),
do we need to remove that address space(may be using a different pass) at
some point in the LLVM pipeline?

Because I have seen in Julia
<https://github.com/JuliaLang/julia/commit/87e7a33816be856e3c722029a89e409815c0fc5a>
and
gollvm
<https://go.googlesource.com/gollvm/+/69a2c98b2992aff8efc4e4195b8b319a361cae97%5E%21/>,
there are passes to remove address spaces and address space casts. As far
as I understood this pass is run after optimization phases.

Thank you,
Kavindu

Kavindu Gimhan Zoysa,
BSc(Hons) | ENTC | UoM,
ATL | WSO2

GitHub <https://github.com/KavinduZoysa> LinkedIn
<https://www.linkedin.com/in/kavindu-gimhan-zoysa-85939a122/> Medium
<https://medium.com/@kavindugimhanzoysa>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210704/e9958767/attachment.html>


More information about the llvm-dev mailing list