================ @@ -5461,6 +5461,18 @@ std::string llvm::UpgradeDataLayoutString(StringRef DL, StringRef TT) { return Res; } + if (T.isSPARC()) { + // Add "-i128:128" + std::string I128 = "-i128:128"; + if (StringRef Ref = Res; !Ref.contains(I128)) { + SmallVector<StringRef, 4> Groups; + Regex R("^([Ee](-[mpi][^-]*)*)((-[^mpi][^-]*)*)$"); ---------------- nikic wrote:
I think it would be easier to match for `-i64:64-` here? It looks like that part doesn't vary across subtargets, so we don't need more generic matching. https://github.com/llvm/llvm-project/pull/106951 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits