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

Intercept LLVM standard C library intrinsics #11

Open
jovanbulck opened this issue Jun 30, 2017 · 0 comments
Open

Intercept LLVM standard C library intrinsics #11

jovanbulck opened this issue Jun 30, 2017 · 0 comments
Assignees
Labels

Comments

@jovanbulck
Copy link
Member

Problem. When working for instance with strings or structs, the compiler might insert i.a., hidden memcpy operations. These function calls are currently not picked up by the Sancus LLVM pass, as they are represented as intrinsics at the IR level.

Proposed solution. Sancus LLVM pass should recognize these special intrinsics, and replace them with a call into an intra-SM C library function stub (e.g. __sm#name#_memcpy).

@jovanbulck jovanbulck self-assigned this Jun 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant