This is an archive of the discontinued LLVM Phabricator instance.

[llvm-ml] Disallow '{' and '}' at the start of a statement
ClosedPublic

Authored by barannikov88 on Jan 22 2023, 5:58 PM.

Details

Summary

'{', '}' and (conditionally) '*' were allowed at the start of a
statement. This behavior was copied from AsmParser, where they were
added to support Hexagon bundles (braces) and BFP memory instructions
(the star).
MASM dialect is x86-specific and does not allow these symbols to be
used at the beginning of an instruction.

Worth noting that '{' is a valid first character in AT&T syntax
(e.g. "{vex} vpmadd52huq ..."); MASM variant is to omit the braces.

Diff Detail

Event Timeline

barannikov88 created this revision.Jan 22 2023, 5:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 22 2023, 5:58 PM
barannikov88 requested review of this revision.Jan 22 2023, 5:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 22 2023, 5:58 PM
epastor accepted this revision.Jan 22 2023, 6:13 PM
This revision is now accepted and ready to land.Jan 22 2023, 6:13 PM

Fix FileCheck directives in the test

This revision was landed with ongoing or failed builds.Jan 25 2023, 9:44 AM
This revision was automatically updated to reflect the committed changes.