Display an extra text message in LLVM .ll IR

85 Views Asked by At

I need to display an additional text message in the .ll file of a sample cpp code that is displayed when -S -emit-llvm is used but not when $ clang++ code.cpp -o code.out && ./code.out is used. How do I do it? The extra text message should be of the below form in the .ll file: <<<<===================IR code=======================>>>>

EXTRA information

<<<<<==================IR code========================>>>>

Example:

<<<<===================IR code=================================>>>>

EXTRA :: LLVM is so cool

<<<<<==================IR code=================================>>>>

0

There are 0 best solutions below