[llvm] X86: Avoid using isArch64Bit for 64-bit checks (PR #157412)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 12 05:50:00 PDT 2025
================
@@ -1103,6 +1103,12 @@ class Triple {
return getArch() == Triple::x86 || getArch() == Triple::x86_64;
}
+ /// Tests whether the target is x86 (32-bit).
+ bool isX86_32() const { return getArch() == Triple::x86; }
+
+ /// Tests whether the target is x86 (64-bit).
+ bool isX86_64() const { return getArch() == Triple::x86_64; }
----------------
phoebewang wrote:
Yeah, I think it's OK. Thanks!
https://github.com/llvm/llvm-project/pull/157412
More information about the llvm-commits
mailing list