[clang] [llvm] Add support for flag output operand "=@cc" for SystemZ. (PR #125970)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 5 18:48:03 PST 2025


================
@@ -90,6 +90,14 @@ bool SystemZTargetInfo::validateAsmConstraint(
   case 'T': // Likewise, plus an index
     Info.setAllowsMemory();
     return true;
+  case '@':
+    // CC condition changes.
+    if (strlen(Name) >= 3 && *(Name + 1) == 'c' && *(Name + 2) == 'c') {
----------------
arsenm wrote:

Avoid strlen, use StringRef 

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


More information about the llvm-commits mailing list