[llvm-dev] Question about relaxation in MC assembler

Jim Grosbach via llvm-dev llvm-dev at lists.llvm.org
Mon Jan 11 13:25:46 PST 2016


No problem, glad to help. I’ve dealt with exactly this problem a few times before (including for the ARM64 bringup), and it’s definitely a bit subtle.

Regards,
-Jim

> On Jan 11, 2016, at 1:03 PM, JinGu Kang <jingu at codeplay.com> wrote:
> 
> Hi Jim,
> 
> I appreciate for your kind explanation. I will try to make MachineFunctionPass like BranchRelaxation for AArch64. :)
> 
> Thank you so much,
> JinGu Kang
> 
> 
> On 11/01/16 19:11, Jim Grosbach wrote:
>> The MC relaxation is for choosing between different forms of a single instruction. You want something like the ARM64 branch relaxation pass instead.
>> 
>> -Jim
>> 
>>> On Jan 11, 2016, at 6:42 AM, JinGu Kang via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>>> 
>>> 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
>>> _______________________________________________
>>> LLVM Developers mailing list
>>> llvm-dev at lists.llvm.org
>>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
> 



More information about the llvm-dev mailing list