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

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -