[PATCH] D45154: [x86] Model the direction flag (DF) separately from the rest of EFLAGS.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 9 19:16:39 PDT 2018


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp:273
+      // And then provide a zero terminating entry.
+      0,
   };
----------------
Is this even needed? Was someone trying to protect against a trailing comma in the macro expansion? Which we now have outside...


================
Comment at: llvm/lib/Target/X86/X86RegisterInfo.td:523
 }
+def DFCCR : RegisterClass<"X86", [i32], 32, (add DF)> {
+  let CopyCost = -1;  // Don't allow copying of status registers.
----------------
I feel like CCR is a bad name here since that should mean "condition code register" and DF is not that.


Repository:
  rL LLVM

https://reviews.llvm.org/D45154





More information about the llvm-commits mailing list