[llvm-dev] Question about relaxation in MC assembler

JinGu Kang via llvm-dev llvm-dev at lists.llvm.org
Mon Jan 11 06:42:00 PST 2016


Hi All,

I have a question about relaxation stuff in MC assembler.

I am encoding conditional branch instructions with PC relative address 
in assembler. I have met some tests with relative offsets over the 
instruction's address field. I think I need to change the conditional 
instruction to multiple instructions with basic blocks for else and then 
syntax and it should be done in assembler because I can know correct the 
relative address in assembler level. I am looking at relaxation stuff in 
assembler to do it but I think it intends to change a instruction to one 
the other instruction. Could someone let me know how to change a 
instruction to multiple instructions in assembler level please? If I 
missed something, please let me know.

Thanks,
JinGu Kang


More information about the llvm-dev mailing list