Rail Shafigulin via llvm-dev
2016-Jan-22 00:29 UTC
[llvm-dev] Is there a reason why MCAsmStreamer class doesn't have its own .h file?
On Thu, Jan 21, 2016 at 4:04 PM, Craig Topper <craig.topper at gmail.com> wrote:> Isn't it also marked '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 scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160121/fd0c6ef9/attachment.html>
Craig Topper via llvm-dev
2016-Jan-22 01:03 UTC
[llvm-dev] Is there a reason why MCAsmStreamer class doesn't have its own .h file?
I dont' know why its final. That routine is just a method to force the current write pointer to a specific alignment. Shouldn't you be changing the callers to give you the alignment you want or don't want. On Thu, Jan 21, 2016 at 4:29 PM, Rail Shafigulin <rail at esenciatech.com> wrote:> > > On Thu, Jan 21, 2016 at 4:04 PM, Craig Topper <craig.topper at gmail.com> > wrote: > >> Isn't it also marked '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 >-- ~Craig -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160121/38a61ec4/attachment.html>
Rail Shafigulin via llvm-dev
2016-Jan-22 01:25 UTC
[llvm-dev] Is there a reason why MCAsmStreamer class doesn't have its own .h file?
On Thu, Jan 21, 2016 at 5:03 PM, Craig Topper <craig.topper at gmail.com> wrote:> I dont' know why its final. That routine is just a method to force the > current write pointer to a specific alignment. Shouldn't you be changing > the callers to give you the alignment you want or don't want. > > > > -- > ~Craig >It looks like the callers get their information from the data layout object, which in my case is not what I need. Any suggestions? -- Rail Shafigulin Software Engineer Esencia Technologies -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160121/8e5247ab/attachment.html>
Reasonably Related Threads
- Is there a reason why MCAsmStreamer class doesn't have its own .h file?
- Is there a reason why MCAsmStreamer class doesn't have its own .h file?
- Is there a reason why MCAsmStreamer class doesn't have its own .h file?
- generate vectorized code
- sum elements in the vector