Павел Безбородов via llvm-dev
2018-Sep-27 11:56 UTC
[llvm-dev] How to cross-compile for ARC in clang?
Oh, that's what I was afraid of. So there is definetly no way to compile for ARC? If so, should I write ARC.h(.cpp) in lib/Basic/Targets in order to make it work? чт, 27 сент. 2018 г. в 14:47, Tim Northover <t.p.northover at gmail.com>:> Hi, > > On Thu, 27 Sep 2018 at 12:41, Павел Безбородов via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > > clang -target arc -S test.cpp > > I couldn't find any trace of ARC in the Clang source, so I suspect > it's only supported by LLVM at the moment. > > Cheers. > > Tim, >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180927/79fc55bd/attachment.html>
Tim Northover via llvm-dev
2018-Sep-27 12:31 UTC
[llvm-dev] How to cross-compile for ARC in clang?
On Thu, 27 Sep 2018 at 12:56, Павел Безбородов <dfa.sro591 at gmail.com> wrote:> Oh, that's what I was afraid of. > So there is definetly no way to compile for ARC? > If so, should I write ARC.h(.cpp) in lib/Basic/Targets in order to make it work?Yes, lib/Basic/Targets looks like the basic entry point. If you don't care what ABI or CPU you get that might be enough. Otherwise you'll want to investigate lib/CodeGen/TargetInfo.cpp and lib/Driver/ToolChains/Arch/ARC.cpp too. There are other target-specific details scattered around the source, but those are the main ones to get started. Cheers. Tim.
Tom Honermann via llvm-dev
2018-Sep-27 13:17 UTC
[llvm-dev] How to cross-compile for ARC in clang?
On 9/27/2018 7:56 AM, Павел Безбородов via llvm-dev wrote: Oh, that's what I was afraid of. So there is definetly no way to compile for ARC? If so, should I write ARC.h(.cpp) in lib/Basic/Targets in order to make it work? I suggest you reach out to the contributors of the LLVM ARC backend (CCd) to ask about their plans to contribute target support for Clang. I believe they have work in progress, but I don't know their plans for contributing it. Tom. чт, 27 сент. 2018 г. в 14:47, Tim Northover <t.p.northover at gmail.com<mailto:t.p.northover at gmail.com>>: Hi, On Thu, 27 Sep 2018 at 12:41, Павел Безбородов via llvm-dev <llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>> wrote:> clang -target arc -S test.cppI couldn't find any trace of ARC in the Clang source, so I suspect it's only supported by LLVM at the moment. Cheers. Tim, -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180927/5f3ace9a/attachment.html>
Pete Couperus via llvm-dev
2018-Sep-27 15:32 UTC
[llvm-dev] How to cross-compile for ARC in clang?
Hello, Thanks for the note here. We put up a patch a while back for enabling the ARC target in clang, the compiler: https://reviews.llvm.org/D43089 (I didn't realize this was from so far back until looking now). The current backend has really only been exercised through C. So, applying this patch should help. We also have some driver changes which can be used to integrate with the ARC GNU toolchain. The sticky point is C++ support. Pete From: Tom Honermann Sent: Thursday, September 27, 2018 6:17 AM To: Павел Безбородов <dfa.sro591 at gmail.com>; t.p.northover at gmail.com; llvm-dev at lists.llvm.org Cc: Pete Couperus <petecoup at synopsys.com> Subject: Re: [llvm-dev] How to cross-compile for ARC in clang? On 9/27/2018 7:56 AM, Павел Безбородов via llvm-dev wrote: Oh, that's what I was afraid of. So there is definetly no way to compile for ARC? If so, should I write ARC.h(.cpp) in lib/Basic/Targets in order to make it work? I suggest you reach out to the contributors of the LLVM ARC backend (CCd) to ask about their plans to contribute target support for Clang. I believe they have work in progress, but I don't know their plans for contributing it. Tom. чт, 27 сент. 2018 г. в 14:47, Tim Northover <t.p.northover at gmail.com<mailto:t.p.northover at gmail.com>>: Hi, On Thu, 27 Sep 2018 at 12:41, Павел Безбородов via llvm-dev <llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>> wrote:> clang -target arc -S test.cppI couldn't find any trace of ARC in the Clang source, so I suspect it's only supported by LLVM at the moment. Cheers. Tim, -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180927/6cd3c855/attachment-0001.html>