[VENTUS][fix] enable cts recognize generic keywords (#179)

When run cts generic_address_space test, the clBuildProgram always failed.
    Therefore, add option to recognize the generic keywords.
This commit is contained in:
wenhu1024 2025-07-04 11:13:06 +08:00 committed by GitHub
parent fbabe94747
commit c20186f995
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -55,6 +55,10 @@ void RISCVTargetInfo::adjust(DiagnosticsEngine &Diags, LangOptions &Opts) {
else
resetDataLayout("e-m:e-p:64:64-i64:64-i128:128-n32:64-S128-A5-G1");
// Enable OpenCL generic address space for OpenCL 2.0 and later
if (Opts.OpenCL && Opts.getOpenCLCompatibleVersion() >= 200) {
Opts.OpenCLGenericAddressSpace = true;
}
}
ArrayRef<const char *> RISCVTargetInfo::getGCCRegNames() const {