From owner-freebsd-toolchain@FreeBSD.ORG Fri Jun 10 15:56:53 2011 Return-Path: Delivered-To: toolchain@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 59B071065670; Fri, 10 Jun 2011 15:56:53 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id EBFEA8FC14; Fri, 10 Jun 2011 15:56:52 +0000 (UTC) Received: from [10.30.101.53] ([209.117.142.2]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id p5AFroSr044160 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Fri, 10 Jun 2011 09:53:51 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <5A6AC098-FB0D-474A-B92D-190121CA400F@xcllnt.net> Date: Fri, 10 Jun 2011 09:53:38 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <2657C7E1-C7A2-4D0D-BB69-21BB6741DD9A@bsdimp.com> References: <20110610072512.GA35144@freebsd.org> <5A6AC098-FB0D-474A-B92D-190121CA400F@xcllnt.net> To: Marcel Moolenaar X-Mailer: Apple Mail (2.1084) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (harmony.bsdimp.com [10.0.0.6]); Fri, 10 Jun 2011 09:53:52 -0600 (MDT) Cc: toolchain@FreeBSD.ORG, Roman Divacky Subject: Re: llvm-ia64 is off the ground... X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2011 15:56:53 -0000 Hey Marcel, I don't mean to throw cold water at your enthusiasm, but I thought I = heard that upstream llvm was in the process of decommissioning ia64 = support. Did I hear wrong? Warner On Jun 10, 2011, at 9:38 AM, Marcel Moolenaar wrote: >=20 > On Jun 10, 2011, at 12:25 AM, Roman Divacky wrote: >=20 >> On Thu, Jun 09, 2011 at 07:20:04PM -0700, Marcel Moolenaar wrote: >>> [CC toolchain@ -- more eyes is probably better] >>>=20 >>> Hi Roman, >>>=20 >>> I created the projects branch and committed a skeletal target >>> for ia64 that's based on MSP430. I also discovered that CLang >>> needs some target info, so I added that too. >>>=20 >>> The branch is: >>> projects/llvm-ia64 >>=20 >> wow :) This is fantastic. >>=20 >>> When you have time, feel free to go over it and critique what >>> I've done. >>=20 >> I sure will do! How do you build that? Do I have to build whole >> freebsd world or is there some easier way? Will "make" in = usr.bin/clang >> work? >=20 > On my FreeBSD 8 I first made lib/clang/libllvmsupport. After > that I could make usr.bin/clang/tblgen and install it. Then > it's easy: build lib/clang followed by usr.bin/clang. Install > from usr.bin/clang >=20 > Unfortunately, the FreeBSD build doesn't give me goodies like > llc or bugpoint so there may be value in adding that to the > FreeBSD build as optional or developer-only build targets... >=20 > Thoughts anyone? >=20 >>=20 >>> My next steps are simple: Fix whatever blocks me from making >>> progress: >>>=20 >>> ns1% cat ~/incr.c=20 >>> int >>> incr(int x) >>> { >>> return (x + 1); >>> } >>> ns1% clang -ccc-host-triple ia64 -S ~/incr.c=20 >>> 'generic' is not a recognized processor for this target (ignoring = processor) >>=20 >> You can ignore this for now I think. >=20 > I'll probably implement something simple like the merced and > mckinley subtargets and default to mckinley. Later, when it's > time to look at optimizations, is when this becomes important. >=20 >>=20 >>> error: unable to interface with target machine >>> 1 error generated. >>=20 >> You have to create and register IA64InstPrinter. Check = MSP430/InstPrinter/* >> and and MSP430AsmPrinter.cpp:createMSP430MCInstPrinter(). >=20 > Ah, ok... >=20 > BTW: these little tips save me hours of debugging. >=20 >> I'll take some detailed looked in the evening! >=20 > Thanks. Anytime, no rush... >=20 > --=20 > Marcel Moolenaar > marcel@xcllnt.net >=20 >=20 > _______________________________________________ > freebsd-toolchain@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain > To unsubscribe, send any mail to = "freebsd-toolchain-unsubscribe@freebsd.org" >=20 >=20