[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:
parent
fbabe94747
commit
c20186f995
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue