https://github.com/arichardson created 
https://github.com/llvm/llvm-project/pull/177249

This adds a new pointer address space to the data layout when RVY is
enabled, making use of the new 'e' flag for pointers with
[external state](https://github.com/llvm/llvm-project/pull/105735).
I chose address space 200 since that is what has been used in the
downstream CHERI forks for the past decade and therefore makes it slightly
easier to upstream tests, etc. but am happy to use any other value if that
is preferred. This extends computeRISCVDataLayout() to also accept the
LLVM features string so that we can detect whether Y is enabled or not.
Once RVY ABIs are upstreamed, we can look at the ABI name parameter to
detect pure-capability ABIs, but we still need the feature string/ISAInfo
to handle the "hybrid" case where only some pointers use Y registers.



_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to