Sjoerd Meijer via llvm-dev
2021-Jun-10 15:47 UTC
[llvm-dev] Adding libcall support for Rust's new vector math library
> Yeah, I'm aware the infrastructure already exists, I'm just not sure how I should add the new code -- which classes should I subclass/modify?I think you could do this by example. There is a front-end part, e.g. https://reviews.llvm.org/D53928, and there is back-end part, e.g. https://reviews.llvm.org/D53927. ________________________________ From: Jacob Lifshay <programmerjake at gmail.com> Sent: 09 June 2021 18:52 To: Sjoerd Meijer <Sjoerd.Meijer at arm.com> Cc: llvm-dev <llvm-dev at lists.llvm.org>; Jubilee Young <workingjubilee at gmail.com> Subject: Re: [llvm-dev] Adding libcall support for Rust's new vector math library On Tue, Jun 8, 2021, 02:48 Sjoerd Meijer <Sjoerd.Meijer at arm.com<mailto:Sjoerd.Meijer at arm.com>> wrote: Sounds like a good plan to me, but perhaps others know more/better. Thanks! Clang option -fveclib= can be used to specify a vector library, so I think the infrastructure is there and you'll just need to plumb in support for yours. Yeah, I'm aware the infrastructure already exists, I'm just not sure how I should add the new code -- which classes should I subclass/modify? Jacob -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210610/ef474007/attachment.html>
Jacob Lifshay via llvm-dev
2021-Jun-11 06:39 UTC
[llvm-dev] Adding libcall support for Rust's new vector math library
On Thu, Jun 10, 2021 at 8:47 AM Sjoerd Meijer <Sjoerd.Meijer at arm.com> wrote:> > > > Yeah, I'm aware the infrastructure already exists, I'm just not sure how I should add the new code -- which classes should I subclass/modify? > > I think you could do this by example. There is a front-end part, e.g. https://reviews.llvm.org/D53928, and there is back-end part, e.g. https://reviews.llvm.org/D53927.Thanks for the links! Would we have to add support to clang in order to merge our patches, or can we get away with just adding support to llvm and rustc for now since the vector math library is going to be mostly used just through rustc? Jacob