[clang] [llvm] [SPARC] Align i128 to 16 bytes in SPARC datalayouts (PR #106951)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 29 00:43:59 PDT 2024
================
@@ -5461,6 +5461,18 @@ std::string llvm::UpgradeDataLayoutString(StringRef DL, StringRef TT) {
return Res;
}
+ if (T.isSPARC()) {
+ // Add "-i128:128"
+ std::string I64 = "-i64:64";
+ std::string I128 = "-i128:128";
+ if (StringRef Ref = Res; !Ref.contains(I128)) {
----------------
nikic wrote:
```suggestion
if (!StringRef(Res).contains(I128)) {
```
https://github.com/llvm/llvm-project/pull/106951
More information about the llvm-commits
mailing list