[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)
commit61664b6263b7159245344450cc77e7968face3a9
tree22c2d5b91961d165d060a8c4bf8fe6640aae0736
parent2965315f6c905268a70d66170f12a59d507263df
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316001 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Builtins.def
include/clang/Basic/Builtins.h
lib/AST/ExprConstant.cpp
lib/Basic/Builtins.cpp
test/OpenMP/is_initial_device.c [new file with mode: 0644]