[clang] [Clang] [Lexer] Detect SSE4.2 availability at runtime in fastParseASCIIIdentifier (PR #171914)
Mikael Holmen via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 11 22:11:34 PST 2026
================
@@ -1943,12 +1955,20 @@ fastParseASCIIIdentifier(const char *CurPtr,
continue;
return CurPtr;
}
-#endif
- unsigned char C = *CurPtr;
- while (isAsciiIdentifierContinue(C))
- C = *++CurPtr;
- return CurPtr;
+ return fastParseASCIIIdentifierScalar(CurPtr);
+}
+
+__attribute__((target("sse4.2"))) static const char *
+fastParseASCIIIdentifier(const char *CurPtr, const char *BufferEnd) {
----------------
mikaelholmen wrote:
Yes, we're using linux, RHEL 8 (Red Hat Enterprise Linux 8).
https://github.com/llvm/llvm-project/pull/171914
More information about the cfe-commits
mailing list