reed kotler
2014-Feb-04 17:53 UTC
[LLVMdev] emitting function stub for mips16 floating point patch
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, > RafaelNot 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));
Rafael Espíndola
2014-Feb-04 17:55 UTC
[LLVMdev] emitting function stub for mips16 floating point patch
> Not on a symbol but in a section to set the current value.If I remember correctly a section is as aligned as its most aligned symbol. What directive does gcc use? Cheers, Rafael
reed kotler
2014-Feb-04 17:57 UTC
[LLVMdev] emitting function stub for mips16 floating point patch
On 02/04/2014 09:55 AM, Rafael Espíndola wrote:>> Not on a symbol but in a section to set the current value. > If I remember correctly a section is as aligned as its most aligned > symbol. What directive does gcc use? > > Cheers, > Rafael.align
Reasonably Related Threads
- [LLVMdev] emitting function stub for mips16 floating point patch
- [LLVMdev] emitting function stub for mips16 floating point patch
- [LLVMdev] emitting function stub for mips16 floating point patch
- [LLVMdev] emitting function stub for mips16 floating point patch
- [LLVMdev] making emitInlineAsm protected