Adding nops after ret

Hi,
Is is possible via clang plugin (clang configuration) to add 4 nops after ret instruction on Intel64?

Thanks,
Alexei

Hi Alexei,

Out of curiosity, is there any reason we can’t just abuse LLVM’s Function Prologue data for this?

Zhang

Because there are often multiple returns in a function, and the final
basic block isn't necessarily even one of them.

Tim.