search for: emitvaluetoalignment

Displaying 10 results from an estimated 10 matches for "emitvaluetoalignment".

2014 Feb 04
3
[LLVMdev] emitting function stub for mips16 floating point patch
On 02/04/2014 09:58 AM, Rafael Espíndola wrote: >> .align > > So yes, EmitValueToAlignment. > > Cheers, > Rafael > One more::: OutStreamer.EmitRawText("\t.size __call_stub_fp_" + Twine(Symbol) + ", .-__call_stub_fp_" + Twine(Symbol)); You have to make an expression???? i.e. .size __call_stub_fp___floatdidf, .-__call_stub...
2014 Feb 04
2
[LLVMdev] emitting function stub for mips16 floating point patch
How is alignment set? On 02/04/2014 08:48 AM, Rafael Espíndola wrote: > On 31 January 2014 18:59, reed kotler <rkotler at mips.com> wrote: >> I'm rewriting this patch for the stubs to not use outputing of raw text. >> >> Generating the instructions is very straightforward and that part is done. > awesome! > >> I'm translating the actual function
2014 Feb 04
2
[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
2016 Jan 22
2
Is there a reason why MCAsmStreamer class doesn't have its own .h file?
...ked 'final' so it can't be inherited from anyway? What's > your need to inherit from it? > -- > ~Craig > Oops, missed the final part. I need to change the alignment. For my target it is sort of independent of the data layout. I was going to overwrite void MCAsmStreamer::EmitValueToAlignment(unsigned ByteAlignment, int64_t Value, unsigned ValueSize, unsigned MaxBytesToEmit). What is the reason it was made final? Why not to separate this class into its own module? -- Rail Shafigulin Software Engineer Esencia Technologies -------------- next part -------------- An HTML attachment was s...
2009 Jul 07
0
[LLVMdev] llvm-mc direction
....o file writing. 5. The LLVM "asmprinter" will change from writing out text directly with raw_ostream calls to making virtual method calls on the MCStreamer API. For example, instead of 'O << "\t.align 2\n";', the asmprinter will end up calling Streamer->EmitValueToAlignment(2). When run in "-S" mode, the implementation of the Streamer will be the .s file writer, which just writes out the .align directive. 6. When the "assembler backend" comes up, this means that we can drop it into the current "asmprinter" and the virtual methods...
2014 Feb 04
2
[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, > 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 c...
2010 Jul 16
0
[LLVMdev] Win32 COFF Support - Patch 3
...Size, unsigned ByteAlignment); > virtual void EmitBytes(StringRef Data, unsigned AddrSpace); > virtual void EmitValue(const MCExpr *Value, unsigned Size, > unsigned AddrSpace); > virtual void EmitGPRel32Value(const MCExpr *Value); > virtual void EmitValueToAlignment(unsigned ByteAlignment, int64_t Value, > - unsigned ValueSize, unsigned MaxBytesToEmit); > + unsigned ValueSize, unsigned MaxBytesToEmit); > virtual void EmitCodeAlignment(unsigned ByteAlignment, >...
2010 Jul 14
2
[LLVMdev] Win32 COFF Support - Patch 3
On Sun, Jul 11, 2010 at 6:10 PM, Chris Lattner <clattner at apple.com> wrote: > This probably needs to be slightly tweaked to work with mainline.  I don't see anything objectionable, but I think Daniel needs to review this one. Updated patch to work with mainline. http://github.com/Bigcheese/llvm-mirror/commit/d19a4c82c18afc4830c09b70f02d162292231c94 - Michael Spencer
2016 Jan 21
4
Is there a reason why MCAsmStreamer class doesn't have its own .h file?
Does anybody know if there is a particular reason why MCAsmStreamer doesn't have its own .h file? https://github.com/llvm-mirror/llvm/blob/0e66a5f53c74056f95d178c86531d7d9cfb23da9/lib/MC/MCAsmStreamer.cpp#L41 It seems like it is a good idea to have this class declared as its own module ( its own .cpp and .h files). That would make it easier to inherit from it if there is a need (like in my
2010 Jun 21
2
[LLVMdev] MC: Object file specific parsing
...on, then just issueing the section switch directive will not realign - // the section. However, this is arguably more reasonable behavior, and there - // is no good reason for someone to intentionally emit incorrectly sized - // values into the implicitly aligned sections. - if (Align) - Out.EmitValueToAlignment(Align, 0, 1, 0); - - return false; -} - bool AsmParser::ParseEscapedString(std::string &Data) { assert(Lexer.is(AsmToken::String) && "Unexpected current token!"); @@ -1368,261 +1124,6 @@ bool AsmParser::ParseDirectiveELFType() { return false; } -/// ParseDirective...