Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Add @CALL pseudo instruction for generating lir::InlineFunctionCalls directly. #104

Open
pgoodman opened this issue Jan 6, 2015 · 1 comment

Comments

@pgoodman
Copy link
Member

pgoodman commented Jan 6, 2015

Title says it all. The trick would be registers callable names to Granary via some mechanism.

@pgoodman
Copy link
Member Author

pgoodman commented Jan 7, 2015

I think if this is done, then the function being inlined should be pre-processed for actual inlining. This would make instrumentation quite a bit easier and more PIN-like. One tricky aspect is how describe code cache tiers. I think some special inline assembly might do here. Specifically, what we could do is some inline assembly that uses no instructions, but instead switches sections, and then stores the pointer of the block in the new section. This would be a nice annotation mechanism I think.

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

No branches or pull requests

1 participant