[LLVMdev] emitting function stub for mips16 floating point patch

reed kotler rkotler at mips.com
Tue Feb 4 09:53:42 PST 2014


On 02/04/2014 09:49 AM, Rafael EspĂ­ndola wrote:
> On 4 February 2014 12:37, reed kotler <rkotler at mips.com> wrote:
>> How is alignment set?
> Of a symbol? EmitValueToAlignment.
>
> A tip on how to find this is to look at what clang prints
> (".align...") and grep for it "git grep '\.align'").
>
> Cheers,
> Rafael
Not on a symbol but in a section to set the current value.

I have not found it so far but am looking where this can be in 
AsmPrinter or MC.

I have these statements left to translate.

Most we already discussed.

.align 2

the .nomips16 and .nomicromips we have it in mipsTargetStreamer (which 
to me seems
little different from emit raw text).

I think you mentioned already how to do the .size

   OutStreamer.EmitRawText(".align 2");
   OutStreamer.EmitRawText(".nomips16");
   OutStreamer.EmitRawText(".nomicromips");
   OutStreamer.EmitRawText("\t.ent\t__call_stub_fp_" + Twine(Symbol));
   OutStreamer.EmitRawText("\t.type\t__call_stub_fp_" + Twine(Symbol) + 
", @function");
   OutStreamer.EmitRawText("\t__call_stub_fp_" + Twine(Symbol) + ":");
   OutStreamer.EmitRawText("\t.size  __call_stub_fp_" + Twine(Symbol) +
                           ", .-__call_stub_fp_" + Twine(Symbol));
   OutStreamer.EmitRawText("\t.end  __call_stub_fp_" + Twine(Symbol));




More information about the llvm-dev mailing list