[PATCH] D90788: [ms] [llvm-ml] Allow arbitrary strings as integer constants

Eric Astor via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 4 12:56:05 PST 2020


epastor created this revision.
epastor added a reviewer: thakis.
Herald added subscribers: llvm-commits, pengfei, hiraditya.
Herald added a project: LLVM.
epastor requested review of this revision.

MASM interprets strings in expression contexts as integers expressed in big-endian base-256, treating each character as its ASCII representation.

This completely eliminates the need to special-case single-character strings.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D90788

Files:
  llvm/lib/MC/MCParser/MasmParser.cpp
  llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
  llvm/test/tools/llvm-ml/strings.test
  llvm/test/tools/llvm-ml/strings_errors.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90788.302948.patch
Type: text/x-patch
Size: 5977 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201104/9580b9df/attachment.bin>


More information about the llvm-commits mailing list