instrumentation - Instrument object file by modifying LLVM-IR representation -


i instrument object file (e.g. .elf file) text comments.

the comments need generated , inserted intermediate representation file (.ll).

as first try, decided insert comments inline assembly labels follows:

call void asm sideeffect "i comment label :",""() 

unfortunately, approach results intrusive during hardware-dependent llc code generation step. in fact, code (the instructions) produced after instrumentation results different compared not instrumented one.

i read llvm-ir metadata couldn't figure out how use it.

q: there way insert such comments modifying intermediate .ll file?


Comments

Popular posts from this blog

The SDK directory does not exist (ubuntu 16.04) (react native) -

python - How to clone or copy a list? -

Convert excel to pdf with VBScript -