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

ORiordan, Martin via llvm-dev llvm-dev at lists.llvm.org
Thu Jan 25 09:27:07 PST 2018


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
--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263


This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.


More information about the llvm-dev mailing list