Re: changing parameters in build

2018-10-17 Thread Carter Cheng
What I mean is will it nowadays compile the kernel with 4.19 or do you need to manually hack the inline asm? On Wed, Oct 17, 2018 at 9:11 PM Carter Cheng wrote: > Well I found and old post by John Criswell describing how he did his > dissertation project SVA. He didn't use LTO but llvm-link. So

Re: changing parameters in build

2018-10-17 Thread Carter Cheng
Well I found and old post by John Criswell describing how he did his dissertation project SVA. He didn't use LTO but llvm-link. So I figure I would try to do it that way and see if this works since I am not sure how good the current support for LTO is. Will clang generally work if an external

Re: changing parameters in build

2018-10-17 Thread valdis . kletnieks
On Wed, 17 Oct 2018 20:02:46 +0800, Carter Cheng said: > The problem is I have to do something special with the clang options. I > have to add an interprocedural link time optimization pass spitting out > bitcode files and tying them together using llvm-link. As I said back on Friday, this is

Re: changing parameters in build

2018-10-17 Thread Carter Cheng
Thanks! On Wed, Oct 17, 2018 at 8:12 PM Greg KH wrote: > On Wed, Oct 17, 2018 at 08:02:46PM +0800, Carter Cheng wrote: > > The problem is I have to do something special with the clang options. I > > have to add an interprocedural link time optimization pass spitting out > > bitcode files and

Re: changing parameters in build

2018-10-17 Thread Greg KH
On Wed, Oct 17, 2018 at 08:02:46PM +0800, Carter Cheng wrote: > The problem is I have to do something special with the clang options. I > have to add an interprocedural link time optimization pass spitting out > bitcode files and tying them together using llvm-link. Then add those options to the

Re: changing parameters in build

2018-10-17 Thread Carter Cheng
The problem is I have to do something special with the clang options. I have to add an interprocedural link time optimization pass spitting out bitcode files and tying them together using llvm-link. On Wed, Oct 17, 2018 at 7:55 PM Greg KH wrote: > On Wed, Oct 17, 2018 at 04:24:13PM +0800,

Re: changing parameters in build

2018-10-17 Thread Greg KH
On Wed, Oct 17, 2018 at 04:24:13PM +0800, Carter Cheng wrote: > Hi, > > I am having exploring how much work it would be to do whole kernel > optimization using clang on the current kernel. My understanding is the > kernel uses a recursive make file system. I am curious if there are any > easy

changing parameters in build

2018-10-17 Thread Carter Cheng
Hi, I am having exploring how much work it would be to do whole kernel optimization using clang on the current kernel. My understanding is the kernel uses a recursive make file system. I am curious if there are any easy ways to get the kernel to build llvm bit code for all files without going