Support complex target features combinations
authorLiu, Chen3 <chen3.liu@intel.com>
Sat, 10 Oct 2020 10:42:05 +0000 (18:42 +0800)
committerLiu, Chen3 <chen3.liu@intel.com>
Fri, 30 Oct 2020 02:32:53 +0000 (10:32 +0800)
commit00090a2b826a9b357acec51df57b9b47d4decb0d
treee1b662cd154db457a706efeb8d598c253c7015c3
parent30e7df0d58542ad35d517eace70a4cea40e6fa7a
Support complex target features combinations

This patch is mainly doing two things:

1. Adding support for parentheses, making the combination of target features
   more diverse;
2. Making the priority of ’,‘ is higher than that of '|' by default. So I need
   to make some change with PTX Builtin function.

Differential Revision: https://reviews.llvm.org/D89184
clang/include/clang/Basic/BuiltinsNVPTX.def
clang/lib/CodeGen/CodeGenFunction.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/test/CodeGen/builtins-nvptx-mma.cu
clang/test/CodeGen/builtins-nvptx-sm_70.cu
clang/unittests/CodeGen/CMakeLists.txt
clang/unittests/CodeGen/CheckTargetFeaturesTest.cpp [new file with mode: 0644]