llvm-pass-skeleton icon indicating copy to clipboard operation
llvm-pass-skeleton copied to clipboard

llvm instrumentation

Open liusy58 opened this issue 3 years ago • 3 comments

hi, sir, lucky to see your course and I wonder if we can use llvm for instrumentation for inline assembly of c code. Look forward to your reply.

liusy58 avatar Apr 07 '22 03:04 liusy58

I'm sorry, but I don't know what you mean by "inline assembly of c code." However, this repository just contains the scaffolding necessary to start an LLVM pass; what you do with LLVM is up to you. If you have broader questions about what LLVM is capable of, I'm afraid I am not the right person to ask.

sampsyo avatar Apr 07 '22 12:04 sampsyo

I see. Thank you anyway. I mean, take the following code for example,

asm ("fsin" :"=t" (answer) : "0" (angle));

The inline assembly above may appear in many C projects.

I will check the LLVM manual to find the solution~

liusy58 avatar Apr 07 '22 12:04 liusy58

Hello, liu. Do you want to find out how to binary instrument with llvm?

xubenji avatar Jun 01 '22 01:06 xubenji