From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1164169AbdDXCWH (ORCPT ); Sun, 23 Apr 2017 22:22:07 -0400 Received: from conssluserg-04.nifty.com ([210.131.2.83]:42874 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1164144AbdDXCV7 (ORCPT ); Sun, 23 Apr 2017 22:21:59 -0400 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com v3O2Lnmn016330 X-Nifty-SrcIP: [209.85.161.171] MIME-Version: 1.0 In-Reply-To: <20170421195502.GL128305@google.com> References: <20170404172706.171971-1-mka@chromium.org> <20170421195502.GL128305@google.com> From: Masahiro Yamada Date: Mon, 24 Apr 2017 11:21:48 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] kbuild: Add support to generate LLVM bitcode files To: Matthias Kaehlcke Cc: Michal Marek , Emese Revfy , Kees Cook , Behan Webster , "Luis R . Rodriguez" , =?UTF-8?Q?Vin=C3=ADcius_Tinti?= , Kyeongmin Cho , Linux Kernel Mailing List , Linux Kbuild mailing list , Grant Grundler , Michael Davidson , Greg Hackmann , Peter Foley Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v3O2MD6K021688 Hi Matthias, 2017-04-22 4:55 GMT+09:00 Matthias Kaehlcke : > Hi Masahiro, > > El Fri, Apr 21, 2017 at 02:02:46PM +0900 Masahiro Yamada ha dit: > >> 2017-04-05 2:27 GMT+09:00 Matthias Kaehlcke : >> > From: Vinícius Tinti >> > >> > Add rules to kbuild in order to generate LLVM bitcode files with the .ll >> > extension when using clang. >> >> >> First, I'd like to be sure about the terminology "LLVM bitcode" >> because "bitcode" sounds like human-unreadable binary. >> >> >> For example, 'man llvm-as' says: >> llvm-as is the LLVM assembler. It reads a file containing >> human-readable LLVM assembly language, translates it to LLVM >> bitcode, and writes the result into a file or to standard output. >> One more thing: Please add '*.ll' pattern to the following clean target. clean: $(clean-dirs) $(call cmd,rmdirs) $(call cmd,rmfiles) @find $(if $(KBUILD_EXTMOD), $(KBUILD_EXTMOD), .) $(RCS_FIND_IGNORE) \ \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \ -o -name '*.ko.*' \ -o -name '*.dwo' \ -o -name '*.su' \ -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \ -o -name '*.symtypes' -o -name 'modules.order' \ -o -name modules.builtin -o -name '.tmp_*.o.*' \ -o -name '*.c.[012]*.*' \ -o -name '*.gcno' \) -type f -print | xargs rm -f -- Best Regards Masahiro Yamada