[llvm] Use LLVM-style include guard in regex_impl.h

The previous include guard (_REGEX_H_) is also used in a macOS SDK
header (xlocale.h), causing build failures with the latest libc++
version (see bug).

This cherry-picks
https://github.com/llvm/llvm-project/commit/b86c249691a7973a451bc6a586b39da64778d219

Bug: https://crbug.com/1443362
Change-Id: Id4a0d04aeab32e7fbbbf0b9ae3cd4ec2cb968e71
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/71648
Commit-Queue: Shahbaz Youssefi <syoussefi@google.com>
Kokoro-Result: kokoro <noreply+kokoro@google.com>
Tested-by: Shahbaz Youssefi <syoussefi@google.com>
Reviewed-by: Shahbaz Youssefi <syoussefi@google.com>
diff --git a/third_party/llvm-10.0/llvm/lib/Support/regex_impl.h b/third_party/llvm-10.0/llvm/lib/Support/regex_impl.h
index 8ddac7d..8f0c532 100644
--- a/third_party/llvm-10.0/llvm/lib/Support/regex_impl.h
+++ b/third_party/llvm-10.0/llvm/lib/Support/regex_impl.h
@@ -35,8 +35,8 @@
  *	@(#)regex.h	8.1 (Berkeley) 6/2/93
  */
 
-#ifndef _REGEX_H_
-#define	_REGEX_H_
+#ifndef LLVM_SUPPORT_REGEX_IMPL_H
+#define LLVM_SUPPORT_REGEX_IMPL_H
 
 #include <sys/types.h>
 typedef off_t llvm_regoff_t;
@@ -105,4 +105,4 @@
 }
 #endif
 
-#endif /* !_REGEX_H_ */
+#endif /* LLVM_SUPPORT_REGEX_IMPL_H */
diff --git a/third_party/llvm-16.0/llvm/lib/Support/regex_impl.h b/third_party/llvm-16.0/llvm/lib/Support/regex_impl.h
index 8ddac7d..8f0c532 100644
--- a/third_party/llvm-16.0/llvm/lib/Support/regex_impl.h
+++ b/third_party/llvm-16.0/llvm/lib/Support/regex_impl.h
@@ -35,8 +35,8 @@
  *	@(#)regex.h	8.1 (Berkeley) 6/2/93
  */
 
-#ifndef _REGEX_H_
-#define	_REGEX_H_
+#ifndef LLVM_SUPPORT_REGEX_IMPL_H
+#define LLVM_SUPPORT_REGEX_IMPL_H
 
 #include <sys/types.h>
 typedef off_t llvm_regoff_t;
@@ -105,4 +105,4 @@
 }
 #endif
 
-#endif /* !_REGEX_H_ */
+#endif /* LLVM_SUPPORT_REGEX_IMPL_H */
diff --git a/third_party/llvm-subzero/lib/Support/regex_impl.h b/third_party/llvm-subzero/lib/Support/regex_impl.h
index f8296c9..ba77a46 100644
--- a/third_party/llvm-subzero/lib/Support/regex_impl.h
+++ b/third_party/llvm-subzero/lib/Support/regex_impl.h
@@ -35,8 +35,8 @@
  *	@(#)regex.h	8.1 (Berkeley) 6/2/93
  */
 
-#ifndef _REGEX_H_
-#define	_REGEX_H_
+#ifndef LLVM_SUPPORT_REGEX_IMPL_H
+#define LLVM_SUPPORT_REGEX_IMPL_H
 
 #include <sys/types.h>
 typedef off_t llvm_regoff_t;
@@ -105,4 +105,4 @@
 }
 #endif
 
-#endif /* !_REGEX_H_ */
+#endif /* LLVM_SUPPORT_REGEX_IMPL_H */