Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llvm instrumentation #29

Open
liusy58 opened this issue Apr 7, 2022 · 3 comments
Open

llvm instrumentation #29

liusy58 opened this issue Apr 7, 2022 · 3 comments

Comments

@liusy58
Copy link

liusy58 commented Apr 7, 2022

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.

@sampsyo
Copy link
Owner

sampsyo commented Apr 7, 2022

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.

@liusy58
Copy link
Author

liusy58 commented Apr 7, 2022

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~

@xubenji
Copy link

xubenji commented Jun 1, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants