[clang] [llvm] [PowerPC][X86] Make cpu id builtins target independent and lower for PPC (PR #68919)
Nemanja Ivanovic via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 11 04:27:20 PST 2024
================
@@ -2110,6 +2110,66 @@ static bool checkFPMathBuiltinElementType(Sema &S, SourceLocation Loc,
return false;
}
+/// SemaBuiltinCpuSupports - Handle __builtin_cpu_supports(char *).
+/// This checks that the target supports __builtin_cpu_supports and
+/// that the string argument is constant and valid.
+static bool SemaBuiltinCpuSupports(Sema &S, const TargetInfo &TI,
+ const TargetInfo *AuxTI, CallExpr *TheCall) {
----------------
nemanjai wrote:
I believe this is for OpenMP when compiling for both the host and device. I had it in here because it was in the original code but seems to have been removed.
https://github.com/llvm/llvm-project/pull/68919
More information about the llvm-commits
mailing list