[PATCH] D65588: [MCA] Add support for printing immedate values as hex. Also enable lexing of masm binary and hex literals.
Andrea Di Biagio via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 1 09:58:50 PDT 2019
andreadb created this revision.
andreadb added reviewers: RKSimon, lebedev.ri, courbet, gchatelet, mattd.
Herald added a subscriber: gbedwell.
This patch adds a new llvm-mca flag named `-print-imm-hex`.
By default, the instruction printer prints immediate operands as decimals. Flag `-print-imm-hex` enables the instruction printer to print those operands in hex.
This patch also adds support for MASM binary and hex literal numbers (example 0FFh, 101b).
Added tests to verify the behavior of the new flag. Tests also verify that masm numeric literal operands are now recognized.
Please let me know if okay to commit.
https://reviews.llvm.org/D65588
Files:
docs/CommandGuide/llvm-mca.rst
test/tools/llvm-mca/X86/print-imm-hex-1.s
test/tools/llvm-mca/X86/print-imm-hex-2.s
tools/llvm-mca/CodeRegionGenerator.cpp
tools/llvm-mca/llvm-mca.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65588.212836.patch
Type: text/x-patch
Size: 6128 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190801/e435ac6f/attachment.bin>
More information about the llvm-commits
mailing list