[llvm] X86: Avoid using isArch64Bit for 64-bit checks (PR #157412)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 11 06:03:40 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; }
----------------
RKSimon wrote:

@phoebewang can your downstream targets modify and use this OK?

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


More information about the llvm-commits mailing list