mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 00:56:04 +00:00

Add supported OpenCL extensions to target info. It serves as default values to save the users of the burden setting each supported extensions and optional core features in command line. Re-commit after fixing build error due to missing override attribute. Differential Revision: http://reviews.llvm.org/D19484 llvm-svn: 269670
18 lines
307 B
Common Lisp
18 lines
307 B
Common Lisp
// RUN: %clang_cc1 -emit-pch -o %t %s -triple spir-unknown-unknown
|
|
// RUN: %clang_cc1 -include-pch %t -fsyntax-only %s -triple spir-unknown-unknown
|
|
|
|
#ifndef HEADER
|
|
#define HEADER
|
|
// Header.
|
|
|
|
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
|
|
|
|
#else
|
|
// Using the header.
|
|
|
|
void test(void) {
|
|
double d;
|
|
}
|
|
|
|
#endif
|