[llvm-dev] Clean way to align an instruction?

Jon Chesterfield via llvm-dev llvm-dev at lists.llvm.org
Thu Oct 25 10:20:54 PDT 2018


Hey Tim,

That's ideal. Thanks!

Jon

On Thu, 25 Oct 2018, 17:05 Tim Northover, <t.p.northover at gmail.com> wrote:

> Hi Jon,
>
> On Thu, 25 Oct 2018 at 07:44, Jon Chesterfield via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
> > I'm targeting an instruction that has an alignment constraint. Not on
> data, on the instruction itself. This is easily used from asm by a .align
> directive before the instruction, but I can't find an api to emit one.
> Using the integrated assembler.
>
> I think you want to call MCStreamer::EmitCodeAlignment in your
> XYZAsmPrinter when emitting the instruction, though I've never tried
> it.
>
> Cheers.
>
> Tim.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181025/a1ebbafe/attachment.html>


More information about the llvm-dev mailing list