Re: [PATCH v4] kbuild: Add support to generate LLVM assembly files
From: Masahiro Yamada
Date: Tue Apr 25 2017 - 17:30:33 EST
2017-04-25 5:04 GMT+09:00 Matthias Kaehlcke <mka@xxxxxxxxxxxx>:
> Add rules to kbuild in order to generate LLVM assembly files with the .ll
> extension when using clang.
>
> # from c code
> make CC=clang kernel/pid.ll
>
> From: VinÃcius Tinti <viniciustinti@xxxxxxxxx>
> Signed-off-by: VinÃcius Tinti <viniciustinti@xxxxxxxxx>
> Signed-off-by: Behan Webster <behanw@xxxxxxxxxxxxxxxxxx>
> Signed-off-by: Matthias Kaehlcke <mka@xxxxxxxxxxxx>
> ---
> Changes in v4:
> - changed 'bitcode' to 'assembly'
> - removed rule for creating LLVM assembly from machine assembly
> - added .ll files to clean rule
> - corrected example command in commit message
Applied to linux-kbuild/kbuild. Thanks!
--
Best Regards
Masahiro Yamada