[OpenMP] Implement omp_is_initial_device() as builtin
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Tue, 17 Oct 2017 14:28:14 +0000 (14:28 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Tue, 17 Oct 2017 14:28:14 +0000 (14:28 +0000)
commit23604a8399b4016708edb4c529467d3253b19c09
tree06a126232a3c9b87f7538355efc08f11a1a6e955
parent8ab5ab066a744ff249e0e40d88502a366c1a2822
[OpenMP] Implement omp_is_initial_device() as builtin

This allows to return the static value that we know at compile time.

Differential Revision: https://reviews.llvm.org/D38968

llvm-svn: 316001
clang/include/clang/Basic/Builtins.def
clang/include/clang/Basic/Builtins.h
clang/lib/AST/ExprConstant.cpp
clang/lib/Basic/Builtins.cpp
clang/test/OpenMP/is_initial_device.c [new file with mode: 0644]