Open tathanhdinh opened 2 years ago
I suppose that __remill_read_memory_64 will be implemented (by some program which uses remill) when needed and inlined
Yes.
But I still wonder, if it would be better if we add some attributes for such an intrinsic (which may help the optimizer!?)
Ah! Can you see if marking all the Memory *
parameters as const
will help -- or changing them to const Memory &
? Or submit a PR to the IntrinsicTable
code that will do this marking.
You should drop by EH slack or ping on on Twitter. We're using Remill to do something cool that may be relevant to your interests :-)
@pgoodman thank you for the feedback. I've just opened a PR for further discussion (if needed).
In lifting some instructions which read/write memory, e.g.
mov rax, [rcx]
:I suppose that
__remill_read_memory_64
will be implemented (by some program which uses remill) when needed and inlined, so no special attribute is needed here. But I still wonder, if it would be better if we add some attributes for such an intrinsic (which may help the optimizer!?), e.g.