If prefaced with a %, expand text macros and macro functions in any statement.
Also, prevent expanding text macros in the message of an ECHO directive unless expanded explicitly by the statement expansion operator.
Paths
| Differential D89740
[ms] [llvm-ml] Implement the statement expansion operator ClosedPublic Authored by epastor on Oct 19 2020, 2:15 PM.
Details Summary If prefaced with a %, expand text macros and macro functions in any statement. Also, prevent expanding text macros in the message of an ECHO directive unless expanded explicitly by the statement expansion operator.
Diff Detail
Unit TestsFailed Event Timelineepastor added a parent revision: D89736: [ms] [llvm-ml] Implement the expression expansion operator.Oct 19 2020, 2:15 PM epastor added a child revision: D89741: [ms] [llvm-ml] Test macro function invocations in arbitrary positions.Oct 19 2020, 2:17 PM Comment Actions
Oddly enough, MASM documentation suggests no use for this form except for ECHO and similar special cases, as strings are generally meant to be lexed. This revision is now accepted and ready to land.Nov 25 2020, 5:23 PM
This revision was landed with ongoing or failed builds.Nov 30 2020, 11:33 AM Closed by commit rGabef659a45ff: [ms] [llvm-ml] Implement the statement expansion operator (authored by epastor). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 308383 llvm/include/llvm/MC/MCAsmMacro.h
llvm/lib/MC/MCParser/MasmParser.cpp
llvm/test/tools/llvm-ml/expansion.test
|
IsFunction