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

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -