[llvm-dev] Adding a new target to 'llvm-lld'

ORiordan, Martin via llvm-dev
Thu, 25 Jan 2018 17:27:07 -0000

Thanks Alex, nothing quite as good as learning by example :-)

	MartinO

-----Original Message-----
From: Alex Bradbury [mailto:asb at lowrisc.org]
Sent: Thursday, January 25, 2018 3:47 PM
To: ORiordan, Martin <martin.oriordan at intel.com>
Cc: llvm-dev <llvm-dev at lists.llvm.org>; PkmX <pkmx.tw at
gmail.com>
Subject: Re: [llvm-dev] Adding a new target to 'llvm-lld'

On 25 January 2018 at 15:38, ORiordan, Martin via llvm-dev <llvm-dev at
lists.llvm.org> wrote:
> Hi LLVM-Devs,
>
> I am considering switching to using 'llvm-lld' instead of Gnu
'ld' in a future revision of our out-of-tree target, and I am wondering
is there a getting started guide for how to go about extending
'llvm-lld' to support an additional target.

I don't believe there is, but the patches from Chih-Mao Chen for RISC-V
support seemed well structured to me, so may be useful to learn
from:
* https://reviews.llvm.org/D39322
* https://reviews.llvm.org/D39323
* https://reviews.llvm.org/D39324

As a side note: if any LLD devs have time to review these patches, it would be
hugely appreciated.

Best,

Alex