Adding an LLVM Optimization Pass while Building openSSL Using Clang

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I am currently working on building OpenSSL for RISC-V architecture using clang/llvm. While I've successfully compiled OpenSSL and generated a binary using the linux64-riscv64 configuration, I would like to integrate an LLVM optimization pass into the compilation process before the object files are created.

Traditionally, the OpenSSL process follows the pattern:
clang [source file] -o [obj file]

However, my objective is to introduce an additional step in the process, as follows:
clang    
[source file] -o [LLVM IR File]
opt        [LLVM IR File] -o [OPTIMIZED LLVM IR File]
clang    [OPTIMIZED LLVM IR File] -o [obj file] 

Basically, I want to create intermediate representations (IR), apply a custom optimization pass on them, and subsequently produce an object file on all the source files.

Could I please get some guidance or point me in the right direction on how to achieve this within the OpenSSL build process?

Your assistance would be greatly appreciated.

Best



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux