[LLVM] Change isa<> to a variadic function template
authorRahul Joshi <jurahul@google.com>
Mon, 15 Jun 2020 18:25:14 +0000 (18:25 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 15 Jun 2020 18:46:57 +0000 (18:46 +0000)
commit72d20b9604f65e35eedb3d00098a2c9412953946
treeed6219327516f027bc1ee52810ec55890203e7c5
parent968f58c68421bd18f09754bf11135803243a0226
[LLVM] Change isa<> to a variadic function template

Change isa<> to a variadic function template, so that it can be used to test against one of multiple types as follows:
   isa<Type0, Type1, Type2>(Val)

Differential Revision: https://reviews.llvm.org/D81045
clang/include/clang/AST/DeclBase.h
llvm/include/llvm/Support/Casting.h
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/lib/Target/PowerPC/PPCBoolRetToInt.cpp