[compiler-rt] [llvm] [compiler-rt][X86] Unify getAMDProcessorTypeAndSubType (PR #97863)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 8 10:53:11 PDT 2024


================
@@ -707,9 +707,7 @@ static StringRef
 getIntelProcessorTypeAndSubtype(unsigned Family, unsigned Model,
                                 const unsigned *Features,
                                 unsigned *Type, unsigned *Subtype) {
-  auto testFeature = [&](unsigned F) {
-    return (Features[F / 32] & (1U << (F % 32))) != 0;
-  };
+#define testFeature(F) (Features[F / 32] & (1 << (F % 32))) != 0
----------------
boomanaiden154 wrote:

Good catch! Thanks! Updated.

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


More information about the llvm-commits mailing list