From 207e3af5018ea97f69007ecc70687ce07990617d Mon Sep 17 00:00:00 2001 From: Andrea Di Biagio Date: Fri, 2 Aug 2019 10:38:25 +0000 Subject: [MCA] Add support for printing immedate values as hex. Also enable lexing of masm binary and hex literals. 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. Differential Revision: https://reviews.llvm.org/D65588 llvm-svn: 367671 --- llvm/docs/CommandGuide/llvm-mca.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/docs/CommandGuide') diff --git a/llvm/docs/CommandGuide/llvm-mca.rst b/llvm/docs/CommandGuide/llvm-mca.rst index a02103337dc..c8b11fc6ed2 100644 --- a/llvm/docs/CommandGuide/llvm-mca.rst +++ b/llvm/docs/CommandGuide/llvm-mca.rst @@ -92,6 +92,11 @@ option specifies "``-``", then the output will also be sent to standard output. the AT&T (vic. Intel) assembly format for the code printed out by the tool in the analysis report. +.. option:: -print-imm-hex + + Prefer hex format for numeric literals in the output assembly printed as part + of the report. + .. option:: -dispatch= Specify a different dispatch width for the processor. The dispatch width -- cgit v1.2.3