[llvm] [llvm-exegesis] Begin replacing unsigned with MCRegister. NFC (PR #123109)

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 15 12:05:09 PST 2025


================
@@ -47,9 +47,9 @@ Error SnippetGenerator::generateConfigurations(
   // using the scratch register and its aliasing registers.
   if (Variant.getInstr().hasMemoryOperands()) {
     const auto &ET = State.getExegesisTarget();
-    unsigned ScratchSpacePointerInReg =
+    MCRegister ScratchSpacePointerInReg =
         ET.getScratchMemoryRegister(State.getTargetMachine().getTargetTriple());
-    if (ScratchSpacePointerInReg == 0)
+    if (!ScratchSpacePointerInReg)
----------------
mshockwave wrote:

`!ScratchSpacePointerInReg.isValid()`?

https://github.com/llvm/llvm-project/pull/123109


More information about the llvm-commits mailing list