[libc-commits] [libc] [libc] Remove the optional arguments for NVPTX constructors (PR #69536)

Aaron Ballman via libc-commits libc-commits at lists.llvm.org
Thu Oct 19 10:36:11 PDT 2023


AaronBallman wrote:

> > I'm not familiar enough with the conventions for calling the initializers. Added @MaskRay who'd have a better idea.
> 
> I think @AaronBallman was also working with this recently. Basically there's an optional form that `glibc` and some others use that allow passing the arugments to `main` to the constructor. But the standard version is no arguments. The problem is that NVPTX needs to have the signature matching exactly so we apparently can't support the extended form.

Yeah, that was this work: https://github.com/llvm/llvm-project/pull/67673 (landed and then reverted and then I ran out of time to get it across the finish line -- if someone wanted to pick that up, I would be happy to review/help).

https://github.com/llvm/llvm-project/pull/69536


More information about the libc-commits mailing list