[clang] [llvm] [MIPS] Add support for O64 Mips ABI (PR #223990)
Ying Huang via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 24 00:57:10 PDT 2026
================
@@ -104,19 +109,41 @@ class LLVM_LIBRARY_VISIBILITY MipsTargetInfo : public TargetInfo {
return false;
}
+ void setOABITypes() {
+ // TODO: OABI's long length can differ, find a way to do this and
+ // propagate to datalayout string.
+
+ unsigned LongLength = 32;
+ LongWidth = LongAlign = LongLength;
+ PointerWidth = PointerAlign = LongLength;
+ }
+
----------------
yingopq wrote:
Does we need add test in file `clang/test/Preprocessor/init-mips.c`?
https://github.com/llvm/llvm-project/pull/223990
More information about the llvm-commits
mailing list