This is an archive of the discontinued LLVM Phabricator instance.

[ms] [llvm-ml] Add support for size queries in MASM
ClosedPublic

Authored by epastor on Sep 1 2020, 8:05 AM.

Details

Summary

Add support for size inference, sizeof, typeof, and lengthof.

Diff Detail

Event Timeline

epastor created this revision.Sep 1 2020, 8:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 1 2020, 8:05 AM
epastor requested review of this revision.Sep 1 2020, 8:05 AM
epastor updated this revision to Diff 289435.Sep 2 2020, 6:46 AM

Improve size inference, applying to more expressions

epastor updated this revision to Diff 289437.Sep 2 2020, 6:52 AM

Use meaningful names in the test

epastor updated this revision to Diff 289482.Sep 2 2020, 9:04 AM

Fix struct.test for size issues

thakis added inline comments.Sep 3 2020, 2:05 PM
llvm/lib/MC/MCParser/MasmParser.cpp
6684

can you cover some more of these with tests, and some more of the keywords (say, lengthof) too?

6687

no tabs -- please run clang-format

epastor updated this revision to Diff 290322.Sep 7 2020, 10:51 AM

Make significant revisions to finish enabling support for queries on expressions, not just types.

Also add tests.

epastor marked 2 inline comments as done.Sep 7 2020, 10:55 AM
epastor added inline comments.
llvm/lib/MC/MCParser/MasmParser.cpp
6684

Done, thanks! This uncovered issues that required some more extensive revisions; apologies for that.

thakis accepted this revision.Sep 8 2020, 10:46 AM
This revision is now accepted and ready to land.Sep 8 2020, 10:46 AM
epastor updated this revision to Diff 290743.Sep 9 2020, 8:08 AM
epastor marked an inline comment as done.

Fix scale issue (size measured in bytes vs. bits)

epastor updated this revision to Diff 290776.Sep 9 2020, 11:08 AM

Rebase to HEAD

This revision was landed with ongoing or failed builds.Sep 14 2020, 11:28 AM
This revision was automatically updated to reflect the committed changes.