[llvm] r320693 - Any Target Asm comments should start from MachineInstr::TAsmComments value.
Andrew V. Tischenko via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 14 04:07:11 PST 2017
Author: avt77
Date: Thu Dec 14 04:07:11 2017
New Revision: 320693
URL: http://llvm.org/viewvc/llvm-project?rev=320693&view=rev
Log:
Any Target Asm comments should start from MachineInstr::TAsmComments value.
Modified:
llvm/trunk/include/llvm/CodeGen/MachineInstr.h
llvm/trunk/lib/Target/X86/InstPrinter/X86InstComments.h
Modified: llvm/trunk/include/llvm/CodeGen/MachineInstr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineInstr.h?rev=320693&r1=320692&r2=320693&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineInstr.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineInstr.h Thu Dec 14 04:07:11 2017
@@ -68,7 +68,9 @@ public:
/// otherwise easily derivable from the IR text.
///
enum CommentFlag {
- ReloadReuse = 0x1 // higher bits are reserved for target dep comments.
+ ReloadReuse = 0x1, // higher bits are reserved for target dep comments.
+ NoSchedComment = 0x2,
+ TAsmComments = 0x4 // Target Asm comments should start from this value.
};
enum MIFlag {
Modified: llvm/trunk/lib/Target/X86/InstPrinter/X86InstComments.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/InstPrinter/X86InstComments.h?rev=320693&r1=320692&r2=320693&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/InstPrinter/X86InstComments.h (original)
+++ llvm/trunk/lib/Target/X86/InstPrinter/X86InstComments.h Thu Dec 14 04:07:11 2017
@@ -15,10 +15,13 @@
#ifndef LLVM_LIB_TARGET_X86_INSTPRINTER_X86INSTCOMMENTS_H
#define LLVM_LIB_TARGET_X86_INSTPRINTER_X86INSTCOMMENTS_H
+#include "llvm/CodeGen/MachineInstr.h"
+
namespace llvm {
enum AsmComments {
- AC_EVEX_2_VEX = 0x2 // For instr that was compressed from EVEX to VEX.
+ // For instr that was compressed from EVEX to VEX.
+ AC_EVEX_2_VEX = MachineInstr::TAsmComments
};
class MCInst;
More information about the llvm-commits
mailing list