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

Macros compiled to inline IR #14

Open
miraleung opened this issue Jun 23, 2015 · 1 comment
Open

Macros compiled to inline IR #14

miraleung opened this issue Jun 23, 2015 · 1 comment

Comments

@miraleung
Copy link
Owner

Detection of macros is difficult since their instructions are inserted in IR without anything to indicate that it is a macro. Consequently, IR instructions of a function (that uses macros) are indistinguishable from those of the macro, and are offset by an unknown amount. Macro IR inlining also affects conditional block indexing and labelling, not to mention that macros may have such blocks of their own.

@bestchai
Copy link
Collaborator

Maybe it's possible to instrument the macros (or their inlining mech) to emit a special macro start/end instructions that you can recognize?

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

2 participants