Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752558AbcLFCKV (ORCPT ); Mon, 5 Dec 2016 21:10:21 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:17054 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752287AbcLFCIp (ORCPT ); Mon, 5 Dec 2016 21:08:45 -0500 Subject: Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case To: Arnaldo Carvalho de Melo , Alexei Starovoitov References: <20161126070354.141764-1-wangnan0@huawei.com> <20161126070354.141764-11-wangnan0@huawei.com> <20161202154440.GB5931@redhat.com> <20161205165055.GB79989@ast-mbp.thefacebook.com> <20161205210248.GA2247@redhat.com> <20161205214832.GB2247@redhat.com> CC: , , , Ingo Molnar , , , , Jiri Olsa , From: "Wangnan (F)" Message-ID: <58461D77.8070202@huawei.com> Date: Tue, 6 Dec 2016 10:07:51 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <20161205214832.GB2247@redhat.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.111.66.109] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1369 Lines: 31 On 2016/12/6 5:48, Arnaldo Carvalho de Melo wrote: > Em Mon, Dec 05, 2016 at 07:02:48PM -0200, Arnaldo Carvalho de Melo escreveu: >> Em Mon, Dec 05, 2016 at 08:51:01AM -0800, Alexei Starovoitov escreveu: >>> yeah. it's kinda high. I'm guessing rpm llvm libs are in debug mode. >>> Try llvm-config --build-mode --assertion-mode >>> it should be Release OFF >> Probably this was with 3.9 and built from git, quite a while ago, now I >> removed it from /usr/local/ and installed what is in f25, but I fear it >> will be insufficient, does 3.8 cuts it for what we're testing? Humm, it >> looks like it will: >> >> [root@jouet ~]# llc --version >> LLVM (http://llvm.org/): >> LLVM version 3.8.0 >> >> But I'm now running the container based tests to send a pull req, will >> check later, after that. > Not really, Wang, we need to update that feature detection test to state what > is the minimum required LLVM/clang version, one that has those functions, > which, unfortunately, isn't the one in the latest fedora, fedora 25: I'll set the minimum required LLVM version to 3.9, and report warning when LLVM is too old. However, since LLVM interface is keep changing, finally we will have problem if we want to support 2 or 3 different clang/LLVM. We should keep moving minimum requirement LLVM version if we don't want to see '#ifdef's spread in our code. Thank you.