[llvm-dev] Clean way to align an instruction? (original) (raw)
Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Thu Oct 25 09:04:53 PDT 2018
- Previous message: [llvm-dev] Clean way to align an instruction?
- Next message: [llvm-dev] Clean way to align an instruction?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [llvm-dev] Clean way to align an instruction?
- Next message: [llvm-dev] Clean way to align an instruction?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]