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

Ulrich Weigand via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 14 12:37:08 PST 2025


================
@@ -119,6 +119,12 @@ class LLVM_LIBRARY_VISIBILITY SystemZTargetInfo : public TargetInfo {
                              TargetInfo::ConstraintInfo &info) const override;
 
   std::string convertConstraint(const char *&Constraint) const override {
+    if (llvm::StringRef(Constraint) == "@cc") {
+      auto Len = llvm::StringRef("@cc").size();
----------------
uweigand wrote:

This is a compile-time constant.  Again, in SystemZ.cpp that is hard-coded; why do we need this expression here?

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


More information about the cfe-commits mailing list