Any Target Asm comments should start from MachineInstr::TAsmComments value.
authorAndrew V. Tischenko <andrew.v.tischenko@gmail.com>
Thu, 14 Dec 2017 12:07:11 +0000 (12:07 +0000)
committerAndrew V. Tischenko <andrew.v.tischenko@gmail.com>
Thu, 14 Dec 2017 12:07:11 +0000 (12:07 +0000)
llvm-svn: 320693

llvm/include/llvm/CodeGen/MachineInstr.h
llvm/lib/Target/X86/InstPrinter/X86InstComments.h

index cf8f5e5540a1b3e092c3dfd44d1ef1d379e9b8ef..3c1c1bb14f42689f3b2e8f67f5aad7fee1444178 100644 (file)
@@ -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 {
index c6d0d85a7d3d34d27464d1a2475d62cdb1c1a6d7..629c02c95c7f2301e3259a5786d15c91ad473986 100644 (file)
 #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;