[all-commits] [llvm/llvm-project] 6ab716: [X86] Fix syntax directive for --output-asm-varian...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Mar 13 09:10:09 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ab7160073ed58dbce3766ee8b503ba25bb17e3b
      https://github.com/llvm/llvm-project/commit/6ab7160073ed58dbce3766ee8b503ba25bb17e3b
  Author: Fangrui Song <i at maskray.me>
  Date:   2026-03-13 (Fri, 13 Mar 2026)

  Changed paths:
    M llvm/lib/Target/X86/X86AsmPrinter.cpp
    M llvm/test/CodeGen/X86/dollar-name-asm.ll

  Log Message:
  -----------
  [X86] Fix syntax directive for --output-asm-variant=1 (#186316)

`--output-asm-variant=1` in llc/clang correctly prints instructions in
Intel syntax but incorrectly emits `.att_syntax` as the first directive.

Fix this by consulting OutputAsmVariant (with fallback to
AssemblerDialect) when deciding which syntax directive to emit, matching
the same pattern in CodeGenTargetMachineImpl::createMCStreamer
(#109360).



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list