search for: bytealign

Displaying 11 results from an estimated 11 matches for "bytealign".

Did you mean: byte_align
2010 Jul 16
0
[LLVMdev] Win32 COFF Support - Patch 3
...bolData(MCSymbol const *Symbol); > + > + void AddFragment(MCFragment *Fragment); This function isn't necessary, fragments see below. > + void VisitSymbols(MCExpr const *Expr); > + > + void AddCommonSymbol(MCSymbol *Symbol, uint64_t Size, > + unsigned ByteAlignment, bool External); > + > // MCStreamer interface > > virtual void EmitLabel(MCSymbol *Symbol); > @@ -52,18 +79,18 @@ public: > virtual void EndCOFFSymbolDef(); > virtual void EmitELFSize(MCSymbol *Symbol, const MCExpr *Value); > virtual void EmitCommonSymbol...
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 22
2
Is there a reason why MCAsmStreamer class doesn't have its own .h file?
...#39;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 scrubbed... URL: &lt...
2010 Jun 14
0
[LLVMdev] Win32 COFF Support
...Header.SizeOfRawData); + write_uint16_le(Section->Symbol->Aux.data() + 4, Section->Header.NumberOfRelocations); + write_uint16_le(Section->Symbol->Aux.data() + 6, Section->Header.PointerToLineNumbers); ... + void add_common_symbol(MCSymbol *Symbol, uint64_t Size, unsigned ByteAlignment, bool External); Please wrap to 80 columns. + for (coff::relocations::const_iterator k = (*i)->Relocations.begin(); + k != (*i)->Relocations.end(); + k++) { No need to reevaluate ".e...
2010 Jun 12
3
[LLVMdev] Win32 COFF Support
Here is a full patch including Nathan's COFF support, tests that pass on Windows, and some changes to lit. Obviously the COFF support and changes to lit should be separate patches in the end. http://codereview.appspot.com/1624043/show - Michael Spencer -------------- next part -------------- A non-text attachment was scrubbed... Name: COFF-support.patch Type: application/octet-stream Size:
2010 Jun 14
2
[LLVMdev] Win32 COFF Support
...nt16_le(Section->Symbol->Aux.data() + 4, Section- > >Header.NumberOfRelocations); > + write_uint16_le(Section->Symbol->Aux.data() + 6, Section- > >Header.PointerToLineNumbers); > ... > + void add_common_symbol(MCSymbol *Symbol, uint64_t Size, > unsigned ByteAlignment, bool External); > > Please wrap to 80 columns. > > + for (coff::relocations::const_iterator k = (*i)- > >Relocations.begin(); > + k != (*i)- > >Relocations.end(); > +...
2012 Dec 16
0
[LLVMdev] [llvm] r170280 - /llvm/trunk/lib/MC/MCPureStreamer.cpp
...6 @@ > > virtual void InitSections(); > virtual void EmitLabel(MCSymbol *Symbol); > - virtual void EmitDebugLabel(MCSymbol *Symbol); > virtual void EmitZerofill(const MCSection *Section, MCSymbol *Symbol = 0, > uint64_t Size = 0, unsigned ByteAlignment = 0); > virtual void EmitBytes(StringRef Data, unsigned AddrSpace); >
2012 Dec 16
0
[LLVMdev] [llvm] r170280 - /llvm/trunk/lib/MC/MCPureStreamer.cpp
...6 @@ > > virtual void InitSections(); > virtual void EmitLabel(MCSymbol *Symbol); > - virtual void EmitDebugLabel(MCSymbol *Symbol); > virtual void EmitZerofill(const MCSection *Section, MCSymbol *Symbol = 0, > uint64_t Size = 0, unsigned ByteAlignment = 0); > virtual void EmitBytes(StringRef Data, unsigned AddrSpace); >
2010 Jun 14
0
[LLVMdev] Win32 COFF Support
...t;Symbol->Aux.data() + 4, >> Section->Header.NumberOfRelocations); >> + write_uint16_le(Section->Symbol->Aux.data() + 6, >> Section->Header.PointerToLineNumbers); >> ... >> + void add_common_symbol(MCSymbol *Symbol, uint64_t Size, unsigned >> ByteAlignment, bool External); >> >> Please wrap to 80 columns. >> >> + for (coff::relocations::const_iterator k = >> (*i)->Relocations.begin(); >> + k != >> (*i)->Relocations.end(); >> +...
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
2009 Jan 09
2
[LLVMdev] RFC: Store alignment should be LValue alignment, not source alignment
...LVAlign = MinAlign(LVAlign, ByteOffset); } Value *Ptr = CastToType(Instruction::PtrToInt, StructAddrLV.Ptr, @@ -6221,6 +6260,7 @@ LValue TreeToLLVM::EmitLV_COMPONENT_REF( // Compute the byte offset, and add it to the pointer. unsigned ByteOffset = NumAlignmentUnits*ByteAlignment; + LVAlign = MinAlign(LVAlign, ByteOffset); Constant *Offset = ConstantInt::get(TD.getIntPtrType(), ByteOffset); FieldPtr = CastToType(Instruction::PtrToInt, FieldPtr, @@ -6242,17 +6282,18 @@ LValue TreeToLLVM::EmitLV_COMPONENT_REF( // Okay, everything is good. R...