HomePhabricator

Support -masm= flag for x86 assembly targets.

Description

Support -masm= flag for x86 assembly targets.

For assembly files without .intel_syntax or .att_syntax directives, allow the
-masm= flag to supply a default assembly dialect. For example,

C:\TMP> type intel.s
.text
mov al,0

C:\TMP> clang -masm=intel -c intel.s

Without this patch, one would need to pass an "-mllvm -x86-asm-syntax=" flag
directly to the backend.
C:\TMP> clang -mllvm --x86-asm-syntax=intel -c intel.s

Differentials Review: http://reviews.llvm.org/D22285

Details

Committed
ygaoJul 18 2016, 11:44 AM
Parents
rL275876: [X86][SSE] Regenerate extraction+store memop tests
Branches
Unknown
Tags
Unknown