[PATCH] Syntax of asm instrumentation code is changed from AT&T to Intel.

Yury Gribov y.gribov at samsung.com
Wed May 21 01:06:18 PDT 2014


> I guess there are cases when adding checks in the C code right
> before or after is not enough - some complex loop written entirely in
> asm.

Or manual instrumentation of .S files.

>Still, it sounds like an extremely rare case.

Fair enough.

> Even so, the call sequence is not that simple, and very non-standard.
> Would it be easier to just do something like 'pusha; pushf;' and call
> one of the functions we have for with-calls instrumentation?

Yeah, this could work although the sequence may be 	uglier (condition 
code preservation, etc.).

-Y



More information about the llvm-commits mailing list