[compiler-rt] [llvm] [compiler-rt][X86] Unify getAMDProcessorTypeAndSubType (PR #97863)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 02:38:43 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
----------------
RKSimon wrote:
Move this define as well (and add undef)
https://github.com/llvm/llvm-project/pull/97863
More information about the llvm-commits
mailing list