reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

gen/lib/Target/AMDGPU/R600GenDAGISel.inc
12399          isa<GlobalValue>(GetUnderlyingObject(
12413            !isa<GlobalValue>(GetUnderlyingObject(
gen/lib/Target/ARM/ARMGenDAGISel.inc
54070  return !isa<ConstantSDNode>(N); 
gen/lib/Target/Hexagon/HexagonGenDAGISel.inc
72651               return !isa<ConstantSDNode>(Op1);
gen/lib/Target/X86/X86GenDAGISel.inc
253979     if (isa<RegisterSDNode>(N->getOperand(i)) && ++NumRegs > 6)
gen/tools/clang/include/clang/Sema/AttrParsedAttrImpl.inc
   26   if (!D || (!isa<FunctionDecl>(D))) {
   39   if (!D || (!isa<FunctionDecl>(D))) {
   52   if (!D || (!isa<FunctionDecl>(D))) {
   65   if (!D || (!isa<FunctionDecl>(D))) {
   83   if (!D || (!isa<FunctionDecl>(D))) {
  107   if (!D || (!isStruct(D) && !isa<VarDecl>(D) && !isa<FunctionDecl>(D) && !isa<NamespaceDecl>(D))) {
  107   if (!D || (!isStruct(D) && !isa<VarDecl>(D) && !isa<FunctionDecl>(D) && !isa<NamespaceDecl>(D))) {
  107   if (!D || (!isStruct(D) && !isa<VarDecl>(D) && !isa<FunctionDecl>(D) && !isa<NamespaceDecl>(D))) {
  123   if (!D || (!isa<FunctionDecl>(D))) {
  162   if (!D || (!isa<FieldDecl>(D) && !isSharedVar(D))) {
  171   if (!D || (!isa<FieldDecl>(D) && !isSharedVar(D))) {
  186   if (!D || (!isa<FunctionDecl>(D) && !isGlobalVar(D))) {
  200   if (!D || (!isa<VarDecl>(D) && !isa<TypedefNameDecl>(D))) {
  200   if (!D || (!isa<VarDecl>(D) && !isa<TypedefNameDecl>(D))) {
  238                               isa<FunctionProtoType>(S->getFunctionType())) ||
  239                                        isa<ObjCMethodDecl>(S) ||
  240                                        isa<BlockDecl>(S);
  254   if (!D || (!isa<FunctionDecl>(D))) {
  267   if (!D || (!isa<VarDecl>(D))) {
  280   if (!D || (!isa<FunctionDecl>(D))) {
  338   if (!D || (!isa<ObjCInterfaceDecl>(D))) {
  384   if (!D || (!isa<FunctionDecl>(D))) {
  417   if (!D || (!isa<FunctionDecl>(D))) {
  446   if (!D || (!isa<FunctionDecl>(D))) {
  455   if (!D || (!isa<FunctionDecl>(D))) {
  464   if (!D || (!isa<ObjCMethodDecl>(D) && !isa<FunctionDecl>(D))) {
  464   if (!D || (!isa<ObjCMethodDecl>(D) && !isa<FunctionDecl>(D))) {
  478   if (!D || (!isa<NamedDecl>(D))) {
  505   if (!D || (!isa<FunctionDecl>(D))) {
  518   if (!D || (!isa<ParmVarDecl>(D))) {
  531   if (!D || (!isa<FunctionDecl>(D))) {
  544   if (!D || (!isa<FunctionDecl>(D))) {
  557   if (!D || (!isa<FunctionDecl>(D))) {
  570   if (!D || (!isa<FunctionDecl>(D))) {
  583   if (!D || (!isa<VarDecl>(D))) {
  605   if (!D || (!isa<FunctionDecl>(D) && !isa<VarDecl>(D))) {
  605   if (!D || (!isa<FunctionDecl>(D) && !isa<VarDecl>(D))) {
  619   if (!D || (!isa<FunctionDecl>(D))) {
  632   if (!D || (!isa<FunctionDecl>(D))) {
  645   if (!D || (!isa<FunctionDecl>(D))) {
  654   if (!D || (!isa<ObjCMethodDecl>(D) && !isFunctionLike(D))) {
  668   if (!D || (!isa<VarDecl>(D))) {
  681   if (!D || (!isa<FunctionDecl>(D))) {
  694   if (!D || (!isa<CXXMethodDecl>(D))) {
  707   if (!D || (!isa<FunctionDecl>(D))) {
  720   if (!D || (!isa<RecordDecl>(D) && !isa<TypedefNameDecl>(D))) {
  720   if (!D || (!isa<RecordDecl>(D) && !isa<TypedefNameDecl>(D))) {
  754   if (!D || (!isa<ParmVarDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<FunctionDecl>(D))) {
  754   if (!D || (!isa<ParmVarDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<FunctionDecl>(D))) {
  754   if (!D || (!isa<ParmVarDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<FunctionDecl>(D))) {
  770     return S->hasLocalStorage() && !isa<ParmVarDecl>(S);
  784   if (!D || (!isa<FunctionDecl>(D) && !isa<CXXRecordDecl>(D))) {
  784   if (!D || (!isa<FunctionDecl>(D) && !isa<CXXRecordDecl>(D))) {
  793   if (!D || (!isa<FunctionDecl>(D))) {
  806   if (!D || (!isa<VarDecl>(D))) {
  859   if (!D || (!isa<FunctionDecl>(D))) {
  872   if (!D || (!isa<CXXRecordDecl>(D))) {
  885   if (!D || (!isa<CXXRecordDecl>(D))) {
  898   if (!D || (!isa<CXXRecordDecl>(D))) {
  911   if (!D || (!isa<FunctionDecl>(D))) {
  924   if (!D || (!isa<FunctionDecl>(D) && !isa<VarDecl>(D) && !isa<CXXRecordDecl>(D) && !isa<ObjCInterfaceDecl>(D))) {
  924   if (!D || (!isa<FunctionDecl>(D) && !isa<VarDecl>(D) && !isa<CXXRecordDecl>(D) && !isa<ObjCInterfaceDecl>(D))) {
  924   if (!D || (!isa<FunctionDecl>(D) && !isa<VarDecl>(D) && !isa<CXXRecordDecl>(D) && !isa<ObjCInterfaceDecl>(D))) {
  924   if (!D || (!isa<FunctionDecl>(D) && !isa<VarDecl>(D) && !isa<CXXRecordDecl>(D) && !isa<ObjCInterfaceDecl>(D))) {
  945   if (!D || (!isa<FunctionDecl>(D))) {
  954   if (!D || (!isa<FunctionDecl>(D) && !isa<VarDecl>(D) && !isa<CXXRecordDecl>(D) && !isa<ObjCInterfaceDecl>(D))) {
  954   if (!D || (!isa<FunctionDecl>(D) && !isa<VarDecl>(D) && !isa<CXXRecordDecl>(D) && !isa<ObjCInterfaceDecl>(D))) {
  954   if (!D || (!isa<FunctionDecl>(D) && !isa<VarDecl>(D) && !isa<CXXRecordDecl>(D) && !isa<ObjCInterfaceDecl>(D))) {
  954   if (!D || (!isa<FunctionDecl>(D) && !isa<VarDecl>(D) && !isa<CXXRecordDecl>(D) && !isa<ObjCInterfaceDecl>(D))) {
  970   if (!D || (!isa<FunctionDecl>(D))) {
  979   if (!D || (!isa<FunctionDecl>(D))) {
  992   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<ObjCPropertyDecl>(D))) {
  992   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<ObjCPropertyDecl>(D))) {
  992   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<ObjCPropertyDecl>(D))) {
 1001   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
 1001   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
 1015   if (!D || (!isa<CXXRecordDecl>(D))) {
 1029   if (!D || (!isa<FunctionDecl>(D))) {
 1042   if (!D || (!isa<EnumDecl>(D))) {
 1055   if (!D || (!isa<VarDecl>(D) && !isa<FunctionDecl>(D) && !isa<CXXRecordDecl>(D))) {
 1055   if (!D || (!isa<VarDecl>(D) && !isa<FunctionDecl>(D) && !isa<CXXRecordDecl>(D))) {
 1055   if (!D || (!isa<VarDecl>(D) && !isa<FunctionDecl>(D) && !isa<CXXRecordDecl>(D))) {
 1070   if (!D || (!isa<FunctionDecl>(D))) {
 1079   if (!D || (!isa<TypedefNameDecl>(D))) {
 1088   if (!D || (!isa<NamedDecl>(D))) {
 1115   if (!D || (!isa<EnumDecl>(D))) {
 1128   if (!D || (!isa<FunctionDecl>(D))) {
 1141   if (!D || (!isa<ObjCMethodDecl>(D) && !isa<BlockDecl>(D) && !isHasFunctionProto(D))) {
 1141   if (!D || (!isa<ObjCMethodDecl>(D) && !isa<BlockDecl>(D) && !isHasFunctionProto(D))) {
 1150   if (!D || (!isa<ObjCMethodDecl>(D) && !isHasFunctionProto(D))) {
 1159   if (!D || (!isa<FunctionDecl>(D))) {
 1172   if (!D || (!isa<FieldDecl>(D) && !isSharedVar(D))) {
 1181   if (!D || (!isa<FieldDecl>(D) && !isSharedVar(D))) {
 1190   if (!D || (!isa<VarDecl>(D))) {
 1212   if (!D || (!isa<FunctionDecl>(D))) {
 1244   if (!D || (!isa<FunctionDecl>(D))) {
 1262   if (!D || (!isa<VarDecl>(D))) {
 1275   if (!D || (!isa<VarDecl>(D) && !isa<FunctionDecl>(D) && !isa<CXXRecordDecl>(D))) {
 1275   if (!D || (!isa<VarDecl>(D) && !isa<FunctionDecl>(D) && !isa<CXXRecordDecl>(D))) {
 1275   if (!D || (!isa<VarDecl>(D) && !isa<FunctionDecl>(D) && !isa<CXXRecordDecl>(D))) {
 1290   if (!D || (!isa<RecordDecl>(D))) {
 1303   if (!D || (!isa<CXXRecordDecl>(D))) {
 1318   if (!D || (!isa<ParmVarDecl>(D) && !isImplicitObjectParameter(D))) {
 1327   if (!D || (!isa<FunctionDecl>(D))) {
 1336   if (!D || (!isa<RecordDecl>(D))) {
 1349   if (!D || (!isa<FunctionDecl>(D))) {
 1380   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<BlockDecl>(D))) {
 1380   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<BlockDecl>(D))) {
 1380   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<BlockDecl>(D))) {
 1395   if (!D || (!isa<FunctionDecl>(D))) {
 1433   if (!D || (!isa<CXXRecordDecl>(D))) {
 1442   if (!D || (!isa<RecordDecl>(D))) {
 1455   if (!D || (!isa<FunctionDecl>(D))) {
 1473   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
 1473   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
 1487   if (!D || (!isa<FunctionDecl>(D))) {
 1500   if (!D || (!isa<FunctionDecl>(D))) {
 1513   if (!D || (!isa<FunctionDecl>(D))) {
 1551   if (!D || (!isa<FunctionDecl>(D))) {
 1584   if (!D || (!isa<VarDecl>(D) && !isa<EnumDecl>(D) && !isa<TypedefNameDecl>(D) && !isa<FieldDecl>(D))) {
 1584   if (!D || (!isa<VarDecl>(D) && !isa<EnumDecl>(D) && !isa<TypedefNameDecl>(D) && !isa<FieldDecl>(D))) {
 1584   if (!D || (!isa<VarDecl>(D) && !isa<EnumDecl>(D) && !isa<TypedefNameDecl>(D) && !isa<FieldDecl>(D))) {
 1584   if (!D || (!isa<VarDecl>(D) && !isa<EnumDecl>(D) && !isa<TypedefNameDecl>(D) && !isa<FieldDecl>(D))) {
 1593   if (!D || (!isa<ParmVarDecl>(D))) {
 1606   if (!D || (!isa<ObjCMethodDecl>(D))) {
 1619   if (!D || (!isa<FunctionDecl>(D))) {
 1632   if (!D || (!isa<FunctionDecl>(D))) {
 1641   if (!D || (!isa<VarDecl>(D))) {
 1660   if (!D || (!isa<TypedefNameDecl>(D) && !isFunctionLike(D) && !isa<ObjCMethodDecl>(D) && !isNonParmVar(D))) {
 1660   if (!D || (!isa<TypedefNameDecl>(D) && !isFunctionLike(D) && !isa<ObjCMethodDecl>(D) && !isNonParmVar(D))) {
 1676   if (!D || (!isa<VarDecl>(D))) {
 1689   if (!D || (!isa<FunctionDecl>(D))) {
 1702   if (!D || (!isa<ParmVarDecl>(D))) {
 1715   if (!D || (!isa<FunctionDecl>(D))) {
 1728   if (!D || (!isa<FunctionDecl>(D))) {
 1741   if (!D || (!isa<FunctionDecl>(D))) {
 1754   if (!D || (!isa<FunctionDecl>(D))) {
 1767   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D) && !isGlobalVar(D))) {
 1767   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D) && !isGlobalVar(D))) {
 1782   if (!D || (!isa<FunctionDecl>(D) && !isGlobalVar(D))) {
 1796   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
 1796   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
 1810   if (!D || (!isa<FunctionDecl>(D))) {
 1823   if (!D || (!isa<FunctionDecl>(D))) {
 1836   if (!D || (!isa<FunctionDecl>(D))) {
 1882   if (!D || (!isa<ObjCMethodDecl>(D) && !isHasFunctionProto(D) && !isa<ParmVarDecl>(D))) {
 1882   if (!D || (!isa<ObjCMethodDecl>(D) && !isHasFunctionProto(D) && !isa<ParmVarDecl>(D))) {
 1891   if (!D || (!isa<FunctionDecl>(D))) {
 1904   if (!D || (!isa<ParmVarDecl>(D))) {
 1932   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<ObjCPropertyDecl>(D) && !isa<ParmVarDecl>(D))) {
 1932   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<ObjCPropertyDecl>(D) && !isa<ParmVarDecl>(D))) {
 1932   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<ObjCPropertyDecl>(D) && !isa<ParmVarDecl>(D))) {
 1932   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<ObjCPropertyDecl>(D) && !isa<ParmVarDecl>(D))) {
 1948   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<ObjCPropertyDecl>(D) && !isa<ParmVarDecl>(D))) {
 1948   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<ObjCPropertyDecl>(D) && !isa<ParmVarDecl>(D))) {
 1948   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<ObjCPropertyDecl>(D) && !isa<ParmVarDecl>(D))) {
 1948   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<ObjCPropertyDecl>(D) && !isa<ParmVarDecl>(D))) {
 1964   if (!D || (!isa<ParmVarDecl>(D))) {
 1977   if (!D || (!isa<ParmVarDecl>(D))) {
 1990   if (!D || (!isa<RecordDecl>(D))) {
 2003   if (!D || (!isa<RecordDecl>(D) && !isa<TypedefNameDecl>(D))) {
 2003   if (!D || (!isa<RecordDecl>(D) && !isa<TypedefNameDecl>(D))) {
 2017   if (!D || (!isa<RecordDecl>(D))) {
 2030   if (!D || (!isa<RecordDecl>(D))) {
 2043   if (!D || (!isa<ObjCInterfaceDecl>(D))) {
 2065   if (!D || (!isa<ObjCMethodDecl>(D))) {
 2078   if (!D || (!isa<ObjCInterfaceDecl>(D))) {
 2091   if (!D || (!isa<ObjCProtocolDecl>(D))) {
 2104   if (!D || (!isNonParmVar(D) && !isa<FunctionDecl>(D) && !isa<BlockDecl>(D) && !isa<ObjCMethodDecl>(D))) {
 2104   if (!D || (!isNonParmVar(D) && !isa<FunctionDecl>(D) && !isa<BlockDecl>(D) && !isa<ObjCMethodDecl>(D))) {
 2104   if (!D || (!isNonParmVar(D) && !isa<FunctionDecl>(D) && !isa<BlockDecl>(D) && !isa<ObjCMethodDecl>(D))) {
 2129   if (!D || (!isa<ObjCMethodDecl>(D))) {
 2142   if (!D || (!isa<ObjCInterfaceDecl>(D) && !isa<ObjCImplDecl>(D))) {
 2142   if (!D || (!isa<ObjCInterfaceDecl>(D) && !isa<ObjCImplDecl>(D))) {
 2165   if (!D || (!isa<VarDecl>(D))) {
 2178   if (!D || (!isa<ObjCInterfaceDecl>(D))) {
 2191   if (!D || (!isa<ObjCMethodDecl>(D))) {
 2204   if (!D || (!isa<ObjCMethodDecl>(D) && !isa<ObjCPropertyDecl>(D))) {
 2204   if (!D || (!isa<ObjCMethodDecl>(D) && !isa<ObjCPropertyDecl>(D))) {
 2218   if (!D || (!isa<ObjCInterfaceDecl>(D))) {
 2231   if (!D || (!isa<ObjCInterfaceDecl>(D) && !isa<ObjCProtocolDecl>(D))) {
 2231   if (!D || (!isa<ObjCInterfaceDecl>(D) && !isa<ObjCProtocolDecl>(D))) {
 2245   if (!D || (!isa<ObjCInterfaceDecl>(D))) {
 2258   if (!D || (!isa<ObjCInterfaceDecl>(D))) {
 2271   if (!D || (!isa<ParmVarDecl>(D) && !isa<TypedefNameDecl>(D))) {
 2271   if (!D || (!isa<ParmVarDecl>(D) && !isa<TypedefNameDecl>(D))) {
 2301   if (!D || (!isa<FunctionDecl>(D))) {
 2314   if (!D || (!isa<FunctionDecl>(D))) {
 2323   if (!D || (!isa<VarDecl>(D))) {
 2345   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
 2345   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
 2359   if (!D || (!isa<FunctionDecl>(D))) {
 2424   if (!D || (!isa<ParmVarDecl>(D))) {
 2437   if (!D || (!isa<ParmVarDecl>(D))) {
 2523   if (!D || (!isa<FunctionDecl>(D))) {
 2532   if (!D || (!isa<FieldDecl>(D) && !isSharedVar(D))) {
 2541   if (!D || (!isa<FieldDecl>(D) && !isSharedVar(D))) {
 2565   if (!D || (!isa<FunctionDecl>(D))) {
 2602   if (!D || (!isa<FunctionDecl>(D))) {
 2624   if (!D || (!isa<FunctionDecl>(D))) {
 2637   if (!D || (!isa<FunctionDecl>(D))) {
 2674   if (!D || (!isa<FunctionDecl>(D))) {
 2705   if (!D || (!isa<FunctionDecl>(D) && !isa<ParmVarDecl>(D))) {
 2705   if (!D || (!isa<FunctionDecl>(D) && !isa<ParmVarDecl>(D))) {
 2719   if (!D || (!isa<ObjCMethodDecl>(D) && !isa<FunctionDecl>(D))) {
 2719   if (!D || (!isa<ObjCMethodDecl>(D) && !isa<FunctionDecl>(D))) {
 2733   if (!D || (!isa<FunctionDecl>(D))) {
 2746   if (!D || (!isa<RecordDecl>(D))) {
 2759   if (!D || (!isa<FunctionDecl>(D) && !isGlobalVar(D) && !isa<ObjCMethodDecl>(D) && !isa<ObjCPropertyDecl>(D))) {
 2759   if (!D || (!isa<FunctionDecl>(D) && !isGlobalVar(D) && !isa<ObjCMethodDecl>(D) && !isa<ObjCPropertyDecl>(D))) {
 2759   if (!D || (!isa<FunctionDecl>(D) && !isGlobalVar(D) && !isa<ObjCMethodDecl>(D) && !isa<ObjCPropertyDecl>(D))) {
 2793   if (!D || (!isa<CXXMethodDecl>(D))) {
 2806   if (!D || (!isa<FunctionDecl>(D))) {
 2815   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
 2815   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
 2829   if (!D || (!isa<ParmVarDecl>(D))) {
 2842   if (!D || (!isa<ParmVarDecl>(D))) {
 2855   if (!D || (!isa<ParmVarDecl>(D))) {
 2887   if (!D || (!isa<FunctionDecl>(D))) {
 2900   if (!D || (!isa<CXXMethodDecl>(D))) {
 2913   if (!D || (!isa<VarDecl>(D))) {
 2931   if (!D || (!isa<CXXRecordDecl>(D))) {
 2944   if (!D || (!isa<FunctionDecl>(D))) {
 2982   if (!D || (!isa<VarDecl>(D) && !isa<ObjCIvarDecl>(D) && !isa<TypeDecl>(D) && !isa<EnumDecl>(D) && !isa<EnumConstantDecl>(D) && !isa<LabelDecl>(D) && !isa<FieldDecl>(D) && !isa<ObjCMethodDecl>(D) && !isFunctionLike(D))) {
 2982   if (!D || (!isa<VarDecl>(D) && !isa<ObjCIvarDecl>(D) && !isa<TypeDecl>(D) && !isa<EnumDecl>(D) && !isa<EnumConstantDecl>(D) && !isa<LabelDecl>(D) && !isa<FieldDecl>(D) && !isa<ObjCMethodDecl>(D) && !isFunctionLike(D))) {
 2982   if (!D || (!isa<VarDecl>(D) && !isa<ObjCIvarDecl>(D) && !isa<TypeDecl>(D) && !isa<EnumDecl>(D) && !isa<EnumConstantDecl>(D) && !isa<LabelDecl>(D) && !isa<FieldDecl>(D) && !isa<ObjCMethodDecl>(D) && !isFunctionLike(D))) {
 2982   if (!D || (!isa<VarDecl>(D) && !isa<ObjCIvarDecl>(D) && !isa<TypeDecl>(D) && !isa<EnumDecl>(D) && !isa<EnumConstantDecl>(D) && !isa<LabelDecl>(D) && !isa<FieldDecl>(D) && !isa<ObjCMethodDecl>(D) && !isFunctionLike(D))) {
 2982   if (!D || (!isa<VarDecl>(D) && !isa<ObjCIvarDecl>(D) && !isa<TypeDecl>(D) && !isa<EnumDecl>(D) && !isa<EnumConstantDecl>(D) && !isa<LabelDecl>(D) && !isa<FieldDecl>(D) && !isa<ObjCMethodDecl>(D) && !isFunctionLike(D))) {
 2982   if (!D || (!isa<VarDecl>(D) && !isa<ObjCIvarDecl>(D) && !isa<TypeDecl>(D) && !isa<EnumDecl>(D) && !isa<EnumConstantDecl>(D) && !isa<LabelDecl>(D) && !isa<FieldDecl>(D) && !isa<ObjCMethodDecl>(D) && !isFunctionLike(D))) {
 2982   if (!D || (!isa<VarDecl>(D) && !isa<ObjCIvarDecl>(D) && !isa<TypeDecl>(D) && !isa<EnumDecl>(D) && !isa<EnumConstantDecl>(D) && !isa<LabelDecl>(D) && !isa<FieldDecl>(D) && !isa<ObjCMethodDecl>(D) && !isFunctionLike(D))) {
 2982   if (!D || (!isa<VarDecl>(D) && !isa<ObjCIvarDecl>(D) && !isa<TypeDecl>(D) && !isa<EnumDecl>(D) && !isa<EnumConstantDecl>(D) && !isa<LabelDecl>(D) && !isa<FieldDecl>(D) && !isa<ObjCMethodDecl>(D) && !isFunctionLike(D))) {
 3017   if (!D || (!isNonLocalVar(D) && !isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
 3017   if (!D || (!isNonLocalVar(D) && !isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
 3026   if (!D || (!isa<RecordDecl>(D) && !isa<EnumDecl>(D))) {
 3026   if (!D || (!isa<RecordDecl>(D) && !isa<EnumDecl>(D))) {
 3044   if (!D || (!isa<CXXRecordDecl>(D))) {
 3057   if (!D || (!isa<FunctionDecl>(D))) {
 3070   if (!D || (!isa<RecordDecl>(D))) {
 3083   if (!D || (!isa<ObjCMethodDecl>(D) && !isa<EnumDecl>(D) && !isa<RecordDecl>(D) && !isFunctionLike(D))) {
 3083   if (!D || (!isa<ObjCMethodDecl>(D) && !isa<EnumDecl>(D) && !isa<RecordDecl>(D) && !isFunctionLike(D))) {
 3083   if (!D || (!isa<ObjCMethodDecl>(D) && !isa<EnumDecl>(D) && !isa<RecordDecl>(D) && !isFunctionLike(D))) {
 3121   if (!D || (!isa<VarDecl>(D) && !isa<FunctionDecl>(D) && !isa<CXXRecordDecl>(D))) {
 3121   if (!D || (!isa<VarDecl>(D) && !isa<FunctionDecl>(D) && !isa<CXXRecordDecl>(D))) {
 3121   if (!D || (!isa<VarDecl>(D) && !isa<FunctionDecl>(D) && !isa<CXXRecordDecl>(D))) {
 3136   if (!D || (!isa<VarDecl>(D) && !isa<FunctionDecl>(D))) {
 3136   if (!D || (!isa<VarDecl>(D) && !isa<FunctionDecl>(D))) {
 3150   if (!D || (!isa<FunctionDecl>(D))) {
 3168   if (!D || (!isa<FunctionDecl>(D))) {
 3181   if (!D || (!isa<FunctionDecl>(D))) {
 3194   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
 3194   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
 3232   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
 3232   if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
 3524     return isa<BlockDecl>(D);
 3526     return isa<EnumDecl>(D);
 3528     return isa<EnumConstantDecl>(D);
 3530     return isa<FieldDecl>(D);
 3532     return isa<FunctionDecl>(D);
 3534     return isa<CXXMethodDecl>(D);
 3536     return isa<NamespaceDecl>(D);
 3538     return isa<ObjCCategoryDecl>(D);
 3540     return isa<ObjCImplDecl>(D);
 3542     return isa<ObjCInterfaceDecl>(D);
 3544     return isa<ObjCMethodDecl>(D);
 3548     return isa<ObjCPropertyDecl>(D);
 3550     return isa<ObjCProtocolDecl>(D);
 3552     return isa<RecordDecl>(D) || isa<CXXRecordDecl>(D);
 3552     return isa<RecordDecl>(D) || isa<CXXRecordDecl>(D);
 3561     return isa<TypedefNameDecl>(D);
 3563     return isa<VarDecl>(D);
 3569     return isa<ParmVarDecl>(D);
include/llvm/Analysis/CFLSteensAliasAnalysis.h
   83     if (isa<Constant>(LocA.Ptr) && isa<Constant>(LocB.Ptr))
   83     if (isa<Constant>(LocA.Ptr) && isa<Constant>(LocB.Ptr))
include/llvm/Analysis/DDG.h
  302     assert(isa<RootDDGNode>(Src) && "Expected root node");
include/llvm/Analysis/InstructionSimplify.h
   84     if (UseInstrInfo && isa<PossiblyExactOperator>(Op))
include/llvm/Analysis/LoopInfo.h
 1130         auto *UBB = isa<PHINode>(UI) ? cast<PHINode>(UI)->getIncomingBlock(U)
 1142       if (isa<PHINode>(Inst))
include/llvm/Analysis/MemorySSA.h
  665   assert((isa<MemoryDef>(this) || isa<MemoryPhi>(this)) &&
  665   assert((isa<MemoryDef>(this) || isa<MemoryPhi>(this)) &&
 1191     WalkingPhi = Info.first && isa<MemoryPhi>(Info.first);
include/llvm/Analysis/ObjCARCAnalysisUtils.h
  142   return isa<ConstantPointerNull>(V) || isa<UndefValue>(V);
  142   return isa<ConstantPointerNull>(V) || isa<UndefValue>(V);
  146   return isa<BitCastInst>(I) ||
  147     (isa<GetElementPtrInst>(I) &&
  155   if (isa<Constant>(Op) || isa<AllocaInst>(Op))
  155   if (isa<Constant>(Op) || isa<AllocaInst>(Op))
  216   if (isa<CallInst>(V) || isa<InvokeInst>(V) ||
  216   if (isa<CallInst>(V) || isa<InvokeInst>(V) ||
  217       isa<Argument>(V) || isa<Constant>(V) ||
  217       isa<Argument>(V) || isa<Constant>(V) ||
  218       isa<AllocaInst>(V))
include/llvm/Analysis/ObjCARCInstKind.h
  115   return isa<InvokeInst>(V) ? ARCInstKind::CallOrUser : ARCInstKind::User;
include/llvm/Analysis/ScalarEvolution.h
 1212       assert(!isa<SCEVUnionPredicate>(P) && "Only add leaf predicates here!");
 1233       return !isa<SCEVCouldNotCompute>(ExactNotTaken) ||
 1234              !isa<SCEVCouldNotCompute>(MaxNotTaken);
 1241       return !isa<SCEVCouldNotCompute>(ExactNotTaken);
 1305       return !ExitNotTaken.empty() || !isa<SCEVCouldNotCompute>(getMax());
include/llvm/Analysis/ScalarEvolutionExpressions.h
  805         if (InterpretConsts && isa<ConstantInt>(NV))
include/llvm/Analysis/SparsePropagation.h
  279     for (BasicBlock::iterator I = Dest->begin(); isa<PHINode>(I); ++I)
  321     if (!C || !isa<ConstantInt>(C)) {
  359   if (!C || !isa<ConstantInt>(C)) {
include/llvm/Analysis/TargetTransformInfoImpl.h
  110       if (!isa<Constant>(Operands[Idx]))
  607     if (isa<ConstantDataVector>(Val) || isa<ConstantVector>(Val)) {
  607     if (isa<ConstantDataVector>(Val) || isa<ConstantVector>(Val)) {
  662     return Ptr && isa<SCEVAddRecExpr>(Ptr);
  846     if (isa<PHINode>(U))
  849     if (isa<ExtractValueInst>(U))
  876     if (isa<SExtInst>(U) || isa<ZExtInst>(U) || isa<FPExtInst>(U))
  876     if (isa<SExtInst>(U) || isa<ZExtInst>(U) || isa<FPExtInst>(U))
  876     if (isa<SExtInst>(U) || isa<ZExtInst>(U) || isa<FPExtInst>(U))
  893     if (isa<LoadInst>(I))
include/llvm/Analysis/ValueLattice.h
  121     if (!isa<UndefValue>(C))
  127     if (!isa<UndefValue>(C))
  165     if (isConstant() && isa<ConstantInt>(getConstant())) {
  190     if (isa<UndefValue>(V))
  206     if (isa<UndefValue>(V))
  285     assert(isConstant() && isa<ConstantInt>(getConstant()) &&
include/llvm/CodeGen/BasicTTIImpl.h
  298     if (isa<ZExtInst>(I) || isa<SExtInst>(I))
  298     if (isa<ZExtInst>(I) || isa<SExtInst>(I))
  479         if (isa<CallInst>(J) || isa<InvokeInst>(J)) {
  479         if (isa<CallInst>(J) || isa<InvokeInst>(J)) {
  512     if (isa<LoadInst>(I))
  584       if (!isa<Constant>(A) && UniqueOperands.insert(A).second) {
  720         I && isa<LoadInst>(I->getOperand(0))) {
 1097       bool VarMask = !isa<Constant>(Mask);
 1105       bool VarMask = !isa<Constant>(Mask);
include/llvm/CodeGen/SelectionDAGNodes.h
 2599     return isa<LoadSDNode>(N) &&
 2605     return isa<LoadSDNode>(N) &&
 2611     return isa<LoadSDNode>(N) &&
 2617     return isa<LoadSDNode>(N) &&
 2623     return isa<LoadSDNode>(N) &&
 2637     return isa<StoreSDNode>(N) && !cast<StoreSDNode>(N)->isTruncatingStore();
 2642     return isa<StoreSDNode>(N) && cast<StoreSDNode>(N)->isTruncatingStore();
 2647     return isa<StoreSDNode>(N) &&
include/llvm/CodeGen/TargetLowering.h
 2387     if (isa<ZExtInst>(Ext))
 2390       assert(isa<SExtInst>(Ext) && "Unexpected ext type!");
 3513            isa<UnreachableInst>(Call.getInstruction()->getNextNode()));
include/llvm/FuzzMutate/OpDescriptor.h
  167     if (isa<ArrayType>(V->getType()))
  171     if (isa<StructType>(V->getType()))
include/llvm/IR/CallSite.h
  120     if (isa<FunTy>(V) || isa<Constant>(V))
  120     if (isa<FunTy>(V) || isa<Constant>(V))
include/llvm/IR/DebugInfoMetadata.h
  423     return isa<DIFile>(this) ? const_cast<DIScope *>(this)
include/llvm/IR/IRBuilder.h
 1285       if (isa<ConstantInt>(RC) && cast<ConstantInt>(RC)->isMinusOne())
 1478     if (isa<FPMathOperator>(BinOp))
 1551     if (isa<FPMathOperator>(UnOp))
 1703         if (!isa<Constant>(IdxList[i]))
 1722         if (!isa<Constant>(IdxList[i]))
 2105     if (isa<FPMathOperator>(C))
 2252     if (isa<FPMathOperator>(Phi))
 2263     if (isa<FPMathOperator>(CI))
 2274     if (isa<FPMathOperator>(CI))
 2322     if (isa<FPMathOperator>(Sel))
 2433     assert(isa<PointerType>(Ptr->getType()) &&
 2460     assert(isa<PointerType>(Ptr->getType()) &&
 2526     assert(isa<PointerType>(Base->getType()) &&
 2555     assert(isa<PointerType>(Base->getType()) &&
 2574     assert(isa<PointerType>(Base->getType()) &&
 2643     assert(isa<PointerType>(PtrValue->getType()) &&
 2670     assert(isa<PointerType>(PtrValue->getType()) &&
include/llvm/IR/InstVisitor.h
  276     if (isa<InvokeInst>(I) || isa<CallBrInst>(I))
  276     if (isa<InvokeInst>(I) || isa<CallBrInst>(I))
include/llvm/IR/InstrTypes.h
   88     return isa<Instruction>(V) && classof(cast<Instruction>(V));
  180     return isa<Instruction>(V) && classof(cast<Instruction>(V));
  418     return isa<Instruction>(V) && classof(cast<Instruction>(V));
  712     return isa<Instruction>(V) && classof(cast<Instruction>(V));
  971     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 1146     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 1361   bool isInlineAsm() const { return isa<InlineAsm>(getCalledOperand()); }
 2191     return isa<Instruction>(V) && classof(cast<Instruction>(V));
include/llvm/IR/Instructions.h
  152     return isa<Instruction>(V) && classof(cast<Instruction>(V));
  304     return isa<Instruction>(V) && classof(cast<Instruction>(V));
  433     return isa<Instruction>(V) && classof(cast<Instruction>(V));
  510     return isa<Instruction>(V) && classof(cast<Instruction>(V));
  668     return isa<Instruction>(V) && classof(cast<Instruction>(V));
  840     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 1105     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 1282     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 1390     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 1673     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 1793     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 1839     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 1896     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 1959     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 2274     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 2374     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 2505     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 2766     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 2855     return !isa<ArrayType>(getOperandList()[Idx]->getType());
 2860     return isa<ArrayType>(getOperandList()[Idx]->getType());
 2875     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 2949     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 3102     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 3459     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 3639     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 3877     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 4117     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 4196     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 4381     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 4427     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 4477     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 4541     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 4635     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 4694     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 4742     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 4781     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 4820     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 4859     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 4898     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 4937     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 4976     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 5015     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 5054     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 5097     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 5148     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 5187     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 5227     return isa<Instruction>(V) && classof(cast<Instruction>(V));
 5285   assert((isa<LoadInst>(I) || isa<StoreInst>(I)) &&
 5285   assert((isa<LoadInst>(I) || isa<StoreInst>(I)) &&
 5295   assert((isa<LoadInst>(I) || isa<StoreInst>(I)) &&
 5295   assert((isa<LoadInst>(I) || isa<StoreInst>(I)) &&
include/llvm/IR/IntrinsicInst.h
   61       return isa<CallInst>(V) && classof(cast<CallInst>(V));
   81       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  132       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  148       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  164       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  181       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  203       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  293       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  319       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  352       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  371       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  530       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  542       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  560       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  572       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  584       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  616       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  628       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  641       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  653       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  665       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  696       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  715       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  736       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  755       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  774       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  785       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  798       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  811       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  825       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  854       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  865       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
include/llvm/IR/Metadata.h
  431     assert(!isa<Constant>(Local) && "Expected local value");
  533     return isa<X>(V->getValue());
include/llvm/IR/ModuleSummaryIndex.h
 1041           !isa<FunctionSummary>(S.second.SummaryList.front().get()))
 1432   assert(isa<GlobalVarSummary>(S->getBaseObject()));
include/llvm/IR/Operator.h
   59     return isa<Instruction>(V) || isa<ConstantExpr>(V);
   59     return isa<Instruction>(V) || isa<ConstantExpr>(V);
  112     return (isa<Instruction>(V) && classof(cast<Instruction>(V))) ||
  113            (isa<ConstantExpr>(V) && classof(cast<ConstantExpr>(V)));
  153     return (isa<Instruction>(V) && classof(cast<Instruction>(V))) ||
  154            (isa<ConstantExpr>(V) && classof(cast<ConstantExpr>(V)));
  416     return (isa<Instruction>(V) && classof(cast<Instruction>(V))) ||
  417            (isa<ConstantExpr>(V) && classof(cast<ConstantExpr>(V)));
  531       if (!isa<ConstantInt>(I))
  539         return !isa<ConstantInt>(*use);
include/llvm/IR/PatternMatch.h
   66   template <typename ITy> bool match(ITy *V) { return isa<Class>(V); }
  240           if (isa<UndefValue>(Elt))
  299           if (isa<UndefValue>(Elt))
include/llvm/IR/Statepoint.h
  324     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  332     return isa<LandingPadInst>(Token) || isa<InvokeInst>(Token);
  332     return isa<LandingPadInst>(Token) || isa<InvokeInst>(Token);
  341     if (!isa<LandingPadInst>(Token)) {
  367     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  400     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
include/llvm/IR/User.h
  176     assert((!isa<Constant>((const Value*)this) ||
  177             isa<GlobalValue>((const Value*)this)) &&
  307     return isa<Instruction>(V) || isa<Constant>(V);
  307     return isa<Instruction>(V) || isa<Constant>(V);
include/llvm/IR/Value.h
  887     return isa<GlobalAlias>(Val) || isa<GlobalIFunc>(Val);
  887     return isa<GlobalAlias>(Val) || isa<GlobalIFunc>(Val);
  893     return isa<GlobalObject>(Val) || isa<GlobalIndirectSymbol>(Val);
  893     return isa<GlobalObject>(Val) || isa<GlobalIndirectSymbol>(Val);
  899     return isa<GlobalVariable>(Val) || isa<Function>(Val);
  899     return isa<GlobalVariable>(Val) || isa<Function>(Val);
include/llvm/IR/ValueHandle.h
  339     assert(isa<ValueTy>(InnerHandle) &&
include/llvm/IR/ValueMap.h
  272     assert(isa<KeySansPointerT>(new_key) &&
include/llvm/Object/ELFObjectFile.h
  101     assert(isa<ELFObjectFileBase>(SectionRef::getObject()));
  124     assert(isa<ELFObjectFileBase>(B->getObject()));
  139     assert(isa<ELFObjectFileBase>(SymbolRef::getObject()));
  191     assert(isa<ELFObjectFileBase>(RelocationRef::getObject()));
include/llvm/Object/ObjectFile.h
  176     assert(isa<ObjectFile>(BasicSymbolRef::getObject()));
include/llvm/Support/Casting.h
  153   return isa<X>(Val);
  250   assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  257   assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  264   assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  272   assert(isa<X>(Val.get()) && "cast<Ty>() argument of incompatible type!");
  289   assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
  300   assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
  308   assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
  333   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  338   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  354   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
  362   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
  368   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
  379   if (!isa<X>(Val))
include/llvm/TableGen/Record.h
 1112            (isa<IntRecTy>(T->getType()) ||
 1113             (isa<BitsRecTy>(T->getType()) &&
 1150     assert(T->getType() && isa<ListRecTy>(T->getType()) &&
 1628     return isa<UnsetInit>(getValueInit(FieldName));
include/llvm/Transforms/IPO/Attributor.h
  276     if (isa<Function>(V))
  278     if (isa<Argument>(V))
  280     if (isa<Instruction>(V))
  326     if (isa<Function>(V))
  328     if (isa<Argument>(V))
  330     if (isa<Instruction>(V))
  365     if (getArgNo() < 0 || isa<Argument>(AnchorVal))
  367     assert(isa<CallBase>(AnchorVal) && "Expected a call base!");
  402       assert(((isa<Argument>(getAnchorValue()) &&
  403                isa<Argument>(getAssociatedValue())) ||
  404               isa<CallBase>(getAnchorValue())) &&
  406       if (isa<CallBase>(getAnchorValue()))
lib/Analysis/AliasAnalysis.cpp
  648   if (!isIdentifiedObject(Object) || isa<GlobalValue>(Object) ||
  649       isa<Constant>(Object))
  881   if (isa<AllocaInst>(V))
  883   if (isa<GlobalValue>(V) && !isa<GlobalAlias>(V))
  883   if (isa<GlobalValue>(V) && !isa<GlobalAlias>(V))
  893   return isa<AllocaInst>(V) || isNoAliasCall(V) || isNoAliasArgument(V);
lib/Analysis/AliasAnalysisEvaluator.cpp
   85       && !isa<ConstantPointerNull>(V);
  110     if (EvalAAMD && isa<LoadInst>(&*I))
  112     if (EvalAAMD && isa<StoreInst>(&*I))
  118       if (!isa<Function>(Callee) && isInterestingPointer(Callee))
lib/Analysis/AliasAnalysisSummary.cpp
   52   if (isa<GlobalValue>(Val))
lib/Analysis/AliasSetTracker.cpp
  434   if (isa<DbgInfoIntrinsic>(Inst))
lib/Analysis/AssumptionCache.cpp
   62     if (isa<Argument>(V)) {
   72         if (isa<Instruction>(Op) || isa<Argument>(Op))
   72         if (isa<Instruction>(Op) || isa<Argument>(Op))
  159   if (!isa<Instruction>(NV) && !isa<Argument>(NV))
  159   if (!isa<Instruction>(NV) && !isa<Argument>(NV))
lib/Analysis/BasicAliasAnalysis.cpp
  132   if (isa<AllocaInst>(V) || isNoAliasCall(V)) {
  164   if (isa<CallBase>(V))
  167   if (isa<Argument>(V))
  173   if (isa<LoadInst>(V))
  365       if (isa<OverflowingBinaryOperator>(BOp)) {
  376   if (isa<SExtInst>(V) || isa<ZExtInst>(V)) {
  376   if (isa<SExtInst>(V) || isa<ZExtInst>(V)) {
  389     if (isa<SExtInst>(V) && ZExtBits == 0) {
  668     if (OrLocal && isa<AllocaInst>(V))
  882   if (isa<AllocaInst>(Object))
  897   if (!isa<Constant>(Object) && Call != Object &&
 1137     if (!isa<ArrayType>(GetElementPtrInst::getIndexedType(
 1147   if (isa<SequentialType>(Ty)) {
 1181       if (isa<PHINode>(GEP1LastIdx) || isa<PHINode>(GEP2LastIdx)) {
 1181       if (isa<PHINode>(GEP1LastIdx) || isa<PHINode>(GEP2LastIdx)) {
 1283   if (!(isa<AllocaInst>(DecompObject.Base) ||
 1284         isa<GlobalVariable>(DecompObject.Base)) ||
 1490         bool IsZExt = DecompGEP1.VarIndices[i].ZExtBits > 0 || isa<ZExtInst>(V);
 1657               isa<ConstantInt>(PV1GEP->idx_begin())) {
 1670       if (isa<PHINode>(PV1))
 1684               isa<ConstantInt>(PV1GEP->idx_begin())) {
 1748   if (isa<UndefValue>(V1) || isa<UndefValue>(V2))
 1748   if (isa<UndefValue>(V1) || isa<UndefValue>(V2))
 1785     if ((isa<Constant>(O1) && isIdentifiedObject(O2) && !isa<Constant>(O2)) ||
 1785     if ((isa<Constant>(O1) && isIdentifiedObject(O2) && !isa<Constant>(O2)) ||
 1786         (isa<Constant>(O2) && isIdentifiedObject(O1) && !isa<Constant>(O1)))
 1786         (isa<Constant>(O2) && isIdentifiedObject(O1) && !isa<Constant>(O1)))
 1791     if ((isa<Argument>(O1) && isIdentifiedFunctionLocal(O2)) ||
 1792         (isa<Argument>(O2) && isIdentifiedFunctionLocal(O1)))
 1836   if (!isa<GEPOperator>(V1) && isa<GEPOperator>(V2)) {
 1836   if (!isa<GEPOperator>(V1) && isa<GEPOperator>(V2)) {
 1853   if (isa<PHINode>(V2) && !isa<PHINode>(V1)) {
 1853   if (isa<PHINode>(V2) && !isa<PHINode>(V1)) {
 1869   if (isa<SelectInst>(V2) && !isa<SelectInst>(V1)) {
 1869   if (isa<SelectInst>(V2) && !isa<SelectInst>(V1)) {
lib/Analysis/BranchProbabilityInfo.cpp
  146     if (isa<UnreachableInst>(TI) ||
  214   assert(!isa<InvokeInst>(TI) &&
  257   if (!(isa<BranchInst>(TI) || isa<SwitchInst>(TI) || isa<IndirectBrInst>(TI)))
  257   if (!(isa<BranchInst>(TI) || isa<SwitchInst>(TI) || isa<IndirectBrInst>(TI)))
  257   if (!(isa<BranchInst>(TI) || isa<SwitchInst>(TI) || isa<IndirectBrInst>(TI)))
  360   assert(!isa<InvokeInst>(TI) &&
  498   if (!CI || !isa<Instruction>(CI->getOperand(0)) ||
  499       !isa<Constant>(CI->getOperand(1)))
  510   while (!CmpPHI && CmpLHS && isa<BinaryOperator>(CmpLHS) &&
  511          isa<Constant>(CmpLHS->getOperand(1))) {
lib/Analysis/CFLAndersAliasAnalysis.cpp
  890   if (isa<Constant>(LocA.Ptr) && isa<Constant>(LocB.Ptr))
  890   if (isa<Constant>(LocA.Ptr) && isa<Constant>(LocB.Ptr))
lib/Analysis/CFLGraph.h
  604                                     !isa<InvokeInst>(Inst) &&
  605                                     !isa<ReturnInst>(Inst);
  606     return !isa<CmpInst>(Inst) && !isa<FenceInst>(Inst) &&
  606     return !isa<CmpInst>(Inst) && !isa<FenceInst>(Inst) &&
lib/Analysis/CFLSteensAliasAnalysis.cpp
  102   if (isa<Constant>(Val)) {
  106     bool CanStoreMutableData = isa<GlobalValue>(Val) ||
  107                                isa<ConstantExpr>(Val) ||
  108                                isa<ConstantAggregate>(Val);
lib/Analysis/CaptureTracking.cpp
   60       if (isa<ReturnInst>(U->getUser()) && !ReturnCaptures)
  103         if (isa<InvokeInst>(BeforeHere) || isa<PHINode>(I) || I == BeforeHere)
  103         if (isa<InvokeInst>(BeforeHere) || isa<PHINode>(I) || I == BeforeHere)
  146       if (isa<ReturnInst>(U->getUser()) && !ReturnCaptures)
  177   assert(!isa<GlobalValue>(V) &&
  206   assert(!isa<GlobalValue>(V) &&
  372       if (LI && isa<GlobalVariable>(LI->getPointerOperand()))
lib/Analysis/CodeMetrics.cpp
  157     if (isa<ExtractElementInst>(I) || I.getType()->isVectorTy())
  177   if (isa<ReturnInst>(BB->getTerminator()))
  191   notDuplicatable |= isa<IndirectBrInst>(BB->getTerminator());
lib/Analysis/ConstantFolding.cpp
   76     if (Element && isa<UndefValue>(Element)) {
  108     if (isa<IntegerType>(DestTy) || DestTy->isFloatingPointTy()) {
  127       if (isa<IntegerType>(DestTy))
  142   if (isa<ConstantFP>(C) || isa<ConstantInt>(C)) {
  142   if (isa<ConstantFP>(C) || isa<ConstantInt>(C)) {
  148   if (!isa<ConstantDataVector>(C) && !isa<ConstantVector>(C))
  148   if (!isa<ConstantDataVector>(C) && !isa<ConstantVector>(C))
  191     if (!isa<ConstantVector>(C) &&  // FIXME: Remove ConstantVector.
  192         !isa<ConstantDataVector>(C))
  215         if (Src && isa<UndefValue>(Src))
  249     if (isa<UndefValue>(Element)) {
  385   if (isa<ConstantAggregateZero>(C) || isa<UndefValue>(C))
  385   if (isa<ConstantAggregateZero>(C) || isa<UndefValue>(C))
  459   if (isa<ConstantArray>(C) || isa<ConstantVector>(C) ||
  459   if (isa<ConstantArray>(C) || isa<ConstantVector>(C) ||
  460       isa<ConstantDataSequential>(C)) {
  660         (isa<IntegerType>(Ty) || Ty->isFloatingPointTy())) {
  691       if (isa<UndefValue>(GV->getInitializer()))
  774          !isa<StructType>(GetElementPtrInst::getIndexedType(
  845       if (!isa<ConstantInt>(Ops[i])) {
  884       if (!isa<ConstantInt>(NestedOp)) {
 1079   if (!isa<ConstantVector>(C) && !isa<ConstantExpr>(C))
 1079   if (!isa<ConstantVector>(C) && !isa<ConstantExpr>(C))
 1087     if (isa<ConstantVector>(NewC) || isa<ConstantExpr>(NewC)) {
 1087     if (isa<ConstantVector>(NewC) || isa<ConstantExpr>(NewC)) {
 1112   assert(isa<ConstantVector>(C));
 1130       if (isa<UndefValue>(Incoming))
 1152   if (!all_of(I->operands(), [](Use &U) { return isa<Constant>(U); }))
 1279   } else if (isa<ConstantExpr>(Ops1)) {
 1300   if (isa<ConstantExpr>(LHS) || isa<ConstantExpr>(RHS))
 1300   if (isa<ConstantExpr>(LHS) || isa<ConstantExpr>(RHS))
 1660   if (isa<ConstantData>(c)) {
 1662   } else if (isa<ConstantAggregate>(c) || isa<ConstantExpr>(c)) {
 1662   } else if (isa<ConstantAggregate>(c) || isa<ConstantExpr>(c)) {
 1677   if (isa<UndefValue>(Op)) {
 1700   if (isa<UndefValue>(Operands[0])) {
 1713   if (isa<ConstantPointerNull>(Operands[0])) {
 1992   if (isa<ConstantVector>(Operands[0]) ||
 1993       isa<ConstantDataVector>(Operands[0])) {
 2222   if ((isa<ConstantVector>(Operands[0]) ||
 2223        isa<ConstantDataVector>(Operands[0])) &&
 2226       isa<ConstantInt>(Operands[1]) &&
 2414       if (isa<UndefValue>(MaskElt)) {
lib/Analysis/DDG.cpp
   31   if (isa<SimpleDDGNode>(this)) {
   62   if (isa<SimpleDDGNode>(N)) {
   66   } else if (!isa<RootDDGNode>(N))
  172   if (isa<RootDDGNode>(N))
lib/Analysis/Delinearization.cpp
   77     if (!isa<StoreInst>(Inst) && !isa<LoadInst>(Inst) &&
   77     if (!isa<StoreInst>(Inst) && !isa<LoadInst>(Inst) &&
   78         !isa<GetElementPtrInst>(Inst))
lib/Analysis/DemandedBits.cpp
   81   return I->isTerminator() || isa<DbgInfoIntrinsic>(I) || I->isEHPad() ||
  380       if (!I && !isa<Argument>(OI))
lib/Analysis/DependenceAnalysis.cpp
  176     if (isa<StoreInst>(*SrcI) || isa<LoadInst>(*SrcI)) {
  176     if (isa<StoreInst>(*SrcI) || isa<LoadInst>(*SrcI)) {
  179         if (isa<StoreInst>(*DstI) || isa<LoadInst>(*DstI)) {
  179         if (isa<StoreInst>(*DstI) || isa<LoadInst>(*DstI)) {
  460     if (isa<SCEVConstant>(Y->getD())) {
  866   if ((isa<SCEVZeroExtendExpr>(Src) && isa<SCEVZeroExtendExpr>(Dst)) ||
  866   if ((isa<SCEVZeroExtendExpr>(Src) && isa<SCEVZeroExtendExpr>(Dst)) ||
  867       (isa<SCEVSignExtendExpr>(Src) && isa<SCEVSignExtendExpr>(Dst))) {
  867       (isa<SCEVSignExtendExpr>(Src) && isa<SCEVSignExtendExpr>(Dst))) {
  890   if (!isa<SCEVCouldNotCompute>(UB)) {
  915   if (!isa<SCEVCouldNotCompute>(UB)) {
  971     if ((isa<SCEVSignExtendExpr>(X) &&
  972          isa<SCEVSignExtendExpr>(Y)) ||
  973         (isa<SCEVZeroExtendExpr>(X) &&
  974          isa<SCEVZeroExtendExpr>(Y))) {
 1030       if (!isa<SCEVCouldNotCompute>(BECount)) {
 1183   if (isa<SCEVConstant>(Delta) && isa<SCEVConstant>(Coeff)) {
 1183   if (isa<SCEVConstant>(Delta) && isa<SCEVConstant>(Coeff)) {
 1771   if (isa<SCEVConstant>(Delta) &&
 1880   if (isa<SCEVConstant>(Delta) &&
 2382       if (isa<SCEVConstant>(Operand)) {
 2438     while (RunningGCD != 1 && isa<SCEVAddRecExpr>(Inner)) {
 2455     while (RunningGCD != 1 && isa<SCEVAddRecExpr>(Inner)) {
lib/Analysis/DivergenceAnalysis.cpp
  101   assert(isa<Instruction>(DivVal) || isa<Argument>(DivVal));
  101   assert(isa<Instruction>(DivVal) || isa<Argument>(DivVal));
  120   if (isa<InvokeInst>(Term)) {
lib/Analysis/DomTreeUpdater.cpp
  110            isa<UnreachableInst>(BB->getTerminator()) &&
lib/Analysis/EHPersonalities.cpp
  125       if (isa<ConstantTokenNone>(ParentPad))
lib/Analysis/GlobalsModRef.cpp
  382       if (!isa<ConstantPointerNull>(ICI->getOperand(1)))
  386       if (isa<GlobalValue>(C) || C->isConstantUsed())
  429       if (isa<ConstantPointerNull>(SI->getOperand(0)))
  588               if (isa<DbgInfoIntrinsic>(Call))
  638     if (isa<GlobalValue>(Input) || isa<Argument>(Input) || isa<CallInst>(Input) ||
  638     if (isa<GlobalValue>(Input) || isa<Argument>(Input) || isa<CallInst>(Input) ||
  638     if (isa<GlobalValue>(Input) || isa<Argument>(Input) || isa<CallInst>(Input) ||
  639         isa<InvokeInst>(Input))
  751     if (isa<Argument>(Input) || isa<CallInst>(Input) ||
  751     if (isa<Argument>(Input) || isa<CallInst>(Input) ||
  752         isa<InvokeInst>(Input)) {
lib/Analysis/IVDescriptors.cpp
  283     bool IsAPhi = isa<PHINode>(Cur);
  291     if (!Cur->isCommutative() && !IsAPhi && !isa<SelectInst>(Cur) &&
  292         !isa<ICmpInst>(Cur) && !isa<FCmpInst>(Cur) &&
  292         !isa<ICmpInst>(Cur) && !isa<FCmpInst>(Cur) &&
  304       if (isa<FPMathOperator>(ReduxDesc.getPatternInst()) && !IsAPhi)
  308     bool IsASelect = isa<SelectInst>(Cur);
  326         (isa<ICmpInst>(Cur) || isa<SelectInst>(Cur)))
  326         (isa<ICmpInst>(Cur) || isa<SelectInst>(Cur)))
  328     if (Kind == RK_FloatMinMax && (isa<FCmpInst>(Cur) || isa<SelectInst>(Cur)))
  328     if (Kind == RK_FloatMinMax && (isa<FCmpInst>(Cur) || isa<SelectInst>(Cur)))
  372         if (isa<PHINode>(UI))
  376       } else if (!isa<PHINode>(UI) &&
  377                  ((!isa<FCmpInst>(UI) && !isa<ICmpInst>(UI) &&
  377                  ((!isa<FCmpInst>(UI) && !isa<ICmpInst>(UI) &&
  378                    !isa<SelectInst>(UI)) ||
  463   assert((isa<ICmpInst>(I) || isa<FCmpInst>(I) || isa<SelectInst>(I)) &&
  463   assert((isa<ICmpInst>(I) || isa<FCmpInst>(I) || isa<SelectInst>(I)) &&
  463   assert((isa<ICmpInst>(I) || isa<FCmpInst>(I) || isa<SelectInst>(I)) &&
  534   if ((isa<PHINode>(*TrueVal) && isa<PHINode>(*FalseVal)) ||
  534   if ((isa<PHINode>(*TrueVal) && isa<PHINode>(*FalseVal)) ||
  535       (!isa<PHINode>(*TrueVal) && !isa<PHINode>(*FalseVal)))
  535       (!isa<PHINode>(*TrueVal) && !isa<PHINode>(*FalseVal)))
  539       isa<PHINode>(*TrueVal) ? dyn_cast<Instruction>(FalseVal)
  560   if (!UAI && isa<FPMathOperator>(I) && !I->hasAllowReassoc())
  695   if (!Previous || !TheLoop->contains(Previous) || isa<PHINode>(Previous) ||
  822   if (isa<SCEVConstant>(Step))
lib/Analysis/IVUsers.cpp
  182   if (!isa<PHINode>(I) && !isSafeToSpeculativelyExecute(I))
  212     if (isa<PHINode>(User) && Processed.count(User))
  235       if (isa<PHINode>(User) || Processed.count(User) ||
  314   for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I)
lib/Analysis/InlineCost.cpp
  591       if (!isa<Constant>(*I) && !SimplifiedValues.lookup(*I))
  800     if (isa<UnreachableInst>(II->getNormalDest()->getTerminator()))
  802   } else if (isa<UnreachableInst>(Call.getParent()->getTerminator()))
 1015   if (I.isEquality() && isa<ConstantPointerNull>(I.getOperand(1)) &&
 1026     if (isa<ConstantPointerNull>(I.getOperand(1))) {
 1238   if (isa<CallInst>(Call) && cast<CallInst>(Call).cannotDuplicate())
 1290       if (!isa<InlineAsm>(Call.getCalledValue()))
 1348   return BI.isUnconditional() || isa<ConstantInt>(BI.getCondition()) ||
 1437   if (isa<ConstantInt>(SI.getCondition()))
 1440     if (isa<ConstantInt>(V))
 1571     if (isa<DbgInfoIntrinsic>(I))
 1579     if (isa<ExtractElementInst>(I) || I->getType()->isVectorTy())
 1799       if (isa<AllocaInst>(PtrArg)) {
 1849         if (!isa<CallBrInst>(*U))
 2095     if (isa<IndirectBrInst>(BI->getTerminator()))
 2102         if (!isa<CallBrInst>(*U))
 2116       if (!ReturnsTwice && isa<CallInst>(Call) &&
lib/Analysis/InstructionPrecedenceTracking.cpp
  141   if (isa<LoadInst>(Insn)) {
  146   if (isa<StoreInst>(Insn)) {
lib/Analysis/InstructionSimplify.cpp
  160       !isa<InvokeInst>(I))
  337   if (isa<SelectInst>(LHS)) {
  340     assert(isa<SelectInst>(RHS) && "No select instruction operand!");
  361   if (TV && isa<UndefValue>(TV))
  363   if (FV && isa<UndefValue>(FV))
  409   if (!isa<SelectInst>(LHS)) {
  413   assert(isa<SelectInst>(LHS) && "Not comparing with a select instruction!");
  491   if (isa<PHINode>(LHS)) {
  497     assert(isa<PHINode>(RHS) && "No PHI instruction operand!");
  533   if (!isa<PHINode>(LHS)) {
  537   assert(isa<PHINode>(LHS) && "Not comparing with a phi instruction!");
  870   if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1))
  870   if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1))
  877   if (isa<PHINode>(Op0) || isa<PHINode>(Op1))
  877   if (isa<PHINode>(Op0) || isa<PHINode>(Op1))
  912       if (Elt && (Elt->isNullValue() || isa<UndefValue>(Elt)))
 1049   if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1))
 1049   if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1))
 1055   if (isa<PHINode>(Op0) || isa<PHINode>(Op1))
 1055   if (isa<PHINode>(Op0) || isa<PHINode>(Op1))
 1091   if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1))
 1091   if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1))
 1097   if (isa<PHINode>(Op0) || isa<PHINode>(Op1))
 1097   if (isa<PHINode>(Op0) || isa<PHINode>(Op1))
 1173   if (isa<UndefValue>(C))
 1183   if (isa<ConstantVector>(C) || isa<ConstantDataVector>(C)) {
 1183   if (isa<ConstantVector>(C) || isa<ConstantDataVector>(C)) {
 1218   if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1))
 1218   if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1))
 1224   if (isa<PHINode>(Op0) || isa<PHINode>(Op1))
 1224   if (isa<PHINode>(Op0) || isa<PHINode>(Op1))
 2004   if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1))
 2004   if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1))
 2011   if (isa<PHINode>(Op0) || isa<PHINode>(Op1))
 2011   if (isa<PHINode>(Op0) || isa<PHINode>(Op1))
 2157   if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1))
 2157   if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1))
 2190   if (isa<PHINode>(Op0) || isa<PHINode>(Op1))
 2190   if (isa<PHINode>(Op0) || isa<PHINode>(Op1))
 2311       isa<ConstantPointerNull>(RHS) &&
 2383     if (isa<AllocaInst>(LHS) &&
 2384         (isa<AllocaInst>(RHS) || isa<GlobalVariable>(RHS))) {
 2384         (isa<AllocaInst>(RHS) || isa<GlobalVariable>(RHS))) {
 3195   assert(!isa<UndefValue>(LHS) && "Unexpected icmp undef,%X");
 3202   if (isa<UndefValue>(RHS) && ICmpInst::isEquality(Pred))
 3207   if (LHS == RHS || isa<UndefValue>(RHS))
 3221   if (isa<Instruction>(RHS) && isa<Instruction>(LHS)) {
 3221   if (isa<Instruction>(RHS) && isa<Instruction>(LHS)) {
 3244   if (isa<CastInst>(LHS) && (isa<Constant>(RHS) || isa<CastInst>(RHS))) {
 3244   if (isa<CastInst>(LHS) && (isa<Constant>(RHS) || isa<CastInst>(RHS))) {
 3244   if (isa<CastInst>(LHS) && (isa<Constant>(RHS) || isa<CastInst>(RHS))) {
 3252     if (MaxRecurse && isa<PtrToIntInst>(LI) &&
 3269     if (isa<ZExtInst>(LHS)) {
 3329     if (isa<SExtInst>(LHS)) {
 3456   if (isa<SelectInst>(LHS) || isa<SelectInst>(RHS))
 3456   if (isa<SelectInst>(LHS) || isa<SelectInst>(RHS))
 3462   if (isa<PHINode>(LHS) || isa<PHINode>(RHS))
 3462   if (isa<PHINode>(LHS) || isa<PHINode>(RHS))
 3512   if (isa<UndefValue>(LHS) || isa<UndefValue>(RHS)) {
 3512   if (isa<UndefValue>(LHS) || isa<UndefValue>(RHS)) {
 3645   if (isa<SelectInst>(LHS) || isa<SelectInst>(RHS))
 3645   if (isa<SelectInst>(LHS) || isa<SelectInst>(RHS))
 3651   if (isa<PHINode>(LHS) || isa<PHINode>(RHS))
 3651   if (isa<PHINode>(LHS) || isa<PHINode>(RHS))
 3672   if (isa<Constant>(Op))
 3690     if (isa<OverflowingBinaryOperator>(B))
 3693     if (isa<PossiblyExactOperator>(B) && Q.IIQ.isExact(B))
 3942     if (isa<UndefValue>(CondC))
 3943       return isa<Constant>(FalseVal) ? FalseVal : TrueVal;
 3959   if (isa<UndefValue>(TrueVal))   // select ?, undef, X -> X
 3961   if (isa<UndefValue>(FalseVal))   // select ?, X, undef -> X
 4006   if (isa<UndefValue>(Ops[0]))
 4090   if (!all_of(Ops, [](Value *V) { return isa<Constant>(V); }))
 4157   if (isa<UndefValue>(Idx))
 4162   if (isa<UndefValue>(Val))
 4216     if (isa<UndefValue>(Vec))
 4232   if (isa<UndefValue>(Idx))
 4252     if (isa<UndefValue>(Incoming)) {
 4369   if (isa<UndefValue>(Mask))
 4414     if (isa<UndefValue>(Op1) && RetTy == InVecTy &&
 4489   if (any_of(Ops, [](Value *V) { return isa<UndefValue>(V); }))
 5019     if (isa<UndefValue>(Op0) || isa<UndefValue>(Op1)) {
 5019     if (isa<UndefValue>(Op0) || isa<UndefValue>(Op1)) {
 5208   if (isa<UndefValue>(Callee) || isa<ConstantPointerNull>(Callee))
 5208   if (isa<UndefValue>(Callee) || isa<ConstantPointerNull>(Callee))
lib/Analysis/LazyValueInfo.cpp
  562   if (isa<Constant>(Val))
  584       if (isa<IntegerType>(BBI->getType())) {
  595   if (isa<Constant>(Val))
  723     assert(isa<Argument>(Val) && "Unknown live-in to the entry block");
 1196   if (isa<Constant>(RHS)) {
 1341   return isa<CastInst>(Usr) || isa<BinaryOperator>(Usr);
 1341   return isa<CastInst>(Usr) || isa<BinaryOperator>(Usr);
 1412         if (isa<IntegerType>(Usr->getType()) && isOperationFoldable(Usr)) {
 1453     if (!isa<IntegerType>(Val->getType()))
 1689   if (isa<AllocaInst>(V))
 1727   assert(!(Result.isConstant() && isa<ConstantInt>(Result.getConstant())) &&
 1766   assert(!(Result.isConstant() && isa<ConstantInt>(Result.getConstant())) &&
 1928     if (!isa<Instruction>(V) ||
 2030       if (!isa<PHINode>(UseI) || DT.dominates(ParentBB, UseI->getParent()))
lib/Analysis/LegacyDivergenceAnalysis.cpp
  170   for (auto I = IPostDom->begin(); isa<PHINode>(I); ++I) {
lib/Analysis/Lint.cpp
  158         if (isa<Instruction>(V)) {
  310         Assert(!isa<AllocaInst>(Obj),
  408     Assert(!isa<AllocaInst>(Obj), "Unusual: Returning alloca value", &I);
  423   Assert(!isa<ConstantPointerNull>(UnderlyingObject),
  425   Assert(!isa<UndefValue>(UnderlyingObject),
  427   Assert(!isa<ConstantInt>(UnderlyingObject) ||
  430   Assert(!isa<ConstantInt>(UnderlyingObject) ||
  438     Assert(!isa<Function>(UnderlyingObject) &&
  439                !isa<BlockAddress>(UnderlyingObject),
  443     Assert(!isa<Function>(UnderlyingObject), "Unusual: Load from function body",
  445     Assert(!isa<BlockAddress>(UnderlyingObject),
  449     Assert(!isa<BlockAddress>(UnderlyingObject),
  453     Assert(!isa<Constant>(UnderlyingObject) ||
  454                isa<BlockAddress>(UnderlyingObject),
  519   Assert(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)),
  519   Assert(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)),
  524   Assert(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)),
  524   Assert(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)),
  552   if (isa<UndefValue>(V))
  573     if (isa<UndefValue>(Elem))
  605   if (isa<ConstantInt>(I.getArraySize()))
lib/Analysis/Loads.cpp
  187   if (isa<BinaryOperator>(A) || isa<CastInst>(A) || isa<PHINode>(A) ||
  187   if (isa<BinaryOperator>(A) || isa<CastInst>(A) || isa<PHINode>(A) ||
  187   if (isa<BinaryOperator>(A) || isa<CastInst>(A) || isa<PHINode>(A) ||
  188       isa<GetElementPtrInst>(A))
  299     if (isa<CallInst>(BBI) && BBI->mayWriteToMemory() &&
  300         !isa<DbgInfoIntrinsic>(BBI))
  396     if (isa<DbgInfoIntrinsic>(Inst))
  450       if ((isa<AllocaInst>(StrippedPtr) || isa<GlobalVariable>(StrippedPtr)) &&
  450       if ((isa<AllocaInst>(StrippedPtr) || isa<GlobalVariable>(StrippedPtr)) &&
  451           (isa<AllocaInst>(StorePtr) || isa<GlobalVariable>(StorePtr)) &&
  451           (isa<AllocaInst>(StorePtr) || isa<GlobalVariable>(StorePtr)) &&
lib/Analysis/LoopAccessAnalysis.cpp
  669     if (!Assume || !isa<SCEVAddRecExpr>(Expr))
  915             if (isa<ConstantPointerNull>(UnderlyingObj) &&
  964     if (!isa<ConstantInt>(Index)) {
  979         isa<ConstantInt>(OBO->getOperand(1))) {
lib/Analysis/LoopCacheAnalysis.cpp
   85   if (isa<SCEVAddRecExpr>(Start) || isa<SCEVAddRecExpr>(Step))
   85   if (isa<SCEVAddRecExpr>(Start) || isa<SCEVAddRecExpr>(Step))
   99   if (isa<SCEVCouldNotCompute>(BackedgeTakenCount) ||
  100       !isa<SCEVConstant>(BackedgeTakenCount))
  131   assert((isa<StoreInst>(StoreOrLoadInst) || isa<LoadInst>(StoreOrLoadInst)) &&
  131   assert((isa<StoreInst>(StoreOrLoadInst) || isa<LoadInst>(StoreOrLoadInst)) &&
  400   assert(isa<SCEVAddRecExpr>(LastSubscript) &&
  415   if (!isa<SCEVAddRecExpr>(Subscript))
  520       if (!isa<StoreInst>(I) && !isa<LoadInst>(I))
  520       if (!isa<StoreInst>(I) && !isa<LoadInst>(I))
lib/Analysis/LoopInfo.cpp
  154   for (BasicBlock::iterator I = H->begin(); isa<PHINode>(I); ++I) {
  477     if (isa<IndirectBrInst>(BB->getTerminator()) ||
  478         isa<CallBrInst>(BB->getTerminator()))
lib/Analysis/LoopUnrollAnalyzer.cpp
   70   if (!isa<Constant>(LHS))
   73   if (!isa<Constant>(RHS))
  170   if (!isa<Constant>(LHS))
  173   if (!isa<Constant>(RHS))
  177   if (!isa<Constant>(LHS) && !isa<Constant>(RHS)) {
  177   if (!isa<Constant>(LHS) && !isa<Constant>(RHS)) {
lib/Analysis/MemDepPrinter.cpp
  118       assert( (isa<LoadInst>(Inst) || isa<StoreInst>(Inst) ||
  118       assert( (isa<LoadInst>(Inst) || isa<StoreInst>(Inst) ||
  119                isa<VAArgInst>(Inst)) && "Unknown memory instruction!");
lib/Analysis/MemoryBuiltins.cpp
  114   if (isa<IntrinsicInst>(V))
  897   } else if (isa<Argument>(V) ||
  898              (isa<ConstantExpr>(V) &&
  900              isa<GlobalAlias>(V) ||
  901              isa<GlobalVariable>(V)) {
lib/Analysis/MemoryDependenceAnalysis.cpp
  192     if (isa<DbgInfoIntrinsic>(Inst))
  244   if (!isa<IntegerType>(LI->getType()) || !LI->isSimple())
  370   if (isa<GlobalValue>(LoadOperand))
  391     assert(Ptr && !isa<GlobalValue>(Ptr) &&
  401       if (isa<BitCastInst>(U)) {
  419       if ((isa<LoadInst>(U) || isa<StoreInst>(U)) &&
  419       if ((isa<LoadInst>(U) || isa<StoreInst>(U)) &&
  512     return !isa<LoadInst>(I) && !isa<StoreInst>(I) && I->mayReadOrWriteMemory();
  512     return !isa<LoadInst>(I) && !isa<StoreInst>(I) && I->mayReadOrWriteMemory();
  521       if (isa<DbgInfoIntrinsic>(II))
  666     if (isa<AllocaInst>(Inst) || isNoAliasFn(Inst, &TLI)) {
  917   bool isLoad = isa<LoadInst>(QueryInst);
lib/Analysis/MemorySSA.cpp
  145       if (!isa<FenceInst>(Inst))
  351       : IsCall(isa<CallBase>(Inst)), Inst(Inst), OriginalAccess(Access) {
  378   return isa<LoadInst>(I) && (I->hasMetadata(LLVMContext::MD_invariant_load) ||
  466       assert(isa<MemoryPhi>(MA));
  483   assert((isa<MemoryPhi>(ClobberAt) || FoundClobber) &&
  556     assert(!isa<MemoryUse>(Desc.Last) && "Uses don't exist in my world");
  590     assert(isa<MemoryPhi>(Desc.Last) &&
  657         assert(isa<MemoryDef>(Query->OriginalAccess));
 1092     if (It == PerBlockAccesses.end() || !isa<MemoryPhi>(It->second->front()))
 1123         if (isa<MemoryDef>(&L))
 1200     if (It == PerBlockAccesses.end() || !isa<MemoryPhi>(It->second->front()))
 1425       if (isa<MemoryPhi>(VersionStack[UpperBound])) {
 1533       if (isa<MemoryDef>(MUD)) {
 1600     if (isa<MemoryPhi>(NewAccess)) {
 1606           *Accesses, [](const MemoryAccess &MA) { return isa<MemoryPhi>(MA); });
 1608       if (!isa<MemoryUse>(NewAccess)) {
 1611             *Defs, [](const MemoryAccess &MA) { return isa<MemoryPhi>(MA); });
 1617     if (!isa<MemoryUse>(NewAccess)) {
 1630   if (!isa<MemoryUse>(What)) {
 1638     } else if (isa<MemoryDef>(InsertPt)) {
 1641       while (InsertPt != Accesses->end() && !isa<MemoryDef>(InsertPt))
 1677   if (isa<MemoryPhi>(What)) {
 1704   assert(!isa<PHINode>(I) && "Cannot create a defined access for a PHI");
 1792   if (isa<MemoryUseOrDef>(Replacee))
 1814   if (!isa<MemoryUse>(MA))
 1838   if (!isa<MemoryUse>(MA)) {
 1980       assert((!MA || (AL && (isa<MemoryUse>(MA) || DL))) &&
 1986         if (isa<MemoryDef>(MA))
 2337   if (isa<MemoryPhi>(StartingAccess))
 2348   if (!isa<CallBase>(I) && I->isFenceLike())
 2360   MemoryAccess *DefiningAccess = isa<MemoryUse>(StartingUseOrDef)
 2388     if (!SkipSelf || !isa<MemoryDef>(StartingAccess))
 2397   if (!isa<CallBase>(I) && I->isFenceLike())
 2437   if (SkipSelf && isa<MemoryPhi>(OptimizedAccess) &&
 2438       isa<MemoryDef>(StartingAccess) && UpwardWalkLimit) {
 2439     assert(isa<MemoryDef>(Q.OriginalAccess));
lib/Analysis/MemorySSAUpdater.cpp
  158     if (!isa<MemoryUse>(MA)) {
  167         if (!isa<MemoryUse>(U))
  319       !(isa<MemoryPhi>(DefBefore) &&
  333       return !isa<MemoryUse>(Usr) && Usr != MD;
  491         assert(!isa<MemoryPhi>(FirstDef) &&
  560         else if (!InsnDefining || isa<MemoryUse>(InsnDefining)) {
 1295   if (!isa<MemoryUse>(MA) && !MA->use_empty()) {
lib/Analysis/ModuleSummaryAnalysis.cpp
  107       if (isa<BlockAddress>(Operand)) {
  273       if (isa<DbgInfoIntrinsic>(I))
  368         if (!CalledValue || isa<Constant>(CalledValue))
lib/Analysis/PHITransAddr.cpp
   26   if (isa<PHINode>(Inst) ||
   27       isa<GetElementPtrInst>(Inst))
   30   if (isa<CastInst>(Inst) &&
   35       isa<ConstantInt>(Inst->getOperand(1)))
  134   assert(!isa<PHINode>(I) && "Error, removing something that isn't an input");
  254       isa<ConstantInt>(Inst->getOperand(1))) {
lib/Analysis/PhiValues.cpp
  107       if (!isa<PHINode>(V))
lib/Analysis/ProfileSummaryInfo.cpp
  108   assert((isa<CallInst>(Inst) || isa<InvokeInst>(Inst)) &&
  108   assert((isa<CallInst>(Inst) || isa<InvokeInst>(Inst)) &&
  155         if (isa<CallInst>(I) || isa<InvokeInst>(I))
  155         if (isa<CallInst>(I) || isa<InvokeInst>(I))
  184         if (isa<CallInst>(I) || isa<InvokeInst>(I))
  184         if (isa<CallInst>(I) || isa<InvokeInst>(I))
  209         if (isa<CallInst>(I) || isa<InvokeInst>(I))
  209         if (isa<CallInst>(I) || isa<InvokeInst>(I))
lib/Analysis/ScalarEvolution.cpp
 1055     if (!isa<SCEVUnknown>(Denominator))
 1242     if (isa<SCEVCouldNotCompute>(Coeff))
 1298   if (isa<SCEVAddExpr>(Op) || isa<SCEVMulExpr>(Op)) {
 1298   if (isa<SCEVAddExpr>(Op) || isa<SCEVMulExpr>(Op)) {
 1305       if (!isa<SCEVCastExpr>(CommOp->getOperand(i)) && isa<SCEVTruncateExpr>(S))
 1305       if (!isa<SCEVCastExpr>(CommOp->getOperand(i)) && isa<SCEVTruncateExpr>(S))
 1310       if (isa<SCEVAddExpr>(Op))
 1312       else if (isa<SCEVMulExpr>(Op))
 1478       !isa<SCEVCouldNotCompute>(BECount) && SE->isKnownPositive(BECount))
 1715       if (!isa<SCEVCouldNotCompute>(MaxBECount)) {
 1782       if (!isa<SCEVCouldNotCompute>(MaxBECount) || HasGuards ||
 2059       if (!isa<SCEVCouldNotCompute>(MaxBECount)) {
 2134       if (!isa<SCEVCouldNotCompute>(MaxBECount) || HasGuards ||
 2220   if (!isa<SCEVZeroExtendExpr>(ZExt))
 2225   if (!isa<SCEVSignExtendExpr>(SExt))
 2237   if (isa<SCEVSMaxExpr>(Op))
 2290     if (Mul && isa<SCEVConstant>(Mul->getOperand(0))) {
 2293       if (Mul->getNumOperands() == 2 && isa<SCEVAddExpr>(Mul->getOperand(1))) {
 2366       isa<SCEVConstant>(Ops[0])) {
 2535       if (isa<SCEVConstant>(Fold) || isa<SCEVUnknown>(Fold))
 2535       if (isa<SCEVConstant>(Fold) || isa<SCEVUnknown>(Fold))
 2571   if (Idx < Ops.size() && isa<SCEVMulExpr>(Ops[Idx])) {
 2612   for (; Idx < Ops.size() && isa<SCEVMulExpr>(Ops[Idx]); ++Idx) {
 2616       if (isa<SCEVConstant>(MulOpSCEV))
 2648            OtherMulIdx < Ops.size() && isa<SCEVMulExpr>(Ops[OtherMulIdx]);
 2693   for (; Idx < Ops.size() && isa<SCEVAddRecExpr>(Ops[Idx]); ++Idx) {
 2740          OtherIdx < Ops.size() && isa<SCEVAddRecExpr>(Ops[OtherIdx]);
 2752         for (; OtherIdx != Ops.size() && isa<SCEVAddRecExpr>(Ops[OtherIdx]);
 2891       FoundConstant |= isa<SCEVConstant>(S);
 2892       return isa<SCEVAddExpr>(S) || isa<SCEVMulExpr>(S);
 2892       return isa<SCEVAddExpr>(S) || isa<SCEVMulExpr>(S);
 2978             if (!isa<SCEVMulExpr>(Mul)) AnyFolded = true;
 3031   for (; Idx < Ops.size() && isa<SCEVAddRecExpr>(Ops[Idx]); ++Idx) {
 3090          OtherIdx != Ops.size() && isa<SCEVAddRecExpr>(Ops[OtherIdx]);
 3254             if (!isa<SCEVUDivExpr>(Div) && getMulExpr(Div, RHSC) == Op) {
 3286             if (isa<SCEVUDivExpr>(Op) ||
 3816   bool FoundAddRec = SCEVExprContains(S, isa<SCEVAddRecExpr, const SCEV *>);
 3884     if (isa<OverflowingBinaryOperator>(I)) {
 3891     } else if (isa<PossiblyExactOperator>(I) && I->isExact())
 3923       if (Offset != nullptr && !isa<SCEVUnknown>(Stripped) &&
 3924           !isa<GetElementPtrInst>(V))
 4218       if (!isa<PHINode>(I) ||
 4219           !isa<SCEVUnknown>(Old) ||
 4911     assert(isa<SCEVAddRecExpr>(Rewrite.first) && "Expected an AddRec");
 5075           (isa<SCEVAddRecExpr>(Accum) &&
 5208         if (isa<Argument>(V))
 5211         if (isa<Instruction>(V) && DT.dominates(cast<Instruction>(V), BB))
 5393         isa<ConstantInt>(RHS) && cast<ConstantInt>(RHS)->isZero()) {
 5407         isa<ConstantInt>(RHS) && cast<ConstantInt>(RHS)->isZero()) {
 5678       if (!isa<SCEVCouldNotCompute>(MaxBECount) &&
 5822   assert(!isa<SCEVCouldNotCompute>(MaxBECount) &&
 5875         if (SA->getNumOperands() != 2 || !isa<SCEVConstant>(SA->getOperand(0)))
 5967   if (isa<ConstantExpr>(V)) return SCEV::FlagAnyWrap;
 6147   else if (isa<ConstantPointerNull>(V))
 6151   else if (!isa<ConstantExpr>(V))
 6493     if (isa<Instruction>(U))
 6691            isa<PHINode>(L->getHeader()->begin())) {
 6721         if (!isa<PHINode>(I) || !isa<SCEVUnknown>(Old)) {
 6721         if (!isa<PHINode>(I) || !isa<SCEVUnknown>(Old)) {
 6957   assert((isa<SCEVCouldNotCompute>(getMax()) || isa<SCEVConstant>(getMax())) &&
 6957   assert((isa<SCEVCouldNotCompute>(getMax()) || isa<SCEVConstant>(getMax())) &&
 6985   assert((isa<SCEVCouldNotCompute>(MaxNotTaken) ||
 6986           isa<SCEVConstant>(MaxNotTaken)) &&
 6994   assert((isa<SCEVCouldNotCompute>(ExactNotTaken) ||
 6995           !isa<SCEVCouldNotCompute>(MaxNotTaken)) &&
 6997   assert((isa<SCEVCouldNotCompute>(MaxNotTaken) ||
 6998           isa<SCEVConstant>(MaxNotTaken)) &&
 7009   assert((isa<SCEVCouldNotCompute>(MaxNotTaken) ||
 7010           isa<SCEVConstant>(MaxNotTaken)) &&
 7017   assert((isa<SCEVCouldNotCompute>(MaxNotTaken) ||
 7018           isa<SCEVConstant>(MaxNotTaken)) &&
 7048   assert((isa<SCEVCouldNotCompute>(MaxCount) || isa<SCEVConstant>(MaxCount)) &&
 7048   assert((isa<SCEVCouldNotCompute>(MaxCount) || isa<SCEVConstant>(MaxCount)) &&
 7269       if (isa<SCEVCouldNotCompute>(MaxBECount) &&
 7270           !isa<SCEVCouldNotCompute>(BECount))
 7316       if (isa<SCEVCouldNotCompute>(MaxBECount) &&
 7317           !isa<SCEVCouldNotCompute>(BECount))
 7406         if (!isa<SCEVCouldNotCompute>(Ret)) return Ret;
 7447   if (!isa<SCEVCouldNotCompute>(ExhaustiveCount))
 7483   assert(isa<SCEVConstant>(Val) &&
 7507       GEP->getNumOperands() < 3 || !isa<Constant>(GEP->getOperand(1)) ||
 7518     } else if (!isa<ConstantInt>(GEP->getOperand(i))) {
 7538       !isa<SCEVConstant>(IdxExpr->getOperand(0)) ||
 7539       !isa<SCEVConstant>(IdxExpr->getOperand(1)))
 7557     if (!isa<ConstantInt>(Result)) break;  // Couldn't decide for sure
 7712   if (isa<BinaryOperator>(I) || isa<CmpInst>(I) ||
 7712   if (isa<BinaryOperator>(I) || isa<CmpInst>(I) ||
 7713       isa<SelectInst>(I) || isa<CastInst>(I) || isa<GetElementPtrInst>(I) ||
 7713       isa<SelectInst>(I) || isa<CastInst>(I) || isa<GetElementPtrInst>(I) ||
 7713       isa<SelectInst>(I) || isa<CastInst>(I) || isa<GetElementPtrInst>(I) ||
 7714       isa<LoadInst>(I) || isa<ExtractValueInst>(I))
 7714       isa<LoadInst>(I) || isa<ExtractValueInst>(I))
 7729   if (isa<PHINode>(I)) {
 7753     if (isa<Constant>(Op)) continue;
 7819   if (isa<PHINode>(I)) return nullptr;
 8146   if (isa<SCEVConstant>(V)) return V;
 8182           if (!isa<SCEVCouldNotCompute>(BackedgeTakenCount) &&
 8207           if (isa<SCEVConstant>(InputAtScope)) return InputAtScope;
 8282         if (isa<SCEVAddExpr>(Comm))
 8284         if (isa<SCEVMulExpr>(Comm))
 8286         if (isa<SCEVMinMaxExpr>(Comm))
 8878     return A->isIdenticalTo(B) && (isa<BinaryOperator>(A) || isa<GetElementPtrInst>(A));
 8878     return A->isIdenticalTo(B) && (isa<BinaryOperator>(A) || isa<GetElementPtrInst>(A));
 9364         !isa<SCEVConstant>(ConstOp) || NonConstOp != X)
 9749     if (isa<SCEVConstant>(RHS)) {
 9765     if (isa<SCEVConstant>(RHS))
 9781       (isa<SCEVConstant>(FoundLHS) || isa<SCEVConstant>(FoundRHS))) {
 9781       (isa<SCEVConstant>(FoundLHS) || isa<SCEVConstant>(FoundRHS))) {
 9786     if (isa<SCEVConstant>(FoundLHS)) {
 9877   if (isa<SCEVAddRecExpr>(Less) && isa<SCEVAddRecExpr>(More)) {
 9877   if (isa<SCEVAddRecExpr>(Less) && isa<SCEVAddRecExpr>(More)) {
 9898   if (isa<SCEVConstant>(Less) && isa<SCEVConstant>(More)) {
 9898   if (isa<SCEVConstant>(Less) && isa<SCEVConstant>(More)) {
10294       if (!isa<ConstantInt>(LR))
10450   if (!isa<SCEVConstant>(RHS) || !isa<SCEVConstant>(FoundRHS))
10450   if (!isa<SCEVConstant>(RHS) || !isa<SCEVConstant>(FoundRHS))
10702   if (isa<SCEVConstant>(BECount))
10704   else if (isa<SCEVConstant>(BECountIfBackedgeTaken)) {
10715   if (isa<SCEVCouldNotCompute>(MaxBECount) &&
10716       !isa<SCEVCouldNotCompute>(BECount))
10785   const SCEV *MaxBECount = isa<SCEVConstant>(BECount)
10790   if (isa<SCEVCouldNotCompute>(MaxBECount))
10817   if (any_of(operands(), [](const SCEV *Op) { return !isa<SCEVConstant>(Op); }))
10896       return isa<UndefValue>(SU->getValue());
10927     if (isa<SCEVUnknown>(S) || isa<SCEVMulExpr>(S) ||
10927     if (isa<SCEVUnknown>(S) || isa<SCEVMulExpr>(S) ||
10928         isa<SCEVSignExtendExpr>(S)) {
10952     if (isa<SCEVAddRecExpr>(S)) {
10991         if (Unknown && !isa<CallInst>(Unknown->getValue())) {
11064         if (!isa<SCEVConstant>(Op))
11088       remove_if(Terms, [](const SCEV *E) { return isa<SCEVConstant>(E); }),
11102     if (SCEVExprContains(T, isa<SCEVUnknown, const SCEV *>))
11115   if (isa<SCEVConstant>(T))
11118   if (isa<SCEVUnknown>(T))
11124       if (!isa<SCEVConstant>(Op))
11242       if (isa<SCEVAddRecExpr>(R)) {
11478   return !isa<SCEVCouldNotCompute>(getBackedgeTakenCount(L));
11511   if (!isa<SCEVCouldNotCompute>(SE->getConstantMaxBackedgeTakenCount(L))) {
11526   if (!isa<SCEVCouldNotCompute>(PBT)) {
11568     if (isSCEVable(I.getType()) && !isa<CmpInst>(I)) {
11573       if (!isa<SCEVCouldNotCompute>(SV)) {
11586         if (!isa<SCEVCouldNotCompute>(AtUse)) {
11850     return !isa<SCEVCouldNotCompute>(X) && SCEVExprContains(X, IsS);
11981     if ((VerifySCEVStrict || isa<SCEVConstant>(Delta)) && !Delta->isZero()) {
12190     if (!isa<PHINode>(Expr->getValue()))
12536   if (Mul->getNumOperands() == 3 && isa<SCEVConstant>(Mul->getOperand(0)))
lib/Analysis/ScalarEvolutionExpander.cpp
   92   while (isa<PHINode>(IP))
   95   if (isa<FuncletPadInst>(IP) || isa<LandingPadInst>(IP)) {
   95   if (isa<FuncletPadInst>(IP) || isa<LandingPadInst>(IP)) {
   97   } else if (isa<CatchSwitchInst>(IP)) {
  152     while ((isa<BitCastInst>(IP) &&
  153             isa<Argument>(cast<BitCastInst>(IP)->getOperand(0)) &&
  155            isa<DbgInfoIntrinsic>(IP))
  187       if (isa<DbgInfoIntrinsic>(IP))
  192         if (isa<OverflowingBinaryOperator>(I)) {
  200         if (isa<PossiblyExactOperator>(I) && I->isExact())
  320   for (unsigned i = Ops.size(); i > 0 && isa<SCEVAddRecExpr>(Ops[i-1]); --i)
  511     assert(!isa<Instruction>(V) ||
  533         if (isa<DbgInfoIntrinsic>(IP))
  624   if (isa<SCEVConstant>(S))
  723           if (!isa<Instruction>(U->getValue()))
  733       NewOps.push_back(isa<Instruction>(Sum) ? SE.getUnknown(Sum) :
  750       if (isa<Constant>(Sum)) std::swap(Sum, W);
  833       if (isa<Constant>(Prod)) std::swap(Prod, W);
  898   if (IncV->getNumOperands() == 0 || isa<PHINode>(IncV) ||
  899       (isa<CastInst>(IncV) && !isa<BitCastInst>(IncV)))
  899       (isa<CastInst>(IncV) && !isa<BitCastInst>(IncV)))
  955       if (isa<Constant>(*I))
 1007   if (isa<PHINode>(InsertPos) ||
 1061     if (!isa<ConstantInt>(StepV))
 1128   if (!isa<IntegerType>(AR->getType()))
 1142   if (!isa<IntegerType>(AR->getType()))
 1270   assert(!isa<Instruction>(StartV) ||
 1318     if (isa<OverflowingBinaryOperator>(IncV)) {
 1410     if (isa<Instruction>(Result) &&
 1543       if (!isa<SCEVMulExpr>(Base) && !isa<SCEVUDivExpr>(Base)) {
 1543       if (!isa<SCEVMulExpr>(Base) && !isa<SCEVUDivExpr>(Base)) {
 1623   if (isa<SCEVAddRecExpr>(Ext))
 1794         if (V && isa<Instruction>(V) && (EntInst = cast<Instruction>(V)) &&
 1855                 isa<DbgInfoIntrinsic>(InsertPt)))
 1864   if (isa<PHINode>(*InsertPt))
 2195   if (isa<SCEVMinMaxExpr>(S))
lib/Analysis/StackSafetyAnalysis.cpp
   40     if (!isa<SCEVAddRecExpr>(Expr) && !isa<SCEVAddExpr>(Expr) &&
   40     if (!isa<SCEVAddRecExpr>(Expr) && !isa<SCEVAddExpr>(Expr) &&
   41         !isa<SCEVUnknown>(Expr))
  343         assert(isa<Function>(Callee) || isa<GlobalAlias>(Callee));
  343         assert(isa<Function>(Callee) || isa<GlobalAlias>(Callee));
  438     if (isa<Function>(A.getBaseObject()))
lib/Analysis/TargetTransformInfo.cpp
   72     if (isa<SCEVCouldNotCompute>(EC))
  557   if (isa<ConstantVector>(V) || isa<ConstantDataVector>(V)) {
  557   if (isa<ConstantVector>(V) || isa<ConstantDataVector>(V)) {
  578   if (Splat && (isa<Argument>(Splat) || isa<GlobalValue>(Splat)))
  578   if (Splat && (isa<Argument>(Splat) || isa<GlobalValue>(Splat)))
lib/Analysis/TypeBasedAliasAnalysis.cpp
  139   if (!isa<MDNode>(N->getOperand(0)))
  366   return isa<MDNode>(MD->getOperand(0)) && MD->getNumOperands() >= 3;
lib/Analysis/TypeMetadataUtils.cpp
   37     if (isa<BitCastInst>(User)) {
   56     if (isa<BitCastInst>(User)) {
   58     } else if (isa<LoadInst>(User)) {
lib/Analysis/ValueTracking.cpp
 1659   if (isa<ConstantPointerNull>(V) || isa<ConstantAggregateZero>(V)) {
 1659   if (isa<ConstantPointerNull>(V) || isa<ConstantAggregateZero>(V)) {
 1699   if (isa<UndefValue>(V))
 1704   assert(!isa<ConstantData>(V) && "Unhandled constant data!");
 1906   assert(!isa<ConstantData>(V) && "Did not expect ConstantPointerNull");
 2004     if (isa<ConstantInt>(C))
 2024         if (!isa<UndefValue>(Elt) && !isa<ConstantInt>(Elt))
 2024         if (!isa<UndefValue>(Elt) && !isa<ConstantInt>(Elt))
 2060     if (isa<AllocaInst>(V) && Q.DL.getAllocaAddrSpace() == 0)
 2122   if (isa<SExtInst>(V) || isa<ZExtInst>(V))
 2122   if (isa<SExtInst>(V) || isa<ZExtInst>(V))
 2222       if (isa<ConstantInt>(Induction) && !isa<ConstantInt>(Start))
 2222       if (isa<ConstantInt>(Induction) && !isa<ConstantInt>(Start))
 2237       return isa<ConstantInt>(V) && !cast<ConstantInt>(V)->isZero();
 2306   assert(isa<Operator>(Select) &&
 2918   if (isa<SIToFPInst>(Op) || isa<UIToFPInst>(Op))
 2918   if (isa<SIToFPInst>(Op) || isa<UIToFPInst>(Op))
 3167   if (!V->getType()->isVectorTy() || !isa<Constant>(V))
 3176     if (isa<UndefValue>(Elt))
 3196   if (isa<UndefValue>(V))
 3274   if (isa<ConstantAggregate>(C)) {
 3728     } else if (isa<AllocaInst>(V)) {
 3821           (!isa<ConstantInt>(U->getOperand(1)) &&
 3823            !isa<PHINode>(U->getOperand(1))))
 4254   if (isa<ResumeInst>(I))
 4256   if (isa<ReturnInst>(I))
 4258   if (isa<UnreachableInst>(I))
 5077   if (isa<FPMathOperator>(CmpI))
 5298   if (ALHS == BLHS && isa<ConstantInt>(ARHS) && isa<ConstantInt>(BRHS)) {
 5298   if (ALHS == BLHS && isa<ConstantInt>(ARHS) && isa<ConstantInt>(BRHS)) {
lib/Analysis/VectorUtils.cpp
  273     if (!isa<ConstantInt>(III->getOperand(2)))
  314   if (isa<VectorType>(V->getType()))
  335   if (isa<VectorType>(V->getType())) {
  336     if (isa<UndefValue>(V))
  388       if (TTI && (isa<ZExtInst>(&I) || isa<SExtInst>(&I)) &&
  388       if (TTI && (isa<ZExtInst>(&I) || isa<SExtInst>(&I)) &&
  393       if ((isa<TruncInst>(&I) || isa<ICmpInst>(&I)) &&
  393       if ((isa<TruncInst>(&I) || isa<ICmpInst>(&I)) &&
  398         if (TTI && isa<TruncInst>(&I) && TTI->isTypeLegal(I.getType()))
  419     if (!isa<Instruction>(Val))
  434     if (isa<SExtInst>(I) || isa<ZExtInst>(I) || isa<LoadInst>(I) ||
  434     if (isa<SExtInst>(I) || isa<ZExtInst>(I) || isa<LoadInst>(I) ||
  434     if (isa<SExtInst>(I) || isa<ZExtInst>(I) || isa<LoadInst>(I) ||
  441     if (isa<BitCastInst>(I) || isa<PtrToIntInst>(I) || isa<IntToPtrInst>(I) ||
  441     if (isa<BitCastInst>(I) || isa<PtrToIntInst>(I) || isa<IntToPtrInst>(I) ||
  441     if (isa<BitCastInst>(I) || isa<PtrToIntInst>(I) || isa<IntToPtrInst>(I) ||
  450     if (isa<PHINode>(I))
  488       if (isa<PHINode>(*MI) && MinBW < (*MI)->getType()->getScalarSizeInBits()) {
  496       if (!isa<Instruction>(*MI))
  756   if (ConstMask->isNullValue() || isa<UndefValue>(ConstMask))
  761       if (MaskElt->isNullValue() || isa<UndefValue>(MaskElt))
  773   if (ConstMask->isAllOnesValue() || isa<UndefValue>(ConstMask))
  778       if (MaskElt->isAllOnesValue() || isa<UndefValue>(MaskElt))
lib/AsmParser/LLParser.cpp
  442   if (!isa<StructType>(Result)) {
  468   if (!isa<StructType>(Result)) {
 1382   if (IsCall && isa<PointerType>(Ty)) {
 2843     if (isa<BasicBlock>(P.second.first))
 2851     if (isa<BasicBlock>(P.second.first))
 3258       if (!isa<Function>(GV))
 5263     assert(isa<Constant>(V) && "Expected a constant value");
 5293   if (!isa<BasicBlock>(V))
 5980     if (!isa<ConstantInt>(Constant))
 6416   if (isa<InlineAsm>(Callee) && !Ty->getReturnType()->isVoidTy())
 6733       if (isa<ArrayType>(V->getType()))
 6736       if (!isa<ArrayType>(V->getType()))
 7445   if (!isa<BasicBlock>(V))
lib/Bitcode/Reader/BitcodeReader.cpp
 2266       if (isa<GlobalAlias>(GIS) && C->getType() != GIS->getType())
 2473         if (isa<VectorType>(CurTy))
 2479         if (isa<VectorType>(CurTy))
 2485         if (isa<VectorType>(CurTy))
 2491         if (isa<VectorType>(CurTy))
 2497         if (isa<VectorType>(CurTy))
 2503         if (isa<VectorType>(CurTy))
 2509         if (isa<VectorType>(CurTy))
 3206   if (isa<PointerType>(FTy))
 3209   if (!isa<FunctionType>(FTy))
 3668   if (!isa<PointerType>(PtrType))
 3878         if (isa<FPMathOperator>(I)) {
 3914         } else if (isa<FPMathOperator>(I)) {
 4118       if (OpNum < Record.size() && isa<FPMathOperator>(I)) {
 4668         assert(isa<FPMathOperator>(I) && "Unexpected phi type");
 4719                 !isa<ArrayType>(Val->getType())) &&
 4722                 isa<ArrayType>(Val->getType())) &&
 4779       if (!isa<PointerType>(Op->getType()))
 4807       if (!isa<PointerType>(Op->getType()))
 4865           !isa<PointerType>(Ptr->getType()) ||
 4900       if (!isa<PointerType>(Ptr->getType()))
 4955           !isa<PointerType>(Ptr->getType()) ||
 5079         if (!isa<FPMathOperator>(I))
 5146             !FullTy->isPointerTy() && !isa<StructType>(FullTy) &&
 5147             !isa<ArrayType>(FullTy) &&
 5148             (!isa<VectorType>(FullTy) ||
lib/Bitcode/Reader/MetadataLoader.cpp
 1180         assert(isa<ConstantAsMetadata>(MD) &&
 2043         if (isa<LocalAsMetadata>(Node))
lib/Bitcode/Reader/ValueList.cpp
   50     return isa<ConstantExpr>(V) &&
  174       if (!isa<Constant>(U) || isa<GlobalValue>(U)) {
  174       if (!isa<Constant>(U) || isa<GlobalValue>(U)) {
  185         if (!isa<ConstantPlaceHolder>(*I)) {
  209       } else if (isa<ConstantVector>(UserC)) {
  212         assert(isa<ConstantExpr>(UserC) && "Must be a ConstantExpr.");
lib/Bitcode/Writer/BitcodeWriter.cpp
 1435     assert(!(MD && isa<LocalAsMetadata>(MD)) &&
 2343     } else if (isa<UndefValue>(C)) {
 2383     } else if (isa<ConstantDataSequential>(C) &&
 2414       if (isa<IntegerType>(EltTy)) {
 2422     } else if (isa<ConstantAggregate>(C)) {
 2540     if (!isa<GlobalValue>(Vals[i].first)) {
 2615       assert(isa<BinaryOperator>(I) && "Unknown instruction!");
 2806     Code = isa<CatchPadInst>(FuncletPad) ? bitc::FUNC_CODE_INST_CATCHPAD
 3110     if (isa<BasicBlock>(Name.getValue())) {
 3136   if (isa<BasicBlock>(Order.V))
lib/Bitcode/Writer/ValueEnumerator.cpp
   92     if (C->getNumOperands() && !isa<GlobalValue>(C))
   94         if (!isa<BasicBlock>(Op) && !isa<GlobalValue>(Op))
   94         if (!isa<BasicBlock>(Op) && !isa<GlobalValue>(Op))
  114       if (!isa<GlobalValue>(G.getInitializer()))
  117     if (!isa<GlobalValue>(A.getAliasee()))
  120     if (!isa<GlobalValue>(I.getResolver()))
  124       if (!isa<GlobalValue>(U.get()))
  160           if ((isa<Constant>(*Op) && !isa<GlobalValue>(*Op)) ||
  160           if ((isa<Constant>(*Op) && !isa<GlobalValue>(*Op)) ||
  161               isa<InlineAsm>(*Op))
  256         if (isa<Constant>(Op)) // Visit GlobalValues.
  284           if (isa<Constant>(*Op) || isa<InlineAsm>(*Op)) // Visit GlobalValues.
  284           if (isa<Constant>(*Op) || isa<InlineAsm>(*Op)) // Visit GlobalValues.
  411           if (isa<LocalAsMetadata>(MD->getMetadata()))
  662       (isa<MDNode>(MD) || isa<MDString>(MD) || isa<ConstantAsMetadata>(MD)) &&
  662       (isa<MDNode>(MD) || isa<MDString>(MD) || isa<ConstantAsMetadata>(MD)) &&
  662       (isa<MDNode>(MD) || isa<MDString>(MD) || isa<ConstantAsMetadata>(MD)) &&
  711   if (isa<MDString>(MD))
  759     if (isa<MDString>(MD))
  806   assert(!isa<MetadataAsValue>(V) && "EnumerateValue doesn't handle Metadata!");
  824     if (isa<GlobalValue>(C)) {
  837         if (!isa<BasicBlock>(*I)) // Don't enumerate BB operand to BlockAddress.
  895   assert(!isa<MetadataAsValue>(V) && "Unexpected metadata operand");
  911     if (isa<BasicBlock>(Op))
  963         if ((isa<Constant>(OI) && !isa<GlobalValue>(OI)) || isa<InlineAsm>(OI))
  963         if ((isa<Constant>(OI) && !isa<GlobalValue>(OI)) || isa<InlineAsm>(OI))
  963         if ((isa<Constant>(OI) && !isa<GlobalValue>(OI)) || isa<InlineAsm>(OI))
lib/CodeGen/Analysis.cpp
  171   assert((GV || isa<ConstantPointerNull>(V)) &&
  258          (isa<VectorType>(T1) && isa<VectorType>(T2) &&
  258          (isa<VectorType>(T1) && isa<VectorType>(T2) &&
  286     if (isa<BitCastInst>(I)) {
  290     } else if (isa<GetElementPtrInst>(I)) {
  294     } else if (isa<IntToPtrInst>(I)) {
  298       if (!isa<VectorType>(I->getType()) &&
  302     } else if (isa<PtrToIntInst>(I)) {
  306       if (!isa<VectorType>(I->getType()) &&
  310     } else if (isa<TruncInst>(I) &&
  370   if (isa<UndefValue>(RetVal))
  528         CS.getCallingConv() != CallingConv::Tail) || !isa<UnreachableInst>(Term)))
  539       if (isa<DbgInfoIntrinsic>(BBI))
  624   if (isa<UndefValue>(Ret->getOperand(0))) return true;
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 1227   if (isa<GlobalVariable>(C))
 1249       !isa<GlobalValue>(GV->getOperand(0)))
 1325     OutStreamer->EmitSymbolAttribute(Name, isa<GlobalIFunc>(GIS)
 1333   if (isa<GlobalAlias>(&GIS) && MAI->hasAltEntry() && isa<MCBinaryExpr>(Expr))
 1333   if (isa<GlobalAlias>(&GIS) && MAI->hasAltEntry() && isa<MCBinaryExpr>(Expr))
 1581       assert(isa<ArrayType>(LU->getValueType()) &&
 1990   if (!isa<ConstantArray>(List)) return;
 1997       !isa<IntegerType>(ETy->getTypeAtIndex(0U)) ||
 1998       !isa<PointerType>(ETy->getTypeAtIndex(1U)) ||
 1999       !isa<PointerType>(ETy->getTypeAtIndex(2U)))
 2168   if (CV->isNullValue() || isa<UndefValue>(CV))
 2392   if (isa<IntegerType>(CDS->getElementType())) {
 2679   if (isa<ConstantAggregateZero>(CV) || isa<UndefValue>(CV))
 2679   if (isa<ConstantAggregateZero>(CV) || isa<UndefValue>(CV))
 2702   if (isa<ConstantPointerNull>(CV)) {
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
  357   if (!Scope || isa<DIFile>(Scope))
  360   assert(!isa<DIType>(Scope) && "shouldn't make a namespace scope for a type");
 1774   bool IsPMF = isa<DISubroutineType>(Ty->getBaseType());
 2008   if (ImmediateScope && isa<DICompositeType>(ImmediateScope))
 2016     if (ImmediateScope && isa<DISubprogram>(ImmediateScope))
 2021       if (isa<DISubprogram>(Scope)) {
 3009       if (Scope && isa<DILocalScope>(Scope)) {
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
  421   assert((Scope->getInlinedAt() || !isa<DISubprogram>(DS)) &&
  432   if (Scope->getParent() && isa<DISubprogram>(DS)) {
 1079   if (isa<const DILocalVariable>(Node)) {
 1083   } else if (isa<const DILabel>(Node)) {
lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
  167     if (!isa<DILocalScope>(Scope))
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  893   if (isa<DILocalScope>(N->getScope()))
  984           return !isa<DILocalScope>(IE->getScope());
 1491   if (isa<const DILocalVariable>(Node)) {
 1497   } else if (isa<const DILabel>(Node)) {
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  200   return (isa<DIType>(D) ||
  201           (isa<DISubprogram>(D) && !cast<DISubprogram>(D)->isDefinition())) &&
  620   if (!Context || isa<DIFile>(Context))
  719     if (!Context || isa<DICompileUnit>(Context) || isa<DIFile>(Context) ||
  719     if (!Context || isa<DICompileUnit>(Context) || isa<DIFile>(Context) ||
  720         isa<DINamespace>(Context) || isa<DICommonBlock>(Context))
  720         isa<DINamespace>(Context) || isa<DICommonBlock>(Context))
  741   while (!isa<DICompileUnit>(Context)) {
  755     if (Name.empty() && isa<DINamespace>(Ctx))
 1069       assert(isa<MDString>(Val));
 1415   bool IndexEnumerators = !Context || isa<DICompileUnit>(Context) || isa<DIFile>(Context) ||
 1415   bool IndexEnumerators = !Context || isa<DICompileUnit>(Context) || isa<DIFile>(Context) ||
 1416       isa<DINamespace>(Context) || isa<DICommonBlock>(Context);
 1416       isa<DINamespace>(Context) || isa<DICommonBlock>(Context);
lib/CodeGen/AtomicExpandPass.cpp
  213     if (I->isAtomic() && !isa<FenceInst>(I))
lib/CodeGen/CodeGenPrepare.cpp
  606     while (isa<DbgInfoIntrinsic>(BBI)) {
  611     if (!isa<DbgInfoIntrinsic>(BBI) && !isa<PHINode>(BBI))
  611     if (!isa<DbgInfoIntrinsic>(BBI) && !isa<PHINode>(BBI))
  695       !(isa<SwitchInst>(Pred->getTerminator()) ||
  696         isa<IndirectBrInst>(Pred->getTerminator())))
  713   if (!isa<PHINode>(DestBB->begin()))
  762       if (UI->getParent() != DestBB || !isa<PHINode>(UI))
 1201     assert(isa<Constant>(Arg1) && "Unexpected input for usubo");
 1234   if (isa<Constant>(A))
 1288   if (isa<Constant>(A) && isa<Constant>(B))
 1288   if (isa<Constant>(A) && isa<Constant>(B))
 1313   Value *CmpVariableOperand = isa<Constant>(A) ? B : A;
 1356   if (TLI.useSoftFloat() && isa<FCmpInst>(Cmp))
 1372     if (isa<PHINode>(User))
 1445   if (!isa<ConstantInt>(AndI->getOperand(0)) &&
 1446       !isa<ConstantInt>(AndI->getOperand(1)) &&
 1454     if (!isa<ICmpInst>(User))
 1507   if (!isa<TruncInst>(User)) {
 1509         !isa<ConstantInt>(User->getOperand(1)))
 1554     if (isa<PHINode>(TruncUser))
 1630     if (isa<PHINode>(User))
 1653       if (isa<TruncInst>(User) && shiftIsLegal
 1780   if (TLI && isa<InlineAsm>(CI->getCalledValue())) {
 2001     do { ++BI; } while (isa<DbgInfoIntrinsic>(BI) || &*BI == BCI);
 2006     while (isa<DbgInfoIntrinsic>(BI)) ++BI;
 2036       do { ++RI; } while (RI != RE && isa<DbgInfoIntrinsic>(&*RI));
 3420     assert((isa<PHINode>(Original) || isa<SelectInst>(Original)) &&
 3420     assert((isa<PHINode>(Original) || isa<SelectInst>(Original)) &&
 3514   if (isa<Instruction>(ScaleReg) &&  // not a constant expr.
 3556     return isa<ConstantInt>(I->getOperand(1));
 3638     return !(isa<SelectInst>(Inst) && OpIdx == 0);
 3729   if (isa<ZExtInst>(Inst))
 3733   if (IsSExt && isa<SExtInst>(Inst))
 3739   if (BinOp && isa<OverflowingBinaryOperator>(BinOp) &&
 3785   if (!isa<TruncInst>(Inst))
 3810   else if ((IsSExt && isa<SExtInst>(Opnd)) || (!IsSExt && isa<ZExtInst>(Opnd)))
 3810   else if ((IsSExt && isa<SExtInst>(Opnd)) || (!IsSExt && isa<ZExtInst>(Opnd)))
 3823   assert((isa<SExtInst>(Ext) || isa<ZExtInst>(Ext)) &&
 3823   assert((isa<SExtInst>(Ext) || isa<ZExtInst>(Ext)) &&
 3827   bool IsSExt = isa<SExtInst>(Ext);
 3837   if (isa<TruncInst>(ExtOpnd) && InsertedInsts.count(ExtOpnd))
 3842   if (isa<SExtInst>(ExtOpnd) || isa<TruncInst>(ExtOpnd) ||
 3842   if (isa<SExtInst>(ExtOpnd) || isa<TruncInst>(ExtOpnd) ||
 3843       isa<ZExtInst>(ExtOpnd))
 3863   if (isa<ZExtInst>(SExtOpnd)) {
 3965     if (isa<UndefValue>(Opnd)) {
 3978       if (!isa<Instruction>(ValForExtOpnd)) {
 4173       } else if (EnableGEPOffsetSplit && isa<GetElementPtrInst>(AddrInst) &&
 4183         if (isa<Argument>(Base) || isa<GlobalValue>(Base) ||
 4183         if (isa<Argument>(Base) || isa<GlobalValue>(Base) ||
 4184             (BaseI && !isa<CastInst>(BaseI) &&
 4185              !isa<GetElementPtrInst>(BaseI))) {
 4355   } else if (isa<ConstantPointerNull>(Addr)) {
 4505   if (!isa<Instruction>(Val) && !isa<Argument>(Val)) return true;
 4505   if (!isa<Instruction>(Val) && !isa<Argument>(Val)) return true;
 5061   bool IsSExt = isa<SExtInst>(FirstUser);
 5065     if ((IsSExt && !isa<SExtInst>(UI)) || (!IsSExt && !isa<ZExtInst>(UI)))
 5065     if ((IsSExt && !isa<SExtInst>(UI)) || (!IsSExt && !isa<ZExtInst>(UI)))
 5120     if (isa<LoadInst>(I->getOperand(0))) {
 5184       if (isa<LoadInst>(ExtOperand) &&
 5213       if (RemovedInsts.count(Inst) || !isa<SExtInst>(Inst) ||
 5345           if (isa<PHINode>(BaseI))
 5399     if (isa<LoadInst>(MovedExtInst->getOperand(0))) {
 5593   if (!isa<Instruction>(Src) || DefBB != cast<Instruction>(Src)->getParent())
 5616     if (isa<PHINode>(UI) || isa<LoadInst>(UI) || isa<StoreInst>(UI))
 5616     if (isa<PHINode>(UI) || isa<LoadInst>(UI) || isa<StoreInst>(UI))
 5616     if (isa<PHINode>(UI) || isa<LoadInst>(UI) || isa<StoreInst>(UI))
 6184     if (UI->getParent() == TargetBB || isa<PHINode>(UI))
 6321     assert(isa<ExtractElementInst>(Transition) &&
 6330     assert(isa<ExtractElementInst>(Transition) &&
 6356     unsigned Index = isa<ConstantInt>(ValIdx)
 6385       bool IsArg0Constant = isa<UndefValue>(Arg0) || isa<ConstantInt>(Arg0) ||
 6385       bool IsArg0Constant = isa<UndefValue>(Arg0) || isa<ConstantInt>(Arg0) ||
 6386                             isa<ConstantFP>(Arg0);
 6474     return isa<BinaryOperator>(ToBePromoted);
 6492       if (!isa<ConstantInt>(Val) && !isa<UndefValue>(Val) &&
 6492       if (!isa<ConstantInt>(Val) && !isa<UndefValue>(Val) &&
 6493           !isa<ConstantFP>(Val))
 6508   bool canCombine(const Instruction *Use) { return isa<StoreInst>(Use); }
 6570     else if (isa<UndefValue>(Val) || isa<ConstantInt>(Val) ||
 6570     else if (isa<UndefValue>(Val) || isa<ConstantInt>(Val) ||
 6571              isa<ConstantFP>(Val)) {
 6575           isa<UndefValue>(Val) ||
 6763       isa<ConstantInt>(GEP->getOperand(1));
 6828   if (!isa<IndirectBrInst>(SrcBlock->getTerminator()))
 6840   if (!isa<Instruction>(GEPIOp))
 6863     if (!isa<Instruction>(Usr))
 6870     if (!isa<GetElementPtrInst>(Usr))
 6949     if (isa<Constant>(CI->getOperand(0)))
 6955     if (isa<ZExtInst>(I) || isa<SExtInst>(I)) {
 6955     if (isa<ZExtInst>(I) || isa<SExtInst>(I)) {
 7128       if (!DVI || (DVI->getValue() && isa<AllocaInst>(DVI->getValue()))) {
 7137         if (isa<PHINode>(VI) && VI->getParent()->getTerminator()->isEHPad())
 7142         if (isa<PHINode>(VI))
lib/CodeGen/DwarfEHPrepare.cpp
  113       if (ExcIVI && isa<UndefValue>(ExcIVI->getOperand(0)) &&
lib/CodeGen/ExpandReductions.cpp
   90         isa<FPMathOperator>(II) ? II->getFastMathFlags() : FastMathFlags{};
lib/CodeGen/GCRootLowering.cpp
  129   if (isa<AllocaInst>(I) || isa<GetElementPtrInst>(I) || isa<StoreInst>(I) ||
  129   if (isa<AllocaInst>(I) || isa<GetElementPtrInst>(I) || isa<StoreInst>(I) ||
  129   if (isa<AllocaInst>(I) || isa<GetElementPtrInst>(I) || isa<StoreInst>(I) ||
  130       isa<LoadInst>(I))
  146   while (isa<AllocaInst>(IP))
lib/CodeGen/GlobalISel/IRTranslator.cpp
  192   if (!isa<Constant>(Val)) {
  297   if (isa<Instruction>(U)) {
  308   if (isa<Constant>(U.getOperand(0)) &&
  313     if (isa<Instruction>(U)) {
  328   if (isa<Instruction>(U)) {
  798       FallthroughUnreachable = isa<UnreachableInst>(
 1123   if (isa<UndefValue>(CI.getArgOperand(1)))
 1322     if (!Address || isa<UndefValue>(Address)) {
 1623   if (isa<FPMathOperator>(CI))
 1628     if (isa<MetadataAsValue>(Arg.value()))
 1679   if (isa<InlineAsm>(Callee))
 1695   if (!isa<LandingPadInst>(EHPadBB->front()))
 2114   else if (isa<UndefValue>(C))
 2116   else if (isa<ConstantPointerNull>(C)) {
lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
   92   assert(isa<DILocalVariable>(Variable) && "not a variable");
  105   assert(isa<DILocalVariable>(Variable) && "not a variable");
  122   assert(isa<DILocalVariable>(Variable) && "not a variable");
  141   assert(isa<DILocalVariable>(Variable) && "not a variable");
  163   assert(isa<DILabel>(Label) && "not a label");
lib/CodeGen/GlobalMerge.cpp
  316       } else if (isa<Instruction>(U.getUser())) {
lib/CodeGen/HardwareLoops.cpp
  287   if (!isa<BranchInst>(Pred->getTerminator()))
  291   if (BI->isUnconditional() || !isa<ICmpInst>(BI->getCondition()))
  380     assert((isa<BranchInst>(BeginBB->getTerminator()) &&
lib/CodeGen/IndirectBrExpandPass.cpp
  124       return isa<BlockAddress>(U.getUser());
lib/CodeGen/InterleavedAccessPass.cpp
  294     if (Extract && isa<ConstantInt>(Extract->getIndexOperand())) {
  299     if (!SVI || !isa<UndefValue>(SVI->getOperand(1)))
lib/CodeGen/InterleavedLoadCombinePass.cpp
  969     if (isa<CastInst>(&Ptr)) {
  982     else if (isa<GetElementPtrInst>(&Ptr)) {
lib/CodeGen/LexicalScopes.cpp
  227   if (isa<DISubprogram>(Scope))
lib/CodeGen/LowerEmuTLS.cpp
  103     if (isa<ConstantAggregateZero>(InitValue) ||
lib/CodeGen/MIRParser/MIParser.cpp
  948     if (!isa<DILocation>(Node))
 1937           if (!isa<DIScope>(Scope))
 1953           if (!isa<DILocation>(InlinedAt))
lib/CodeGen/MachineFunction.cpp
  693     assert(isa<CleanupPadInst>(FirstI) && "Invalid landingpad!");
 1027   if (isa<StructType>(A->getType()) || isa<ArrayType>(A->getType()) ||
 1027   if (isa<StructType>(A->getType()) || isa<ArrayType>(A->getType()) ||
 1028       isa<StructType>(B->getType()) || isa<ArrayType>(B->getType()))
 1028       isa<StructType>(B->getType()) || isa<ArrayType>(B->getType()))
 1042   if (isa<PointerType>(A->getType()))
 1048   if (isa<PointerType>(B->getType()))
lib/CodeGen/MachineInstr.cpp
 2017   assert(isa<DILocalVariable>(Variable) && "not a variable");
 2033   assert(isa<DILocalVariable>(Variable) && "not a variable");
lib/CodeGen/MachineOperand.cpp
  463   if (isa<GlobalValue>(V)) {
  467   if (isa<Constant>(V)) {
 1025           isa<PointerType>(PtrInfo.V.get<const Value *>()->getType())) &&
lib/CodeGen/MachineVerifier.cpp
  667         BB && isa<SwitchInst>(BB->getTerminator())) &&
lib/CodeGen/SafeStack.cpp
  246              << (isa<AllocaInst>(AllocaPtr) ? "Alloca " : "ByValArgument ")
  675     if (AI->hasName() && isa<Instruction>(NewAI))
  719   if (!isa<CallInst>(UnsafeStackPtr))
lib/CodeGen/ScalarizeMaskedMemIntrin.cpp
   87     if (!CElt || !isa<ConstantInt>(CElt))
  145   if (isa<Constant>(Mask) && cast<Constant>(Mask)->isAllOnesValue()) {
  282   if (isa<Constant>(Mask) && cast<Constant>(Mask)->isAllOnesValue()) {
  519   assert(isa<VectorType>(Src->getType()) &&
  521   assert(isa<VectorType>(Ptrs->getType()) &&
  522          isa<PointerType>(Ptrs->getType()->getVectorElementType()) &&
lib/CodeGen/ScheduleDAGInstrs.cpp
 1025       if (isa<UndefValue>(V))
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  844   if (isa<ConstantFPSDNode>(N))
 1678     if (N0 != N1 && (isa<ConstantSDNode>(N0) || !isa<ConstantSDNode>(N1))) {
 1678     if (N0 != N1 && (isa<ConstantSDNode>(N0) || !isa<ConstantSDNode>(N1))) {
 2149         isa<FrameIndexSDNode>(N0.getOperand(0)) &&
 2150         isa<ConstantSDNode>(N0.getOperand(1)) &&
 2555   if (Force && isa<ConstantSDNode>(V))
 3345     N0IsConst = isa<ConstantSDNode>(N0);
 3350     N1IsConst = isa<ConstantSDNode>(N1);
 4728   if (isa<LoadSDNode>(LDST)) {
 4757     assert(isa<StoreSDNode>(LDST) && "It is not a Load nor a Store SDNode");
 4868   if (isa<LoadSDNode>(N->getOperand(0)))
 4898       if (isa<ConstantSDNode>(Op0))
 5010       !isa<ConstantSDNode>(Srl.getOperand(1)))
 5702     if (isa<ShuffleVectorSDNode>(N0) &&
 5703         isa<ShuffleVectorSDNode>(N1) &&
 6829   if (isa<ConstantSDNode>(M.getNode()))
 6949     if (isa<ConstantSDNode>(N01) || isa<ConstantSDNode>(N00)) {
 6949     if (isa<ConstantSDNode>(N01) || isa<ConstantSDNode>(N00)) {
 7178                            isa<ConstantSDNode>(BinOpLHSVal.getOperand(1));
 7193   assert(isa<ConstantSDNode>(NewRHS) && "Folding was not successful!");
 8901   if (isa<ConstantSDNode>(N0))
 8910     if (isa<ConstantSDNode>(Op1) && isa<ConstantSDNode>(Op2) &&
 8910     if (isa<ConstantSDNode>(Op1) && isa<ConstantSDNode>(Op2) &&
 8998         if (!isa<ConstantSDNode>(UseOp))
 9179   if (!isa<LoadSDNode>(N1.getOperand(0)))
 9498       isa<LoadSDNode>(N0.getOperand(0)) &&
 9811       isa<LoadSDNode>(N0.getOperand(0)) &&
 9921       isa<ConstantSDNode>(N0.getOperand(1)) &&
10239       if (!isa<LoadSDNode>(N0)) return SDValue();
10259           isa<ConstantSDNode>(Mask->getOperand(1))) {
10286   if (!isa<LoadSDNode>(N0))
10600     if (isa<ConstantSDNode>(EltNo) && isTypeLegal(NVT)) {
10973   if (isa<ConstantSDNode>(N0) || isa<ConstantFPSDNode>(N0)) {
10973   if (isa<ConstantSDNode>(N0) || isa<ConstantFPSDNode>(N0)) {
10978         (isa<ConstantSDNode>(N0) && VT.isFloatingPoint() && !VT.isVector() &&
10980         (isa<ConstantFPSDNode>(N0) && VT.isInteger() && !VT.isVector() &&
11085       isa<ConstantFPSDNode>(N0.getOperand(0)) &&
12284         isa<ConstantFPSDNode>(Cond.getOperand(1)) &&
12339   if (isa<ConstantFPSDNode>(N0) &&
12340       isa<ConstantFPSDNode>(N1) &&
12341       isa<ConstantFPSDNode>(N2)) {
13546   if (isa<ConstantSDNode>(BasePtr)) {
13565   if (isa<FrameIndexSDNode>(BasePtr) || isa<RegisterSDNode>(BasePtr))
13565   if (isa<FrameIndexSDNode>(BasePtr) || isa<RegisterSDNode>(BasePtr))
13590   if (isa<ConstantSDNode>(Offset))
13610       if (!isa<ConstantSDNode>(Op1)) {
13783       if (isa<FrameIndexSDNode>(BasePtr) || isa<RegisterSDNode>(BasePtr))
13783       if (isa<FrameIndexSDNode>(BasePtr) || isa<RegisterSDNode>(BasePtr))
14633         isa<ConstantSDNode>(User->getOperand(1))) {
14709       !isa<ConstantSDNode>(V->getOperand(1)) ||
15141             if (isa<ConstantFPSDNode>(Val)) {
15279   bool IsConstantSrc = isa<ConstantSDNode>(Val) || isa<ConstantFPSDNode>(Val);
15279   bool IsConstantSrc = isa<ConstantSDNode>(Val) || isa<ConstantFPSDNode>(Val);
15282   bool IsLoadSrc = isa<LoadSDNode>(Val);
15341       if (!(isa<ConstantSDNode>(OtherBC) || isa<ConstantFPSDNode>(OtherBC)))
15341       if (!(isa<ConstantSDNode>(OtherBC) || isa<ConstantFPSDNode>(OtherBC)))
15393       if (I.getOperandNo() == 0 && isa<LoadSDNode>(*I)) // walk down chain
15509   bool IsLoadSrc = isa<LoadSDNode>(StoredVal);
15510   bool IsConstantSrc = isa<ConstantSDNode>(StoredVal) ||
15511                        isa<ConstantFPSDNode>(StoredVal);
16192       (!isa<ConstantSDNode>(Value) ||
16311       if (N->getOpcode() == ISD::DELETED_NODE || !isa<StoreSDNode>(N))
16325   if (isa<ConstantFPSDNode>(ST->getValue())) {
16505       isa<ConstantSDNode>(InsertVal.getOperand(1))) {
16629       && isa<ConstantSDNode>(InVec.getOperand(2))) {
16939                isa<ConstantSDNode>(Use->getOperand(1));
17312       !isa<ConstantSDNode>(Zext.getOperand(0).getOperand(1)) ||
17408         !isa<ConstantSDNode>(Op.getOperand(1)))
17805     if (!isa<ConstantSDNode>(Op.getOperand(1)))
18238       V.hasOneUse() && isa<ConstantSDNode>(V.getOperand(1))) {
18249   if (isa<ConstantSDNode>(Index) && V.getOpcode() == ISD::BITCAST &&
18278   if (V.getOpcode() == ISD::CONCAT_VECTORS && isa<ConstantSDNode>(Index) &&
18545     if (!Op.isUndef() && !isa<ConstantSDNode>(Op) && !isa<ConstantFPSDNode>(Op))
18545     if (!Op.isUndef() && !isa<ConstantSDNode>(Op) && !isa<ConstantFPSDNode>(Op))
19307   if (!isa<ConstantSDNode>(N2))
19355       isa<ConstantSDNode>(N0.getOperand(2))) {
19482       if (isa<ConstantSDNode>(Elt))
19484       else if (isa<ConstantFPSDNode>(Elt))
20611   const bool IsLoad = isa<LoadSDNode>(N) && cast<LoadSDNode>(N)->isSimple();
20628       bool IsOpLoad = isa<LoadSDNode>(C.getNode()) &&
lib/CodeGen/SelectionDAG/FastISel.cpp
  387   if (isa<Instruction>(V) &&
  388       (!isa<AllocaInst>(V) ||
  408   } else if (isa<AllocaInst>(V))
  410   else if (isa<ConstantPointerNull>(V))
  440       if (!isa<Instruction>(Op) ||
  444   } else if (isa<UndefValue>(V)) {
  458   if (isa<Constant>(V))
  487   if (!isa<Instruction>(I)) {
  607     if (isa<Instruction>(I) && cast<Instruction>(I)->isCommutative()) {
  634     if (ISDOpcode == ISD::SDIV && isa<BinaryOperator>(I) &&
  641     if (ISDOpcode == ISD::UREM && isa<BinaryOperator>(I) &&
  768     } else if (isa<ConstantPointerNull>(Val)) {
  809   assert(isa<ConstantInt>(I->getOperand(PatchPointOpers::IDPos)) &&
  814   assert(isa<ConstantInt>(I->getOperand(PatchPointOpers::NBytesPos)) &&
  916   assert(isa<ConstantInt>(I->getOperand(PatchPointOpers::NArgPos)) &&
  948   assert(isa<ConstantInt>(I->getOperand(PatchPointOpers::IDPos)) &&
  953   assert(isa<ConstantInt>(I->getOperand(PatchPointOpers::NBytesPos)) &&
  973   } else if (isa<ConstantPointerNull>(Callee))
 1354     if (!Address || isa<UndefValue>(Address)) {
 1381     if (!Op && !Address->use_empty() && isa<Instruction>(Address) &&
 1382         (!isa<AllocaInst>(Address) ||
 1773   else if (isa<Instruction>(Op0))
 2261     if (!isa<PHINode>(SuccBB->begin()))
 2374   if (!isa<AddOperator>(Add))
 2381   if (isa<Instruction>(Add) &&
 2385   return isa<ConstantInt>(cast<AddOperator>(Add)->getOperand(1));
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
   50   if (isa<PHINode>(I)) return true;
   53     if (cast<Instruction>(U)->getParent() != BB || isa<PHINode>(U))
  180       if (isa<CallInst>(I) || isa<InvokeInst>(I)) {
  180       if (isa<CallInst>(I) || isa<InvokeInst>(I)) {
  182         if (isa<InlineAsm>(CS.getCalledValue())) {
  219         if (!isa<AllocaInst>(I) || !StaticAllocaMap.count(cast<AllocaInst>(&I)))
  239       if (!isa<LandingPadInst>(PadInst)) {
  244       if (isa<CatchSwitchInst>(PadInst)) {
  249       if (isa<FuncletPadInst>(PadInst))
  434   if (isa<UndefValue>(V) || isa<ConstantExpr>(V)) {
  434   if (isa<UndefValue>(V) || isa<ConstantExpr>(V)) {
  467     if (isa<UndefValue>(V) || isa<ConstantExpr>(V)) {
  467     if (isa<UndefValue>(V) || isa<ConstantExpr>(V)) {
lib/CodeGen/SelectionDAG/InstrEmitter.cpp
   71     if (isa<RegisterMaskSDNode>(Node->getOperand(I - 1)))
  739     } else if (isa<ConstantPointerNull>(V)) {
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
 1917     if (!isa<ConstantFPSDNode>(V) && !isa<ConstantSDNode>(V))
 1917     if (!isa<ConstantFPSDNode>(V) && !isa<ConstantSDNode>(V))
 3493            isa<ConstantSDNode>(Tmp2.getOperand(1)) &&
lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
 2147   if (isa<ConstantSDNode>(N->getOperand(1))) {
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
  425   assert(isa<ConstantSDNode>(Result) && "Didn't constant fold ext?");
lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
 2225   if (isa<ConstantSDNode>(Idx)) {
lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp
  337       if (isa<ConstantSDNode>(Op.getNode()))
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
   66       if (isa<ConstantSDNode>(Node))       return true;
   67       if (isa<ConstantFPSDNode>(Node))     return true;
   68       if (isa<RegisterSDNode>(Node))       return true;
   69       if (isa<RegisterMaskSDNode>(Node))   return true;
   70       if (isa<GlobalAddressSDNode>(Node))  return true;
   71       if (isa<BasicBlockSDNode>(Node))     return true;
   72       if (isa<FrameIndexSDNode>(Node))     return true;
   73       if (isa<ConstantPoolSDNode>(Node))   return true;
   74       if (isa<TargetIndexSDNode>(Node))    return true;
   75       if (isa<JumpTableSDNode>(Node))      return true;
   76       if (isa<ExternalSymbolSDNode>(Node)) return true;
   77       if (isa<MCSymbolSDNode>(Node))       return true;
   78       if (isa<BlockAddressSDNode>(Node))   return true;
   80           isa<MDNodeSDNode>(Node)) return true;
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  240     if (!isa<ConstantSDNode>(Op))
  253     if (!isa<ConstantFPSDNode>(Op))
 3970       !isa<ConstantSDNode>(Op.getOperand(1)))
 4170         !isa<ConstantSDNode>(Ops[i].getOperand(1)) ||
 4216         !isa<ConstantSDNode>(Op.getOperand(1)) ||
 4643         isa<ConstantSDNode>(Operand.getOperand(1)) &&
 5536       if (isa<ConstantSDNode>(Index)) {
 6085     isa<ConstantSDNode>(Src) && cast<ConstantSDNode>(Src)->isNullValue();
 6668       !isa<ConstantSDNode>(Ptr.getOperand(1)) ||
 6669       !isa<FrameIndexSDNode>(Ptr.getOperand(0)))
 7052   assert(isa<ConstantSDNode>(N->getScale()) &&
 7090   assert(isa<ConstantSDNode>(N->getScale()) &&
 8623   assert(isa<MemSDNode>(NewMemOp.getNode()) && "Expected a memop node");
 8642   assert(isa<ExternalSymbolSDNode>(Op) && "Node should be an ExternalSymbol");
 9278              isa<FrameIndexSDNode>(Ptr.getOperand(0))) {
 9539   if (isa<ConstantSDNode>(N))
 9553   if (isa<ConstantFPSDNode>(N))
lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp
  128   bool IsFI0 = isa<FrameIndexSDNode>(BasePtr0.getBase());
  129   bool IsFI1 = isa<FrameIndexSDNode>(BasePtr1.getBase());
  130   bool IsGV0 = isa<GlobalAddressSDNode>(BasePtr0.getBase());
  131   bool IsGV1 = isa<GlobalAddressSDNode>(BasePtr1.getBase());
  132   bool IsCV0 = isa<ConstantPoolSDNode>(BasePtr0.getBase());
  133   bool IsCV1 = isa<ConstantPoolSDNode>(BasePtr1.getBase());
  255         !isa<ConstantSDNode>(Index->getOperand(1)))
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  346     if (isa<InlineAsm>(CI->getCalledValue()))
 1085   if (!isa<DbgInfoIntrinsic>(I))
 1223   assert(isa<DbgValueInst>(DDI.getDI()));
 1233   while (isa<Instruction>(V)) {
 1273   if (isa<ConstantInt>(V) || isa<ConstantFP>(V) || isa<UndefValue>(V) ||
 1273   if (isa<ConstantInt>(V) || isa<ConstantFP>(V) || isa<UndefValue>(V) ||
 1273   if (isa<ConstantInt>(V) || isa<ConstantFP>(V) || isa<UndefValue>(V) ||
 1274       isa<ConstantPointerNull>(V)) {
 1298   if (!N.getNode() && isa<Argument>(V)) // Check unused arguments map.
 1312   bool IsParamOfFunc = isa<Argument>(V) && Var->isParameter() &&
 1421     if (isa<ConstantSDNode>(N) || isa<ConstantFPSDNode>(N)) {
 1421     if (isa<ConstantSDNode>(N) || isa<ConstantFPSDNode>(N)) {
 1452     if (isa<ConstantPointerNull>(C)) {
 1461     if (isa<UndefValue>(C) && !V->getType()->isAggregateType())
 1471     if (isa<ConstantStruct>(C) || isa<ConstantArray>(C)) {
 1471     if (isa<ConstantStruct>(C) || isa<ConstantArray>(C)) {
 1498       if (isa<ArrayType>(CDS->getType()))
 1504       assert((isa<ConstantAggregateZero>(C) || isa<UndefValue>(C)) &&
 1504       assert((isa<ConstantAggregateZero>(C) || isa<UndefValue>(C)) &&
 1515         if (isa<UndefValue>(C))
 1539       assert(isa<ConstantAggregateZero>(C) && "Unknown vector constant!");
 1619   if (isa<ConstantTokenNone>(ParentPad))
 1656     if (isa<CleanupPadInst>(Pad)) {
 1705     if (isa<LandingPadInst>(Pad)) {
 1709     } else if (isa<CleanupPadInst>(Pad)) {
 1948   if (!isa<Instruction>(V) && !isa<Argument>(V)) return;
 1948   if (!isa<Instruction>(V) && !isa<Argument>(V)) return;
 1972   if (isa<Argument>(V)) {
 2106   if (!BOp || !(isa<BinaryOperator>(BOp) || isa<CmpInst>(BOp)) ||
 2106   if (!BOp || !(isa<BinaryOperator>(BOp) || isa<CmpInst>(BOp)) ||
 2211       isa<Constant>(Cases[0].CmpRHS) &&
 2756   if (isa<InlineAsm>(Callee))
 2834   assert(isa<InlineAsm>(I.getCalledValue()) &&
 2964   if (isa<Constant>(I.getOperand(0)) &&
 3042       if (Inst->getOpcode() == OpCode || isa<PHINode>(U)) {
 3044           if (!isa<PHINode>(FPOp) && !FPOp->getFastMathFlags().isFast())
 3060         if (!isa<UndefValue>(U->getOperand(1)))
 3085       } else if (isa<ExtractElementInst>(U)) {
 3190   Flags.setExact(isa<PossiblyExactOperator>(&I) &&
 3246     return isa<SelectInst>(V);
 3751   bool IntoUndef = isa<UndefValue>(Op0);
 3752   bool FromUndef = isa<UndefValue>(Op1);
 3804   bool OutOfUndef = isa<UndefValue>(Op0);
 3882       if (C && isa<VectorType>(C->getType()))
 4356     if (isa<VectorType>(C->getType()))
 5815     if (!Address || isa<UndefValue>(Address) ||
 5816         (Address->use_empty() && !isa<Argument>(Address))) {
 5821     bool isParameter = Variable->isParameter() || isa<Argument>(Address);
 5851     if (!N.getNode() && isa<Argument>(Address))
 5865       } else if (isa<Argument>(Address)) {
 6647       if (isa<ConstantPointerNull>(Arg))
 7145     if (Entry.IsSRet && isa<Instruction>(V))
 7536   if (isa<InlineAsm>(I.getCalledValue())) {
 7758     if (isa<BasicBlock>(CallOperandVal))
 7850   if (isa<ConstantFP>(OpVal) || isa<ConstantInt>(OpVal) ||
 7850   if (isa<ConstantFP>(OpVal) || isa<ConstantInt>(OpVal) ||
 7851       isa<ConstantVector>(OpVal) || isa<ConstantDataVector>(OpVal)) {
 7851       isa<ConstantVector>(OpVal) || isa<ConstantDataVector>(OpVal)) {
 8070       if (isa<CallBrInst>(I) &&
 8113         OpInfo.CallOperand && !isa<ConstantSDNode>(OpInfo.CallOperand))
 8128   bool IsCallBr = isa<CallBrInst>(CS.getInstruction());
 8318             if (isa<ConstantSDNode>(InOperandVal)) {
 8910   if (isa<FPMathOperator>(I))
 9146             isa<StructType>(FinalType)) {
 9405     if (cast<Instruction>(U)->getParent() != &Entry || isa<SwitchInst>(U))
 9454       if (isa<DbgInfoIntrinsic>(I))
 9647             isa<StructType>(Arg.getType())) {
 9936     if (!isa<PHINode>(SuccBB->begin())) continue;
 9974           assert(isa<AllocaInst>(PHIOp) &&
10148       FallthroughUnreachable = isa<UnreachableInst>(
lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
  739     if (!(isa<ConstantSDNode>(this) || (isa<ConstantFPSDNode>(this))))
  739     if (!(isa<ConstantSDNode>(this) || (isa<ConstantFPSDNode>(this))))
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
  487       if (isa<UnreachableInst>(Term) || isa<ReturnInst>(Term))
  487       if (isa<UnreachableInst>(Term) || isa<ReturnInst>(Term))
 1286          !isa<DbgInfoIntrinsic>(I) &&  // Debug instructions aren't folded.
 1479           if (BeforeInst != Inst && isa<LoadInst>(BeforeInst) &&
 1497         if (isa<CallInst>(Inst) && !isStatepoint(Inst) && !isGCRelocate(Inst) &&
lib/CodeGen/SelectionDAG/StatepointLowering.cpp
  227   if (isa<ConstantSDNode>(Incoming) || isa<FrameIndexSDNode>(Incoming)) {
  227   if (isa<ConstantSDNode>(Incoming) || isa<FrameIndexSDNode>(Incoming)) {
lib/CodeGen/SelectionDAG/TargetLowering.cpp
  884     if (isa<ConstantSDNode>(Op.getOperand(2))) {
 2059       if (isa<ConstantFPSDNode>(Elt) || Elt.isUndef() || (C && !C->isOpaque()))
 2260     if (!isa<ConstantSDNode>(Op.getOperand(2)))
 2603   assert(isa<FrameIndexSDNode>(Op) && "expected FrameIndex");
 3241         isa<LoadSDNode>(N0.getOperand(0)) &&
 3243         isa<ConstantSDNode>(N0.getOperand(1))) {
 3402           isa<ConstantSDNode>(N0.getOperand(1)) &&
 3443             isa<ConstantSDNode>(Op0.getOperand(1)) &&
 3696   if (!isa<ConstantFPSDNode>(N0) && isa<ConstantFPSDNode>(N1)) {
 3696   if (!isa<ConstantFPSDNode>(N0) && isa<ConstantFPSDNode>(N1)) {
 4420       if (isa<ConstantInt>(CallOperandVal))
 4424       if (isa<GlobalValue>(CallOperandVal))
 4429       if (isa<ConstantFP>(CallOperandVal))
 4543     if (isa<BasicBlock>(v) || isa<ConstantInt>(v) || isa<Function>(v)) {
 4543     if (isa<BasicBlock>(v) || isa<ConstantInt>(v) || isa<Function>(v)) {
 4543     if (isa<BasicBlock>(v) || isa<ConstantInt>(v) || isa<Function>(v)) {
 5333   if (!isa<ConstantSDNode>(Op.getOperand(0))) {
 5375           return !N.isUndef() && !isa<ConstantFPSDNode>(N);
 6777   if (isa<ConstantSDNode>(Idx))
lib/CodeGen/ShadowStackGCLowering.cpp
  265   assert(isa<GetElementPtrInst>(Val) && "Unexpected folded constant");
  277   assert(isa<GetElementPtrInst>(Val) && "Unexpected folded constant");
  310   while (isa<AllocaInst>(IP))
  337   while (isa<StoreInst>(IP))
lib/CodeGen/SjLjEHPrepare.cpp
  230   while (isa<AllocaInst>(AfterAllocaInsPt) &&
  271           !isa<PHINode>(Inst.user_back()))
  284         if (UI->getParent() != &BB || isa<PHINode>(UI))
  294         if (!isa<PHINode>(U)) {
  336     for (BasicBlock::iterator PN = UnwindBlock->begin(); isa<PHINode>(PN); ++PN)
  454       } else if (!isa<AllocaInst>(&I)) {
lib/CodeGen/StackProtector.cpp
  181       if (!isa<DbgInfoIntrinsic>(CI) && !CI->isLifetimeStartOrEnd())
  545   return HasPrologue && !HasIRCheck && isa<ReturnInst>(BB.getTerminator());
lib/CodeGen/SwiftErrorValueTracking.cpp
  221       auto DLoc = isa<Instruction>(SwiftErrorVal)
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
 1410       ((isa<Function>(GV) && TM.getFunctionSections()) ||
 1411        (isa<GlobalVariable>(GV) && TM.getDataSections())))
 1588   if (!isa<GlobalObject>(LHS) || !isa<GlobalVariable>(RHS) ||
 1588   if (!isa<GlobalObject>(LHS) || !isa<GlobalVariable>(RHS) ||
 1612   if (isa<UndefValue>(C)) {
 1620     if (isa<VectorType>(Ty))
 1708   if (isa<Function>(GO)) {
lib/CodeGen/WasmEHPrepare.cpp
  211     if (isa<CatchPadInst>(Pad))
  213     else if (isa<CleanupPadInst>(Pad))
  330   if (isa<ConstantTokenNone>(CPI->getCatchSwitch()->getParentPad()))
lib/CodeGen/WinEHPrepare.cpp
  221   if (isa<InvokeInst>(TI))
  417     return isa<ConstantTokenNone>(CatchSwitch->getParentPad()) &&
  420     return isa<ConstantTokenNone>(CleanupPad->getParentPad()) &&
  422   if (isa<CatchPadInst>(EHPad))
  516     if (isa<ConstantTokenNone>(ParentPad))
  697     if (DemoteCatchSwitchPHIOnly && !isa<CatchSwitchInst>(BB->getFirstNonPHI()))
  981       bool IsUnreachableRet = isa<ReturnInst>(TI) && FuncletPad;
  993       } else if (isa<InvokeInst>(TI)) {
 1029     assert((DisableDemotion || !(BB.isEHPad() && isa<PHINode>(BB.begin()))) &&
 1096     if (isa<PHINode>(UsingInst) && UsingInst->getParent()->isEHPad()) {
 1132         if (isa<UndefValue>(PredVal))
lib/DebugInfo/DWARF/DWARFContext.cpp
 1608       if (!L && isa<MachOObjectFile>(&Obj))
lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
  249          isa<DWARFContext>(DebugInfoContext.get());
lib/ExecutionEngine/ExecutionEngine.cpp
  596   if (isa<UndefValue>(C)) {
  908     if (isa<ConstantPointerNull>(C))
  947           if (!isa<UndefValue>(CV->getOperand(i)))
  969           if (!isa<UndefValue>(CV->getOperand(i)))
  991           if (!isa<UndefValue>(CV->getOperand(i)))
 1135   if (isa<UndefValue>(Init))
 1146   if (isa<ConstantAggregateZero>(Init)) {
lib/ExecutionEngine/Interpreter/Execution.cpp
  988   if (!isa<PHINode>(SF.CurInst)) return;  // Nothing fancy to do
 1005   for (unsigned i = 0; isa<PHINode>(SF.CurInst); ++SF.CurInst, ++i) {
lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp
   25     if (isa<Function>(GV)) {
   29     } else if (isa<GlobalVariable>(GV)) {
   31     } else if (isa<GlobalAlias>(GV)) {
   40       if (isa<Function>(Aliasee)) {
   45       } else if (isa<GlobalVariable>(Aliasee)) {
  220     if (isa<GlobalAlias>(GV))
  223     else if (isa<GlobalVariable>(GV))
lib/ExecutionEngine/Orc/ExecutionUtils.cpp
   73   if (Data && !isa<GlobalValue>(Data))
lib/ExecutionEngine/RuntimeDyld/JITSymbol.cpp
   30   if (isa<Function>(GV))
   32   else if (isa<GlobalAlias>(GV) &&
   33            isa<Function>(cast<GlobalAlias>(GV).getAliasee()))
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
  460   if (isa<object::ELFObjectFileBase>(Obj))
  477   assert(isa<MachOObjectFile>(Obj));
  483   if (isa<object::ELFObjectFileBase>(Obj))
  495   assert(isa<MachOObjectFile>(Obj));
  501   if (isa<object::ELFObjectFileBase>(Obj))
lib/FuzzMutate/IRMutator.cpp
  158         Inst.isSwiftError() || isa<PHINode>(Inst))
lib/FuzzMutate/Operations.cpp
  184   if (isa<StructType>(T))
lib/FuzzMutate/RandomIRBuilder.cpp
   99     if (isa<IntrinsicInst>(I))
lib/IR/AsmWriter.cpp
  124     if (C->getNumOperands() && !isa<GlobalValue>(C))
  126         if (!isa<BasicBlock>(Op) && !isa<GlobalValue>(Op))
  126         if (!isa<BasicBlock>(Op) && !isa<GlobalValue>(Op))
  141       if (!isa<GlobalValue>(G.getInitializer()))
  146     if (!isa<GlobalValue>(A.getAliasee()))
  151     if (!isa<GlobalValue>(I.getResolver()))
  157       if (!isa<GlobalValue>(U.get()))
  171           if ((isa<Constant>(*Op) && !isa<GlobalValue>(*Op)) ||
  171           if ((isa<Constant>(*Op) && !isa<GlobalValue>(*Op)) ||
  172               isa<InlineAsm>(*Op))
  197       !isa<GlobalVariable>(V) && !isa<Function>(V) && !isa<BasicBlock>(V);
  197       !isa<GlobalVariable>(V) && !isa<Function>(V) && !isa<BasicBlock>(V);
  197       !isa<GlobalVariable>(V) && !isa<Function>(V) && !isa<BasicBlock>(V);
  261         if (isa<Constant>(Op)) // Visit GlobalValues.
  288           if (isa<Constant>(*Op) || isa<InlineAsm>(*Op)) // Visit GlobalValues.
  288           if (isa<Constant>(*Op) || isa<InlineAsm>(*Op)) // Visit GlobalValues.
  335       if (isa<Instruction>(U))
  459                 isa<GlobalValue>(V) ? GlobalPrefix : LocalPrefix);
 1116   assert(!isa<Constant>(V) && "Can't get a constant or global slot with this!");
 1196   if (isa<DIExpression>(N))
 1381   if (isa<ConstantAggregateZero>(CV)) {
 1474   if (isa<ConstantVector>(CV) || isa<ConstantDataVector>(CV)) {
 1474   if (isa<ConstantVector>(CV) || isa<ConstantDataVector>(CV)) {
 1492   if (isa<ConstantPointerNull>(CV)) {
 1497   if (isa<ConstantTokenNone>(CV)) {
 1502   if (isa<UndefValue>(CV)) {
 2235   if (CV && !isa<GlobalValue>(CV)) {
 2343   assert((FromValue || !isa<LocalAsMetadata>(V)) &&
 3250   if (isa<GlobalVariable>(GO))
 3334   if (isa<GlobalAlias>(GIS))
 3336   else if (isa<GlobalIFunc>(GIS))
 3351     writeOperand(IS, !isa<ConstantExpr>(IS));
 3690   if ((isa<LoadInst>(I)  && cast<LoadInst>(I).isAtomic()) ||
 3691       (isa<StoreInst>(I) && cast<StoreInst>(I).isAtomic()))
 3694   if (isa<AtomicCmpXchgInst>(I) && cast<AtomicCmpXchgInst>(I).isWeak())
 3698   if ((isa<LoadInst>(I)  && cast<LoadInst>(I).isVolatile()) ||
 3699       (isa<StoreInst>(I) && cast<StoreInst>(I).isVolatile()) ||
 3700       (isa<AtomicCmpXchgInst>(I) && cast<AtomicCmpXchgInst>(I).isVolatile()) ||
 3701       (isa<AtomicRMWInst>(I) && cast<AtomicRMWInst>(I).isVolatile()))
 3719   if (isa<BranchInst>(I) && cast<BranchInst>(I).isConditional()) {
 3728   } else if (isa<SwitchInst>(I)) {
 3743   } else if (isa<IndirectBrInst>(I)) {
 3822   } else if (isa<ReturnInst>(I) && !Operand) {
 3997   } else if (isa<CastInst>(I)) {
 4004   } else if (isa<VAArgInst>(I)) {
 4029     if (isa<SelectInst>(I) || isa<StoreInst>(I) || isa<ShuffleVectorInst>(I)
 4029     if (isa<SelectInst>(I) || isa<StoreInst>(I) || isa<ShuffleVectorInst>(I)
 4029     if (isa<SelectInst>(I) || isa<StoreInst>(I) || isa<ShuffleVectorInst>(I)
 4030         || isa<ReturnInst>(I)) {
 4275             if (isa<MDNode>(V->getMetadata()))
 4284   else if (isa<Function>(this) || isa<MetadataAsValue>(this))
 4284   else if (isa<Function>(this) || isa<MetadataAsValue>(this))
 4325   } else if (isa<InlineAsm>(this) || isa<Argument>(this)) {
 4325   } else if (isa<InlineAsm>(this) || isa<Argument>(this)) {
 4337   if (V.hasName() || isa<GlobalValue>(V) ||
 4338       (!isa<Constant>(V) && !isa<MetadataAsValue>(V))) {
 4338       (!isa<Constant>(V) && !isa<MetadataAsValue>(V))) {
 4367       M, /* ShouldInitializeAllMetadata */ isa<MetadataAsValue>(this));
 4392   if (OnlyAsOperand || !N || isa<DIExpression>(MD))
 4400   ModuleSlotTracker MST(M, isa<MDNode>(this));
 4411   ModuleSlotTracker MST(M, isa<MDNode>(this));
lib/IR/AutoUpgrade.cpp
 1807           (!isa<ConstantInt>(CI->getArgOperand(3)) ||
 2100                (!isa<ConstantInt>(CI->getArgOperand(3)) ||
 3110       if (!isa<ConstantInt>(CI->getArgOperand(4)) ||
 3167           (!isa<ConstantInt>(CI->getArgOperand(4)) ||
 3222           (!isa<ConstantInt>(CI->getArgOperand(4)) ||
 3745   if (isa<MDNode>(MD.getOperand(0)) && MD.getNumOperands() >= 3)
lib/IR/BasicBlock.cpp
   96     return !isa<DbgInfoIntrinsic>(I);
  105     return !isa<DbgInfoIntrinsic>(I);
  198     if (!isa<PHINode>(I))
  205     if (!isa<PHINode>(I) && !isa<DbgInfoIntrinsic>(I))
  205     if (!isa<PHINode>(I) && !isa<DbgInfoIntrinsic>(I))
  212     if (isa<PHINode>(I) || isa<DbgInfoIntrinsic>(I))
  212     if (isa<PHINode>(I) || isa<DbgInfoIntrinsic>(I))
  380   if (isa<LandingPadInst>(FirstNonPHI))
  471   return isa<LandingPadInst>(getFirstNonPHI());
  493   while (isa<DbgInfoIntrinsic>(It))
lib/IR/ConstantFold.cpp
  145       if (isa<ConstantAggregateZero>(V))
  155     if (isa<ConstantInt>(V) || isa<ConstantFP>(V))
  155     if (isa<ConstantInt>(V) || isa<ConstantFP>(V))
  161   if (isa<ConstantPointerNull>(V))  // ptr->ptr cast.
  523   if (isa<UndefValue>(V)) {
  572   if ((isa<ConstantVector>(V) || isa<ConstantDataVector>(V)) &&
  572   if ((isa<ConstantVector>(V) || isa<ConstantDataVector>(V)) &&
  652           bool isOne = isa<ConstantInt>(Idx) && cast<ConstantInt>(Idx)->isOne();
  752       } else if (isa<UndefValue>(Cond)) {
  753         V = isa<UndefValue>(V1Element) ? V1Element : V2Element;
  755         if (!isa<ConstantInt>(Cond)) break;
  766   if (isa<UndefValue>(Cond)) {
  767     if (isa<UndefValue>(V1)) return V1;
  770   if (isa<UndefValue>(V1)) return V2;
  771   if (isa<UndefValue>(V2)) return V1;
  792   if (isa<UndefValue>(Val) || isa<UndefValue>(Idx))
  792   if (isa<UndefValue>(Val) || isa<UndefValue>(Idx))
  830   if (isa<UndefValue>(Idx))
  864   if (isa<UndefValue>(Mask))
  868   if (isa<ConstantExpr>(Mask)) return nullptr;
  945   bool HasScalarUndef = !C->getType()->isVectorTy() && isa<UndefValue>(C);
  959   assert(!isa<ConstantInt>(C) && "Unexpected Integer UnaryOp");
  993                         (isa<UndefValue>(C1) || isa<UndefValue>(C2));
  993                         (isa<UndefValue>(C1) || isa<UndefValue>(C2));
  997       if (isa<UndefValue>(C1) && isa<UndefValue>(C2))
  997       if (isa<UndefValue>(C1) && isa<UndefValue>(C2))
 1006       if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef & undef -> undef
 1006       if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef & undef -> undef
 1011       if (isa<UndefValue>(C1) && isa<UndefValue>(C2))
 1011       if (isa<UndefValue>(C1) && isa<UndefValue>(C2))
 1025       if (isa<UndefValue>(C2))
 1044       if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef | undef -> undef
 1044       if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef | undef -> undef
 1049       if (isa<UndefValue>(C2))
 1058       if (isa<UndefValue>(C2))
 1068       if (isa<UndefValue>(C2))
 1081       if (isa<UndefValue>(C1) && isa<UndefValue>(C2))
 1081       if (isa<UndefValue>(C1) && isa<UndefValue>(C2))
 1145             isa<GlobalValue>(CE1->getOperand(0))) {
 1162             if (!GVAlign && isa<Function>(GV))
 1164           } else if (isa<Function>(GV)) {
 1213   } else if (isa<ConstantInt>(C1)) {
 1335       if (!isa<ConstantExpr>(T) || cast<ConstantExpr>(T)->getOpcode() != Opcode)
 1338   } else if (isa<ConstantExpr>(C2)) {
 1407   if (!isa<ConstantInt>(C1) || !isa<ConstantInt>(C2))
 1407   if (!isa<ConstantInt>(C1) || !isa<ConstantInt>(C2))
 1454   if (!isa<ConstantExpr>(V1)) {
 1455     if (!isa<ConstantExpr>(V2)) {
 1517   if (!isa<GlobalAlias>(GV1) && !isa<GlobalAlias>(GV2))
 1517   if (!isa<GlobalAlias>(GV1) && !isa<GlobalAlias>(GV2))
 1541   if (!isa<ConstantExpr>(V1) && !isa<GlobalValue>(V1) &&
 1541   if (!isa<ConstantExpr>(V1) && !isa<GlobalValue>(V1) &&
 1542       !isa<BlockAddress>(V1)) {
 1543     if (!isa<GlobalValue>(V2) && !isa<ConstantExpr>(V2) &&
 1543     if (!isa<GlobalValue>(V2) && !isa<ConstantExpr>(V2) &&
 1544         !isa<BlockAddress>(V2)) {
 1572     if (isa<ConstantExpr>(V2)) {  // Swap as necessary.
 1585     } else if (isa<BlockAddress>(V2)) {
 1588       assert(isa<ConstantPointerNull>(V2) && "Canonicalization guarantee!");
 1594       if (!GV->hasExternalWeakLinkage() && !isa<GlobalAlias>(GV) &&
 1600     if (isa<ConstantExpr>(V2)) {  // Swap as necessary.
 1619       assert((isa<ConstantPointerNull>(V2) || isa<GlobalValue>(V2)) &&
 1619       assert((isa<ConstantPointerNull>(V2) || isa<GlobalValue>(V2)) &&
 1661       if (isa<ConstantPointerNull>(V2)) {
 1673         } else if (isa<ConstantPointerNull>(CE1Op0)) {
 1685         if (isa<ConstantPointerNull>(CE1Op0)) {
 1721           if (isa<GlobalValue>(CE1Op0) && isa<GlobalValue>(CE2Op0)) {
 1721           if (isa<GlobalValue>(CE1Op0) && isa<GlobalValue>(CE2Op0)) {
 1758                 if (isa<ConstantInt>(CE1->getOperand(i)))
 1766                 if (isa<ConstantInt>(CE2->getOperand(i)))
 1802   if (isa<UndefValue>(C1) || isa<UndefValue>(C2)) {
 1802   if (isa<UndefValue>(C1) || isa<UndefValue>(C2)) {
 1825       if (!isa<GlobalAlias>(GV) && !GV->hasExternalWeakLinkage() &&
 1837       if (!isa<GlobalAlias>(GV) && !GV->hasExternalWeakLinkage() &&
 1851       if (isa<ConstantInt>(C2))
 1861   if (isa<ConstantInt>(C1) && isa<ConstantInt>(C2)) {
 1861   if (isa<ConstantInt>(C1) && isa<ConstantInt>(C2)) {
 1877   } else if (isa<ConstantFP>(C1) && isa<ConstantFP>(C2)) {
 1877   } else if (isa<ConstantFP>(C1) && isa<ConstantFP>(C2)) {
 1941       (isa<ConstantExpr>(C1) || isa<ConstantExpr>(C2))) {
 1941       (isa<ConstantExpr>(C1) || isa<ConstantExpr>(C2))) {
 2108     if ((!isa<ConstantExpr>(C1) && isa<ConstantExpr>(C2)) ||
 2108     if ((!isa<ConstantExpr>(C1) && isa<ConstantExpr>(C2)) ||
 2173   if (isa<UndefValue>(C))
 2177   if (Idxs.size() == 1 && (Idx0->isNullValue() || isa<UndefValue>(Idx0)))
 2186       if (!isa<UndefValue>(Idxs[i]) &&
 2336       !isa<ConstantInt>(Idxs[0]) && !isa<ConstantDataVector>(Idxs[0]);
 2336       !isa<ConstantInt>(Idxs[0]) && !isa<ConstantDataVector>(Idxs[0]);
 2339     if (!isa<ConstantInt>(Idxs[i]) && !isa<ConstantDataVector>(Idxs[i])) {
 2339     if (!isa<ConstantInt>(Idxs[i]) && !isa<ConstantDataVector>(Idxs[i])) {
 2344     if (!isa<ConstantInt>(Idxs[i - 1]) && !isa<ConstantDataVector>(Idxs[i - 1]))
 2344     if (!isa<ConstantInt>(Idxs[i - 1]) && !isa<ConstantDataVector>(Idxs[i - 1]))
 2353     if (isa<StructType>(Ty)) {
 2358     if (isa<VectorType>(STy)) {
 2388     if (isa<StructType>(Prev)) {
lib/IR/Constants.cpp
   96   return isa<ConstantAggregateZero>(this) || isa<ConstantPointerNull>(this) ||
   96   return isa<ConstantAggregateZero>(this) || isa<ConstantPointerNull>(this) ||
   97          isa<ConstantTokenNone>(this);
  272     if (isa<UndefValue>(getAggregateElement(i)))
  282     if (isa<ConstantExpr>(getAggregateElement(i)))
  376   assert(isa<IntegerType>(Elt->getType()) && "Index must be an integer");
  409     if (!isa<Constant>(V)) {
  415     assert(isa<Constant>(V) && "References remain to Constant being destroyed");
  451     if (!isa<ConstantInt>(CE->getOperand(1)) ||CE->getOperand(1)->isNullValue())
  504     if (!UC || isa<GlobalValue>(UC))
  514   if (isa<GlobalValue>(this))
  533         if (isa<BlockAddress>(LHSOp0) && isa<BlockAddress>(RHSOp0) &&
  533         if (isa<BlockAddress>(LHSOp0) && isa<BlockAddress>(RHSOp0) &&
  557   if (isa<GlobalValue>(C)) return false; // Cannot remove this
  877   if (isa<SequentialType>(getType()))
  883   if (isa<SequentialType>(getType()))
  910   if (isa<SequentialType>(getType()))
  916   if (isa<SequentialType>(getType()))
 1034   if (isa<UndefValue>(C) && rangeOnlyContains(V.begin(), V.end(), C))
 1084     isUndef = isa<UndefValue>(V[0]);
 1090         if (!isa<UndefValue>(V[i]))
 1125   bool isUndef = isa<UndefValue>(C);
 1153   if ((isa<ConstantFP>(V) || isa<ConstantInt>(V)) &&
 1153   if ((isa<ConstantFP>(V) || isa<ConstantInt>(V)) &&
 1193     if (isa<UndefValue>(*OI))
 1401   if (isa<ConstantAggregateZero>(this))
 1425   assert(C && isa<ConstantInt>(C) && "Not a vector of numbers!");
 1784   assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy));
 1784   assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy));
 1785   if (isa<VectorType>(C->getType()))
 1797   assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy));
 1797   assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy));
 1798   if (isa<VectorType>(C->getType()))
 2511   if (isa<ArrayType>(Ty))
 2514   assert(isa<VectorType>(Ty));
 2693   assert(isa<IntegerType>(getElementType()) &&
 2713   assert(isa<IntegerType>(getElementType()) &&
 2782   return isa<ArrayType>(getType()) && getElementType()->isIntegerTy(CharSize);
 2857   assert(isa<Constant>(To) && "Cannot make Constant refer to non-constant!");
 2885   if (AllSame && isa<UndefValue>(ToC))
 2898   assert(isa<Constant>(To) && "Cannot make Constant refer to non-constant!");
 2925   if (AllSame && isa<UndefValue>(ToC))
 2934   assert(isa<Constant>(To) && "Cannot make Constant refer to non-constant!");
 2960   assert(isa<Constant>(ToV) && "Cannot make Constant refer to non-constant!");
 3037     if (isa<OverflowingBinaryOperator>(BO)) {
 3043     if (isa<PossiblyExactOperator>(BO))
lib/IR/ConstantsContext.h
  196     return isa<ConstantExpr>(V) && classof(cast<ConstantExpr>(V));
  228     return isa<ConstantExpr>(V) && classof(cast<ConstantExpr>(V));
  261     return isa<ConstantExpr>(V) && classof(cast<ConstantExpr>(V));
  291     return isa<ConstantExpr>(V) && classof(cast<ConstantExpr>(V));
lib/IR/Core.cpp
  876   assert((isa<MDNode>(MD) || isa<ConstantAsMetadata>(MD)) &&
  876   assert((isa<MDNode>(MD) || isa<ConstantAsMetadata>(MD)) &&
  934     if (isa<MDNode>(MD->getMetadata()) ||
  935         isa<ValueAsMetadata>(MD->getMetadata()))
  942     if (isa<MDString>(MD->getMetadata()))
 1008   if (isa<MetadataAsValue>(V))
 1029   return isa<Constant>(unwrap(Ty));
 1039   return isa<UndefValue>(unwrap(Val));
 1082       assert(!isa<LocalAsMetadata>(MD) && "Unexpected function-local metadata "
 1125   if (isa<ValueAsMetadata>(MD->getMetadata()))
 2567   return isa<BasicBlock>(unwrap(Val));
lib/IR/DIBuilder.cpp
  132   if (!N || isa<DICompileUnit>(N))
  407   assert((!Context || isa<DICompileUnit>(Context)) && "Expected compile unit");
  415   assert((!Context || isa<DICompileUnit>(Context)) && "Expected compile unit");
  448   assert((!Context || isa<DIScope>(Context)) &&
  565   assert((isa<DIType>(T) || (isa<DISubprogram>(T) &&
  565   assert((isa<DIType>(T) || (isa<DISubprogram>(T) &&
  614     if (Elements[i] && isa<MDNode>(Elements[i]))
lib/IR/DebugInfo.cpp
  286         return isa<DILocation>(Op.get());
  293         return !isa<DILocation>(Op.get());
  303     if (!isa<DILocation>(*Op))
  324       if (isa<DbgInfoIntrinsic>(&I)) {
  528       if (isa<DISubroutineType>(N))
  532       if (isa<DIFile>(N))
  542       if (isa<DINode>(N))
  584             !isa<DICompileUnit>(MDN))
lib/IR/DebugInfoMetadata.cpp
  112   if (!S || !isa<DILocalScope>(S))
  231   assert((isa<DIFile>(this) || isa<DICompileUnit>(this)) &&
  231   assert((isa<DIFile>(this) || isa<DICompileUnit>(this)) &&
  247   assert((isa<DILexicalBlockBase>(this) || isa<DIFile>(this) ||
  247   assert((isa<DILexicalBlockBase>(this) || isa<DIFile>(this) ||
  248           isa<DICompileUnit>(this)) &&
lib/IR/DiagnosticInfo.cpp
  174   if (isa<llvm::Argument>(V) || isa<GlobalValue>(V))
  174   if (isa<llvm::Argument>(V) || isa<GlobalValue>(V))
  176   else if (isa<Constant>(V)) {
lib/IR/Dominators.cpp
  136   if (isa<InvokeInst>(Def) || isa<PHINode>(User))
  136   if (isa<InvokeInst>(Def) || isa<PHINode>(User))
  288   if (isa<PHINode>(UserInst))
lib/IR/Function.cpp
 1189         case IITDescriptor::AK_AnyVector:  return !isa<VectorType>(Ty);
 1190         case IITDescriptor::AK_AnyPointer: return !isa<PointerType>(Ty);
 1229       return !isa<VectorType>(ArgTys[D.getArgumentNumber()]) ||
 1423     if (isa<BlockAddress>(FU))
 1448     if (!isa<BlockAddress>(U))
lib/IR/Globals.cpp
  183   if (isa<GlobalIFunc>(this))
  241   assert(isa<GlobalIndirectSymbol>(this));
lib/IR/IRBuilder.cpp
  401   assert(isa<PointerType>(Ptr->getType()) &&
  417   assert(isa<PointerType>(Ptr->getType()) &&
  434   assert(isa<PointerType>(Ptr->getType()) &&
  608   assert(isa<FunctionType>(FuncPtrType->getElementType()) &&
  659   assert(isa<FunctionType>(FuncPtrType->getElementType()) &&
lib/IR/Instruction.cpp
  150   assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op");
  155   assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op");
  160   assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op");
  165   assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op");
  170   assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op");
  175   assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op");
  180   assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op");
  185   assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op");
  190   assert(isa<FPMathOperator>(this) && "copying fast-math flag on invalid op");
  195   assert(isa<FPMathOperator>(this) && "getting fast-math flag on invalid op");
  200   assert(isa<FPMathOperator>(this) && "getting fast-math flag on invalid op");
  205   assert(isa<FPMathOperator>(this) && "getting fast-math flag on invalid op");
  210   assert(isa<FPMathOperator>(this) && "getting fast-math flag on invalid op");
  215   assert(isa<FPMathOperator>(this) && "getting fast-math flag on invalid op");
  220   assert(isa<FPMathOperator>(this) && "getting fast-math flag on invalid op");
  225   assert(isa<FPMathOperator>(this) && "getting fast-math flag on invalid op");
  230   assert(isa<FPMathOperator>(this) && "getting fast-math flag on invalid op");
  235   assert(isa<FPMathOperator>(this) && "getting fast-math flag on invalid op");
  245   if (IncludeWrapFlags && isa<OverflowingBinaryOperator>(this)) {
  254     if (isa<PossiblyExactOperator>(this))
  259     if (isa<FPMathOperator>(this))
  269     if (isa<OverflowingBinaryOperator>(this)) {
  276     if (isa<PossiblyExactOperator>(this))
  280     if (isa<FPMathOperator>(this)) {
  599   return isa<ResumeInst>(this);
  603   return (!isa<CallInst>(this) || !this->mayHaveSideEffects()) &&
  617     if (!isa<DbgInfoIntrinsic>(I))
  624     if (!isa<DbgInfoIntrinsic>(I))
  694       !isa<MDString>(ProfileData->getOperand(0)))
  748   assert(isa<CallBase>(this) &&
lib/IR/Instructions.cpp
  180     if (Incoming != this && !isa<UndefValue>(Incoming)) {
  268   if (isa<Function>(V) || isa<Constant>(V))
  268   if (isa<Function>(V) || isa<Constant>(V))
 1202     assert(!isa<BasicBlock>(Amt) &&
 1272   if (!isa<ConstantInt>(getArraySize())) return false;
 1680     if (!isa<ConstantInt>(getOperand(i)))
 1855   if (isa<UndefValue>(Mask) || isa<ConstantAggregateZero>(Mask))
 1855   if (isa<UndefValue>(Mask) || isa<ConstantAggregateZero>(Mask))
 1864       } else if (!isa<UndefValue>(Op)) {
 1895   if (isa<UndefValue>(C))
 1911     Result.push_back(isa<UndefValue>(C) ? -1 :
 2088   if (isa<UndefValue>(Op<0>()) || isa<UndefValue>(Op<1>()))
 2088   if (isa<UndefValue>(Op<0>()) || isa<UndefValue>(Op<1>()))
 2596   if ((IsFirstBitcast  && isa<VectorType>(SrcTy) != isa<VectorType>(MidTy)) ||
 2596   if ((IsFirstBitcast  && isa<VectorType>(SrcTy) != isa<VectorType>(MidTy)) ||
 2597       (IsSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy)))
 2597       (IsSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy)))
 3235     if (isa<VectorType>(SrcTy) != isa<VectorType>(DstTy))
 3235     if (isa<VectorType>(SrcTy) != isa<VectorType>(DstTy))
 3242     if (isa<VectorType>(SrcTy) != isa<VectorType>(DstTy))
 3242     if (isa<VectorType>(SrcTy) != isa<VectorType>(DstTy))
lib/IR/IntrinsicInst.cpp
  110   if (!MD || !isa<MDString>(MD))
  156   if (!MD || !isa<MDString>(MD))
lib/IR/LegacyPassManager.cpp
  305   if (isa<Function>(V))
  307   else if (isa<BasicBlock>(V))
lib/IR/MDBuilder.cpp
  284   bool NewFormat = isa<MDNode>(AccessType->getOperand(0));
lib/IR/Metadata.cpp
  186   assert(!isa<DistinctMDOperandPlaceholder>(MD) &&
  354     assert((isa<Constant>(V) || isa<Argument>(V) || isa<Instruction>(V)) &&
  354     assert((isa<Constant>(V) || isa<Argument>(V) || isa<Instruction>(V)) &&
  354     assert((isa<Constant>(V) || isa<Argument>(V) || isa<Instruction>(V)) &&
  413   if (isa<LocalAsMetadata>(MD)) {
  427   } else if (!isa<Constant>(To)) {
  715   if (New == this || (!New && Old && isa<ConstantAsMetadata>(Old))) {
lib/IR/Module.cpp
  358          isa<MDString>(Node->getOperand(1)) &&
lib/IR/ModuleSummaryIndex.cpp
  117     assert(VI.getAccessSpecifier() == 0 || isa<FunctionSummary>(S));
  325   if (isa<AliasSummary>(GVS))
  430       if (isa<FunctionSummary>(SummaryIt.second)) {
  432       } else if (isa<AliasSummary>(SummaryIt.second)) {
lib/IR/SafepointIRVerifier.cpp
  142       if (!BI || !BI->isConditional() || !isa<Constant>(BI->getCondition()))
  361     if (isa<Constant>(V)) {
  691     } else if ((isa<GetElementPtrInst>(I) || isa<BitCastInst>(I)) &&
  691     } else if ((isa<GetElementPtrInst>(I) || isa<BitCastInst>(I)) &&
  809   } else if (isa<CmpInst>(I) &&
lib/IR/Statepoint.cpp
   37   return isa<GCRelocateInst>(Call);
   46 bool llvm::isGCResult(const CallBase *Call) { return isa<GCResultInst>(Call); }
lib/IR/TypeFinder.cpp
   68           if (&*O && !isa<Instruction>(&*O))
  129   if (!isa<Constant>(V) || isa<GlobalValue>(V)) return;
  129   if (!isa<Constant>(V) || isa<GlobalValue>(V)) return;
  139   if (isa<Instruction>(V))
lib/IR/User.cpp
   23   assert((!isa<Constant>(this) || isa<GlobalValue>(this)) &&
   23   assert((!isa<Constant>(this) || isa<GlobalValue>(this)) &&
lib/IR/Value.cpp
  180     assert(isa<Constant>(V) && "Unknown value type!");
  225   if (getContext().shouldDiscardValueNames() && !isa<GlobalValue>(this))
  242   if (NameRef.size() > NonGlobalValueMaxNameSize && !isa<GlobalValue>(this))
  416       if (!isa<GlobalValue>(C)) {
  502     } else if (StripKind == PSK_ZeroIndicesAndAliases && isa<GlobalAlias>(V)) {
  677     if (isa<Function>(GO)) {
lib/IR/Verifier.cpp
  148     if (isa<Instruction>(V)) {
  570   Assert(!GV.hasAppendingLinkage() || isa<GlobalVariable>(GV),
  678           Assert(isa<GlobalVariable>(V) || isa<Function>(V) ||
  678           Assert(isa<GlobalVariable>(V) || isa<Function>(V) ||
  679                      isa<GlobalAlias>(V),
  762   Assert(isa<GlobalValue>(Aliasee) || isa<ConstantExpr>(Aliasee),
  762   Assert(isa<GlobalValue>(Aliasee) || isa<ConstantExpr>(Aliasee),
  779       AssertDI(MD && isa<DICompileUnit>(MD), "invalid compile unit", &NMD, MD);
  809     Assert(!isa<LocalAsMetadata>(Op), "Invalid operand for global metadata!",
  868 static bool isType(const Metadata *MD) { return !MD || isa<DIType>(MD); }
  869 static bool isScope(const Metadata *MD) { return !MD || isa<DIScope>(MD); }
  870 static bool isDINode(const Metadata *MD) { return !MD || isa<DINode>(MD); }
  873   AssertDI(N.getRawScope() && isa<DILocalScope>(N.getRawScope()),
  876     AssertDI(isa<DILocation>(IA), "inlined-at should be a location", &N, IA);
  887     AssertDI(isa<DIFile>(F), "invalid file", &N, F);
  959     AssertDI(Op && isa<DITemplateParameter>(Op), "invalid template parameter",
  980   AssertDI(!N.getRawElements() || isa<MDTuple>(N.getRawElements()),
 1007     AssertDI(isa<DIDerivedType>(D) && N.getTag() == dwarf::DW_TAG_variant_part,
 1015     AssertDI(isa<MDTuple>(Types), "invalid composite elements", &N, Types);
 1051   AssertDI(N.getRawFile() && isa<DIFile>(N.getRawFile()), "invalid file", &N,
 1062     AssertDI(isa<MDTuple>(Array), "invalid enum list", &N, Array);
 1070     AssertDI(isa<MDTuple>(Array), "invalid retained type list", &N, Array);
 1072       AssertDI(Op && (isa<DIType>(Op) ||
 1073                       (isa<DISubprogram>(Op) &&
 1079     AssertDI(isa<MDTuple>(Array), "invalid global variable list", &N, Array);
 1081       AssertDI(Op && (isa<DIGlobalVariableExpression>(Op)),
 1086     AssertDI(isa<MDTuple>(Array), "invalid imported entity list", &N, Array);
 1088       AssertDI(Op && isa<DIImportedEntity>(Op), "invalid imported entity ref",
 1093     AssertDI(isa<MDTuple>(Array), "invalid macro list", &N, Array);
 1095       AssertDI(Op && isa<DIMacroNode>(Op), "invalid macro ref", &N, Op);
 1105     AssertDI(isa<DIFile>(F), "invalid file", &N, F);
 1109     AssertDI(isa<DISubroutineType>(T), "invalid subroutine type", &N, T);
 1115     AssertDI(isa<DISubprogram>(S) && !cast<DISubprogram>(S)->isDefinition(),
 1121       AssertDI(Op && (isa<DILocalVariable>(Op) || isa<DILabel>(Op)),
 1121       AssertDI(Op && (isa<DILocalVariable>(Op) || isa<DILabel>(Op)),
 1134     AssertDI(isa<DICompileUnit>(Unit), "invalid unit type", &N, Unit);
 1146       AssertDI(Op && isa<DIType>(Op), "invalid thrown type", &N, ThrownTypes,
 1157   AssertDI(N.getRawScope() && isa<DILocalScope>(N.getRawScope()),
 1177     AssertDI(isa<DIScope>(S), "invalid scope ref", &N, S);
 1179     AssertDI(isa<DIGlobalVariable>(S), "invalid declaration", &N, S);
 1185     AssertDI(isa<DIScope>(S), "invalid scope ref", &N, S);
 1202     AssertDI(isa<DIFile>(F), "invalid file", &N, F);
 1205     AssertDI(isa<MDTuple>(Array), "invalid macro list", &N, Array);
 1207       AssertDI(Op && isa<DIMacroNode>(Op), "invalid macro ref", &N, Op);
 1240     AssertDI(isa<DIScope>(S), "invalid scope", &N, S);
 1242     AssertDI(isa<DIFile>(F), "invalid file", &N, F);
 1253     AssertDI(isa<DIDerivedType>(Member),
 1264   AssertDI(N.getRawScope() && isa<DILocalScope>(N.getRawScope()),
 1267     AssertDI(!isa<DISubroutineType>(Ty), "invalid type", &N, N.getType());
 1272     AssertDI(isa<DIScope>(S), "invalid scope", &N, S);
 1274     AssertDI(isa<DIFile>(F), "invalid file", &N, F);
 1277   AssertDI(N.getRawScope() && isa<DILocalScope>(N.getRawScope()),
 1302     AssertDI(isa<DIFile>(F), "invalid file", &N, F);
 1310     AssertDI(isa<DIScope>(S), "invalid scope for imported entity", &N, S);
 1434     Assert(isa<MDString>(Value->getOperand(0)),
 1448     Assert(isa<MDNode>(Op->getOperand(2)),
 1488     Assert(F && isa<Function>(F->getValue()), "expected a Function or null",
 1670     if (!isa<PointerType>(PTy->getElementType()))
 1858       Assert(isa<MDString>(MD->getOperand(0)),
 1871       Assert(isa<ConstantAsMetadata>(MD->getOperand(1)),
 2009   Assert(isa<ConstantInt>(NumTransitionArgsV),
 2020   Assert(isa<ConstantInt>(NumDeoptArgsV),
 2043     Assert(isa<GCRelocateInst>(UserCall) || isa<GCResultInst>(UserCall),
 2043     Assert(isa<GCRelocateInst>(UserCall) || isa<GCResultInst>(UserCall),
 2047     if (isa<GCResultInst>(UserCall)) {
 2050     } else if (isa<GCRelocateInst>(Call)) {
 2290         AssertDI(isa<DISubprogram>(I.second),
 2342     AssertDI(Parent && isa<DILocalScope>(Parent),
 2383   if (isa<PHINode>(BB.front())) {
 2501     Assert(i >= CBI.getNumArgOperands() || !isa<BasicBlock>(CBI.getOperand(i)),
 2503     if (isa<BasicBlock>(CBI.getOperand(i)))
 2799              isa<PHINode>(--BasicBlock::iterator(&PN)),
 2906       Assert(isa<ConstantInt>(ArgVal) || isa<ConstantFP>(ArgVal),
 2906       Assert(isa<ConstantInt>(ArgVal) || isa<ConstantFP>(ArgVal),
 2997       Assert(isa<FuncletPadInst>(BU.Inputs.front()),
 3276   Assert(isa<PointerType>(TargetTy),
 3447     Assert(isa<LoadInst>(U) || isa<StoreInst>(U) || isa<CallInst>(U) ||
 3447     Assert(isa<LoadInst>(U) || isa<StoreInst>(U) || isa<CallInst>(U) ||
 3447     Assert(isa<LoadInst>(U) || isa<StoreInst>(U) || isa<CallInst>(U) ||
 3448            isa<InvokeInst>(U),
 3651       Assert(!isa<ConstantTokenNone>(FromPad),
 3688       Assert(isa<PointerType>(Clause->getType()),
 3692       Assert(isa<ConstantArray>(Clause) || isa<ConstantAggregateZero>(Clause),
 3692       Assert(isa<ConstantArray>(Clause) || isa<ConstantAggregateZero>(Clause),
 3722   Assert(isa<CatchSwitchInst>(CPI.getParentPad()),
 3736   Assert(isa<CatchPadInst>(CatchReturn.getOperand(0)),
 3757   Assert(isa<ConstantTokenNone>(ParentPad) || isa<FuncletPadInst>(ParentPad),
 3757   Assert(isa<ConstantTokenNone>(ParentPad) || isa<FuncletPadInst>(ParentPad),
 3789       } else if (isa<CallInst>(U)) {
 3801         Assert(isa<CatchReturnInst>(U), "Bogus funclet pad use", U);
 3839         } while (!isa<ConstantTokenNone>(ExitedPad));
 3859           if (isa<CleanupPadInst>(&FPI) && !isa<ConstantTokenNone>(UnwindPad) &&
 3859           if (isa<CleanupPadInst>(&FPI) && !isa<ConstantTokenNone>(UnwindPad) &&
 3938   Assert(isa<ConstantTokenNone>(ParentPad) || isa<FuncletPadInst>(ParentPad),
 3938   Assert(isa<ConstantTokenNone>(ParentPad) || isa<FuncletPadInst>(ParentPad),
 3943     Assert(I->isEHPad() && !isa<LandingPadInst>(I),
 3957     Assert(isa<CatchPadInst>(Handler->getFirstNonPHI()),
 3966   Assert(isa<CleanupPadInst>(CRI.getOperand(0)),
 3972     Assert(I->isEHPad() && !isa<LandingPadInst>(I),
 3998   if (!isa<PHINode>(I) && InstsInThisBlock.count(Op))
 4009   Assert((isa<LoadInst>(I) || isa<IntToPtrInst>(I)),
 4009   Assert((isa<LoadInst>(I) || isa<IntToPtrInst>(I)),
 4025   Assert(isa<MDString>(MD->getOperand(0)),
 4037     else if (isa<CallInst>(&I) || isa<InvokeInst>(&I))
 4037     else if (isa<CallInst>(&I) || isa<InvokeInst>(&I))
 4041     else if (isa<SelectInst>(&I))
 4064   if (!isa<PHINode>(I)) {   // Check that non-phi nodes are not self referential
 4082   Assert(!I.getType()->isMetadataTy() || isa<CallInst>(I) || isa<InvokeInst>(I),
 4082   Assert(!I.getType()->isMetadataTy() || isa<CallInst>(I) || isa<InvokeInst>(I),
 4120           !F->isIntrinsic() || isa<CallInst>(I) ||
 4142     } else if (isa<Instruction>(I.getOperand(i))) {
 4144     } else if (isa<InlineAsm>(I.getOperand(i))) {
 4176     Assert(isa<LoadInst>(I) || isa<CallInst>(I) || isa<InvokeInst>(I),
 4176     Assert(isa<LoadInst>(I) || isa<CallInst>(I) || isa<InvokeInst>(I),
 4176     Assert(isa<LoadInst>(I) || isa<CallInst>(I) || isa<InvokeInst>(I),
 4184     Assert(isa<LoadInst>(I),
 4202     Assert(isa<LoadInst>(I), "align applies only to load instructions, "
 4219     AssertDI(isa<DILocation>(N), "invalid !dbg metadata attachment", &I, N);
 4288     if (isa<ConstantPointerNull>(InfoArg))
 4295     Assert(isa<ConstantStruct>(Init) || isa<ConstantArray>(Init),
 4295     Assert(isa<ConstantStruct>(Init) || isa<ConstantArray>(Init),
 4335     Assert(isa<MetadataAsValue>(Call.getArgOperand(0)),
 4408       Assert(isa<Constant>(Call.getArgOperand(1)),
 4411         Assert(!isa<ConstantPointerNull>(Call.getArgOperand(1)),
 4422     Assert(isa<Function>(Call.getArgOperand(1)->stripPointerCasts()),
 4432     Assert(isa<AllocaInst>(Call.getArgOperand(1)->stripPointerCasts()),
 4442       if (isa<ConstantPointerNull>(Arg))
 4499     Assert(isa<PointerType>(Call.getType()->getScalarType()),
 4524       Assert(isa<Instruction>(Token) && isStatepoint(cast<Instruction>(Token)),
 4534     Assert(isa<ConstantInt>(Base),
 4538     Assert(isa<ConstantInt>(Derived),
 4553     Assert(isa<ConstantInt>(StatepointCall.getArgOperand(3)),
 4559     Assert(isa<ConstantInt>(StatepointCall.getArgOperand(NumCallArgs + 5)),
 4566     Assert(isa<ConstantInt>(StatepointCall.getArgOperand(DeoptArgsStart)),
 4605     Assert(isa<CatchPadInst>(Call.getArgOperand(0)),
 4654     Assert(isa<CallInst>(Call), "experimental_guard cannot be invoked", Call);
 4662     Assert(isa<CallInst>(Call), "experimental_deoptimize cannot be invoked",
 4670     if (isa<CallInst>(Call)) {
 4753   assert(!isa<DILocalScope>(LocalScope) && "Unknown type of local scope");
 4918   AssertDI(isa<ValueAsMetadata>(MD) ||
 4919              (isa<MDNode>(MD) && !cast<MDNode>(MD)->getNumOperands()),
 4921   AssertDI(isa<DILocalVariable>(DII.getRawVariable()),
 4924   AssertDI(isa<DIExpression>(DII.getRawExpression()),
 4930     if (!isa<DILocation>(N))
 4959   AssertDI(isa<DILabel>(DLI.getRawLabel()),
 4965     if (!isa<DILocation>(N))
 5260   if (!IsNewFormat && !isa<MDString>(BaseNode->getOperand(0))) {
 5279     if (!isa<MDNode>(FieldTy)) {
 5343   if (!isa<MDString>(MD->getOperand(0)))
 5348     if (!(Offset && Offset->isZero() && isa<MDString>(MD->getOperand(0))))
 5429   AssertTBAA(isa<LoadInst>(I) || isa<StoreInst>(I) || isa<CallInst>(I) ||
 5429   AssertTBAA(isa<LoadInst>(I) || isa<StoreInst>(I) || isa<CallInst>(I) ||
 5429   AssertTBAA(isa<LoadInst>(I) || isa<StoreInst>(I) || isa<CallInst>(I) ||
 5430                  isa<VAArgInst>(I) || isa<AtomicRMWInst>(I) ||
 5430                  isa<VAArgInst>(I) || isa<AtomicRMWInst>(I) ||
 5431                  isa<AtomicCmpXchgInst>(I),
 5435       isa<MDNode>(MD->getOperand(0)) && MD->getNumOperands() >= 3;
lib/LTO/LTO.cpp
  341     else if (!isa<AliasSummary>(S.get()) &&
  733       } else if (isa<GlobalObject>(GV) &&
lib/LTO/LTOModule.cpp
  455   if (isa<GlobalAlias>(def))
  604     if (isa<GlobalVariable>(GV)) {
  609     assert(isa<GlobalAlias>(GV));
lib/LTO/UpdateCompilerUsed.cpp
  104     if (isa<GlobalAlias>(GV)) {
  108     if ((isa<Function>(GV) || FuncAliasee) && Libcalls.count(GV.getName())) {
lib/Linker/IRMover.cpp
  163   if (isa<IntegerType>(DstTy))
  240   bool IsUniqued = !isa<StructType>(Ty) || cast<StructType>(Ty)->isLiteral();
  673   if (isa<GlobalAlias>(SGIS))
  715     if (isa<GlobalVariable>(SGV) || SGV->isDeclaration())
 1158       if (isa<DILocalScope>(Scope))
lib/MC/MCAssembler.cpp
  435     assert(isa<MCEncodedFragment>(F) &&
  812       if (isa<MCEncodedFragment>(&Frag) &&
  813           isa<MCCompactEncodedInstFragment>(&Frag))
  815       if (!isa<MCEncodedFragment>(&Frag) && !isa<MCCVDefRangeFragment>(&Frag) &&
  815       if (!isa<MCEncodedFragment>(&Frag) && !isa<MCCVDefRangeFragment>(&Frag) &&
  816           !isa<MCAlignFragment>(&Frag))
lib/MC/MCDwarf.cpp
  296   assert(!isa<MCSymbolRefExpr>(Expr));
lib/MC/MCExpr.cpp
   94     if (isa<MCConstantExpr>(BE.getLHS()) || isa<MCSymbolRefExpr>(BE.getLHS())) {
   94     if (isa<MCConstantExpr>(BE.getLHS()) || isa<MCSymbolRefExpr>(BE.getLHS())) {
  135     if (isa<MCConstantExpr>(BE.getRHS()) || isa<MCSymbolRefExpr>(BE.getRHS())) {
  135     if (isa<MCConstantExpr>(BE.getRHS()) || isa<MCSymbolRefExpr>(BE.getRHS())) {
lib/MC/MCParser/AsmParser.cpp
 1169       bool DoInline = isa<MCConstantExpr>(V) && !Variant;
 6058     else if (!isa<MCConstantExpr>(Sym->getVariableValue()))
lib/Object/ModuleSymbolTable.cpp
  201   if (isa<GlobalAlias>(GV))
lib/ProfileData/Coverage/CoverageMappingReader.cpp
  360   if (isa<COFFObjectFile>(Obj) && !Obj->isRelocatableObject())
  663   bool IsCOFF = isa<COFFObjectFile>(OF);
  689   } else if (isa<ObjectFile>(Bin.get())) {
lib/Support/VirtualFileSystem.cpp
  764       assert((isa<detail::InMemoryFile>(Node) ||
  765               isa<detail::InMemoryHardLink>(Node)) &&
  856   if (!ToNode || FromNode || !isa<detail::InMemoryFile>(*ToNode))
lib/Support/YAMLTraits.cpp
   95     if (isa<NullNode>(N)) {
  168     if (Required || !isa<EmptyHNode>(CurrentNode))
  212   if (isa<EmptyHNode>(CurrentNode))
  358   if (isa<ScalarHNode>(CurrentNode))
  360   else if (isa<MapHNode>(CurrentNode))
  362   else if (isa<SequenceHNode>(CurrentNode))
  418   } else if (isa<NullNode>(N)) {
lib/TableGen/JSONBackend.cpp
   49   if (isa<UnsetInit>(&I)) {
lib/TableGen/Record.cpp
  319   if (isa<BitRecTy>(Ty))
  322   if (isa<IntRecTy>(Ty))
  366   if (isa<BitRecTy>(Ty)) {
  378   if (isa<IntRecTy>(Ty)) {
  448     if (isa<UnsetInit>(NewBit) && R.keepUnsetBits())
  479   if (isa<IntRecTy>(Ty))
  482   if (isa<BitRecTy>(Ty)) {
  543   if (isa<StringRecTy>(Ty))
  545   if (isa<CodeRecTy>(Ty))
  552   if (isa<CodeRecTy>(Ty))
  554   if (isa<StringRecTy>(Ty))
  580   assert(Range.empty() || !isa<TypedInit>(Range[0]) ||
  715     if (isa<StringRecTy>(getType())) {
  724     } else if (isa<RecordRecTy>(getType())) {
  869   assert(isa<ListRecTy>(LHS->getType()) && "First arg must be a list");
 1192     bool MHSok = MHSl || isa<UnsetInit>(MHS);
 1193     bool RHSok = RHSl || isa<UnsetInit>(RHS);
 1195     if (isa<UnsetInit>(MHS) && isa<UnsetInit>(RHS))
 1195     if (isa<UnsetInit>(MHS) && isa<UnsetInit>(RHS))
 1204         if (!isa<StringInit>(Name) && !isa<UnsetInit>(Name))
 1204         if (!isa<StringInit>(Name) && !isa<UnsetInit>(Name))
 1363     if (isa<RecordRecTy>(CheckType)) {
 1367       if (!CheckType->typeIsConvertibleTo(TI->getType()) || isa<DefInit>(Expr))
 1409   if (isa<BitRecTy>(getType()) && isa<BitsRecTy>(Ty) &&
 1409   if (isa<BitRecTy>(getType()) && isa<BitsRecTy>(Ty) &&
 1438     assert(!isa<TypedInit>(Converted) ||
 1548   if (NewTI != TI && isa<TypedInit>(NewTI))
 2000       assert(!isa<TypedInit>(Value) ||
 2003         if (!isa<BitsInit>(Value)) {
 2037   if (!isa<StringRecTy>(TypedName->getType()))
 2288   if (isa<UnsetInit>(R->getValue()))
 2313   if (isa<UnsetInit>(R->getValue())) {
 2400     if (!isa<UnsetInit>(RV->getValue())) {
lib/TableGen/SetTheory.cpp
  318     if (!isa<StringInit>(SCPair.first->getNameInit()))
lib/TableGen/TGParser.cpp
   81     } else if (isa<VarInit>(Bit)) {
  100       bool Ok = isa<BitsInit>(V) ? checkBitsConcrete(R, RV) : V->isConcrete();
  451   if (!isa<StringInit>(Rec->getNameInit())) {
 1156           if (!isa<ListRecTy>(ArgType)) {
 1164             if (!isa<ListRecTy>(ItemType)) {
 1181           if (InitList.size() == 2 && !isa<IntRecTy>(ArgType)) {
 1316       if (ItemType && !isa<DagRecTy>(ItemType)) {
 1428       if (!MHSt && !isa<UnsetInit>(MHS)) {
 1432       if (MHSt && !isa<ListRecTy>(MHSt->getType())) {
 1439       if (!RHSt && !isa<UnsetInit>(RHS)) {
 1464       if (isa<BitInit>(MHS))
 1471       if (isa<BitInit>(RHS))
 1475       if (isa<UnsetInit>(MHS))
 1477       if (isa<UnsetInit>(RHS))
 1726     if (isa<BitInit>(V))
 1730       if (!isa<UnsetInit>(V))
 1733       if (!isa<UnsetInit>(V)) {
 2185       if (isa<ListRecTy>(LHS->getType())) {
 2472     if (TI && isa<ListRecTy>(TI->getType())) {
 2704   if (isa<UnsetInit>(Name))
 2729   if (!isa<ListRecTy>(Type))
 3046   if (isa<UnsetInit>(DefmName)) {
lib/Target/AArch64/AArch64FastISel.cpp
  309   assert((isa<ZExtInst>(I) || isa<SExtInst>(I)) &&
  309   assert((isa<ZExtInst>(I) || isa<SExtInst>(I)) &&
  313   bool IsZExt = isa<ZExtInst>(I);
  685     if (isa<ConstantInt>(LHS))
  801     assert(isa<ConstantInt>(RHS) && "Expected an ConstantInt.");
 1017   if (!isa<Instruction>(V))
 1187   if (UseAdd && isa<Constant>(LHS) && !isa<Constant>(RHS))
 1187   if (UseAdd && isa<Constant>(LHS) && !isa<Constant>(RHS))
 1198       if (isa<ConstantInt>(SI->getOperand(1)))
 1261       assert(isa<ConstantInt>(MulRHS) && "Expected a ConstantInt.");
 1610   if (isa<ConstantInt>(LHS) && !isa<ConstantInt>(RHS))
 1610   if (isa<ConstantInt>(LHS) && !isa<ConstantInt>(RHS))
 1621       if (isa<ConstantInt>(SI->getOperand(1)))
 1647       assert(isa<ConstantInt>(MulRHS) && "Expected a ConstantInt.");
 2301   assert(isa<CmpInst>(BI->getCondition()) && "Expected cmp instruction");
 2332     if (isa<Constant>(LHS) && cast<Constant>(LHS)->isNullValue())
 2335     if (!isa<Constant>(RHS) || !cast<Constant>(RHS)->isNullValue())
 2361     if (!isa<Constant>(RHS) || !cast<Constant>(RHS)->isNullValue())
 2369     if (!isa<ConstantInt>(RHS))
 2710   assert(isa<SelectInst>(I) && "Expected a select instruction.");
 2755   } else if (isa<CmpInst>(Cond) && cast<CmpInst>(Cond)->hasOneUse() &&
 3125       if (isa<UndefValue>(ArgVal))
 3384   if (!isa<ExtractValueInst>(Cond))
 3388   if (!isa<IntrinsicInst>(EV->getAggregateOperand()))
 3406   if (isa<ConstantInt>(LHS) && !isa<ConstantInt>(RHS) &&
 3406   if (isa<ConstantInt>(LHS) && !isa<ConstantInt>(RHS) &&
 3457     if (!isa<ExtractValueInst>(Itr))
 3525     if (isa<ConstantInt>(MTI->getLength()) && IsMemCpy) {
 3549     const char *IntrMemName = isa<MemCpyInst>(II) ? "memcpy" : "memmove";
 3698     if (isa<ConstantInt>(LHS) && !isa<ConstantInt>(RHS) &&
 3698     if (isa<ConstantInt>(LHS) && !isa<ConstantInt>(RHS) &&
 4541   bool IsZExt = isa<ZExtInst>(I);
 4579   assert((isa<ZExtInst>(I) || isa<SExtInst>(I)) &&
 4579   assert((isa<ZExtInst>(I) || isa<SExtInst>(I)) &&
 4599   bool IsZExt = isa<ZExtInst>(I);
 4924   if (!isa<ConstantInt>(I->getOperand(1)))
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
  303   if (!isa<ConstantSDNode>(N.getNode()))
  333   if (!isa<ConstantSDNode>(N.getNode()))
  391     if (!isa<MemSDNode>(*UI))
  393         if (!isa<MemSDNode>(*UII))
  928   if (isa<ConstantSDNode>(LHS) || isa<ConstantSDNode>(RHS))
  928   if (isa<ConstantSDNode>(LHS) || isa<ConstantSDNode>(RHS))
  936     if (!isa<MemSDNode>(*UI))
 1020     if (!isa<MemSDNode>(*UI))
 1035   if (isa<ConstantSDNode>(RHS)) {
 2604         !isa<ConstantPoolSDNode>(LN->getOperand(1)->getOperand(1)))
 2741     assert (isa<ConstantSDNode>(N->getOperand(2))
 2821   if (!(isa<FrameIndexSDNode>(N->getOperand(1)))) {
 2848   assert(isa<ConstantSDNode>(N->getOperand(3)) &&
lib/Target/AArch64/AArch64ISelLowering.cpp
 2038   if (!isa<ConstantSDNode>(RHS) ||
 2050   if ((CC == ISD::SETEQ || CC == ISD::SETNE) && isa<ConstantSDNode>(RHS)) {
 2069     if ((RHSC->getZExtValue() >> 16 == 0) && isa<LoadSDNode>(LHS) &&
 4740             isa<ConstantSDNode>(LHS.getOperand(1)) &&
 4756             isa<ConstantSDNode>(LHS.getOperand(1)) &&
 6291              !isa<ConstantSDNode>(V.getOperand(1))) {
 6952         !isa<ConstantSDNode>(V1.getOperand(Lane)))
 7596     if (!isa<ConstantFPSDNode>(V) && !isa<ConstantSDNode>(V))
 7596     if (!isa<ConstantFPSDNode>(V) && !isa<ConstantSDNode>(V))
 7599     if (isa<ConstantSDNode>(V) || isa<ConstantFPSDNode>(V)) {
 7599     if (isa<ConstantSDNode>(V) || isa<ConstantFPSDNode>(V)) {
 7622   if (isOnlyLowElement && !(NumElts == 1 && isa<ConstantSDNode>(Value))) {
 7637       if (!isa<ConstantSDNode>(N->getOperand(1)))
 7754       if (!isa<ConstantSDNode>(V) && !isa<ConstantFPSDNode>(V))
 7754       if (!isa<ConstantSDNode>(V) && !isa<ConstantFPSDNode>(V))
 8569   if (isa<FPExtInst>(Ext))
 8586       if (!isa<ConstantInt>(Instr->getOperand(1)))
 9224       isa<ConstantSDNode>(N->getOperand(1))) {
 9228       isa<ConstantSDNode>(N->getOperand(0)->getOperand(1)))
 9382   if (!isa<ConstantSDNode>(N->getOperand(1)))
 9577   if (!isa<BuildVectorSDNode>(ConstVec))
 9651   if (!isa<BuildVectorSDNode>(ConstVec))
 9715   if (!isa<ConstantSDNode>(N.getOperand(1)))
10645       isa<ConstantSDNode>(BasePtr->getOperand(1))) {
11366   if (!isa<ConstantSDNode>(AddInputValue2.getNode()) ||
11367       !isa<ConstantSDNode>(SubsInputValue.getNode()))
11412   assert(isa<ConstantSDNode>(CCVal) && "Expected a ConstantSDNode here!");
lib/Target/AArch64/AArch64InstructionSelector.cpp
 3607   if (!isa<ConstantAggregateZero>(Mask))
lib/Target/AArch64/AArch64PromoteConstant.cpp
  261   if (isa<const ShuffleVectorInst>(Instr) && OpIdx == 2)
  265   if (isa<const ExtractValueInst>(Instr) && OpIdx > 0)
  269   if (isa<const InsertValueInst>(Instr) && OpIdx > 1)
  272   if (isa<const AllocaInst>(Instr) && OpIdx > 0)
  276   if (isa<const LoadInst>(Instr) && OpIdx > 0)
  280   if (isa<const StoreInst>(Instr) && OpIdx > 1)
  284   if (isa<const GetElementPtrInst>(Instr) && OpIdx > 0)
  289   if (isa<const LandingPadInst>(Instr))
  293   if (isa<const SwitchInst>(Instr))
  297   if (isa<const IndirectBrInst>(Instr))
  301   if (isa<const IntrinsicInst>(Instr))
  306   return !(CI && isa<const InlineAsm>(CI->getCalledValue()));
  324   if (isa<const UndefValue>(Cst))
  554       if (!Cst || isa<GlobalValue>(Cst) || isa<ConstantExpr>(Cst))
  554       if (!Cst || isa<GlobalValue>(Cst) || isa<ConstantExpr>(Cst))
lib/Target/AArch64/AArch64StackTagging.cpp
  342     if (!isa<DbgInfoIntrinsic>(*BI))
  348     if (!isa<StoreInst>(BI) && !isa<MemSetInst>(BI)) {
  348     if (!isa<StoreInst>(BI) && !isa<MemSetInst>(BI)) {
  373       if (MSI->isVolatile() || !isa<ConstantInt>(MSI->getLength()))
  376       if (!isa<ConstantInt>(MSI->getValue()))
  559       if (isa<ReturnInst>(I) || isa<ResumeInst>(I) || isa<CleanupReturnInst>(I))
  559       if (isa<ReturnInst>(I) || isa<ResumeInst>(I) || isa<CleanupReturnInst>(I))
  559       if (isa<ReturnInst>(I) || isa<ResumeInst>(I) || isa<CleanupReturnInst>(I))
lib/Target/AArch64/AArch64Subtarget.cpp
  240   if (AllowTaggedGlobals && !isa<FunctionType>(GV->getValueType()))
lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  233       (!isa<SExtInst>(Args[1]) && !isa<ZExtInst>(Args[1])) ||
  233       (!isa<SExtInst>(Args[1]) && !isa<ZExtInst>(Args[1])) ||
  411   assert(isa<IntegerType>(Dst) && isa<IntegerType>(Src) && "Invalid type");
  411   assert(isa<IntegerType>(Dst) && isa<IntegerType>(Src) && "Invalid type");
  680   assert(isa<VectorType>(VecTy) && "Expect a vector type");
  872   if (!isa<SExtInst>(&I))
  897   assert(isa<VectorType>(Ty) && "Expected Ty to be a vector type");
lib/Target/AArch64/AArch64TargetTransformInfo.h
  151     if (!isa<VectorType>(DataType) || !ST->hasSVE())
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
  852     if (!isShiftedImm() && (!isImm() || !isa<MCConstantExpr>(getImm())))
  870     if (!isShiftedImm() && (!isImm() || !isa<MCConstantExpr>(getImm())))
 3456   if (getParser().parseExpression(ImmVal) || !isa<MCConstantExpr>(ImmVal) ||
 3685     if (isa<MCConstantExpr>(SubExprVal)) {
lib/Target/AMDGPU/AMDGPUAnnotateUniformValues.cpp
  136     if (isa<Argument>(Ptr) || isa<GlobalValue>(Ptr)) {
  136     if (isa<Argument>(Ptr) || isa<GlobalValue>(Ptr)) {
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
  290     if (GV->hasInitializer() && !isa<UndefValue>(GV->getInitializer())) {
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  224   return isa<ICmpInst>(I.getOperand(0)) ?
  750   if (isa<Constant>(Den))
lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
  122              .Default(isa<PointerType>(Ty) ?
  564       .Default(isa<PointerType>(Ty)
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
  688     if (isa<RegisterSDNode>(N->getOperand(i))) {
  723   if (Opc == ISD::LOAD || Opc == ISD::STORE || isa<AtomicSDNode>(N) ||
 1623   assert(isa<BuildVectorSDNode>(N));
 1842   return !Imm && isa<ConstantSDNode>(Offset);
 1849          !isa<ConstantSDNode>(Offset);
 1867   return !Imm && isa<ConstantSDNode>(Offset);
 1890   if (isa<ConstantSDNode>(Index))
 2759   if (!isa<ConstantSDNode>(Addr)) {
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
  556   if (isa<MemSDNode>(N))
  661        (isa<LoadSDNode>(N) &&
 1188   return !isa<UndefValue>(GVar->getInitializer());
lib/Target/AMDGPU/AMDGPUInline.cpp
  165     if (!isa<CallInst>(I)) {
  168     if (isa<ReturnInst>(*std::next(I->getIterator()))) {
lib/Target/AMDGPU/AMDGPUInstrInfo.cpp
   38   if (!Ptr || isa<UndefValue>(Ptr) ||
   39       isa<Constant>(Ptr) || isa<GlobalValue>(Ptr))
   39       isa<Constant>(Ptr) || isa<GlobalValue>(Ptr))
lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
 1519   if (!Ptr || isa<UndefValue>(Ptr) || isa<Argument>(Ptr) ||
 1519   if (!Ptr || isa<UndefValue>(Ptr) || isa<Argument>(Ptr) ||
 1520       isa<Constant>(Ptr) || isa<GlobalValue>(Ptr))
 1520       isa<Constant>(Ptr) || isa<GlobalValue>(Ptr))
lib/Target/AMDGPU/AMDGPULibCalls.cpp
  593   if (!isa<ConstantInt>(PacketSize) || !isa<ConstantInt>(PacketAlign))
  593   if (!isa<ConstantInt>(PacketSize) || !isa<ConstantInt>(PacketAlign))
lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp
  168     if (isa<PointerType>(ArgTy)) {
lib/Target/AMDGPU/AMDGPUOpenCLEnqueuedBlockLowering.cpp
   99   if (!isa<Constant>(U))
  131         if (!isa<ConstantExpr>(UU))
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
  190         } else if (isa<ConstantAggregateZero>(Init)) {
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  334     if (isa<AllocaInst>(User) &&
  336         isa<VectorType>(LI->getType()))
  338     return isa<GetElementPtrInst>(LI->getPointerOperand()) && LI->isSimple();
  347     if (isa<AllocaInst>(User) &&
  349         isa<VectorType>(SI->getValueOperand()->getType()))
  351     return (SI->getPointerOperand() == User) && isa<GetElementPtrInst>(User) && SI->isSimple();
  499   if (isa<ConstantPointerNull>(OtherOp))
  503   if (!isa<AllocaInst>(OtherObj))
  837         if (isa<ConstantPointerNull>(CI->getOperand(0)))
  840         if (isa<ConstantPointerNull>(CI->getOperand(1)))
  848       if (isa<AddrSpaceCastInst>(V))
  860         if (isa<ConstantPointerNull>(SI->getOperand(1)))
  863         if (isa<ConstantPointerNull>(SI->getOperand(2)))
  867           if (isa<ConstantPointerNull>(Phi->getIncomingValue(I)))
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
  171             (!isa<GlobalVariable>(GEP->getPointerOperand()) &&
  172              !isa<Argument>(GEP->getPointerOperand())))
  565   if (isa<AtomicRMWInst>(V) || isa<AtomicCmpXchgInst>(V))
  565   if (isa<AtomicRMWInst>(V) || isa<AtomicCmpXchgInst>(V))
  572   if (isa<CallInst>(V) || isa<InvokeInst>(V))
  572   if (isa<CallInst>(V) || isa<InvokeInst>(V))
lib/Target/AMDGPU/AMDGPUUnifyDivergentExitNodes.cpp
  176     if (isa<ReturnInst>(BB->getTerminator())) {
  179     } else if (isa<UnreachableInst>(BB->getTerminator())) {
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
  228     return isExpr() && Expr && isa<MCSymbolRefExpr>(Expr);
lib/Target/AMDGPU/R600ISelLowering.cpp
  714   if (isa<ConstantSDNode>(Index) ||
  730   if (isa<ConstantSDNode>(Index) ||
 1469     if (isa<Constant>(LoadNode->getMemOperand()->getValue()) ||
 1470         isa<ConstantSDNode>(Ptr)) {
 1807   assert (isa<ConstantSDNode>(Ptr));
 1914     if (!isa<ConstantSDNode>(EltNo))
 2070          isa<ConstantSDNode>(Ptr))
lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
  245   if (isa<Constant>(Cond)) {
  315   if (!isa<UndefValue>(Exec) && !isa<UnreachableInst>(FirstInsertionPt))
  315   if (!isa<UndefValue>(Exec) && !isa<UnreachableInst>(FirstInsertionPt))
lib/Target/AMDGPU/SIISelLowering.cpp
 4829   if (isa<ConstantSDNode>(Idx))
 5364     unsigned DMaskIdx = BaseOpcode->Store ? 3 : isa<MemSDNode>(Op) ? 2 : 1;
 5535       if (isa<MemSDNode>(Op))
 5595   if (isa<MemSDNode>(Op))
 6099   if (!isa<ConstantSDNode>(VOffset) || !isa<ConstantSDNode>(SOffset) ||
 6099   if (!isa<ConstantSDNode>(VOffset) || !isa<ConstantSDNode>(SOffset) ||
 6100       !isa<ConstantSDNode>(Offset))
 6104     if (!isa<ConstantSDNode>(VIndex) || !cast<ConstantSDNode>(VIndex)->isNullValue())
 8277         isa<ConstantSDNode>(LHS.getOperand(2))) {
 8447   if (isa<ConstantSDNode>(RHS) && LHS.hasOneUse() &&
 8449       isa<ConstantSDNode>(LHS.getOperand(2))) {
 8899   return Op.isUndef() || isa<ConstantFPSDNode>(Op);
 8953         if (isa<ConstantFPSDNode>(NewElts[1]))
 8954           NewElts[0] = isa<ConstantFPSDNode>(NewElts[1]) ?
 8959         NewElts[1] = isa<ConstantFPSDNode>(NewElts[0]) ?
 9225     if (isa<ConstantFPSDNode>(Src0) && !isa<ConstantFPSDNode>(Src1))
 9225     if (isa<ConstantFPSDNode>(Src0) && !isa<ConstantFPSDNode>(Src1))
 9228     if (isa<ConstantFPSDNode>(Src1) && !isa<ConstantFPSDNode>(Src2))
 9228     if (isa<ConstantFPSDNode>(Src1) && !isa<ConstantFPSDNode>(Src2))
 9231     if (isa<ConstantFPSDNode>(Src0) && !isa<ConstantFPSDNode>(Src1))
 9231     if (isa<ConstantFPSDNode>(Src0) && !isa<ConstantFPSDNode>(Src1))
 9316       !isa<ConstantSDNode>(N->getOperand(1))) {
 9339   if (isa<MemSDNode>(Vec) &&
 9386   if (isa<ConstantSDNode>(Idx) ||
 9811         isa<ConstantSDNode>(LHS.getOperand(1)) &&
 9812         isa<ConstantSDNode>(LHS.getOperand(2)) &&
10241   return isa<FrameIndexSDNode>(Op);
11016     if (isa<InlineAsm>(CI->getCalledValue())) {
lib/Target/AMDGPU/SIInstrInfo.cpp
  236     if (!isa<ConstantSDNode>(Off0) || !isa<ConstantSDNode>(Off1))
  236     if (!isa<ConstantSDNode>(Off0) || !isa<ConstantSDNode>(Off1))
  423   if (isa<UndefValue>(Base1) || isa<UndefValue>(Base2))
  423   if (isa<UndefValue>(Base1) || isa<UndefValue>(Base2))
lib/Target/ARM/ARMBaseInstrInfo.cpp
 1898   if (isa<ConstantSDNode>(Load1->getOperand(1)) &&
 1899       isa<ConstantSDNode>(Load2->getOperand(1))) {
lib/Target/ARM/ARMCodeGenPrepare.cpp
  182   if (!isa<Instruction>(V))
  220   if (!isa<IntegerType>(Ty) ||
  235   if (!isa<IntegerType>(V->getType()))
  239   if (isa<Argument>(V))
  241   else if (isa<LoadInst>(V))
  243   else if (isa<BitCastInst>(V))
  277   return isa<CallInst>(V);
  346       !isa<ICmpInst>(*I->user_begin()) ||
  347       !isa<ConstantInt>(I->getOperand(1)))
  394   if (!isa<IntegerType>(V->getType()) || isSink(V))
  404   if (isa<ICmpInst>(I))
  416   if (!isa<Instruction>(V))
  419   if (!isa<OverflowingBinaryOperator>(V))
  483     assert((isa<ConstantInt>(I->getOperand(1)) &&
  515       if (isa<Argument>(V))
  558       if ((Op->getType() == ExtTy) || !isa<IntegerType>(Op->getType()))
  564       } else if (isa<UndefValue>(Op))
  609     if (!isa<Instruction>(V) || !isa<IntegerType>(V->getType()))
  609     if (!isa<Instruction>(V) || !isa<IntegerType>(V->getType()))
  668     if (!isa<ZExtInst>(V))
  686     if (NewInsts.count(Src) && isa<TruncInst>(Src) &&
  714     if (!isa<TruncInst>(V) || Sources->count(V))
  743   assert(isa<IntegerType>(OrigTy) && "expected integer type");
  769     if (!isa<TruncInst>(V) || Sources.count(V))
  808       return isa<BinaryOperator>(I) && isSupportedType(I) &&
  829       if (isa<PointerType>(I->getOperand(0)->getType()))
  841   } else if (isa<Constant>(V) && !isa<ConstantExpr>(V)) {
  841   } else if (isa<Constant>(V) && !isa<ConstantExpr>(V)) {
  843   } else if (isa<Argument>(V))
  846   return isa<BasicBlock>(V);
  883     if (isa<Constant>(Op)) {
  922     if (isa<GetElementPtrInst>(V))
  942     if (!isa<Instruction>(V) && !isSource(V))
 1028       if (isa<ICmpInst>(I)) {
 1032         if (CI.isSigned() || !isa<IntegerType>(CI.getOperand(0)->getType()))
lib/Target/ARM/ARMFastISel.cpp
  653   else if (isa<ConstantInt>(C))
 2018       if (isa<UndefValue>(ArgVal))
 2299   if (isa<InlineAsm>(Callee)) return false;
 2529     if (isa<ConstantInt>(MTI.getLength()) && isMemCpy) {
 2551     const char *IntrMemName = isa<MemCpyInst>(I) ? "memcpy" : "memmove";
 2745   bool isZExt = isa<ZExtInst>(I);
lib/Target/ARM/ARMISelDAGToDAG.cpp
  995   if (isa<LSBaseSDNode>(MemN) ||
 2024       assert(isa<ConstantSDNode>(Inc.getNode()) &&
 2196     assert(isa<ConstantSDNode>(Inc.getNode()) &&
 2860   if (!isa<ConstantSDNode>(Zero) || !cast<ConstantSDNode>(Zero)->isNullValue() ||
lib/Target/ARM/ARMISelLowering.cpp
 1712   if (!isa<MemIntrinsic>(CI))
 2075   if (isa<GlobalAddressSDNode>(Callee)) {
 2084                          return isa<Instruction>(U) &&
 2289     if (isa<GlobalAddressSDNode>(Callee)) {
 2316   } else if (isa<GlobalAddressSDNode>(Callee)) {
 2568       (!isa<GlobalAddressSDNode>(Callee.getNode()) || isIndirect))
 3304     if (isa<ConstantExpr>(U)) {
 3420   return isa<Function>(GV);
 4250       LHS->hasOneUse() && isa<ConstantSDNode>(LHS.getOperand(1)) &&
 4251       LHS.getValueType() == MVT::i32 && isa<ConstantSDNode>(RHS) &&
 4273       isa<ConstantSDNode>(RHS) &&
 4275       CC == ISD::SETUGT && isa<ConstantSDNode>(LHS.getOperand(1)) &&
 4744   const SDValue Op2 = isa<ConstantSDNode>(TrueVal1) ? FalseVal1 : TrueVal1;
 4756   SDValue *K1 = isa<ConstantSDNode>(LHS1) ? &LHS1 : isa<ConstantSDNode>(RHS1)
 4756   SDValue *K1 = isa<ConstantSDNode>(LHS1) ? &LHS1 : isa<ConstantSDNode>(RHS1)
 4759   SDValue *K2 = isa<ConstantSDNode>(LHS2) ? &LHS2 : isa<ConstantSDNode>(RHS2)
 4759   SDValue *K2 = isa<ConstantSDNode>(LHS2) ? &LHS2 : isa<ConstantSDNode>(RHS2)
 4762   SDValue K2Tmp = isa<ConstantSDNode>(TrueVal2) ? TrueVal2 : FalseVal2;
 4844   SDValue *K = isa<ConstantSDNode>(LHS) ? &LHS : isa<ConstantSDNode>(RHS)
 4844   SDValue *K = isa<ConstantSDNode>(LHS) ? &LHS : isa<ConstantSDNode>(RHS)
 4852   SDValue KTmp = isa<ConstantSDNode>(TrueVal) ? TrueVal : FalseVal;
 7017   if (!isa<ConstantSDNode>(N))
 7056   if (!isa<ConstantSDNode>(FirstOp) &&
 7070     if (!isa<ConstantSDNode>(V) && !V.isUndef())
 7082     if (isa<ConstantSDNode>(V) || V.isUndef())
 7168     if (!isa<ConstantFPSDNode>(V) && !isa<ConstantSDNode>(V))
 7168     if (!isa<ConstantFPSDNode>(V) && !isa<ConstantSDNode>(V))
 7369     } else if (!isa<ConstantSDNode>(V.getOperand(1))) {
 7832           !isa<ConstantSDNode>(V1.getOperand(0))) {
 8020   if (!isa<ConstantSDNode>(Lane))
 8080   if (!isa<ConstantSDNode>(Lane))
11679       if (isa<ConstantSDNode>(U->getOperand(0)) ||
11680           isa<ConstantSDNode>(U->getOperand(1)))
12222       N00.getOpcode() == ISD::SHL && isa<ConstantSDNode>(N00.getOperand(1)) &&
12450       isa<ConstantSDNode>(From->getOperand(1))) {
12724     } else if (Elt.isUndef() || isa<ConstantSDNode>(Elt))
13006     if (isa<LSBaseSDNode>(N)) {
13485   if (!isa<BuildVectorSDNode>(ConstVec))
13543   if (!isa<BuildVectorSDNode>(ConstVec))
13911         isa<ConstantSDNode>(Lane)) {
14045     if (!isa<ConstantSDNode>(N.getOperand(1)))
14787   if (!isa<ShuffleVectorInst>(I->getOperand(Op)))
15213   if (!isa<ConstantSDNode>(Ptr->getOperand(1)))
16580   if (!isa<ConstantInt>(Idx))
lib/Target/ARM/ARMParallelDSP.cpp
   73       return isa<LoadInst>(LHS) && isa<LoadInst>(RHS);
   73       return isa<LoadInst>(LHS) && isa<LoadInst>(RHS);
  364         !Ld->hasOneUse() || !isa<SExtInst>(Ld->user_back()))
  652     assert((isa<Instruction>(A) || isa<Instruction>(B)) &&
  652     assert((isa<Instruction>(A) || isa<Instruction>(B)) &&
  656     if (!isa<Instruction>(A))
  658     else if (!isa<Instruction>(B))
  747       if (!isa<Instruction>(A) || !isa<Instruction>(B))
  747       if (!isa<Instruction>(A) || !isa<Instruction>(B))
  755           isa<PHINode>(Source) || isa<PHINode>(Sink))
  755           isa<PHINode>(Source) || isa<PHINode>(Sink))
lib/Target/ARM/ARMTargetTransformInfo.cpp
  175   if (I && isa<LoadInst>(I->getOperand(0))) {
  764   assert(isa<VectorType>(VecTy) && "Expect a vector type");
  861   if (isa<SCEVCouldNotCompute>(BackedgeTakenCount))
  884       if (isa<IntrinsicInst>(Call)) {
 1040       if (isa<CallInst>(I) || isa<InvokeInst>(I)) {
 1040       if (isa<CallInst>(I) || isa<InvokeInst>(I)) {
 1077   assert(isa<VectorType>(Ty) && "Expected Ty to be a vector type");
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
  991     if (isa<MCSymbolRefExpr>(Imm.Val)) return true;
 1006     if (isa<MCSymbolRefExpr>(Imm.Val)) return true;
 1021     if (isa<MCSymbolRefExpr>(Imm.Val)) return true;
 1036       if (isa<MCSymbolRefExpr>(Imm.Val)) return true;
 1218     if (isImm() && !isa<MCConstantExpr>(getImm()))
 1233     if (isImm() && !isa<MCConstantExpr>(getImm())) {
 1536     if (isImm() && !isa<MCConstantExpr>(getImm()))
 1570     if (isImm() && !isa<MCConstantExpr>(getImm()))
 1586     if (isImm() && !isa<MCConstantExpr>(getImm()))
 1685     if (isImm() && !isa<MCConstantExpr>(getImm()))
 1700     if (isImm() && !isa<MCConstantExpr>(getImm()))
 1841     if (isImm() && !isa<MCConstantExpr>(getImm()))
 2696     assert(isa<MCConstantExpr>(Memory.OffsetImm) && "Unknown value type!");
 2747     if (!isa<MCConstantExpr>(getImm())) {
 8362     if (isa<MCConstantExpr>(SubExprVal) &&
lib/Target/ARM/MVETailPredication.cpp
  307           if (isa<VectorType>(U->getType()))
lib/Target/AVR/AVRISelDAGToDAG.cpp
  330   if (isa<FrameIndexSDNode>(BasePtr) || isa<ConstantSDNode>(BasePtr) ||
  330   if (isa<FrameIndexSDNode>(BasePtr) || isa<ConstantSDNode>(BasePtr) ||
lib/Target/AVR/AVRISelLowering.cpp
  287   if (!isa<ConstantSDNode>(N->getOperand(1))) {
  755   if (isa<PointerType>(Ty) && AS == AVR::ProgramMemory) {
lib/Target/AVR/AVRMCInstLower.cpp
   39   bool IsFunction = MO.isGlobal() && isa<Function>(MO.getGlobal());
lib/Target/AVR/MCTargetDesc/AVRMCCodeEmitter.cpp
  186     if (isa<AVRMCExpr>(MO.getExpr())) {
lib/Target/BPF/AsmParser/BPFAsmParser.cpp
  129     return isImm() && isa<MCConstantExpr>(getImm());
lib/Target/BPF/BPFAbstractMemberAccess.cpp
  359   if (isa<DIDerivedType>(CType))
lib/Target/BPF/BPFISelDAGToDAG.cpp
  395   if (isa<ConstantAggregateZero>(CV) || isa<UndefValue>(CV))
  395   if (isa<ConstantAggregateZero>(CV) || isa<UndefValue>(CV))
lib/Target/Hexagon/HexagonCommonGEP.cpp
  369     if (isa<GetElementPtrInst>(*UI)) {
  421       if (!isa<GetElementPtrInst>(J))
  736       if (isa<PHINode>(V))
  738       if (!isa<Instruction>(V))
  776       if (!isa<Instruction>(R))
  778       BasicBlock *PB = isa<PHINode>(R)
  838   if (isa<Constant>(Val) || isa<Argument>(Val))
  838   if (isa<Constant>(Val) || isa<Argument>(Val))
  947     return isa<ConstantInt>(N->Idx);
 1278       if (isa<InvokeInst>(I) || isa<LandingPadInst>(I))
 1278       if (isa<InvokeInst>(I) || isa<LandingPadInst>(I))
lib/Target/Hexagon/HexagonConstPropagation.cpp
  422   if (isa<ConstantInt>(C)) {
  432   if (isa<ConstantFP>(C)) {
lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
 1187       if (isa<MachineSDNode>(U)) {
 1318   if (!T.isInteger() || T.getSizeInBits() != 32 || !isa<ConstantSDNode>(N))
 1608       return isa<ConstantSDNode>(N->getOperand(1).getNode());
 1691     if (!HaveConst && SeparateConst && isa<ConstantSDNode>(L.Value)) {
 1733         !isa<ConstantSDNode>(Val.getOperand(1)) ||
 1760         !isa<ConstantSDNode>(Val.getOperand(1)) ||
 1800     if (!isa<ConstantSDNode>(Val.getOperand(1).getNode()))
 1813       if (isa<ConstantSDNode>(Ops[i].getNode()) &&
 1829       if (isa<ConstantSDNode>(Ops[i].getNode()) &&
 1862     if (isa<Instruction>(U) &&
lib/Target/Hexagon/HexagonISelLowering.cpp
  566   if (!isa<ConstantSDNode>(Offset.getNode()))
 1716   else if (isa<IntrinsicInst>(V) && isBrevLdIntrinsic(V))
 2069   if (isa<ConstantSDNode>(Op.getOperand(1).getNode()))
 3134   if (!isa<GlobalAddressSDNode>(Callee) &&
 3135       !isa<ExternalSymbolSDNode>(Callee)) {
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
  324       if (isa<PHINode>(U) || U->getParent() != Block)
  366   if (!isa<Instruction>(V) || cast<Instruction>(V)->getParent() != nullptr)
  458   if (isa<PHINode>(I))
  490     assert(!isa<PHINode>(U));
  629   for (auto I = BB->begin(), E = BB->end(); I != E && isa<PHINode>(I); ++I) {
  632     if (!isa<ConstantInt>(InitV) || !cast<ConstantInt>(InitV)->isZero())
  951     if (PV.Inv && !isa<ConstantInt>(PV.Q))
 1131     bool IsPhi = isa<PHINode>(I);
 1157     else if (!isa<PHINode>(V))
 1172     if (DivI == V || isa<PHINode>(V))
 1327     if (!isa<IntegerType>(V->getType()))
 1339       if (T->getParent() != LoopB || RShifts.count(T) || isa<PHINode>(T))
 1394     if (isa<PHINode>(I) || !Users.count(&*I))
 1412       if (isa<ConstantInt>(Op) && cast<ConstantInt>(Op)->isZero())
 1450     if (!isa<PHINode>(P))
 1783   if (isa<SCEVCouldNotCompute>(CT))
 1819     SelectInst *SelI = (T && isa<SelectInst>(T)) ? cast<SelectInst>(T) : SI;
 2334       if (isa<BranchInst>(In) || isa<DbgInfoIntrinsic>(In))
 2334       if (isa<BranchInst>(In) || isa<DbgInfoIntrinsic>(In))
 2387   assert(!isa<SCEVCouldNotCompute>(BECount) &&
lib/Target/Hexagon/HexagonOptimizeSZextends.cpp
   75       if (!isa<PointerType>(Arg.getType())) {
   77           if (isa<SExtInst>(*UI)) {
lib/Target/Hexagon/HexagonTargetObjectFile.cpp
  242   if (isa<ArrayType>(GType)) {
lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp
  477       if (isa<PHINode>(User))
  708     if(!PreHdrVal || !isa<Instruction>(PreHdrVal)) {
  729   for (auto I = BB->begin(), E = BB->end(); I != E && isa<PHINode>(I); ++I) {
  731     if (!isa<VectorType>(PN->getType()))
lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp
  587   if (isa<HexagonMCExpr>(ME))
lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.cpp
  500   if (isa<HexagonMCExpr>(MO.getExpr()) &&
  516   if (isa<HexagonMCExpr>(MO.getExpr()) &&
lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp
  469     else if (isa<LanaiMCExpr>(getImm())) {
  476     } else if (isa<MCBinaryExpr>(getImm())) {
  479       assert(BinaryExpr && isa<LanaiMCExpr>(BinaryExpr->getLHS()) &&
  500     else if (isa<LanaiMCExpr>(getImm())) {
  507     } else if (isa<MCBinaryExpr>(getImm())) {
  510       assert(BinaryExpr && isa<LanaiMCExpr>(BinaryExpr->getLHS()) &&
  531     else if (isa<LanaiMCExpr>(getImm())) {
  538     } else if (isa<MCSymbolRefExpr>(getImm())) {
  546     } else if (isa<MCBinaryExpr>(getImm())) {
  549       assert(BinaryExpr && isa<LanaiMCExpr>(BinaryExpr->getLHS()) &&
lib/Target/Lanai/LanaiAsmPrinter.cpp
  223     if (isa<SwitchInst>(B->getTerminator()))
lib/Target/Lanai/LanaiISelLowering.cpp
  272     if (isa<ConstantInt>(CallOperandVal))
lib/Target/Lanai/MCTargetDesc/LanaiMCCodeEmitter.cpp
   91   if (isa<MCSymbolRefExpr>(Expr))
  127   assert(isa<LanaiMCExpr>(Expr) || Expr->getKind() == MCExpr::SymbolRef);
lib/Target/MSP430/MSP430ISelLowering.cpp
  951   if (!isa<ConstantSDNode>(N->getOperand(1)))
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
 1294     return isMem() && isa<MCConstantExpr>(getMemOff());
 1306     if (isa<MCTargetExpr>(getMemOff()) ||
 1321     if (isa<MCTargetExpr>(getMemOff()) ||
 1767   if (isa<MCSymbolRefExpr>(Expr))
lib/Target/Mips/Mips16ISelDAGToDAG.cpp
  154       if (isa<ConstantPoolSDNode>(Opnd0) || isa<GlobalAddressSDNode>(Opnd0) ||
  154       if (isa<ConstantPoolSDNode>(Opnd0) || isa<GlobalAddressSDNode>(Opnd0) ||
  155           isa<JumpTableSDNode>(Opnd0)) {
lib/Target/Mips/MipsAsmPrinter.cpp
  482     if (isa<SwitchInst>(bb->getTerminator()))
lib/Target/Mips/MipsDelaySlotFiller.cpp
  482     if (isa<FixedStackPseudoSourceValue>(PSV))
lib/Target/Mips/MipsFastISel.cpp
  299   if (isa<ConstantInt>(LHS) && !isa<ConstantInt>(RHS))
  299   if (isa<ConstantInt>(LHS) && !isa<ConstantInt>(RHS))
  426        (GV->hasLocalLinkage() && !isa<Function>(GV)))) {
  459   else if (isa<ConstantInt>(C))
 1019   assert(isa<SelectInst>(I) && "Expected a select instruction.");
 1247       if (isa<UndefValue>(ArgVal))
 1665     const char *IntrMemName = isa<MemCpyInst>(II) ? "memcpy" : "memmove";
 1809   bool isZExt = isa<ZExtInst>(I);
lib/Target/Mips/MipsISelLowering.cpp
 3834     if (isa<ConstantInt>(CallOperandVal))
lib/Target/Mips/MipsSEISelDAGToDAG.cpp
  346       if (isa<ConstantPoolSDNode>(Opnd0) || isa<GlobalAddressSDNode>(Opnd0) ||
  346       if (isa<ConstantPoolSDNode>(Opnd0) || isa<GlobalAddressSDNode>(Opnd0) ||
  347           isa<JumpTableSDNode>(Opnd0)) {
  440     if (isa<FrameIndexSDNode>(Base))
lib/Target/Mips/MipsSEISelLowering.cpp
 1389     if (isa<ConstantSDNode>(LaneA))
 2432   if (isa<ConstantSDNode>(Op))
 2434   if (isa<ConstantFPSDNode>(Op))
lib/Target/NVPTX/NVPTXAllocaHoisting.cpp
   48       if (allocaInst && isa<ConstantInt>(allocaInst->getArraySize())) {
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
  361     } else if (isa<PointerType>(Ty)) {
  736       if (!isa<Instruction>(U))
  968       if (isa<GlobalVariable>(V)) {
 1160         if (!Initializer->isNullValue() && !isa<UndefValue>(Initializer)) {
 1169             !isa<UndefValue>(GVar->getInitializer())) {
 1195         if (!isa<UndefValue>(Initializer) && !Initializer->isNullValue()) {
 1531       if (isa<IntegerType>(Ty)) {
 1535       } else if (isa<PointerType>(Ty))
 1720   if (isa<ConstantPointerNull>(CPV)) {
 1729     if (EmitGeneric && !isa<Function>(CPV) && !IsNonGenericPointer) {
 1746       if (EmitGeneric && !isa<Function>(v) && !IsNonGenericPointer) {
 1790   if (isa<UndefValue>(CPV) || CPV->isNullValue()) {
 1897     if (isa<ConstantAggregate>(CPV) || isa<ConstantDataSequential>(CPV)) {
 1897     if (isa<ConstantAggregate>(CPV) || isa<ConstantDataSequential>(CPV)) {
 1902     } else if (isa<ConstantAggregateZero>(CPV))
 1931   if (isa<ConstantArray>(CPV) || isa<ConstantVector>(CPV)) {
 1931   if (isa<ConstantArray>(CPV) || isa<ConstantVector>(CPV)) {
 1947   if (isa<ConstantStruct>(CPV)) {
 1974   if (CV->isNullValue() || isa<UndefValue>(CV))
 2133     if (isa<MCConstantExpr>(BE.getLHS()) || isa<MCSymbolRefExpr>(BE.getLHS()) ||
 2133     if (isa<MCConstantExpr>(BE.getLHS()) || isa<MCSymbolRefExpr>(BE.getLHS()) ||
 2134         isa<NVPTXGenericMCSymbolRefExpr>(BE.getLHS())) {
 2158     if (isa<MCConstantExpr>(BE.getRHS()) || isa<MCSymbolRefExpr>(BE.getRHS())) {
 2158     if (isa<MCConstantExpr>(BE.getRHS()) || isa<MCSymbolRefExpr>(BE.getRHS())) {
lib/Target/NVPTX/NVPTXAsmPrinter.h
  168               if (EmitGeneric && !isa<Function>(v) && !IsNonGenericPointer) {
lib/Target/NVPTX/NVPTXGenericToNVVM.cpp
  113           if (isa<Constant>(Operand)) {
  166   if (isa<GlobalVariable>(C)) {
  179   } else if (isa<ConstantAggregate>(C)) {
  184   } else if (isa<ConstantExpr>(C)) {
  219   if (isa<ConstantVector>(C)) {
lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
 3388     if (isa<ConstantSDNode>(LHS) && !isa<ConstantSDNode>(RHS)) {
 3388     if (isa<ConstantSDNode>(LHS) && !isa<ConstantSDNode>(RHS)) {
 3455       if (isa<ConstantSDNode>(AndLHS)) {
lib/Target/NVPTX/NVPTXISelLowering.cpp
 1292     } else if (isa<PointerType>(retTy)) {
 1339       if (isa<IntegerType>(Ty)) {
 1343       } else if (isa<PointerType>(Ty)) {
 1389     if (isa<CallInst>(CalleeI)) {
 1396       while (isa<ConstantExpr>(CalleeV)) {
 1406       if (isa<Function>(CalleeV))
 1676   if (isa<ExternalSymbolSDNode>(Callee)) {
 1921         isa<ConstantFPSDNode>(Op->getOperand(0)) &&
 1922         isa<ConstantFPSDNode>(Op->getOperand(1))))
 1938   if (isa<ConstantSDNode>(Index.getNode()))
 4411         if (isa<ConstantSDNode>(left) || isa<ConstantSDNode>(right))
 4411         if (isa<ConstantSDNode>(left) || isa<ConstantSDNode>(right))
 4474   if (isa<ConstantSDNode>(Val)) {
 4656     if (isa<ConstantSDNode>(LHS)) {
lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp
  106     if (isa<CallInst>(I))
lib/Target/NVPTX/NVVMReflect.cpp
  134     assert(isa<ConstantExpr>(Str) &&
  139     assert(isa<Constant>(Sym) &&
  152     assert(isa<ConstantDataSequential>(Operand) &&
lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
   80     assert(isa<MCSymbolRefExpr>(MI->getOperand(2).getExpr()) &&
lib/Target/PowerPC/PPCBoolRetToInt.cpp
   83       if (CurrUser && !isa<CallInst>(Curr))
  141         return isa<ReturnInst>(V) || isa<CallInst>(V) || isa<PHINode>(V) ||
  141         return isa<ReturnInst>(V) || isa<CallInst>(V) || isa<PHINode>(V) ||
  141         return isa<ReturnInst>(V) || isa<CallInst>(V) || isa<PHINode>(V) ||
  142         isa<DbgInfoIntrinsic>(V);
  145         return isa<Constant>(V) || isa<Argument>(V) || isa<CallInst>(V) ||
  145         return isa<Constant>(V) || isa<Argument>(V) || isa<CallInst>(V) ||
  145         return isa<Constant>(V) || isa<Argument>(V) || isa<CallInst>(V) ||
  146         isa<PHINode>(V);
  223     if (llvm::none_of(Defs, isa<Instruction, Value *>))
  230       if (!isa<PHINode>(V) && !isa<Constant>(V) &&
  230       if (!isa<PHINode>(V) && !isa<Constant>(V) &&
  231           !isa<Argument>(V) && !isa<CallInst>(V))
  231           !isa<Argument>(V) && !isa<CallInst>(V))
  239     if (isa<ReturnInst>(U.getUser()))
  241     if (isa<CallInst>(U.getUser()))
  257       if (First && !isa<CallInst>(First))
lib/Target/PowerPC/PPCFastISel.cpp
  301   if (!isa<Instruction>(V))
 1902   bool IsZExt = isa<ZExtInst>(I);
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
  517   assert(isa<BasicBlockSDNode>(DestMBB));
 1228       if (isa<ConstantSDNode>(V.getOperand(1))) {
 1240       if (isa<ConstantSDNode>(V.getOperand(1))) {
 1255       if (isa<ConstantSDNode>(V.getOperand(1))) {
 1270       if (isa<ConstantSDNode>(V.getOperand(1))) {
 4951           isa<LoadSDNode>(Op1.getOperand(0))) {
 5165     assert(isa<ConstantSDNode>(N->getOperand(0)) &&
 5166            isa<ConstantSDNode>(N->getOperand(1)) &&
 5272     if (!isa<ConstantSDNode>(O.getOperand(2)) ||
 5273         !isa<ConstantSDNode>(O.getOperand(3)))
 5289     if (!isa<ConstantSDNode>(O.getOperand(1)) ||
 5299           isa<ConstantSDNode>(Op0.getOperand(1))) {
 5321           isa<ConstantSDNode>(O.getOperand(1))) {
 5347       if (!isa<ConstantSDNode>(Op.getOperand(1)))
 5362       if (!isa<ConstantSDNode>(Op.getOperand(1)))
 6319             !isa<ConstantSDNode>(V)) {
 6429     if (!isa<ConstantSDNode>(N->getOperand(FirstOp)))
 6462           (!isa<ConstantSDNode>(Base.getOperand(1)) ||
lib/Target/PowerPC/PPCISelLowering.cpp
 2121       if (!isa<ConstantSDNode>(N->getOperand(i))) return SDValue();
 2243   if (!isa<ConstantSDNode>(N))
 2590     if (isa<FrameIndexSDNode>(Base) || isa<RegisterSDNode>(Base))
 2590     if (isa<FrameIndexSDNode>(Base) || isa<RegisterSDNode>(Base))
 2623         isa<ConstantSDNode>(Offset))
 4600         isa<UndefValue>(CalleeArg))
 4680       !isa<ExternalSymbolSDNode>(Callee))
 5257             isa<ConstantSDNode>(Callee)) &&
 5366       assert(isa<GlobalAddressSDNode>(Callee) &&
 5387   if (Subtarget.useLongCalls() && isa<GlobalAddressSDNode>(Callee) &&
 6289       !isa<ExternalSymbolSDNode>(Callee)) {
 6683       !isa<ExternalSymbolSDNode>(Callee) &&
 6797   if (!isFunctionGlobalAddress(Callee) && !isa<ExternalSymbolSDNode>(Callee))
 8284       if (!isa<ConstantSDNode>(BVN->getOperand(i))) {
 9523   int ArgStart = isa<ConstantSDNode>(Op.getOperand(0)) ? 0 : 1;
10053            isa<ConstantSDNode>(Op0->getOperand(1)) &&
10285     if (isa<LoadInst>(Inst) && Subtarget.isPPC64())
11927         if (((isa<MemSDNode>(*UI) &&
12109         isa<ConstantSDNode>(N->getOperand(i)))
12140           isa<ConstantSDNode>(BinOp.getOperand(i))) {
12164     if (isa<ConstantSDNode>(Inputs[i]))
12218     if (isa<ConstantSDNode>(Inputs[i]))
12241       if (!isa<ConstantSDNode>(PromOp.getOperand(0)) &&
12249       if (isa<ConstantSDNode>(RepValue))
12263     if ((!isa<ConstantSDNode>(PromOp.getOperand(C)) &&
12265         (!isa<ConstantSDNode>(PromOp.getOperand(C+1)) &&
12280       if (isa<ConstantSDNode>(Ops[C+i]))
12353           isa<ConstantSDNode>(BinOp.getOperand(i))) {
12377     if (isa<ConstantSDNode>(Inputs[i]))
12435       if (isa<ConstantSDNode>(Inputs[i]))
12461     if (isa<ConstantSDNode>(Inputs[i]))
12497     if ((!isa<ConstantSDNode>(PromOp.getOperand(C)) &&
12499         (!isa<ConstantSDNode>(PromOp.getOperand(C+1)) &&
12527       if (!isa<ConstantSDNode>(Ops[C+i]))
13474         isa<ConstantSDNode>(N->getOperand(1)) && Op1VT == MVT::i32) {
13554           !isa<ConstantSDNode>(RightShift->getOperand(1)) ||
13798         if (isa<ConstantSDNode>(Add->getOperand(1))) {
13803                 isa<ConstantSDNode>(UI->getOperand(1)) &&
14002         isa<ConstantSDNode>(LHS.getOperand(1)) &&
14009         isa<ConstantSDNode>(RHS)) {
14031         isa<ConstantSDNode>(RHS) && (CC == ISD::SETEQ || CC == ISD::SETNE) &&
14609   if (isa<JumpTableSDNode>(GA) || isa<BlockAddressSDNode>(GA))
14609   if (isa<JumpTableSDNode>(GA) || isa<BlockAddressSDNode>(GA))
lib/Target/PowerPC/PPCLoopPreIncPrep.cpp
  428       if (PtrIP && isa<Instruction>(NewBasePtr) &&
  431       else if (PtrIP && isa<PHINode>(PtrIP))
lib/Target/PowerPC/PPCTargetTransformInfo.cpp
  432     } else if (isa<BinaryOperator>(J) &&
  436     } else if (isa<UIToFPInst>(J) || isa<SIToFPInst>(J) ||
  436     } else if (isa<UIToFPInst>(J) || isa<SIToFPInst>(J) ||
  437                isa<FPToUIInst>(J) || isa<FPToSIInst>(J)) {
  437                isa<FPToUIInst>(J) || isa<FPToSIInst>(J)) {
  459     } else if (isa<IndirectBrInst>(J) || isa<InvokeInst>(J)) {
  459     } else if (isa<IndirectBrInst>(J) || isa<InvokeInst>(J)) {
  921   assert(isa<VectorType>(VecTy) &&
lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
 1187     if (!isa<MCSymbolRefExpr>(V)) {
 1447   if (isa<MCConstantExpr>(Expr) || isa<MCSymbolRefExpr>(Expr))
 1447   if (isa<MCConstantExpr>(Expr) || isa<MCSymbolRefExpr>(Expr))
 1454   if (!isa<MCSymbolRefExpr>(BE->getLHS()))
 1463       isa<MCSymbolRefExpr>(BE->getRHS()))
lib/Target/RISCV/RISCVISelDAGToDAG.cpp
  245     if (!isa<ConstantSDNode>(N->getOperand(OffsetOpIdx)) ||
lib/Target/RISCV/RISCVISelLowering.cpp
 2724   if (isa<LoadInst>(Inst) && Ord == AtomicOrdering::SequentiallyConsistent)
 2726   if (isa<StoreInst>(Inst) && isReleaseOrStronger(Ord))
 2734   if (isa<LoadInst>(Inst) && isAcquireOrStronger(Ord))
lib/Target/RISCV/RISCVISelLowering.h
  119     return isa<LoadInst>(I) || isa<StoreInst>(I);
  119     return isa<LoadInst>(I) || isa<StoreInst>(I);
lib/Target/Sparc/SparcISelLowering.cpp
 3080   if (isa<ConstantFPSDNode>(Src) && N->getSimpleValueType(0) == MVT::v2i32 &&
lib/Target/SystemZ/SystemZISelLowering.cpp
  849   if (isa<LoadInst>(I) && I->hasOneUse()) {
  852       if (isa<ICmpInst>(SingleUser)) {
  858       } else if (isa<StoreInst>(SingleUser))
  869   if (HasVector && (isa<LoadInst>(I) || isa<StoreInst>(I))) {
  869   if (HasVector && (isa<LoadInst>(I) || isa<StoreInst>(I))) {
  877     Type *MemAccessTy = (isa<LoadInst>(I) ? I->getType() :
  884     if (!IsVectorAccess && isa<StoreInst>(I)) {
  886       if (isa<ExtractElementInst>(DataOp))
  892     if (!IsVectorAccess && isa<LoadInst>(I) && I->hasOneUse()) {
  894       if (isa<InsertElementInst>(LoadUser))
 2081   if (isa<ConstantFPSDNode>(C.Op1))
 4166       isa<ConstantSDNode>(ShuffleOp.getOperand(1))) {
 6376       if (Known.getBitWidth() < BitWidth && isa<ConstantSDNode>(SrcOp))
lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
  248       if (isa<CallInst>(&I) || isa<InvokeInst>(&I)) {
  248       if (isa<CallInst>(&I) || isa<InvokeInst>(&I)) {
  260       if (isa<StoreInst>(&I)) {
  635         if (isa<CmpInst>(LogicI->getOperand(1)))
  768           (I != nullptr && isa<LoadInst>(I->getOperand(0))))
  802     if (!isa<LoadInst>(Op) && !isa<ConstantInt>(Op))
  802     if (!isa<LoadInst>(Op) && !isa<ConstantInt>(Op))
  921     if (isa<TruncInst>(UserI))
  923     else if (isa<SExtInst>(UserI))
  925     else if (isa<ZExtInst>(UserI))
 1018               (isa<TruncInst>(OtherOp) || isa<SExtInst>(OtherOp) ||
 1018               (isa<TruncInst>(OtherOp) || isa<SExtInst>(OtherOp) ||
 1019                isa<ZExtInst>(OtherOp)))
 1040           (!LdUser->hasOneUse() || !isa<StoreInst>(*LdUser->user_begin())))
 1073   assert(isa<VectorType>(VecTy) &&
lib/Target/TargetLoweringObjectFile.cpp
   59   if (C->isNullValue() || isa<UndefValue>(C))
   61   if (!isa<ConstantAggregate>(C))
  110   if (isa<ConstantAggregateZero>(C))
  149   if (isa<Function>(GO))
lib/Target/TargetMachine.cpp
  132       GV->isDeclarationForLinker() && isa<GlobalVariable>(GV))
  190         GV && Options.MCOptions.MCPIECopyRelocations && isa<GlobalVariable>(GV);
lib/Target/WebAssembly/WebAssemblyFastISel.cpp
  337     if (isa<ConstantInt>(LHS))
  450     if (V != nullptr && isa<Argument>(V) && cast<Argument>(V)->hasZExtAttr())
  758   if (!IsDirect && isa<ConstantExpr>(Call->getCalledValue()))
lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
   84       if (isa<Constant>(U.get())) {
  296     if (isa<Constant>(U->get()))
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
 1024   if (isa<FrameIndexSDNode>(Src.getNode())) {
 1480   if (isa<ConstantSDNode>(IdxNode) || IdxNode->isUndef())
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
  485   if (isa<InlineAsm>(Callee))
  960       assert(!isa<InvokeInst>(&I));
 1055     if (isa<ReturnInst>(TI))
lib/Target/WebAssembly/WebAssemblyOptimizeReturned.cpp
   64       if (isa<Constant>(Arg))
lib/Target/X86/AsmParser/X86AsmParser.cpp
 1973         check(isa<X86MCExpr>(Val), L, "expected immediate expression"))
 2205         return isa<X86MCExpr>(V);
 2216       assert(!isa<X86MCExpr>(Disp) && "Expected non-register here.");
 2243         check(!isa<X86MCExpr>(E), BaseLoc, "expected register here"))
 2265       if (!isa<X86MCExpr>(E)) {
 2315       isa<MCConstantExpr>(Disp) && cast<MCConstantExpr>(Disp)->getValue() == 0)
 2834       if (Op1.isImm() && isa<MCConstantExpr>(Op1.getImm()) &&
 2839       if (Op1.isImm() && isa<MCConstantExpr>(Op1.getImm()) &&
lib/Target/X86/AsmParser/X86Operand.h
  378        getMemBaseReg() == X86::SI) && isa<MCConstantExpr>(getMemDisp()) &&
  398        getMemBaseReg() == X86::DI) && isa<MCConstantExpr>(getMemDisp()) &&
lib/Target/X86/X86FastISel.cpp
  239   if (!isa<ExtractValueInst>(Cond))
  243   if (!isa<IntrinsicInst>(EV->getAggregateOperand()))
  278     if (!isa<ExtractValueInst>(Itr))
  660   if (isa<ConstantPointerNull>(Val))
 1398   if (isa<ConstantPointerNull>(Op1))
 2729     if (isa<ConstantInt>(MCI->getLength())) {
 2884     if (isa<ConstantInt>(LHS) && !isa<ConstantInt>(RHS) &&
 2884     if (isa<ConstantInt>(LHS) && !isa<ConstantInt>(RHS) &&
 3032       if (!isa<ConstantInt>(Index))
 3411       if (isa<UndefValue>(ArgVal))
 3428       } else if (isa<ConstantInt>(ArgVal) || isa<ConstantPointerNull>(ArgVal)) {
 3428       } else if (isa<ConstantInt>(ArgVal) || isa<ConstantPointerNull>(ArgVal)) {
lib/Target/X86/X86ISelDAGToDAG.cpp
  697       if (isa<ConstantSDNode>(U->getOperand(1)))
  777   if (isa<MemSDNode>(Chain.getNode()) &&
 1571       !isa<ConstantSDNode>(Shift.getOperand(1)) ||
 1631       !isa<ConstantSDNode>(Shift.getOperand(1)))
 1707       !isa<ConstantSDNode>(Shift.getOperand(1)))
 1795       !isa<ConstantSDNode>(Shift.getOperand(1)) ||
 1958     if (!isa<ConstantSDNode>(N.getOperand(1)) ||
 1959         !isa<ConstantSDNode>(And.getOperand(1)))
 1993               isa<ConstantSDNode>(MulVal.getOperand(1))) {
 2104     if (!isa<ConstantSDNode>(N.getOperand(1)))
 2406   else if (Base.getValueType() == MVT::i32 && !isa<FrameIndexSDNode>(Base)) {
 3662     if (isa<ConstantSDNode>(Add1) &&
 3668                isa<ConstantSDNode>(Add0) &&
lib/Target/X86/X86ISelLowering.cpp
 3876       else if (isa<ExternalSymbolSDNode>(Callee))
 4448     if (!Subtarget.is64Bit() && ((!isa<GlobalAddressSDNode>(Callee) &&
 4449                                   !isa<ExternalSymbolSDNode>(Callee)) ||
 5066   return !isa<ConstantSDNode>(Y);
 5579       isa<ConstantSDNode>(N->getOperand(2))) {
 5658   if (!isa<ConstantSDNode>(Idx))
 6029     if (isa<UndefValue>(Cst)) {
 6186       isa<ConstantSDNode>(Op.getOperand(0).getOperand(0))) {
 6200       isa<ConstantSDNode>(Op.getOperand(2))) {
 6223       isa<ConstantSDNode>(Op.getOperand(1))) {
 6453     if (isa<ConstantSDNode>(N->getOperand(1)) &&
 6454         isa<ConstantSDNode>(N->getOperand(2))) {
 6464     if (isa<ConstantSDNode>(N->getOperand(2)) &&
 6465         isa<ConstantSDNode>(N->getOperand(3))) {
 6980     if (!isa<ConstantSDNode>(N.getOperand(2)) ||
 6987         isa<ConstantSDNode>(Sub.getOperand(1))) {
 7054     if (!SrcExtract || !isa<ConstantSDNode>(SrcExtract.getOperand(1)))
 7077     if (!isa<ConstantSDNode>(InIndex) ||
 7099     if (!isa<ConstantSDNode>(ExIndex) ||
 7369       isa<ConstantSDNode>(N->getOperand(2))) {
 7383       isa<ConstantSDNode>(N->getOperand(1))) {
 7571         !isa<ConstantSDNode>(Elt.getOperand(1)))
 7689                isa<FrameIndexSDNode>(Ptr.getOperand(0))) {
 7759     if (isa<ConstantSDNode>(Elt.getOperand(1))) {
 7768     if (isa<ConstantSDNode>(Elt.getOperand(1))) {
 8382   if (!isa<ShuffleVectorSDNode>(ExtractedFromVec))
 8444     if (!isa<ConstantSDNode>(ExtIdx))
 8517     if (!isa<ConstantSDNode>(In))
 8637         isa<ConstantSDNode>(Op0.getOperand(1)) &&
 8638         isa<ConstantSDNode>(Op1.getOperand(1)));
 8790         !isa<ConstantSDNode>(Op0.getOperand(1)) ||
 8791         !isa<ConstantSDNode>(Op1.getOperand(1)) ||
 8984           !isa<ConstantSDNode>(Op0.getOperand(1)) ||
 8985           !isa<ConstantSDNode>(Op1.getOperand(1)) || !Op.hasOneUse())
 9228     if (!isa<ConstantSDNode>(RHS))
 9620     if (!isa<ConstantSDNode>(Elt) && !isa<ConstantFPSDNode>(Elt)) {
 9620     if (!isa<ConstantSDNode>(Elt) && !isa<ConstantFPSDNode>(Elt)) {
12451   if (!WideVT.is256BitVector() || !isa<ConstantSDNode>(N0.getOperand(1)) ||
12452       !isa<ConstantSDNode>(N1.getOperand(1)))
14856       if (!isa<LoadSDNode>(peekThroughBitcasts(V1))) {
15045   if (isa<ShuffleVectorSDNode>(NewV1) &&
15062   if (isa<ShuffleVectorSDNode>(NewV2) &&
17316     if (isa<ConstantSDNode>(Op.getOperand(1)))
17338   if (!isa<ConstantSDNode>(Idx)) {
17382   if (!isa<ConstantSDNode>(Idx)) {
17526   if (!isa<ConstantSDNode>(Idx)) {
17734   if (!isa<ConstantSDNode>(Idx))
18386       !isa<ConstantSDNode>(Extract.getOperand(1)))
19673       !isa<ConstantSDNode>(LHS.getOperand(1)) ||
19674       !isa<ConstantSDNode>(RHS.getOperand(1)) ||
19924     if (!isa<ConstantSDNode>(Idx))
29090   if (isa<MaskedLoadSDNode>(ExtVal.getOperand(0)))
32833            isa<ConstantSDNode>(Src.getOperand(1))) {
33976   if (!Subtarget.hasAVX2() || !isa<ShuffleVectorSDNode>(N))
35073   if (!isa<ConstantSDNode>(EltNo))
35398       if (Subtarget.hasSSE1() && !isa<ConstantFPSDNode>(V)) {
35640       isa<ConstantSDNode>(N0)) {
35677       !isa<ConstantSDNode>(LogicOp0.getOperand(0))) {
35684       !isa<ConstantSDNode>(LogicOp1.getOperand(0))) {
36051   if (SrcSVT == MVT::i1 || !isa<ConstantSDNode>(Idx))
36483           isa<ConstantSDNode>(Use->getOperand(1)) &&
37121         if (isa<BuildVectorSDNode>(CondRHS)) {
37196       if (isa<BuildVectorSDNode>(OpRHS) && isa<BuildVectorSDNode>(CondRHS) &&
37196       if (isa<BuildVectorSDNode>(OpRHS) && isa<BuildVectorSDNode>(CondRHS) &&
37541               !isa<ConstantSDNode>(CarryOp1.getOperand(1))) {
37706         !isa<ConstantSDNode>(Cond.getOperand(0))) {
37779     if (isa<ConstantSDNode>(Const) && Add.getOpcode() == ISD::ADD &&
37780         Add.hasOneUse() && isa<ConstantSDNode>(Add.getOperand(1)) &&
38988           if (!isa<ConstantDataArray>(Init) ||
39118   if (!isa<ConstantSDNode>(N->getOperand(1)))
39184       !isa<ConstantSDNode>(N->getOperand(1))) {
39249       isa<ConstantSDNode>(N->getOperand(0).getOperand(1))) {
39677       isa<ConstantSDNode>(ShAmt0.getOperand(1)) &&
39684       isa<ConstantSDNode>(ShAmt1.getOperand(1)) &&
39725           isa<ConstantSDNode>(ShAmt1Op1.getOperand(1)) &&
39751             isa<ConstantSDNode>(Op1.getOperand(1)) &&
39799   if (!isa<ConstantSDNode>(Shift.getOperand(1)) ||
40667       isa<LoadSDNode>(St->getValue()) &&
42126   if (!isa<ConstantSDNode>(CMovOp0.getNode()) ||
42127       !isa<ConstantSDNode>(CMovOp1.getNode()))
42286   if (!isa<ConstantSDNode>(CMovOp0.getNode()) ||
42287       !isa<ConstantSDNode>(CMovOp1.getNode()))
42676     return isa<ConstantSDNode>(X) || X.getValueType().isVector() ||
43372       Op.hasOneUse() && isa<ConstantSDNode>(Op.getOperand(1)) &&
43406     if (isa<ConstantSDNode>(Op.getOperand(1)))
43586           !isa<ConstantSDNode>(EFLAGS.getOperand(1))) {
43619         !isa<ConstantSDNode>(EFLAGS.getOperand(1))) {
44218         isa<ConstantSDNode>(Op1.getOperand(1))) {
45104                              isa<ConstantSDNode>(Op.getOperand(1));
45165         (!Commute || !isa<ConstantSDNode>(N0) ||
45169         ((Commute && !isa<ConstantSDNode>(N1)) ||
45547     if (isa<ConstantFP>(CallOperandVal)) {
lib/Target/X86/X86InterleavedAccess.cpp
  143   if (isa<LoadInst>(Inst)) {
  155   if (ShuffleElemSize == 8 && isa<StoreInst>(Inst) && Factor == 4 &&
  170   assert((isa<LoadInst>(VecInst) || isa<ShuffleVectorInst>(VecInst)) &&
  170   assert((isa<LoadInst>(VecInst) || isa<ShuffleVectorInst>(VecInst)) &&
  726   if (isa<LoadInst>(Inst)) {
lib/Target/X86/X86MCInstLower.cpp
 1732   if (isa<UndefValue>(COp)) {
lib/Target/X86/X86ShuffleDecodeConstantPool.cpp
   61       if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp)))
   61       if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp)))
   64       if (isa<UndefValue>(COp)) {
   81     if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp)))
   81     if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp)))
   86     if (isa<UndefValue>(COp)) {
lib/Target/X86/X86Subtarget.cpp
   92         if (isa<Function>(GV))
lib/Target/X86/X86TargetTransformInfo.cpp
 3094   if (isa<StoreInst>(U)) {
 3099       if (!all_of(GEP->indices(), [](Value *V) { return isa<Constant>(V); }))
 3111   assert(isa<VectorType>(SrcVTy) && "Unexpected type in getGSVectorCost");
 3130       if (isa<Constant>(GEP->getOperand(i)))
 3136           !isa<SExtInst>(GEP->getOperand(i))) ||
 3267   if (isa<VectorType>(DataTy) && DataTy->getVectorNumElements() == 1)
 3325   if (!isa<VectorType>(DataTy))
 3371   if (isa<VectorType>(DataTy)) {
lib/Target/X86/X86WinEHState.cpp
  369     if (!isa<ReturnInst>(T))
  570     if (isa<CatchReturnInst>(PredBB->getTerminator()))
  594   if (isa<CatchReturnInst>(BB->getTerminator()))
  738     if (isa<CleanupPadInst>(FuncletEntryBB->getFirstNonPHI()))
  780     bool InCleanup = isa<CleanupPadInst>(FuncletEntryBB->getFirstNonPHI());
lib/Target/XCore/XCoreLowerThreadLocal.cpp
  163     if (!isa<Instruction>(U))
lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
   75     if (isa<Constant>(Curr)) {
  147   if (isa<Constant>(Src))
  156     if (isa<Constant>(Curr)) {
  241     bool IsExtInst = (isa<ZExtInst>(I) || isa<SExtInst>(I));
  241     bool IsExtInst = (isa<ZExtInst>(I) || isa<SExtInst>(I));
  319         assert(!isa<TruncInst>(I) && "Cannot reach here with TruncInst");
lib/Transforms/CFGuard/CFGuard.cpp
  211     assert(isa<InvokeInst>(CB) && "Unknown indirect call type");
lib/Transforms/Coroutines/CoroElide.cpp
  101     if (!isa<AllocaInst>(&I))
  160         !isa<UnreachableInst>(TI))
lib/Transforms/Coroutines/CoroFrame.cpp
  129     if (isa<CoroSuspendRetconInst>(I)) {
  147     if (isa<AnyCoroSuspendInst>(I)) {
  647     return isa<AllocaInst>(CurrentValue)
  689         } else if (isa<PHINode>(CurrentValue)) {
  813   for (BasicBlock::iterator I = DestBB->begin(); isa<PHINode>(I); ++I) {
  942   return isa<CastInst>(&V) || isa<GetElementPtrInst>(&V) ||
  942   return isa<CastInst>(&V) || isa<GetElementPtrInst>(&V) ||
  943          isa<BinaryOperator>(&V) || isa<CmpInst>(&V) || isa<SelectInst>(&V);
  943          isa<BinaryOperator>(&V) || isa<CmpInst>(&V) || isa<SelectInst>(&V);
  943          isa<BinaryOperator>(&V) || isa<CmpInst>(&V) || isa<SelectInst>(&V);
  949   return isa<CoroIdInst>(&I) || isa<CoroSaveInst>(&I) ||
  949   return isa<CoroIdInst>(&I) || isa<CoroSaveInst>(&I) ||
  950          isa<CoroSuspendInst>(&I);
 1013   return isa<AnyCoroSuspendInst>(BB->front());
 1113       if (isa<CoroAllocaGetInst>(U)) {
 1145     if (isa<CoroAllocaGetInst>(U)) {
 1210   if (isa<CallInst>(Call)) {
 1237     if (isa<LoadInst>(User) || isa<StoreInst>(User))
 1237     if (isa<LoadInst>(User) || isa<StoreInst>(User))
 1240     assert(isa<CallInst>(User) || isa<InvokeInst>(User));
 1240     assert(isa<CallInst>(User) || isa<InvokeInst>(User));
 1420     if (isa<CoroAllocaGetInst>(I)) {
lib/Transforms/Coroutines/CoroInstr.h
   65     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
   77     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  108     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  119     return isa<ConstantPointerNull>(Arg)
  128     if (isa<AllocaInst>(Arg))
  130     assert((isa<BitCastInst>(Arg) || isa<GetElementPtrInst>(Arg)) &&
  130     assert((isa<BitCastInst>(Arg) || isa<GetElementPtrInst>(Arg)) &&
  186     assert(isa<ConstantPointerNull>(getArgOperand(CoroutineArg)) &&
  198     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  246     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  259     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  272     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  284     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  300     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  320     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  332     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  353     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  367     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  380     assert(isa<ConstantTokenNone>(Arg));
  393     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  424     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  436     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  455     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  475     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  492     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
  509     return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
lib/Transforms/Coroutines/CoroSplit.cpp
  429   if (!isa<StructType>(NewS->getType())) {
  912     if (isa<ReturnInst>(I)) {
  956         if (isa<CoroSubFnInst>(CalledValue->stripPointerCasts()))
 1009     if (isa<IntrinsicInst>(I))
lib/Transforms/Coroutines/Coroutines.cpp
  561   if (isa<CoroIdRetconInst>(I)) {
  621   if (!isa<ConstantInt>(V)) {
lib/Transforms/IPO/ArgumentPromotion.cpp
  787   if (!isa<CompositeType>(type))
  828     if (isa<GetElementPtrInst>(V) || isa<PHINode>(V)) {
  828     if (isa<GetElementPtrInst>(V) || isa<PHINode>(V)) {
  833     } else if (!isa<LoadInst>(V)) {
lib/Transforms/IPO/Attributor.cpp
  473     assert((isa<CallBase>(AnchorVal) || isa<Argument>(AnchorVal)) &&
  473     assert((isa<CallBase>(AnchorVal) || isa<Argument>(AnchorVal)) &&
  475     if (isa<Argument>(AnchorVal)) {
  492     assert((!isa<CallBase>(&getAssociatedValue()) &&
  493             !isa<Argument>(&getAssociatedValue())) &&
  497     assert(isa<Function>(AnchorVal) &&
  502     assert((isa<CallBase>(AnchorVal)) &&
  507     assert((isa<CallBase>(AnchorVal)) &&
  512     assert(isa<Function>(AnchorVal) &&
 1004       assert(isa<CallBase>(AnchorValue) &&
 1038         !(isa<UndefValue>(RV) || isa<UndefValue>(UniqueRV.getValue()))) {
 1038         !(isa<UndefValue>(RV) || isa<UndefValue>(UniqueRV.getValue()))) {
 1044     if (!UniqueRV.hasValue() || !isa<UndefValue>(RV))
 1172       if (isa<Argument>(RetVal) || isa<CallBase>(RetVal) ||
 1172       if (isa<Argument>(RetVal) || isa<CallBase>(RetVal) ||
 1173           isa<Constant>(RetVal))
 1206       } else if (isa<CallBase>(RetVal)) {
 1210       } else if (isa<Constant>(RetVal)) {
 1362   assert(!ImmutableCallSite(I) && !isa<CallBase>(I) &&
 1385     if (isa<IntrinsicInst>(&I) && isNoSyncIntrinsic(&I))
 1922     if (isa<AllocaInst>(Val))
 1924     if (isa<ConstantPointerNull>(Val) &&
 2039         if (C->isNullValue() || isa<UndefValue>(C))
 2917     if (isa<ConstantPointerNull>(getAssociatedValue()) &&
 3071     if (isa<PtrToIntInst>(UInst)) {
 3077     if (isa<ReturnInst>(UInst))
 3184       if (isa<Constant>(It.first)) {
 3188       } else if (!isa<Argument>(It.first) ||
 3351     if (isa<UndefValue>(QueryingValueSimplifiedUnwrapped))
 3458     if (isa<Constant>(V) || isa<UndefValue>(V))
 3458     if (isa<Constant>(V) || isa<UndefValue>(V))
 3649       if (isa<LoadInst>(UserI))
 3694       if (isa<GetElementPtrInst>(UserI) || isa<BitCastInst>(UserI)) {
 3694       if (isa<GetElementPtrInst>(UserI) || isa<BitCastInst>(UserI)) {
 4133   if (isa<LoadInst>(UserI))
 4688       assert((!ImmutableCallSite(&I)) && (!isa<CallBase>(&I)) &&
 4844     if (isa<LoadInst>(I))
lib/Transforms/IPO/BlockExtractor.cpp
  138       if (!isa<InvokeInst>(&I))
  149             isa<InvokeInst>(Parent->getTerminator())) {
lib/Transforms/IPO/CalledValuePropagation.cpp
  125       if (isa<Instruction>(Key.getPointer())) {
  210     if (isa<Function>(Key.getPointer()))
  231     if (isa<ConstantPointerNull>(C))
lib/Transforms/IPO/DeadArgumentElimination.cpp
  819         assert(isa<ArrayType>(RetTy) && "unexpected multi-value return");
lib/Transforms/IPO/FunctionAttrs.cpp
  598           if (!isa<Argument>(RetVal) || RetVal->getType() != F->getReturnType())
  871       if (!C->isNullValue() && !isa<UndefValue>(C))
  877     if (isa<Argument>(RetVal))
lib/Transforms/IPO/FunctionImport.cpp
  307       if (isa<GlobalVarSummary>(RefSummary.get()) &&
lib/Transforms/IPO/GlobalDCE.cpp
   89     if (isa<DbgInfoIntrinsic>(I))
  132     if (VFESafeVTables.count(GVU) && isa<Function>(&GV)) {
lib/Transforms/IPO/GlobalOpt.cpp
  143           if (isa<PointerType>(InnerTy)) return true;
  144           if (isa<CompositeType>(InnerTy))
  161     if (isa<Constant>(V))
  165     if (isa<LoadInst>(V) || isa<InvokeInst>(V) || isa<Argument>(V) ||
  165     if (isa<LoadInst>(V) || isa<InvokeInst>(V) || isa<Argument>(V) ||
  165     if (isa<LoadInst>(V) || isa<InvokeInst>(V) || isa<Argument>(V) ||
  166         isa<GlobalValue>(V))
  212       if (isa<Constant>(V)) {
  220       if (isa<Constant>(MSI->getValue())) {
  324       if (!isa<ConstantExpr>(GEP->getOperand(0))) {
  333         if (Init && isa<ConstantAggregateZero>(Init) && GEP->isInBounds())
  370   if (U->getNumOperands() < 3 || !isa<Constant>(U->getOperand(1)) ||
  407   if (isa<LoadInst>(I)) return true;
  414   return isa<GetElementPtrInst>(I) && isSafeSROAGEP(I);
  422     if (!isa<GetElementPtrInst>(U) &&
  423         (!isa<ConstantExpr>(U) ||
  554     assert(((isa<ConstantExpr>(GEP) &&
  556             isa<GetElementPtrInst>(GEP)) && "NonGEP CE's are not SRAable!");
  623     if (isa<LoadInst>(U)) {
  649     } else if (isa<ICmpInst>(U) &&
  650                isa<ConstantPointerNull>(U->getOperand(1))) {
  669     } else if (isa<StoreInst>(U)) {
  695     } else if (isa<CallInst>(I) || isa<InvokeInst>(I)) {
  695     } else if (isa<CallInst>(I) || isa<InvokeInst>(I)) {
  771     } else if (isa<StoreInst>(GlobalUser)) {
  780       assert((isa<PHINode>(GlobalUser) || isa<SelectInst>(GlobalUser) ||
  780       assert((isa<PHINode>(GlobalUser) || isa<SelectInst>(GlobalUser) ||
  781               isa<ConstantExpr>(GlobalUser) || isa<CmpInst>(GlobalUser) ||
  781               isa<ConstantExpr>(GlobalUser) || isa<CmpInst>(GlobalUser) ||
  782               isa<BitCastInst>(GlobalUser) ||
  783               isa<GetElementPtrInst>(GlobalUser)) &&
  971     if (isa<LoadInst>(Inst) || isa<CmpInst>(Inst)) {
  971     if (isa<LoadInst>(Inst) || isa<CmpInst>(Inst)) {
  982     if (isa<GetElementPtrInst>(Inst) && Inst->getNumOperands() >= 3) {
 1027     } else if (isa<BitCastInst>(U)) {
 1066       if (!isa<ConstantPointerNull>(ICI->getOperand(1)))
 1202     assert(isa<ConstantPointerNull>(SCI->getOperand(1)));
 1218     assert(GEPI->getNumOperands() >= 3 && isa<ConstantInt>(GEPI->getOperand(2))
 1410     assert(isa<ConstantPointerNull>(SI->getOperand(0)) &&
 1622     if (!isa<LoadInst>(U) && !isa<StoreInst>(U))
 1622     if (!isa<LoadInst>(U) && !isa<StoreInst>(U))
 1722           assert((isa<CastInst>(StoredVal) || isa<SelectInst>(StoredVal)) &&
 1722           assert((isa<CastInst>(StoredVal) || isa<SelectInst>(StoredVal)) &&
 1725           assert(isa<LoadInst>(StoreVal) && "Not a load of NewGV!");
 1872     if (isa<Instruction>(U))
 1874     if (!isa<ConstantExpr>(U))
 1878       if (!isa<Instruction>(UU))
 1893     if (isa<ConstantExpr>(U))
 1899           isa<Instruction>(U) &&
 1953     if (!isa<UndefValue>(GV->getInitializer()))
 2024       if (isa<UndefValue>(GV->getInitializer())) {
 2105     if (isa<BlockAddress>(U))
 2123     if (isa<BlockAddress>(U))
 2146     if (isa<BlockAddress>(U))
 2187     if (isa<BlockAddress>(U))
 2204     if (isa<BlockAddress>(U))
 2859     if (isa<DbgInfoIntrinsic>(I))
 2861     if (isa<ReturnInst>(I))
lib/Transforms/IPO/GlobalSplit.cpp
   56     if (!isa<Constant>(U))
   61         !isa<ConstantInt>(GEP->getOperand(1)) ||
   63         !isa<ConstantInt>(GEP->getOperand(2)))
lib/Transforms/IPO/HotColdSplitting.cpp
  100   return !(isa<ReturnInst>(I) || isa<IndirectBrInst>(I));
  100   return !(isa<ReturnInst>(I) || isa<IndirectBrInst>(I));
  105   if (BB.isEHPad() || isa<ResumeInst>(BB.getTerminator()))
  137   return !BB.hasAddressTaken() && !BB.isEHPad() && !isa<InvokeInst>(Term) &&
  138          !isa<ResumeInst>(Term);
  263       NoBlocksReturn &= isa<UnreachableInst>(BB->getTerminator());
lib/Transforms/IPO/IPConstantPropagation.cpp
   62     if (isa<BlockAddress>(UR)) continue;
  195           if (isa<UndefValue>(V))
  199           if (isa<Constant>(V) || isa<Argument>(V)) {
  199           if (isa<Constant>(V) || isa<Argument>(V)) {
  200             if (isa<UndefValue>(RV)) {
lib/Transforms/IPO/Inliner.cpp
  567         if (!CS || isa<IntrinsicInst>(I))
  935           else if (!isa<IntrinsicInst>(I)) {
lib/Transforms/IPO/LoopExtractor.cpp
  110   if (!isa<BranchInst>(EntryTI) ||
  120       if (!isa<ReturnInst>(ExitBlocks[i]->getTerminator())) {
lib/Transforms/IPO/LowerTypeTests.cpp
  976           ConstantInt::get(isa<IntegerType>(Ty) ? Ty : Int64Ty, Const);
  977       if (!isa<IntegerType>(Ty))
  984     if (isa<IntegerType>(Ty))
 1174   if (isa<GlobalVariable>(GO) && GO->hasSection())
 1635       Globals.empty() || isa<GlobalVariable>(Globals[0]->getGlobal());
 1640       if (IsGlobalSet != isa<GlobalVariable>(Globals[Offset]->getGlobal()))
 1721     if (isa<BlockAddress>(U.getUser()))
 1731       if (!isa<GlobalValue>(C)) {
 1943     if (isa<GlobalVariable>(GO) && GO.isDeclarationForLinker())
lib/Transforms/IPO/PartialInlining.cpp
  569     return isa<ReturnInst>(TI);
lib/Transforms/IPO/PruneEH.cpp
  112         } else if (CheckReturn && isa<ReturnInst>(TI)) {
  207             !isa<UnreachableInst>(I)) {
lib/Transforms/IPO/SampleProfile.cpp
  671   if (isa<BranchInst>(Inst) || isa<IntrinsicInst>(Inst) || isa<PHINode>(Inst))
  671   if (isa<BranchInst>(Inst) || isa<IntrinsicInst>(Inst) || isa<PHINode>(Inst))
  671   if (isa<BranchInst>(Inst) || isa<IntrinsicInst>(Inst) || isa<PHINode>(Inst))
  678   if ((isa<CallInst>(Inst) || isa<InvokeInst>(Inst)) &&
  678   if ((isa<CallInst>(Inst) || isa<InvokeInst>(Inst)) &&
  854   assert(isa<CallInst>(I) || isa<InvokeInst>(I));
  854   assert(isa<CallInst>(I) || isa<InvokeInst>(I));
  922         if ((isa<CallInst>(I) || isa<InvokeInst>(I)) &&
  922         if ((isa<CallInst>(I) || isa<InvokeInst>(I)) &&
  923             !isa<IntrinsicInst>(I) && (FS = findCalleeFunctionSamples(I))) {
  974             if ((isa<CallInst>(DI) || isa<InvokeInst>(DI)) &&
  974             if ((isa<CallInst>(DI) || isa<InvokeInst>(DI)) &&
 1425         if (!isa<CallInst>(I) && !isa<InvokeInst>(I))
 1425         if (!isa<CallInst>(I) && !isa<InvokeInst>(I))
 1449         } else if (!isa<IntrinsicInst>(&I)) {
 1459     if (!isa<BranchInst>(TI) && !isa<SwitchInst>(TI))
 1459     if (!isa<BranchInst>(TI) && !isa<SwitchInst>(TI))
lib/Transforms/IPO/StripSymbols.cpp
  150   else if (!isa<Function>(C))
  151     if (isa<CompositeType>(C->getType()))
  165     if (!isa<GlobalValue>(V) || cast<GlobalValue>(V)->hasLocalLinkage()) {
lib/Transforms/IPO/SyntheticCountsPropagation.cpp
   69       if (!isa<CallInst>(U) && !isa<InvokeInst>(U))
   69       if (!isa<CallInst>(U) && !isa<InvokeInst>(U))
  113     assert(isa<Instruction>(Edge.first));
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
   92     if (isa<MDNode>(MD) && cast<MDNode>(MD)->isDistinct()) {
  190   if (isa<GlobalValue>(C))
  348     if (!isa<Function>(A.getAliasee()))
lib/Transforms/IPO/WholeProgramDevirt.cpp
 1053   if (isa<MDString>(Slot.TypeID)) {
 1184         !isa<ConstantInt>(RetVal))
 1866       if (ExportSummary && isa<MDString>(S.first.TypeID))
 1890     if (ExportSummary && isa<MDString>(S.first.TypeID)) {
lib/Transforms/InstCombine/InstCombineAddSub.cpp
  470     InstQuota = ((!isa<Constant>(V0) && V0->hasOneUse()) &&
  471                  (!isa<Constant>(V1) && V1->hasOneUse())) ? 2 : 1;
  714     if (isa<UndefValue>(Opnd->getSymVal()))
 1934     if (match(Op1, m_Mul(m_Value(A), m_Constant(C))) && !isa<ConstantExpr>(C)) {
 2127   if (isa<Constant>(Op0))
 2135   if (match(Op1, m_Constant(C)) && !isa<ConstantExpr>(Op1))
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
 1483   if (CI->getSrcTy() == CI->getDestTy() || isa<Constant>(CastSrc))
 1666       if (isa<UndefValue>(Elt))
 1701   if (!isa<VectorType>(Ty) && !shouldChangeType(Ty, X->getType()))
 1798       if (!isa<Constant>(Y) && MaskedValueIsZero(Y, NotAndMask, 0, &I)) {
 1834             if (isa<ZExtInst>(Op0LHS))
 2692   if (Op0->hasOneUse() && !isa<ConstantInt>(Op1) &&
 3046       if (isa<Constant>(X) || NotVal->hasOneUse())
lib/Transforms/InstCombine/InstCombineCalls.cpp
  100     assert((isa<ConstantInt>(Elt) || isa<ConstantFP>(Elt)) &&
  100     assert((isa<ConstantInt>(Elt) || isa<ConstantFP>(Elt)) &&
  153   if (isa<AtomicMemTransferInst>(MI))
  180         M->getOperand(2) && isa<MDNode>(M->getOperand(2)))
  216   if (isa<AtomicMemTransferInst>(MI)) {
  257   if (isa<AtomicMemSetInst>(MI))
  275     if (isa<AtomicMemSetInst>(MI))
  483     if (CElt && isa<UndefValue>(CElt)) {
  551   if (isa<UndefValue>(Arg0) && isa<UndefValue>(Arg1))
  551   if (isa<UndefValue>(Arg0) && isa<UndefValue>(Arg1))
  567   if (!isa<Constant>(Arg0) || !isa<Constant>(Arg1))
  567   if (!isa<Constant>(Arg0) || !isa<Constant>(Arg1))
  617   if (isa<UndefValue>(Arg))
  934     if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp)))
  934     if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp)))
  937     if (isa<UndefValue>(COp)) {
  981     if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp)))
  981     if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp)))
  984     if (isa<UndefValue>(COp)) {
 1029     if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp)))
 1029     if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp)))
 1032     if (isa<UndefValue>(COp)) {
 1305   if (isa<ConstantAggregateZero>(Mask))
 1341   if (isa<ConstantAggregateZero>(Mask)) {
 1419     if (!COp || !isa<ConstantInt>(COp))
 1486       if (isa<DbgInfoIntrinsic>(E) || E->getIntrinsicID() == StartID)
 1761   if (isa<Constant>(Arg0) && !isa<Constant>(Arg1)) {
 1761   if (isa<Constant>(Arg0) && !isa<Constant>(Arg1)) {
 1830               isa<AtomicMemMoveInst>(MMI)
 1951         !isa<ConstantExpr>(ShAmtC) && !ShAmtC->containsConstantExpression()) {
 2471     if (isa<ConstantAggregateZero>(Arg))
 2474     if (isa<ConstantDataVector>(Arg)) {
 2613          match(Arg1, m_PosZeroFP()) && isa<Instruction>(Arg0) &&
 3053     if (isa<ConstantAggregateZero>(Mask))
 3172         if (!Elt || !(isa<ConstantInt>(Elt) || isa<UndefValue>(Elt))) {
 3172         if (!Elt || !(isa<ConstantInt>(Elt) || isa<UndefValue>(Elt))) {
 3191           if (isa<UndefValue>(Mask->getAggregateElement(i)))
 3264     if (isa<ConstantAggregateZero>(Arg0) || isa<ConstantAggregateZero>(Arg1)) {
 3264     if (isa<ConstantAggregateZero>(Arg0) || isa<ConstantAggregateZero>(Arg1)) {
 3328     if (isa<UndefValue>(Src))
 3348     if (isa<UndefValue>(Src))
 3372     if (isa<UndefValue>(Src))
 3398       if (isa<UndefValue>(Src0))
 3401       if (isa<UndefValue>(Src1))
 3440       if (isa<UndefValue>(Src0))
 3492     if (isa<UndefValue>(Src0) && isa<UndefValue>(Src1))
 3492     if (isa<UndefValue>(Src0) && isa<UndefValue>(Src1))
 3504     if (isa<UndefValue>(Src0) && isa<UndefValue>(Src1))
 3504     if (isa<UndefValue>(Src0) && isa<UndefValue>(Src1))
 3513     if (isa<UndefValue>(Src))
 3584         if (!isa<UndefValue>(Src)) {
 3608     if (match(Src0, m_NaN()) || isa<UndefValue>(Src0)) {
 3610     } else if (match(Src1, m_NaN()) || isa<UndefValue>(Src1)) {
 3612     } else if (match(Src2, m_NaN()) || isa<UndefValue>(Src2)) {
 3626     if (isa<Constant>(Src0) && !isa<Constant>(Src1)) {
 3626     if (isa<Constant>(Src0) && !isa<Constant>(Src1)) {
 3631     if (isa<Constant>(Src1) && !isa<Constant>(Src2)) {
 3631     if (isa<Constant>(Src1) && !isa<Constant>(Src2)) {
 3636     if (isa<Constant>(Src0) && !isa<Constant>(Src1)) {
 3636     if (isa<Constant>(Src0) && !isa<Constant>(Src1)) {
 3799     if (!isa<Constant>(II->getArgOperand(0)))
 3821         isa<UndefValue>(Old))
 3877       if (isa<AllocaInst>(BI)) {
 3905     if (!CannotRemove && (isa<ReturnInst>(TI) || isa<ResumeInst>(TI)))
 3905     if (!CannotRemove && (isa<ReturnInst>(TI) || isa<ResumeInst>(TI)))
 4004     if (isa<UndefValue>(DerivedPtr))
 4012       if (isa<ConstantPointerNull>(DerivedPtr))
 4148   if (!isa<AllocaInst>(Underlying))
 4300   if (!isa<Function>(Callee) && transformConstExprCastCall(Call))
 4326       if (isa<CallInst>(OldCall))
 4338   if ((isa<ConstantPointerNull>(Callee) &&
 4340       isa<UndefValue>(Callee)) {
 4384   if (isa<InlineAsm>(Callee) && !Call.doesNotThrow()) {
 4470       if (isa<CallBrInst>(Caller))
lib/Transforms/InstCombine/InstCombineCasts.cpp
  306   if (isa<Constant>(V))
  319   assert(!isa<Constant>(V) && "Constant should already be handled.");
  320   if (!isa<Instruction>(V))
  459   if (!TruncOp->hasOneUse() || !isa<IntegerType>(DestType))
  467       !isa<VectorType>(VecInput->getType()))
  496   assert((isa<VectorType>(Trunc.getSrcTy()) ||
  582   if (!isa<VectorType>(SrcTy) && !shouldChangeType(SrcTy, DestTy))
  640   if (Shuf && Shuf->hasOneUse() && isa<UndefValue>(Shuf->getOperand(1)) &&
  673   if (isa<UndefValue>(VecOp)) {
  821   if (Src->hasOneUse() && isa<IntegerType>(SrcTy) &&
 1091   if (CI.hasOneUse() && isa<TruncInst>(CI.user_back()))
 1363   if (CI.hasOneUse() && isa<TruncInst>(CI.user_back()))
 1629       if (isa<BinaryOperator>(Op))
 1688   if (!isa<UIToFPInst>(FI.getOperand(0)) && !isa<SIToFPInst>(FI.getOperand(0)))
 1688   if (!isa<UIToFPInst>(FI.getOperand(0)) && !isa<SIToFPInst>(FI.getOperand(0)))
 1696   bool IsInputSigned = isa<SIToFPInst>(OpI);
 1697   bool IsOutputSigned = isa<FPToSIInst>(FI);
 1789         (!isa<AddrSpaceCastInst>(CI) ||
 1904   if (isa<UndefValue>(V)) return true;
 1939     if (!isa<IntegerType>(C->getType()))
 2073       X->getType() == DestTy && !isa<Constant>(X)) {
 2080       X->getType() == DestTy && !isa<Constant>(X)) {
 2129       !isa<Constant>(X)) {
 2136       !isa<Constant>(X)) {
 2148     if (!isa<StoreInst>(U))
 2183       if (isa<Constant>(IncValue))
 2192         if (Addr == &CI || isa<LoadInst>(Addr))
 2332            isa<CompositeType>(SrcElTy) && !SrcElTy->isPointerTy() &&
 2369     if (isa<IntegerType>(SrcTy)) {
 2373       if (isa<TruncInst>(Src) || isa<ZExtInst>(Src)) {
 2373       if (isa<TruncInst>(Src) || isa<ZExtInst>(Src)) {
 2376           if (isa<VectorType>(BCIn->getOperand(0)->getType()))
 2444       assert(isa<UndefValue>(ShufOp1) && "Unexpected shuffle op");
lib/Transforms/InstCombine/InstCombineCompares.cpp
   67     if (isa<BranchInst>(U))
  150   if (!isa<ConstantArray>(Init) && !isa<ConstantDataArray>(Init))
  150   if (!isa<ConstantArray>(Init) && !isa<ConstantDataArray>(Init))
  163       !isa<ConstantInt>(GEP->getOperand(1)) ||
  165       isa<Constant>(GEP->getOperand(2)))
  238     if (isa<UndefValue>(C)) {
  250     if (!isa<ConstantInt>(C)) return nullptr;
  547       if (!isa<IntToPtrInst>(V) && !isa<PtrToIntInst>(V) &&
  547       if (!isa<IntToPtrInst>(V) && !isa<PtrToIntInst>(V) &&
  548           !isa<GetElementPtrInst>(V) && !isa<PHINode>(V))
  548           !isa<GetElementPtrInst>(V) && !isa<PHINode>(V))
  553       if (isa<IntToPtrInst>(V) || isa<PtrToIntInst>(V)) {
  553       if (isa<IntToPtrInst>(V) || isa<PtrToIntInst>(V)) {
  582         if (isa<CatchSwitchInst>(PN->getParent()->getTerminator()))
  638   assert(isa<Constant>(V) && "Setting insertion point for unknown value!");
  698       if (isa<ConstantInt>(Op) && cast<ConstantInt>(Op)->isZero())
  705     if (isa<PHINode>(Val))
  857   if (!isa<GetElementPtrInst>(RHS))
  878       isa<Constant>(RHS) && cast<Constant>(RHS)->isNullValue() &&
 1010     if (GEPsInBounds && (isa<ConstantExpr>(GEPLHS) || GEPLHS->hasOneUse()) &&
 1011         (isa<ConstantExpr>(GEPRHS) || GEPRHS->hasOneUse())) {
 1059     if (isa<BitCastInst>(V) || isa<GetElementPtrInst>(V) || isa<PHINode>(V) ||
 1059     if (isa<BitCastInst>(V) || isa<GetElementPtrInst>(V) || isa<PHINode>(V) ||
 1059     if (isa<BitCastInst>(V) || isa<GetElementPtrInst>(V) || isa<PHINode>(V) ||
 1060         isa<SelectInst>(V)) {
 1062     } else if (isa<LoadInst>(V)) {
 1070     } else if (isa<ICmpInst>(V)) {
 1167   bool IsAShr = isa<AShrOperator>(I.getOperand(0));
 1377   } else if (isa<BinaryOperator>(Val) &&
 1700       !Shift->isArithmeticShift() && !isa<Constant>(Shift->getOperand(0))) {
 1840             !LI->isVolatile() && isa<ConstantInt>(Y)) {
 2659   if (PredB == ICmpInst::ICMP_SGT && isa<Constant>(RHS2)) {
 2771       (isa<Constant>(Op1) || isa<BitCastInst>(Op1))) {
 2771       (isa<Constant>(Op1) || isa<BitCastInst>(Op1))) {
 3500   if (!isa<Constant>(X) && !isa<Constant>(Y)) {
 3500   if (!isa<Constant>(X) && !isa<Constant>(Y)) {
 3691   if (BO0 && isa<OverflowingBinaryOperator>(BO0))
 3696   if (BO1 && isa<OverflowingBinaryOperator>(BO1))
 4202     if (Pow2.isPowerOf2() && isa<IntegerType>(A->getType()) &&
 4300   assert(isa<CastInst>(ICmp.getOperand(0)) && "Expected cast for operand 0");
 4376   if (IsSignedCmp || !IsSignedExt || !isa<ConstantInt>(C))
 4395   if (!isa<Constant>(ICmp.getOperand(1)) && !isa<CastInst>(ICmp.getOperand(1)))
 4395   if (!isa<Constant>(ICmp.getOperand(1)) && !isa<CastInst>(ICmp.getOperand(1)))
 4405     if (isa<VectorType>(SrcTy)) {
 4473   if (OrigI.isCommutative() && isa<Constant>(LHS) && !isa<Constant>(RHS))
 4473   if (OrigI.isCommutative() && isa<Constant>(LHS) && !isa<Constant>(RHS))
 4531   if (!isa<IntegerType>(MulVal->getType()))
 4719   if (isa<Instruction>(OtherVal))
 4966   if (!isa<Constant>(Op0) && Op0Min == Op0Max)
 4968   if (!isa<Constant>(Op1) && Op1Min == Op1Max)
 5104     assert(!isa<ConstantInt>(Op1) && "ICMP_SGE with ConstantInt not folded!");
 5113     assert(!isa<ConstantInt>(Op1) && "ICMP_SLE with ConstantInt not folded!");
 5122     assert(!isa<ConstantInt>(Op1) && "ICMP_UGE with ConstantInt not folded!");
 5131     assert(!isa<ConstantInt>(Op1) && "ICMP_ULE with ConstantInt not folded!");
 5181       if (isa<UndefValue>(Elt))
 5370     Value *NewCmp = isa<ICmpInst>(Cmp) ? Builder.CreateICmp(P, V1, V2)
 5541         isa<IntegerType>(A->getType())) {
 5606   if (!isa<ConstantFP>(RHSC)) return nullptr;
 5616   bool LHSUnsigned = isa<UIToFPInst>(LHSI);
lib/Transforms/InstCombine/InstCombineInternal.h
   84   if (isa<Instruction>(V)) {
   85     if (isa<CastInst>(V) || match(V, m_Neg(m_Value())) ||
   90   if (isa<Argument>(V))
   92   return isa<Constant>(V) ? (isa<UndefValue>(V) ? 0 : 1) : 2;
   92   return isa<Constant>(V) ? (isa<UndefValue>(V) ? 0 : 1) : 2;
  197   if (isa<CmpInst>(V))
  205       if (isa<Constant>(BO->getOperand(0)) || isa<Constant>(BO->getOperand(1)))
  205       if (isa<Constant>(BO->getOperand(0)) || isa<Constant>(BO->getOperand(1)))
  291     Out[i] = isa<UndefValue>(C) ? SafeC : C;
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
   79       if (isa<BitCastInst>(I) || isa<AddrSpaceCastInst>(I)) {
   79       if (isa<BitCastInst>(I) || isa<AddrSpaceCastInst>(I)) {
  206       while (isa<AllocaInst>(*It) || isa<DbgInfoIntrinsic>(*It))
  206       while (isa<AllocaInst>(*It) || isa<DbgInfoIntrinsic>(*It))
  225   if (isa<UndefValue>(AI.getArraySize()))
  273     if (isa<LoadInst>(Inst)) {
  277     } else if (isa<GetElementPtrInst>(Inst) || isa<BitCastInst>(Inst)) {
  277     } else if (isa<GetElementPtrInst>(Inst) || isa<BitCastInst>(Inst)) {
  863   if (isa<Constant>(GEPI->getOperand(Idx)))
  931   return (isa<ConstantPointerNull>(Ptr) &&
  938     if (isa<ConstantPointerNull>(GEPI0) &&
  942   if (isa<UndefValue>(Op) ||
  943       (isa<ConstantPointerNull>(Op) &&
 1043       if (isa<ConstantPointerNull>(SI->getOperand(1)) &&
 1051       if (isa<ConstantPointerNull>(SI->getOperand(2)) &&
 1092   if (!isa<UndefValue>(V) ||!U)
 1298   if (isa<BinaryOperator>(A) ||
 1299       isa<CastInst>(A) ||
 1300       isa<PHINode>(A) ||
 1301       isa<GetElementPtrInst>(A))
 1390     if (isa<AllocaInst>(Ptr))
 1393       if (isa<AllocaInst>(GEP->getOperand(0))) {
 1415     if (isa<DbgInfoIntrinsic>(BBI) ||
 1416         (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) {
 1455     if (!isa<UndefValue>(Val)) {
 1464   if (isa<UndefValue>(Val))
 1473   } while (isa<DbgInfoIntrinsic>(BBI) ||
 1474            (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy()));
 1521     while (isa<DbgInfoIntrinsic>(BBI) ||
 1522            (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) {
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  115     if (isa<UndefValue>(Elt)) {
  264   if (isa<Constant>(Op1)) {
  946     Value *NarrowOp = isa<Constant>(D) ? Builder.CreateBinOp(Opcode, X, TruncC)
 1218   if (isa<Constant>(Op0))
 1223   if (isa<Constant>(Op1))
 1231         (!isa<Constant>(Y) || !isa<Constant>(Op1))) {
 1231         (!isa<Constant>(Y) || !isa<Constant>(Op1))) {
 1237         (!isa<Constant>(Y) || !isa<Constant>(Op0))) {
 1237         (!isa<Constant>(Y) || !isa<Constant>(Op0))) {
 1318   if (isa<Constant>(Op1)) {
 1432   if (isa<ConstantVector>(Op1) || isa<ConstantDataVector>(Op1)) {
 1432   if (isa<ConstantVector>(Op1) || isa<ConstantDataVector>(Op1)) {
lib/Transforms/InstCombine/InstCombinePHI.cpp
   37   assert(!isa<CallInst>(Inst));
  143       if (isa<IntToPtrInst>(U) && U->getType() == IntToPtr->getType() &&
  158     if (isa<PHINode>(Arg)) {
  214         return (V->getType() != IntToPtr->getType()) || isa<IntToPtrInst>(V);
  245     assert((isa<PHINode>(IncomingVal) ||
  265         if (isa<PHINode>(IncomingI))
  285   assert(isa<BinaryOperator>(FirstInst) || isa<CmpInst>(FirstInst));
  285   assert(isa<BinaryOperator>(FirstInst) || isa<CmpInst>(FirstInst));
  403         (!isa<AllocaInst>(GEP->getOperand(0)) ||
  417       if (isa<ConstantInt>(FirstInst->getOperand(op)) ||
  418           isa<ConstantInt>(GEP->getOperand(op)))
  505       if (isa<LoadInst>(U)) continue;
  733   if (isa<GetElementPtrInst>(FirstInst))
  735   if (isa<LoadInst>(FirstInst))
  745   if (isa<CastInst>(FirstInst)) {
  754   } else if (isa<BinaryOperator>(FirstInst) || isa<CmpInst>(FirstInst)) {
  754   } else if (isa<BinaryOperator>(FirstInst) || isa<CmpInst>(FirstInst)) {
  880   assert(isa<IntegerType>(PN.getType()) && "Expect only integer type phi");
  996       if (isa<TruncInst>(UserI)) {
 1003           !UserI->hasOneUse() || !isa<TruncInst>(UserI->user_back()) ||
 1004           !isa<ConstantInt>(UserI->getOperand(1)))
 1136   if (isa<Instruction>(PN.getIncomingValue(0)) &&
 1137       isa<Instruction>(PN.getIncomingValue(1)) &&
 1168         (isa<BinaryOperator>(PHIUser) || isa<GetElementPtrInst>(PHIUser)) &&
 1168         (isa<BinaryOperator>(PHIUser) || isa<GetElementPtrInst>(PHIUser)) &&
 1182     if (CmpInst && isa<IntegerType>(PN.getType()) && CmpInst->isEquality() &&
 1207            isa<PHINode>(PN.getIncomingValue(InValNo)))
 1217         if (OpVal != NonPhiInVal && !isa<PHINode>(OpVal))
lib/Transforms/InstCombine/InstCombineSelect.cpp
  102   if (isa<FPMathOperator>(BO))
  353       (!isa<BinaryOperator>(TI) && !isa<GetElementPtrInst>(TI)) ||
  353       (!isa<BinaryOperator>(TI) && !isa<GetElementPtrInst>(TI)) ||
  429     if (TVI->hasOneUse() && !isa<Constant>(FalseVal)) {
  445           if (!isa<Constant>(OOp) || (OOpIsAPInt && isSelect01(CI, *OOpC))) {
  460     if (FVI->hasOneUse() && !isa<Constant>(TrueVal)) {
  476           if (!isa<Constant>(OOp) || (OOpIsAPInt && isSelect01(CI, *OOpC))) {
  993   if (!Cmp.hasOneUse() || !isa<Constant>(Cmp.getOperand(1)))
 1031   if (!Cmp.hasOneUse() || !isa<Constant>(Cmp.getOperand(1)))
 1412   if (CmpRHS != CmpLHS && isa<Constant>(CmpRHS)) {
 1819     } else if (isa<UndefValue>(Elt)) {
 2201   if (isa<UndefValue>(TrueVal) || isa<UndefValue>(FalseVal)) {
 2201   if (isa<UndefValue>(TrueVal) || isa<UndefValue>(FalseVal)) {
 2512   if (isa<FPMathOperator>(SI) && SI.hasNoNaNs() && SI.hasNoSignedZeros()) {
lib/Transforms/InstCombine/InstCombineShifts.cpp
  302   if (isa<Constant>(Op0))
  398   if (isa<Constant>(V))
  642         isa<ConstantInt>(TrOp->getOperand(1))) {
  808       if (!isa<Constant>(FalseVal) && TBO->getOperand(0) == FalseVal &&
  827       if (!isa<Constant>(TrueVal) && FBO->getOperand(0) == TrueVal &&
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  128   if (isa<Constant>(V)) {
  292           isa<ConstantInt>(I->getOperand(1)) &&
  293           isa<ConstantInt>(LHSInst->getOperand(1)) &&
 1097   if (isa<UndefValue>(V)) {
 1129       if (isa<UndefValue>(Elt)) {   // Already undef.
 1204       if (isa<UndefValue>(I->getOperand(i))) {
 1375         if (isa<ConstantExpr>(CElt))
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
  111       !(isa<BinaryOperator>(PHIUser)) || !cheapToScalarize(PHIUser, true))
  144       if (pos && !isa<PHINode>(pos)) {
  402       if (isa<Constant>(IE->getOperand(2)) && IndexC) {
  451   if (isa<UndefValue>(V)) {
  475     if (!isa<ConstantInt>(IdxOp))
  479     if (isa<UndefValue>(ScalarOp)) {  // inserting undef into vector.
  488       if (isa<ConstantInt>(EI->getOperand(1))) {
  548   BasicBlock *InsertionBlock = (ExtVecOpInst && !isa<PHINode>(ExtVecOpInst))
  569   if (InsElt->hasOneUse() && isa<InsertElementInst>(InsElt->user_back()))
  579   if (ExtVecOpInst && !isa<PHINode>(ExtVecOpInst))
  613   if (isa<UndefValue>(V)) {
  619   if (isa<ConstantAggregateZero>(V)) {
  631       if (isa<ConstantInt>(EI->getOperand(1)) && isa<ConstantInt>(IdxOp)) {
  631       if (isa<ConstantInt>(EI->getOperand(1)) && isa<ConstantInt>(IdxOp)) {
  750   if (InsElt.hasOneUse() && isa<InsertElementInst>(InsElt.user_back()))
  794   if (!isa<UndefValue>(FirstIE->getOperand(0)))
  853   if (!Shuf || !isa<UndefValue>(Shuf->getOperand(1)) ||
  887       assert(isa<UndefValue>(OldMask->getAggregateElement(i)) &&
  916       match(InsElt1->getOperand(1), m_Value(Y)) && !isa<Constant>(Y) &&
 1129   if (isa<Constant>(V))
 1240       if (isa<OverflowingBinaryOperator>(BO)) {
 1244       if (isa<PossiblyExactOperator>(BO)) {
 1247       if (isa<FPMathOperator>(BO))
 1295   if (isa<UndefValue>(V))
 1298   if (isa<ConstantAggregateZero>(V))
 1550     if (isa<UndefValue>(Mask->getAggregateElement(i)))
 1603       assert(isa<Constant>(AltB0.Op1) && "Expecting constant with alt binop");
 1607       assert(isa<Constant>(AltB1.Op1) && "Expecting constant with alt binop");
 1719   if (!Shuf.isIdentityWithExtract() || !isa<UndefValue>(Op1))
 1751     NewMask[i] = isa<UndefValue>(ExtractMaskElt) ? ExtractMaskElt : MaskElt;
 1842       isa<UndefValue>(X) || isa<UndefValue>(Y))
 1842       isa<UndefValue>(X) || isa<UndefValue>(Y))
 1844   assert(isa<UndefValue>(Shuffle0->getOperand(1)) &&
 1845          isa<UndefValue>(Shuffle1->getOperand(1)) &&
 1900   if (LHS == RHS || isa<UndefValue>(LHS)) {
 1909       if ((Mask[i] >= (int)e && isa<UndefValue>(RHS)) ||
 1910           (Mask[i] <  (int)e && isa<UndefValue>(LHS))) {
 1961   if (isa<UndefValue>(RHS) && canEvaluateShuffled(LHS, Mask)) {
 2102     if (!isa<UndefValue>(LHSShuffle->getOperand(1)) && !isa<UndefValue>(RHS))
 2102     if (!isa<UndefValue>(LHSShuffle->getOperand(1)) && !isa<UndefValue>(RHS))
 2105     if (!isa<UndefValue>(RHSShuffle->getOperand(1)))
 2128     if (isa<UndefValue>(RHS)) {
 2177         if (eltMask >= (int)LHSOp0Width && isa<UndefValue>(LHSOp1))
 2186       if (isa<UndefValue>(RHS))
 2195           assert(isa<UndefValue>(RHSShuffle->getOperand(1))
lib/Transforms/InstCombine/InstructionCombining.cpp
  445          if (isa<FPMathOperator>(NewBO)) {
  510   if (isa<Constant>(V))
  599       if (isa<OverflowingBinaryOperator>(SimplifiedInst)) {
  602         if (isa<OverflowingBinaryOperator>(&I)) {
  773     if (isa<FPMathOperator>(&I)) {
  815       if (isa<UndefValue>(Elt))
  818       if (!isa<ConstantInt>(Elt))
  835   bool ConstIsRHS = isa<Constant>(I.getOperand(1));
  852   if (FPInst && isa<FPMathOperator>(FPInst))
  864   if (!(isa<Constant>(TV) || isa<Constant>(FV)))
  864   if (!(isa<Constant>(TV) || isa<Constant>(FV)))
  909   bool ConstIsRHS = isa<Constant>(I->getOperand(1));
  924   if (FPInst && isa<FPMathOperator>(FPInst))
  955     if (isa<Constant>(InVal) && !isa<ConstantExpr>(InVal))
  955     if (isa<Constant>(InVal) && !isa<ConstantExpr>(InVal))
  958     if (isa<PHINode>(InVal)) return nullptr;  // Itself a phi.
  965     if (isa<InvokeInst>(InVal))
 1014       if (InC && !isa<ConstantExpr>(InC) && isa<ConstantInt>(InC))
 1014       if (InC && !isa<ConstantExpr>(InC) && isa<ConstantInt>(InC))
 1037       else if (isa<ICmpInst>(CI))
 1075   if (!isa<Constant>(I.getOperand(1)))
 1163   assert(isa<IntegerType>(Val->getType()) && "Can only descale integers!");
 1264           isa<ConstantInt>(BO->getOperand(1))) {
 1501     bool ConstOp1 = isa<Constant>(RHS);
 1519         if (!CElt || (!isa<UndefValue>(NewCElt) && NewCElt != CElt) ||
 1537         if (!isa<UndefValue>(MaybeUndef)) {
 1670       if (!isa<Constant>(*I) || !match(I->get(), m_Zero())) {
 1829           if (!isa<VectorType>(GEPType) || // case 3
 1830               isa<VectorType>(SO0Ty)) {    // case 4
 1895     } else if (isa<Constant>(*GEP.idx_begin()) &&
 2191     if (!isa<BitCastInst>(SrcOp) && GEP.accumulateConstantOffset(DL, Offset)) {
 2197         if (isa<AllocaInst>(SrcOp) || isAllocationFn(SrcOp, &TLI)) {
 2260   if (isa<ConstantPointerNull>(V))
 2263     return isa<GlobalVariable>(LI->getPointerOperand());
 2370   if (isa<AllocaInst>(MI)) {
 2404       } else if (isa<BitCastInst>(I) || isa<GetElementPtrInst>(I) ||
 2404       } else if (isa<BitCastInst>(I) || isa<GetElementPtrInst>(I) ||
 2405                  isa<AddrSpaceCastInst>(I)) {
 2515   if (isa<UndefValue>(Op)) {
 2523   if (isa<ConstantPointerNull>(Op))
 2561       !isa<Constant>(X)) {
 2570   if (BI.isConditional() && !isa<ConstantInt>(BI.getCondition()) &&
 2600       assert(isa<ConstantInt>(NewCase) &&
 2870       if (isa<ConstantAggregateZero>(FilterClause)) {
 2968       if (!isa<ArrayType>(NewClauses[j]->getType()))
 3032       if (isa<ConstantAggregateZero>(LFilter)) { // LFilter only contains zeros.
 3035         if (isa<ConstantAggregateZero>(Filter)) {
 3045       if (isa<ConstantAggregateZero>(Filter)) { // Filter only contains zeros.
 3123   if (isa<PHINode>(I) || I->isEHPad() || I->mayHaveSideEffects() ||
 3131   if (isa<AllocaInst>(I))
 3135   if (isa<CatchSwitchInst>(DestBlock->getTerminator()))
 3165       if (isa<DbgDeclareInst>(DII)) {
 3171         if (!isa<CastInst>(I))
 3225         (I->getNumOperands() == 0 || isa<Constant>(I->getOperand(0)))) {
 3335         if (!isa<PHINode>(Result) && isa<PHINode>(InsertPos))
 3335         if (!isa<PHINode>(Result) && isa<PHINode>(InsertPos))
 3404           (Inst->getNumOperands() == 0 || isa<Constant>(Inst->getOperand(0))))
 3418         if (!isa<ConstantVector>(U) && !isa<ConstantExpr>(U))
 3418         if (!isa<ConstantVector>(U) && !isa<ConstantExpr>(U))
 3439       if (!isa<DbgInfoIntrinsic>(Inst))
 3447       if (BI->isConditional() && isa<ConstantInt>(BI->getCondition())) {
lib/Transforms/Instrumentation/AddressSanitizer.cpp
  981     if (!isa<ReturnInst>(InstBefore)) {
 1303   if (isa<MemTransferInst>(MI)) {
 1305         isa<MemMoveInst>(MI) ? AsanMemmove : AsanMemcpy,
 1309   } else if (isa<MemSetInst>(MI)) {
 1438   return V->getType()->isPointerTy() || isa<PtrToIntInst>(V);
 1482   FunctionCallee F = isa<ICmpInst>(I) ? AsanPtrCmpFunction : AsanPtrSubFunction;
 1584     if (isa<AllocaInst>(GetUnderlyingObject(Addr, DL)) &&
 1787     if (isa<ConstantAggregateZero>(OP)) continue;
 2680       } else if (isa<MemIntrinsic>(Inst)) {
 2683         if (isa<AllocaInst>(Inst)) NumAllocas++;
lib/Transforms/Instrumentation/ControlHeightReduction.cpp
  496   return isa<BinaryOperator>(I) || isa<CastInst>(I) || isa<SelectInst>(I) ||
  496   return isa<BinaryOperator>(I) || isa<CastInst>(I) || isa<SelectInst>(I) ||
  496   return isa<BinaryOperator>(I) || isa<CastInst>(I) || isa<SelectInst>(I) ||
  497       isa<GetElementPtrInst>(I) || isa<CmpInst>(I) ||
  497       isa<GetElementPtrInst>(I) || isa<CmpInst>(I) ||
  498       isa<InsertElementInst>(I) || isa<ExtractElementInst>(I) ||
  498       isa<InsertElementInst>(I) || isa<ExtractElementInst>(I) ||
  499       isa<ShuffleVectorInst>(I) || isa<ExtractValueInst>(I) ||
  499       isa<ShuffleVectorInst>(I) || isa<ExtractValueInst>(I) ||
  500       isa<InsertValueInst>(I);
  538   if (isa<Argument>(V)) {
 1529     if (isa<BranchInst>(U) && cast<BranchInst>(U)->isConditional())
 1531     if (isa<SelectInst>(U) && cast<SelectInst>(U)->getCondition() == ICmp)
 1596               !(isa<PHINode>(UI) && UI->getParent() == ExitBlock)) {
 1600           } else if (UI->getParent() == EntryBlock && isa<PHINode>(UI)) {
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
  199     if (isa<FunctionType>(GA.getValueType()))
  519     if (isa<PointerType>(param_type) && (FT = dyn_cast<FunctionType>(
  981         while (isa<PHINode>(Pos) || isa<AllocaInst>(Pos))
  981         while (isa<PHINode>(Pos) || isa<AllocaInst>(Pos))
 1024   if (!isa<Argument>(V) && !isa<Instruction>(V))
 1024   if (!isa<Argument>(V) && !isa<Instruction>(V))
 1198     if (isa<Function>(Obj) || isa<BlockAddress>(Obj))
 1198     if (isa<Function>(Obj) || isa<BlockAddress>(Obj))
 1200     if (isa<GlobalVariable>(Obj) && cast<GlobalVariable>(Obj)->isConstant())
 1441     if (isa<LoadInst>(U))
 1464   if (isa<VectorType>(I.getCondition()->getType())) {
 1537   if ((F && F->isIntrinsic()) || isa<InlineAsm>(CS.getCalledValue())) {
 1595           if (isa<PointerType>(T) &&
lib/Transforms/Instrumentation/GCOVProfiling.cpp
  599       if (isa<DbgInfoIntrinsic>(&I)) continue;
  622 	if (isa<AllocaInst>(*It)) return true;
  623 	if (isa<DbgInfoIntrinsic>(*It)) return true;
  725         } else if (isa<ReturnInst>(TI)) {
  732           if (isa<DbgInfoIntrinsic>(&I)) continue;
  790         if (isa<ReturnInst>(TI)) {
  834           if (isa<ReturnInst>(TI)) {
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
  703   if (isa<MemTransferInst>(MI)) {
  705         isa<MemMoveInst>(MI) ? HWAsanMemmove : HWAsanMemcpy,
  709   } else if (isa<MemSetInst>(MI)) {
  726   if (ClInstrumentMemIntrinsics && isa<MemIntrinsic>(I)) {
 1126       if (isa<ReturnInst>(Inst) || isa<ResumeInst>(Inst) ||
 1126       if (isa<ReturnInst>(Inst) || isa<ResumeInst>(Inst) ||
 1127           isa<CleanupReturnInst>(Inst))
 1134       if (InstrumentLandingPads && isa<LandingPadInst>(Inst))
 1143       if (Addr || isa<MemIntrinsic>(Inst))
 1233         if (isa<ConstantInt>(AI->getArraySize()))
 1469     bool IsLocal = P.first && (!isa<GlobalValue>(P.first) ||
lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
  241     if (ICPInvokeOnly && isa<CallInst>(Inst)) {
  249     if (ICPCallOnly && isa<InvokeInst>(Inst)) {
lib/Transforms/Instrumentation/InstrProfiling.cpp
  189     assert(isa<LoadInst>(L));
  190     assert(isa<StoreInst>(S));
  321           return isa<CatchSwitchInst>(Exit->getTerminator());
  663     assert(isa<GlobalVariable>(V) && "Missing reference to function name");
  963     if (Data != NamesVar && !isa<Function>(Data))
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 1544     if (isa<IntegerType>(ShadowTy) || isa<VectorType>(ShadowTy))
 1544     if (isa<IntegerType>(ShadowTy) || isa<VectorType>(ShadowTy))
 1682     if (isa<Constant>(V)) return getCleanOrigin();
 1683     assert((isa<Instruction>(V) || isa<Argument>(V)) &&
 1683     assert((isa<Instruction>(V) || isa<Argument>(V)) &&
 1708     assert((isa<IntegerType>(ShadowTy) || isa<VectorType>(ShadowTy)) &&
 1708     assert((isa<IntegerType>(ShadowTy) || isa<VectorType>(ShadowTy)) &&
 1824     assert(isa<AtomicRMWInst>(I) || isa<AtomicCmpXchgInst>(I));
 1824     assert(isa<AtomicRMWInst>(I) || isa<AtomicCmpXchgInst>(I));
 1838     if (isa<AtomicCmpXchgInst>(I))
 2365     if ((isa<Constant>(I.getOperand(0)) || isa<Constant>(I.getOperand(1)))) {
 2365     if ((isa<Constant>(I.getOperand(0)) || isa<Constant>(I.getOperand(1)))) {
 2623       assert(isa<ConstantInt>(I.getArgOperand(2)) && "Invalid rounding mode");
 3271       assert(!isa<IntrinsicInst>(&I) && "intrinsics are handled elsewhere");
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
 1296     if (!(isa<BranchInst>(TI) || isa<SwitchInst>(TI) ||
 1296     if (!(isa<BranchInst>(TI) || isa<SwitchInst>(TI) ||
 1297           isa<IndirectBrInst>(TI)))
 1326     if (isa<IndirectBrInst>((*PI)->getTerminator()))
 1799       if (!isa<SelectInst>(I))
lib/Transforms/Instrumentation/PoisonChecking.cpp
  107   assert(isa<BinaryOperator>(I));
  188   if (isa<BinaryOperator>(I) && !I.getType()->isVectorTy())
  227   if (isa<Constant>(V)) {
  262     for (auto I = BB.begin(); isa<PHINode>(&*I); I++) {
  275       if (isa<PHINode>(I)) continue;
  302     for (auto I = BB.begin(); isa<PHINode>(&*I); I++) {
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  515   if (isa<UnreachableInst>(BB->getFirstNonPHIOrDbgOrLifetime()))
  583   if (isa<UnreachableInst>(F.getEntryBlock().getTerminator()))
  617         if (isa<SwitchInst>(&Inst))
  629         if (isa<InvokeInst>(Inst) ||
  630             (isa<CallInst>(Inst) && !isa<IntrinsicInst>(Inst)))
  630             (isa<CallInst>(Inst) && !isa<IntrinsicInst>(Inst)))
  734     if (isa<InlineAsm>(Callee))
  788     if (isa<ConstantInt>(A1)) continue;
  806       if (!isa<ConstantInt>(*I) && (*I)->getType()->isIntegerTy())
  829       bool FirstIsConst = isa<ConstantInt>(A0);
  830       bool SecondIsConst = isa<ConstantInt>(A1);
lib/Transforms/Instrumentation/ThreadSanitizer.cpp
  397     Value *Addr = isa<StoreInst>(*I)
  400     if (isa<AllocaInst>(GetUnderlyingObject(Addr, DL)) &&
  419   if (isa<AtomicRMWInst>(I))
  421   if (isa<AtomicCmpXchgInst>(I))
  423   if (isa<FenceInst>(I))
  458       else if (isa<LoadInst>(Inst) || isa<StoreInst>(Inst))
  458       else if (isa<LoadInst>(Inst) || isa<StoreInst>(Inst))
  460       else if (isa<CallInst>(Inst) || isa<InvokeInst>(Inst)) {
  460       else if (isa<CallInst>(Inst) || isa<InvokeInst>(Inst)) {
  463         if (isa<MemIntrinsic>(Inst))
  521   bool IsWrite = isa<StoreInst>(*I);
  541     if (isa<VectorType>(StoredValue->getType()))
  611         isa<MemCpyInst>(M) ? MemcpyFn : MemmoveFn,
lib/Transforms/ObjCARC/ObjCARCContract.cpp
  530     if (isa<AllocaInst>(Inst))
  617       if (!isa<Instruction>(Arg) && !isa<Argument>(Arg))
  617       if (!isa<Instruction>(Arg) && !isa<Argument>(Arg))
  659             while (isa<CatchSwitchInst>(InsertBB->getFirstNonPHI())) {
  701       else if (isa<GEPOperator>(Arg) &&
  704       else if (isa<GlobalAlias>(Arg) &&
lib/Transforms/ObjCARC/ObjCARCOpts.cpp
   89   if (isa<ConstantData>(Arg))
  679   if (isa<ConstantData>(Ptr))
  692       if (isa<ReturnInst>(U) || GetBasicARCInstKind(U) == ARCInstKind::RetainRV)
  694       if (isa<BitCastInst>(U))
 1299     if (isa<InvokeInst>(Inst))
 1845     bool KnownSafe = isa<Constant>(Arg) || isa<AllocaInst>(Arg);
 1845     bool KnownSafe = isa<Constant>(Arg) || isa<AllocaInst>(Arg);
lib/Transforms/ObjCARC/ProvenanceAnalysis.cpp
   93       if (isa<StoreInst>(Ur)) {
  100       if (isa<CallInst>(Ur))
  103       if (isa<PtrToIntInst>(P))
  134     if (isa<LoadInst>(B))
  138       if (isa<LoadInst>(A))
  145     if (isa<LoadInst>(A))
lib/Transforms/ObjCARC/PtrState.cpp
  267     if (isa<InvokeInst>(Inst)) {
  270       if (isa<CatchSwitchInst>(InsertAfter))
lib/Transforms/Scalar/ADCE.cpp
  301     if (isa<ReturnInst>(Info.Terminator)) {
  336   if (RemoveControlFlowFlag && (isa<BranchInst>(I) || isa<SwitchInst>(I)))
  336   if (RemoveControlFlowFlag && (isa<BranchInst>(I) || isa<SwitchInst>(I)))
  348         if (isa<Constant>(CI->getArgOperand(0)))
  423   if (isa<DISubprogram>(LS))
lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
  231   if (isa<SCEVConstant>(AndLHSSCEV)) {
  299   if (isa<ConstantData>(AAPtr))
lib/Transforms/Scalar/BDCE.cpp
  116       if (!isa<Instruction>(U) && !isa<Argument>(U))
  116       if (!isa<Instruction>(U) && !isa<Argument>(U))
lib/Transforms/Scalar/CallSiteSplitting.cpp
  110   assert(isa<Constant>(Cmp->getOperand(1)) && "Expected a constant operand.");
  116     if (isa<Constant>(*I) || CS.paramHasAttr(ArgNo, Attribute::NonNull))
  192   if (!isa<CallInst>(Instr))
  198   if (Preds.size() != 2 || isa<IndirectBrInst>(Preds[0]->getTerminator()) ||
  199       isa<IndirectBrInst>(Preds[1]->getTerminator()))
  400       if (isa<PHINode>(CurrentI))
  435           if (isa<Constant>(PN->getIncomingValue(0)) &&
  436               isa<Constant>(PN->getIncomingValue(1)))
  524       if (!CS || isa<IntrinsicInst>(I) || isInstructionTriviallyDead(I, &TLI))
lib/Transforms/Scalar/ConstantHoisting.cpp
  181   if (!isa<PHINode>(Inst) && !Inst->isEHPad())
  187   if (Idx != ~0U && isa<PHINode>(Inst))
  327       for (; isa<PHINode>(InsertPt) || InsertPt->isEHPad(); ++InsertPt)
  381     LLVM_DEBUG(if (isa<ConstantInt>(Inst->getOperand(Idx))) dbgs()
  492     if (canReplaceOperandWithVariable(Inst, Idx) || isa<IntrinsicInst>(Inst)) {
  763   if (isa<ConstantInt>(Opnd)) {
  895       assert(isa<Instruction>(Base->user_back()) &&
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
  127   if (isa<Constant>(S->getOperand(0))) return false;
  218     if (isa<Constant>(Incoming)) continue;
  288   if (isa<Constant>(Pointer)) return false;
  344   if (isa<Instruction>(Cond) && cast<Instruction>(Cond)->getParent() == BB)
  568       if (isa<Constant>(V)) continue;
  585         !isa<Constant>(V) &&
  900       if (isa<Constant>(RetVal)) break; // nothing to do
lib/Transforms/Scalar/DeadStoreElimination.cpp
  153   if (isa<StoreInst>(I))
  272   if (isa<StoreInst>(I))
  298   return isa<AnyMemSetInst>(I);
  554   if (isa<AnyMemCpyInst>(Inst)) {
  723   if (isa<Constant>(UnderlyingPointer))
  728   if (isa<AllocaInst>(UnderlyingPointer) || isa<Argument>(UnderlyingPointer)) {
  728   if (isa<AllocaInst>(UnderlyingPointer) || isa<Argument>(UnderlyingPointer)) {
  761     if (isa<AllocaInst>(&I))
  831     if (isa<AllocaInst>(BBI)) {
  870     if (isa<FenceInst>(*BBI))
 1161         bool IsStoreDeadOnUnwind = isa<AllocaInst>(Underlying);
 1213           if (Earlier && isa<ConstantInt>(Earlier->getValueOperand()) &&
 1216               Later && isa<ConstantInt>(Later->getValueOperand()) &&
lib/Transforms/Scalar/EarlyCSE.cpp
  111     return isa<CastInst>(Inst) || isa<UnaryOperator>(Inst) ||
  111     return isa<CastInst>(Inst) || isa<UnaryOperator>(Inst) ||
  112            isa<BinaryOperator>(Inst) || isa<GetElementPtrInst>(Inst) ||
  112            isa<BinaryOperator>(Inst) || isa<GetElementPtrInst>(Inst) ||
  113            isa<CmpInst>(Inst) || isa<SelectInst>(Inst) ||
  113            isa<CmpInst>(Inst) || isa<SelectInst>(Inst) ||
  114            isa<ExtractElementInst>(Inst) || isa<InsertElementInst>(Inst) ||
  114            isa<ExtractElementInst>(Inst) || isa<InsertElementInst>(Inst) ||
  115            isa<ShuffleVectorInst>(Inst) || isa<ExtractValueInst>(Inst) ||
  115            isa<ShuffleVectorInst>(Inst) || isa<ExtractValueInst>(Inst) ||
  116            isa<InsertValueInst>(Inst);
  242   assert((isa<CallInst>(Inst) || isa<GetElementPtrInst>(Inst) ||
  242   assert((isa<CallInst>(Inst) || isa<GetElementPtrInst>(Inst) ||
  243           isa<ExtractElementInst>(Inst) || isa<InsertElementInst>(Inst) ||
  243           isa<ExtractElementInst>(Inst) || isa<InsertElementInst>(Inst) ||
  244           isa<ShuffleVectorInst>(Inst) || isa<UnaryOperator>(Inst)) &&
  244           isa<ShuffleVectorInst>(Inst) || isa<UnaryOperator>(Inst)) &&
  281     assert(isa<BinaryOperator>(RHSI) &&
  290     assert(isa<CmpInst>(RHSI) &&
  613       return isa<LoadInst>(Inst);
  618       return isa<StoreInst>(Inst);
  706     assert(isa<IntrinsicInst>(Inst) && "Instruction not supported");
  972             if (isa<ConstantInt>(KnownCond) &&
lib/Transforms/Scalar/Float2Int.cpp
  130       if (isa<VectorType>(I.getType()))
  230       } else if (!isa<ConstantFP>(O)) {
  319             (F.isZero() && F.isNegative() && isa<FPMathOperator>(I) &&
lib/Transforms/Scalar/GVN.cpp
  486   if (!isa<Instruction>(V)) {
  594   if (isa<PHINode>(V))
  839     if (U != LI && (isa<LoadInst>(U) || isa<StoreInst>(U)) &&
  839     if (U != LI && (isa<LoadInst>(U) || isa<StoreInst>(U)) &&
  927   if (isa<AllocaInst>(DepInst) || isMallocLikeFn(DepInst, TLI) ||
 1108       if (isa<IndirectBrInst>(Pred->getTerminator())) {
 1116       if (isa<CallBrInst>(Pred->getTerminator())) {
 1279   if (isa<PHINode>(V))
 1367     if (isa<PHINode>(V))
 1392     if (isa<Instruction>(U) &&
 1415   } else if (isa<Constant>(V)) {
 1465       if (isa<Constant>(CmpLHS) && !isa<Constant>(CmpRHS))
 1465       if (isa<Constant>(CmpLHS) && !isa<Constant>(CmpRHS))
 1467       if (!isa<Instruction>(CmpLHS) && isa<Instruction>(CmpRHS))
 1467       if (!isa<Instruction>(CmpLHS) && isa<Instruction>(CmpRHS))
 1469       if ((isa<Argument>(CmpLHS) && isa<Argument>(CmpRHS)) ||
 1469       if ((isa<Argument>(CmpLHS) && isa<Argument>(CmpRHS)) ||
 1470           (isa<Instruction>(CmpLHS) && isa<Instruction>(CmpRHS))) {
 1470           (isa<Instruction>(CmpLHS) && isa<Instruction>(CmpRHS))) {
 1481       if (isa<Constant>(CmpLHS) && isa<Constant>(CmpRHS))
 1481       if (isa<Constant>(CmpLHS) && isa<Constant>(CmpRHS))
 1487           (!isa<ConstantFP>(CmpRHS) || cast<ConstantFP>(CmpRHS)->isZero()))
 1715     if (isa<Constant>(Val)) return Val;
 1721       if (isa<Constant>(Next->Val)) return Next->Val;
 1794     if (isa<Constant>(LHS) && isa<Constant>(RHS))
 1794     if (isa<Constant>(LHS) && isa<Constant>(RHS))
 1798     if (isa<Constant>(LHS) || (isa<Argument>(LHS) && !isa<Constant>(RHS)))
 1798     if (isa<Constant>(LHS) || (isa<Argument>(LHS) && !isa<Constant>(RHS)))
 1798     if (isa<Constant>(LHS) || (isa<Argument>(LHS) && !isa<Constant>(RHS)))
 1800     assert((isa<Argument>(LHS) || isa<Instruction>(LHS)) && "Unexpected value!");
 1800     assert((isa<Argument>(LHS) || isa<Instruction>(LHS)) && "Unexpected value!");
 1807     if ((isa<Argument>(LHS) && isa<Argument>(RHS)) ||
 1807     if ((isa<Argument>(LHS) && isa<Argument>(RHS)) ||
 1808         (isa<Instruction>(LHS) && isa<Instruction>(RHS))) {
 1808         (isa<Instruction>(LHS) && isa<Instruction>(RHS))) {
 1827     if (RootDominatesEnd && !isa<Instruction>(RHS))
 1895         if (isa<ConstantFP>(Op1) && !cast<ConstantFP>(Op1)->isZero())
 1911         if (NotCmp && isa<Instruction>(NotCmp)) {
 1942   if (isa<DbgInfoIntrinsic>(I))
 1987     if (isa<Constant>(BI->getCondition()))
 2044   if (isa<AllocaInst>(I) || I->isTerminator() || isa<PHINode>(I)) {
 2044   if (isa<AllocaInst>(I) || I->isTerminator() || isa<PHINode>(I)) {
 2205     if (isa<Argument>(Op) || isa<Constant>(Op) || isa<GlobalValue>(Op))
 2205     if (isa<Argument>(Op) || isa<Constant>(Op) || isa<GlobalValue>(Op))
 2205     if (isa<Argument>(Op) || isa<Constant>(Op) || isa<GlobalValue>(Op))
 2244   if (isa<AllocaInst>(CurInst) || CurInst->isTerminator() ||
 2245       isa<PHINode>(CurInst) || CurInst->getType()->isVoidTy() ||
 2247       isa<DbgInfoIntrinsic>(CurInst))
 2254   if (isa<CmpInst>(CurInst))
 2264   if (isa<GetElementPtrInst>(CurInst))
 2349     if (isa<IndirectBrInst>(PREPred->getTerminator()))
 2354     if (isa<CallBrInst>(PREPred->getTerminator()))
lib/Transforms/Scalar/GVNHoist.cpp
  310     if (isa<ConstantExpr>(V))
  312     if (isa<UndefValue>(V))
  314     if (isa<Constant>(V))
  904     } else if (isa<CallInst>(Repl)) {
  986         if (isa<GetElementPtrInst>(Val)) {
 1001     if (Val && isa<GetElementPtrInst>(Val))
 1060       if (isa<LoadInst>(Repl))
 1062       else if (isa<StoreInst>(Repl))
 1064       else if (isa<CallInst>(Repl))
 1109             if (isa<DbgInfoIntrinsic>(Intr) ||
 1121         } else if (HoistingGeps || !isa<GetElementPtrInst>(&I1))
lib/Transforms/Scalar/GVNSink.cpp
  101   return isa<LoadInst>(I) || isa<StoreInst>(I) ||
  101   return isa<LoadInst>(I) || isa<StoreInst>(I) ||
  102          (isa<InvokeInst>(I) && !cast<InvokeInst>(I)->doesNotAccessMemory()) ||
  103          (isa<CallInst>(I) && !cast<CallInst>(I)->doesNotAccessMemory());
  303     return llvm::any_of(Values, [&](Value *V) { return isa<Constant>(V); });
  428     if (!isa<Instruction>(V)) {
  543       if (isa<LoadInst>(&*I))
  580     if (isa<PHINode>(I) || I->isEHPad() || isa<AllocaInst>(I) ||
  580     if (isa<PHINode>(I) || I->isEHPad() || isa<AllocaInst>(I) ||
  738     if ((isa<CallInst>(I0) || isa<InvokeInst>(I0)) && OpNum == E - 1 &&
  738     if ((isa<CallInst>(I0) || isa<InvokeInst>(I0)) && OpNum == E - 1 &&
  767     if (isa<BranchInst>(T) || isa<SwitchInst>(T))
  767     if (isa<BranchInst>(T) || isa<SwitchInst>(T))
lib/Transforms/Scalar/GuardWidening.cpp
  349       assert(isa<ConstantInt>(getCondition(I)) && "Should be!");
  353         assert(isa<BranchInst>(I) &&
  369   if (isa<ConstantInt>(getCondition(Instr)))
  511   assert(!isa<PHINode>(Loc) &&
lib/Transforms/Scalar/IndVarSimplify.cpp
  345       !isa<BranchInst>(Compare->user_back()))
  625         if (!isa<Instruction>(InVal))
  644         if (isa<SCEVCouldNotCompute>(ExitValue) ||
  652           if (isa<SCEVCouldNotCompute>(ExitCount))
  657           if (isa<SCEVCouldNotCompute>(ExitValue) ||
  669             !isa<SCEVConstant>(ExitValue) && !isa<SCEVUnknown>(ExitValue) &&
  669             !isa<SCEVConstant>(ExitValue) && !isa<SCEVUnknown>(ExitValue) &&
 1323     if (isa<SCEVAddRecExpr>(WideExpr))
 1458     if (!isa<SCEVSignExtendExpr>(ExtendOperExpr))
 1461     if (!isa<SCEVZeroExtendExpr>(ExtendOperExpr))
 1559         if (isa<CatchSwitchInst>(UsePhi->getParent()->getTerminator()))
 1587   if ((isa<SExtInst>(DU.NarrowUse) && canWidenBySExt()) ||
 1588       (isa<ZExtInst>(DU.NarrowUse) && canWidenByZExt())) {
 1973   for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I) {
 2165   if (isa<Constant>(V))
 2166     return !isa<UndefValue>(V);
 2178   if(I->mayReadFromMemory() || isa<CallInst>(I) || isa<InvokeInst>(I))
 2178   if(I->mayReadFromMemory() || isa<CallInst>(I) || isa<InvokeInst>(I))
 2261   for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I) {
 2392       if (isa<SCEVConstant>(IVInit) && isa<SCEVConstant>(ExitCount))
 2392       if (isa<SCEVConstant>(IVInit) && isa<SCEVConstant>(ExitCount))
 2579     if (isa<PHINode>(I))
 2592     if (isa<DbgInfoIntrinsic>(I))
 2603     if (isa<AllocaInst>(I))
 2635       } while (isa<DbgInfoIntrinsic>(I) && I != Preheader->begin());
 2637       if (isa<DbgInfoIntrinsic>(I) && I == Preheader->begin())
 2667     if (isa<SCEVCouldNotCompute>(ExitCount))
 2670     if (!isa<SCEVCouldNotCompute>(ExitCount)) {
 2701     if (isa<Constant>(BI->getCondition()))
 2705     if (isa<SCEVCouldNotCompute>(ExitCount))
 2716   if (isa<SCEVCouldNotCompute>(MaxExitCount))
 2752     assert(!isa<SCEVCouldNotCompute>(ExitCount) && "checked above");
 2832   if (isa<SCEVCouldNotCompute>(ExactBTC) ||
 2850     if (isa<Constant>(BI->getCondition()))
 2862     assert(!isa<SCEVCouldNotCompute>(ExactBTC) && "implied by having exact trip count");
 3041       if (!isa<BranchInst>(ExitingBB->getTerminator()))
 3054       if (isa<SCEVCouldNotCompute>(ExitCount))
 3122   if (VerifyIndvars && !isa<SCEVCouldNotCompute>(BackedgeTakenCount)) {
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
  783   if (!ICI || !isa<IntegerType>(ICI->getOperand(0)->getType())) {
  789   if (isa<SCEVCouldNotCompute>(LatchCount)) {
  803   if (!isa<SCEVAddRecExpr>(LeftSCEV)) {
  804     if (isa<SCEVAddRecExpr>(RightSCEV)) {
  849   if (!isa<SCEVConstant>(StepRec)) {
 1390   assert(!isa<SCEVCouldNotCompute>(LatchTakenCount) && Preheader != nullptr &&
lib/Transforms/Scalar/InferAddressSpaces.cpp
  221   if (!isa<Operator>(V))
  809     if (isa<MemCpyInst>(MTI)) {
  817       assert(isa<MemMoveInst>(MTI));
  837   if (SrcAS == NewAS || isa<UndefValue>(C))
  844   if (isa<ConstantPointerNull>(C))
  897     assert(isa<UndefValue>(NewV->getOperand(OperandNo)));
  954       if (isa<Instruction>(CurUser)) {
 1003           if (U == V && isa<AddrSpaceCastInst>(V))
 1007           while (isa<PHINode>(InsertPos))
lib/Transforms/Scalar/JumpThreading.cpp
  491     if (isa<SwitchInst>(StopAt))
  495     if (isa<IndirectBrInst>(StopAt))
  513     if (isa<DbgInfoIntrinsic>(I)) continue;
  516     if (isa<BitCastInst>(I) && I->getType()->isPointerTy())
  536       else if (!isa<IntrinsicInst>(CI))
  672     if (!isa<PHINode>(Source) && !isa<CmpInst>(Source))
  672     if (!isa<PHINode>(Source) && !isa<CmpInst>(Source))
  714         if (LHSVal.first == InterestingVal || isa<UndefValue>(LHSVal.first)) {
  719         if (RHSVal.first == InterestingVal || isa<UndefValue>(RHSVal.first)) {
  731         isa<ConstantInt>(I->getOperand(1)) &&
  798           if (!isa<Constant>(RHS))
  824     if (isa<Constant>(CmpRHS) && !CmpType->isVectorTy()) {
  827       if (!isa<Instruction>(CmpLHS) ||
  857         if (isa<ConstantInt>(CmpConst) &&
  859           if (!isa<Instruction>(AddLHS) ||
  929           assert(isa<UndefValue>(Cond) && "Unexpected condition value");
 1093   if (isa<UndefValue>(Condition)) {
 1203     if (isa<Constant>(CondCmp->getOperand(1)))
 1214     if (PN->getParent() == BB && isa<BranchInst>(BB->getTerminator()))
 1226     if (PN->getParent() == BB && isa<BranchInst>(BB->getTerminator()))
 1231       CondInst->getParent() == BB && isa<BranchInst>(BB->getTerminator()))
 1313   if (isOpDefinedInBlock(LoadedPtr, LoadBB) && !isa<PHINode>(LoadedPtr))
 1454       if (isa<IndirectBrInst>(P->getTerminator()) ||
 1455           isa<CallBrInst>(P->getTerminator()))
 1634     if (isa<UndefValue>(Val))
 1637       assert(isa<ConstantInt>(Val) && "Expecting a constant integer");
 1640       assert(isa<ConstantInt>(Val) && "Expecting a constant integer");
 1643       assert(isa<IndirectBrInst>(BB->getTerminator())
 1645       assert(isa<BlockAddress>(Val) && "Expecting a constant blockaddress");
 1664     if (isa<IndirectBrInst>(Pred->getTerminator()) ||
 1665         isa<CallBrInst>(Pred->getTerminator()))
 1801   if (isa<ConstantInt>(BO->getOperand(0)) ||
 1802       isa<ConstantInt>(BO->getOperand(1)))
 1807   if (!isa<PHINode>(BB->front()))
 1850     if (isa<UndefValue>(XorOpValue.first))
 1870     if (XorOpValue.first != SplitVal && !isa<UndefValue>(XorOpValue.first))
 2572                      [](Value *V) { return !isa<ConstantInt>(V); }))
 2589             isa<ConstantInt>(Cmp->getOperand(1 - U.getOperandNo())))
 2739     if (!isa<PHINode>(&*BI))
lib/Transforms/Scalar/LICM.cpp
  411       return isa<CatchSwitchInst>(Exit->getTerminator());
 1035   return (isa<LoadInst>(I) || isa<StoreInst>(I) || isa<CallInst>(I) ||
 1035   return (isa<LoadInst>(I) || isa<StoreInst>(I) || isa<CallInst>(I) ||
 1035   return (isa<LoadInst>(I) || isa<StoreInst>(I) || isa<CallInst>(I) ||
 1036           isa<FenceInst>(I) || isa<CastInst>(I) ||
 1036           isa<FenceInst>(I) || isa<CastInst>(I) ||
 1037           isa<UnaryOperator>(I) || isa<BinaryOperator>(I) ||
 1037           isa<UnaryOperator>(I) || isa<BinaryOperator>(I) ||
 1038           isa<SelectInst>(I) || isa<GetElementPtrInst>(I) || isa<CmpInst>(I) ||
 1038           isa<SelectInst>(I) || isa<GetElementPtrInst>(I) || isa<CmpInst>(I) ||
 1038           isa<SelectInst>(I) || isa<GetElementPtrInst>(I) || isa<CmpInst>(I) ||
 1039           isa<InsertElementInst>(I) || isa<ExtractElementInst>(I) ||
 1039           isa<InsertElementInst>(I) || isa<ExtractElementInst>(I) ||
 1040           isa<ShuffleVectorInst>(I) || isa<ExtractValueInst>(I) ||
 1040           isa<ShuffleVectorInst>(I) || isa<ExtractValueInst>(I) ||
 1041           isa<InsertValueInst>(I));
 1069         if (isa<MemoryPhi>(&Acc))
 1133     if (isa<DbgInfoIntrinsic>(I))
 1312            (!isa<StoreInst>(UI) && !isa<LoadInst>(UI))))
 1312            (!isa<StoreInst>(UI) && !isa<LoadInst>(UI))))
 1336       if (isa<CatchSwitchInst>(BB->getTerminator()))
 1341       if (isa<CallInst>(I))
 1484     if (isa<IndirectBrInst>(BBPred->getTerminator()))
 1571   if (isa<LoadInst>(I))
 1573   else if (isa<CallInst>(I))
 1684   if (isa<PHINode>(I))
 1696   if (isa<LoadInst>(I))
 1698   else if (isa<CallInst>(I))
 1841   if (isa<AllocaInst>(Object))
 1947     IsKnownThreadLocalObject = !isa<AllocaInst>(Object);
 2083           (isAllocLikeFn(Object, TLI) || isa<AllocaInst>(Object)) &&
lib/Transforms/Scalar/LoopDeletion.cpp
  195   if (isa<SCEVCouldNotCompute>(S)) {
lib/Transforms/Scalar/LoopDistribute.cpp
  225           assert(!isa<BranchInst>(NewInst) &&
  328         if (isa<StoreInst>(Inst)) {
  369         if (isa<LoadInst>(Inst)) {
lib/Transforms/Scalar/LoopFuse.cpp
  670     if (isa<SCEVCouldNotCompute>(TripCount0)) {
  677     if (isa<SCEVCouldNotCompute>(TripCount1)) {
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
  384   assert(!isa<SCEVCouldNotCompute>(BECount) &&
  506   if (!isa<SCEVConstant>(StoreEv->getOperand(1)))
  734           if (isa<UndefValue>(FirstSplatValue))
  739           if (isa<UndefValue>(FirstPatternValue))
  809   if (MSI->isVolatile() || !isa<ConstantInt>(MSI->getLength()))
 2018       if (isa<DbgInfoIntrinsic>(I)) // Ignore dbginfo.
 2056       RecStepForA != RecStepForB || !isa<SCEVConstant>(RecStepForA) ||
 2440   assert(isa<UnreachableInst>(PhonySuccessorBB->getTerminator()) &&
lib/Transforms/Scalar/LoopInstSimplify.cpp
  130           assert((L.contains(UserI) || isa<PHINode>(UserI)) &&
lib/Transforms/Scalar/LoopInterchange.cpp
   95       if (!isa<Instruction>(I))
  122       if (isa<LoadInst>(Src) && isa<LoadInst>(Dst))
  122       if (isa<LoadInst>(Src) && isa<LoadInst>(Dst))
  301   for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I) {
  312     if (!isa<SCEVConstant>(Step))
  632     if (isa<Constant>(Val))
  729     if (!isa<PHINode>(Ins) && isOuterLoopExitBlock)
  745       !isa<BranchInst>(InnerLoopLatch->getTerminator()) ||
  746       !isa<BranchInst>(OuterLoop->getLoopLatch()->getTerminator())) {
  886     if (isa<BranchInst>(I) || isa<CmpInst>(I) || isa<TruncInst>(I) ||
  886     if (isa<BranchInst>(I) || isa<CmpInst>(I) || isa<TruncInst>(I) ||
  886     if (isa<BranchInst>(I) || isa<CmpInst>(I) || isa<TruncInst>(I) ||
  887         isa<ZExtInst>(I))
 1408       if (!I || ((I->getParent() != OuterLatch || isa<PHINode>(I)) &&
 1440   if (isa<PHINode>(OuterLoopPreHeader->begin()) ||
lib/Transforms/Scalar/LoopLoadElimination.cpp
  194         if (isa<LoadInst>(Source))
  196         if (isa<LoadInst>(Destination))
lib/Transforms/Scalar/LoopPredication.cpp
  369   if (isa<SCEVCouldNotCompute>(LHSS))
  372   if (isa<SCEVCouldNotCompute>(RHSS))
lib/Transforms/Scalar/LoopRerollPass.cpp
  201         assert(isa<PHINode>(P) && "First reduction instruction must be a PHI");
  471       if (!isa<BranchInst>(TI) || !isa<CmpInst>(I))
  471       if (!isa<BranchInst>(TI) || !isa<CmpInst>(I))
  555                 isa<SExtInst>(UUser))
  577     if (!isa<PHINode>(I))
  625       if (!(isa<PHINode>(Instructions.back()) ||
  656     if (!isa<PHINode>(I))
  766       (!BO && !isa<GetElementPtrInst>(U)))
 1117   if (isa<DbgInfoIntrinsic>(I))
 1178         if (isa<SExtInst>(UUser)) {
 1292         if (!isa<PHINode>(I) && !isUnorderedLoadStore(I) &&
lib/Transforms/Scalar/LoopStrengthReduce.cpp
  484         return isa<const SCEVAddRecExpr>(S) &&
  517                        return isa<const SCEVAddRecExpr>(S) &&
  633   return isa<SCEVAddRecExpr>(SE.getSignExtendExpr(AR, WideTy));
  641   return isa<SCEVAddExpr>(SE.getSignExtendExpr(A, WideTy));
  650   return isa<SCEVMulExpr>(SE.getSignExtendExpr(M, WideTy));
  799   bool isAddress = isa<LoadInst>(Inst);
  936       if (isa<SCEVConstant>(Mul->getOperand(0)))
 1216   if (isa<SCEVUnknown>(Reg) || isa<SCEVConstant>(Reg))
 1216   if (isa<SCEVUnknown>(Reg) || isa<SCEVConstant>(Reg))
 1273         if (isa<SCEVConstant>(LoopStep)) {
 1275           if (!isa<SCEVConstant>(LoopStart) &&
 1285     if (!AR->isAffine() || !isa<SCEVConstant>(AR->getOperand(1))) {
 1301   C.NumIVMuls += isa<SCEVMulExpr>(Reg) &&
 2072   if (isa<SCEVCouldNotCompute>(BackedgeTakenCount))
 2257   if (isa<SCEVCouldNotCompute>(BackedgeTakenCount))
 2395     if (TermBr->isUnconditional() || !isa<ICmpInst>(TermBr->getCondition()))
 2812   if (!isa<SCEVConstant>(IncExpr)) {
 2814     if (isa<SCEVConstant>(SE.getMinusSCEV(OperExpr, HeadExpr)))
 2855   if (isa<PHINode>(Chain.tailUserInst())
 2869     if (isa<SCEVConstant>(Inc.IncExpr)) {
 2931     if (isa<PHINode>(UserInst) && isa<PHINode>(Chain.tailUserInst()))
 2931     if (isa<PHINode>(UserInst) && isa<PHINode>(Chain.tailUserInst()))
 2948     if (isa<PHINode>(UserInst))
 2958     if (!isa<SCEVAddRecExpr>(LastIncExpr))
 3003         && !isa<SCEVUnknown>(SE.getSCEV(OtherUse))
 3053       if (isa<PHINode>(I) || !IU.isIVUserOrOperand(&I))
 3059       if (SE.isSCEVable(I.getType()) && !isa<SCEVUnknown>(SE.getSCEV(&I)))
 3178     if (isa<PHINode>(InsertPt))
 3218   if (isa<PHINode>(Chain.tailUserInst())) {
 3412       } else if (isa<UndefValue>(V))
 3425         const BasicBlock *UseBB = !isa<PHINode>(UserInst) ?
 3435         if (isa<CatchSwitchInst>(UserInst->getParent()->getTerminator()))
 3442           if (!isa<SCEVUnknown>(UserS))
 3511     if (Remainder && (AR->getLoop() == L || !isa<SCEVAddRecExpr>(Remainder))) {
 3553   if (!isa<SCEVConstant>(LoopStep))
 3562     if (!isa<SCEVConstant>(LoopStart) && SE.isLoopInvariant(LoopStart, L))
 3593     if (isa<SCEVUnknown>(*J) && !SE.isLoopInvariant(*J, L))
 4144       if (!isa<SCEVConstant>(OrigReg) &&
 4770         if (isa<SCEVAddRecExpr>(BaseReg))
 4778           if (isa<SCEVAddRecExpr>(ScaledReg))
 5015     if (isa<CatchSwitchInst>(Tentative))
 5099   assert(!isa<PHINode>(LowestIP) && !LowestIP->isEHPad()
 5100          && !isa<DbgInfoIntrinsic>(LowestIP) &&
 5108   while (isa<PHINode>(IP)) ++IP;
 5114   while (isa<DbgInfoIntrinsic>(IP)) ++IP;
 5319           !isa<IndirectBrInst>(BB->getTerminator()) &&
 5320           !isa<CatchSwitchInst>(BB->getTerminator())) {
 5405                 for (BasicBlock::iterator I = Block->begin(); isa<PHINode>(I);
 5524        if (isa<FuncletPadInst>(FirstNonPHI) ||
 5525            isa<CatchSwitchInst>(FirstNonPHI))
 5527            if (isa<CatchSwitchInst>(PredBB->getFirstNonPHI()))
lib/Transforms/Scalar/LoopUnrollPass.cpp
  517         if (isa<DbgInfoIntrinsic>(I) || EphValues.count(&I))
  572             if (isa<UndefValue>(SimpleCond))
  583           if (isa<UndefValue>(SimpleCond))
lib/Transforms/Scalar/LoopUnswitch.cpp
  437   if (isa<Constant>(Cond)) return nullptr;
  572     if (!isa<ConstantInt>(Cond))
  600   if (isa<UndefValue>(LHS) || isa<UndefValue>(RHS))
  600   if (isa<UndefValue>(LHS) || isa<UndefValue>(RHS))
  605       if (isa<UndefValue>(Opd))
  616     if (isa<UndefValue>(SI.getTrueValue()) ||
  617         isa<UndefValue>(SI.getFalseValue()))
  943   if (!isa<ConstantInt>(Val) ||
 1153     if (!LoopExitBB || isa<PHINode>(LoopExitBB->begin()))
 1199     if (!LoopExitBB || isa<PHINode>(LoopExitBB->begin()))
 1398       LICHandle && !isa<Constant>(LICHandle))
 1445   assert(!isa<Constant>(LIC) && "Why are we unswitching on a constant?");
 1461   if (IsEqual || (isa<ConstantInt>(Val) &&
 1514     if (!SI || !isa<ConstantInt>(Val)) continue;
lib/Transforms/Scalar/LowerConstantIntrinsics.cpp
   45   return isa<Constant>(Op) ? ConstantInt::getTrue(II->getType())
lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
  118   while (!isa<PHINode>(V)) {
lib/Transforms/Scalar/MemCpyOptimizer.cpp
  114     if (!isa<StoreInst>(SI))
  317     if (!isa<StoreInst>(BI) && !isa<MemSetInst>(BI)) {
  317     if (!isa<StoreInst>(BI) && !isa<MemSetInst>(BI)) {
  332       if (isa<UndefValue>(ByteVal) && StoredByte)
  348           !isa<ConstantInt>(MSI->getLength()))
  502       } else if (isa<LoadInst>(C) || isa<StoreInst>(C) || isa<VAArgInst>(C)) {
  502       } else if (isa<LoadInst>(C) || isa<StoreInst>(C) || isa<VAArgInst>(C)) {
  502       } else if (isa<LoadInst>(C) || isa<StoreInst>(C) || isa<VAArgInst>(C)) {
  622       if (ldep.isClobber() && !isa<MemCpyInst>(ldep.getInst()))
  629         bool CpyDestIsLocal = isa<AllocaInst>(CpyDest);
  710   if (isa<ConstantInt>(MSI->getLength()) && !MSI->isVolatile())
  812   if (!isDestSufficientlyAligned && !isa<AllocaInst>(cpyDest))
  824     if (isa<BitCastInst>(U) || isa<AddrSpaceCastInst>(U)) {
  824     if (isa<BitCastInst>(U) || isa<AddrSpaceCastInst>(U)) {
  901     assert(isa<AllocaInst>(cpyDest) && "Can only increase alloca alignment!");
 1070   if (isa<AllocaInst>(I))
lib/Transforms/Scalar/MergeICmps.cpp
  818     if (isa<ConstantInt>(Phi.getIncomingValue(I))) continue;
  824     if (!isa<ICmpInst>(Phi.getIncomingValue(I)) ||
lib/Transforms/Scalar/MergedLoadStoreMotion.cpp
  234          (A1->getParent() == S1->getParent()) && isa<GetElementPtrInst>(A0);
lib/Transforms/Scalar/NewGVN.cpp
  839     assert(isa<Instruction>(V) && "This should not be used for MemoryAccesses");
  853     assert(isa<MemoryAccess>(MA) &&
  855     return isa<MemoryUseOrDef>(MA)
  872   if (!isa<LoadExpression>(RHS) && !isa<StoreExpression>(RHS))
  872   if (!isa<LoadExpression>(RHS) && !isa<StoreExpression>(RHS))
  935   assert(isa<BasicExpression>(E));
  956   return CO && isa<PHINode>(CO);
  973   return isa<Constant>(V) || isa<Argument>(V);
  973   return isa<Constant>(V) || isa<Argument>(V);
 1004     OriginalOpsConstant = OriginalOpsConstant && isa<Constant>(P.first);
 1030     AllConstant = AllConstant && isa<Constant>(Operand);
 1075     assert(isa<BasicExpression>(E) &&
 1079   } else if (isa<Argument>(V) || isa<GlobalVariable>(V)) {
 1079   } else if (isa<Argument>(V) || isa<GlobalVariable>(V)) {
 1156   } else if (isa<SelectInst>(I)) {
 1157     if (isa<Constant>(E->getOperand(0)) ||
 1176   } else if (isa<GetElementPtrInst>(I)) {
 1472   if (isa<AllocaInst>(DepInst) || isMallocLikeFn(DepInst, TLI)) {
 1500   if (isa<UndefValue>(LoadAddressLeader))
 1552     if (isa<PredicateAssume>(PI))
 1592   if (isa<PredicateAssume>(PI)) {
 1617         isa<ConstantFP>(FirstOp) && !cast<ConstantFP>(FirstOp)->isZero()) {
 1723         return isa<PHINode>(V) || isCopyOfAPHI(V);
 1755     if (isa<UndefValue>(Arg)) {
 1796           !isa<UndefValue>(AllSameValue) && !isCycleFree(I))
 1807     if (isa<Instruction>(AllSameValue) &&
 1835   assert(isa<CmpInst>(I) && "Expected a cmp instruction.");
 1961   else if (isa<Argument>(V) || isa<GlobalVariable>(V)) {
 1961   else if (isa<Argument>(V) || isa<GlobalVariable>(V)) {
 2067   if (isa<Instruction>(To))
 2074     assert(isa<Instruction>(User) && "Use of value not within an instruction?");
 2090   if (isa<MemoryUse>(MA))
 2156         *CC, [&](const Value *V) { return isa<StoreInst>(V); }));
 2214            (isa<StoreInst>(I) && NewClass->getStoreCount() == 1));
 2344   } else if (isa<DeadExpression>(E)) {
 2368       assert(!isa<VariableExpression>(E) &&
 2382       if (isa<ConstantExpression>(E))
 2383         assert((isa<Constant>(EClass->getLeader()) ||
 2385                  isa<Constant>(EClass->getStoredValue()))) &&
 2414   if (ClassChanged && isa<StoreInst>(I)) {
 2418     if (OldE && isa<StoreExpression>(OldE) && *E != *OldE) {
 2466   return isa<Constant>(Result) ? Result : nullptr;
 2482       } else if (isa<ConstantInt>(Cond)) {
 2508     if (CondEvaluated && isa<ConstantInt>(CondEvaluated)) {
 2540     if (MA && !isa<MemoryUse>(MA)) {
 2578   return isa<BinaryOperator>(I) || isa<SelectInst>(I) || isa<CmpInst>(I) ||
 2578   return isa<BinaryOperator>(I) || isa<SelectInst>(I) || isa<CmpInst>(I) ||
 2578   return isa<BinaryOperator>(I) || isa<SelectInst>(I) || isa<CmpInst>(I) ||
 2579          isa<LoadInst>(I);
 2587   if (!isa<Instruction>(V))
 2600   if (isa<PHINode>(V) && getBlockForValue(V) == PHIBlock) {
 2607     if (!isa<Instruction>(Op))
 2709   if (MemAccess && !isa<MemoryPhi>(MemAccess->getDefiningAccess()) &&
 2721     if (!isa<PHINode>(Op)) {
 2769         if (isa<PHINode>(Op)) {
 2817   if (isa<ConstantExpression>(E) || isa<VariableExpression>(E)) {
 2817   if (isa<ConstantExpression>(E) || isa<VariableExpression>(E)) {
 2890         if (MD && isa<StoreInst>(MD->getMemoryInst()))
 2898       if (isa<PHINode>(&I))
 2995     if (isa<PHINode>(&I))
 3086       if (Symbolized && !isa<ConstantExpression>(Symbolized) &&
 3087           !isa<VariableExpression>(Symbolized) && PHINodeUses.count(I)) {
 3171       assert((CC->getStoredValue() || !isa<StoreInst>(CC->getLeader())) &&
 3236                isa<MemoryDef>(U);
 3587     assert(isa<Instruction>(D) &&
 3654     if (!isa<LoadInst>(D) && !isa<StoreInst>(D))
 3654     if (!isa<LoadInst>(D) && !isa<StoreInst>(D))
 3693     if (isa<LandingPadInst>(Inst))
 3765   else if (isa<DeadExpression>(E))
 3885         if (VTE && isa<DeadExpression>(VTE))
 3907         if (Member == Leader || !isa<Instruction>(Member) ||
 4013                 isa<Instruction>(Def) && !FromStore)
 4020           assert(isa<Instruction>(U->get()) &&
 4022           assert(isa<Instruction>(U->getUser()) &&
 4068           if (LeaderUseCount == 0 && isa<Instruction>(DominatingLeader))
 4092       if (!isa<Instruction>(Member) ||
 4116         if (isa<LoadInst>(Member))
 4143   if (isa<ConstantExpr>(V))
 4145   if (isa<UndefValue>(V))
 4147   if (isa<Constant>(V))
lib/Transforms/Scalar/PlaceSafepoints.cpp
  276     assert(!isa<InvokeInst>(&*BBI) &&
lib/Transforms/Scalar/Reassociate.cpp
  118   assert(!isa<ConstantInt>(V) && "No ConstantInt");
  150     if (!isa<FPMathOperator>(I) || I->isFast())
  160     if (!isa<FPMathOperator>(I) || I->isFast())
  192     if (isa<Argument>(V)) return ValueRankMap[V];   // Function argument.
  221   assert(isa<BinaryOperator>(I) && "Expected binary operator.");
  226   if (LHS == RHS || isa<Constant>(RHS))
  228   if (isa<Constant>(LHS) || getRank(RHS) < getRank(LHS))
  269   assert((isa<UnaryOperator>(Neg) || isa<BinaryOperator>(Neg)) &&
  269   assert((isa<UnaryOperator>(Neg) || isa<BinaryOperator>(Neg)) &&
  272   unsigned OpNo = isa<BinaryOperator>(Neg) ? 1 : 0;
  453   assert((isa<UnaryOperator>(I) || isa<BinaryOperator>(I)) &&
  453   assert((isa<UnaryOperator>(I) || isa<BinaryOperator>(I)) &&
  572       assert((!isa<Instruction>(Op) ||
  574               || (isa<FPMathOperator>(Op) &&
  784       if (isa<FPMathOperator>(I)) {
  884       while (InsertPt != BB->end() && (isa<PHINode>(InsertPt) ||
  886         if (isa<CatchSwitchInst>(InsertPt))
  928   if (isa<UndefValue>(Sub->getOperand(1)))
 1839   while (!Ops.empty() && isa<Constant>(Ops.back().Op)) {
 2073   if (!isa<UnaryOperator>(I) && !isa<BinaryOperator>(I))
 2073   if (!isa<UnaryOperator>(I) && !isa<BinaryOperator>(I))
 2076   if (I->getOpcode() == Instruction::Shl && isa<ConstantInt>(I->getOperand(1)))
 2148       Value *Op = isa<BinaryOperator>(I) ? I->getOperand(1) :
 2244         isa<ConstantInt>(Ops.back().Op) &&
 2251                isa<ConstantFP>(Ops.back().Op) &&
lib/Transforms/Scalar/Reg2Mem.cpp
   53         if (UI->getParent() != BB || isa<PHINode>(UI))
   83   while (isa<AllocaInst>(I)) ++I;
   95       if (!(isa<AllocaInst>(iib) && iib->getParent() == BBEntry) &&
  112       if (isa<PHINode>(iib))
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
  438   if (isa<Argument>(I))
  442   if (isa<Constant>(I))
  448   if (isa<LoadInst>(I))
  451   if (isa<InsertElementInst>(I))
  457   if (isa<ShuffleVectorInst>(I))
  478   if (isa<CallInst>(I) || isa<InvokeInst>(I))
  478   if (isa<CallInst>(I) || isa<InvokeInst>(I))
  483   assert((isa<SelectInst>(I) || isa<PHINode>(I)) &&
  483   assert((isa<SelectInst>(I) || isa<PHINode>(I)) &&
  499   if (isa<Argument>(I))
  504   if (isa<Constant>(I)) {
  529     assert(!isa<CastInst>(Def) && "shouldn't find another cast here");
  533   if (isa<LoadInst>(I))
  564   if (isa<CallInst>(I) || isa<InvokeInst>(I))
  564   if (isa<CallInst>(I) || isa<InvokeInst>(I))
  569   assert(!isa<LandingPadInst>(I) && "Landing Pad is unimplemented");
  571   if (isa<AtomicCmpXchgInst>(I))
  577   assert(!isa<AtomicRMWInst>(I) && "Xchg handled above, all others are "
  583   if (isa<ExtractValueInst>(I))
  588   assert(!isa<InsertValueInst>(I) &&
  595   if (isa<ExtractElementInst>(I))
  605   assert((isa<SelectInst>(I) || isa<PHINode>(I)) &&
  605   assert((isa<SelectInst>(I) || isa<PHINode>(I)) &&
  638   if (!isa<PHINode>(V) && !isa<SelectInst>(V) &&
  638   if (!isa<PHINode>(V) && !isa<SelectInst>(V) &&
  639       !isa<ExtractElementInst>(V) && !isa<InsertElementInst>(V) &&
  639       !isa<ExtractElementInst>(V) && !isa<InsertElementInst>(V) &&
  640       !isa<ShuffleVectorInst>(V)) {
  644   if (isa<Instruction>(V) &&
  791     return isa<PHINode>(BDV) || isa<SelectInst>(BDV) ||
  791     return isa<PHINode>(BDV) || isa<SelectInst>(BDV) ||
  792            isa<ExtractElementInst>(BDV) || isa<InsertElementInst>(BDV) ||
  792            isa<ExtractElementInst>(BDV) || isa<InsertElementInst>(BDV) ||
  793            isa<ShuffleVectorInst>(BDV);
  940     if (State.isBase() && isa<ExtractElementInst>(I) &&
  941         isa<VectorType>(State.getBaseValue()->getType())) {
  955     assert(!isa<InsertElementInst>(I) || State.isConflict());
  963       if (isa<PHINode>(I)) {
 1166     assert((!isa<Instruction>(base) || !isa<Instruction>(ptr) ||
 1166     assert((!isa<Instruction>(base) || !isa<Instruction>(ptr) ||
 1230   assert(!isa<PHINode>(Ret->begin()) &&
 1532     assert(!isa<PHINode>(UnwindBlock->begin()) &&
 1549     assert(!isa<PHINode>(NormalDest->begin()) &&
 1694     if (isa<AllocaInst>(I))
 1751     if (isa<InvokeInst>(Statepoint)) {
 1810       if (!isa<ConstantExpr>(U)) {
 1825       if (isa<PHINode>(Use)) {
 1859       assert(isa<Argument>(Def));
 1873     if (isa<AllocaInst>(I))
 1900   if (isa<CallInst>(Call)) {
 2073     if (isa<InvokeInst>(Call)) {
 2100         assert(isa<GetElementPtrInst>(Instr) || isa<CastInst>(Instr));
 2100         assert(isa<GetElementPtrInst>(Instr) || isa<CastInst>(Instr));
 2141     if (isa<CallInst>(Call)) {
 2288       if (isa<Constant>(BasePair.second))
 2357       if (!isa<Instruction>(V))
 2403     if (isa<PointerType>(A.getType()))
 2407   if (isa<PointerType>(F.getReturnType()))
 2415   if (!isa<LoadInst>(I) && !isa<StoreInst>(I))
 2415   if (!isa<LoadInst>(I) && !isa<StoreInst>(I))
 2475         if (isa<PointerType>(Call->getArgOperand(i)->getType()))
 2478       if (isa<PointerType>(Call->getType()))
 2593       if (isa<ICmpInst>(Cond) && Cond->hasOneUse()) {
 2605     if (!isa<GetElementPtrInst>(I))
 2647     if (isa<PHINode>(I))
 2654       if (isHandledGCPointerType(V->getType()) && !isa<Constant>(V)) {
 2681       if (isHandledGCPointerType(V->getType()) && !isa<Constant>(V))
lib/Transforms/Scalar/SCCP.cpp
  295       if (!isa<UndefValue>(GV->getInitializer()))
  501       if (!isa<UndefValue>(V))
  542       else if (isa<UndefValue>(Elt))
  746   if (isa<CallBrInst>(&TI)) {
  880     if (isa<UndefValue>(C))
  986     if (isa<UndefValue>(C))
 1010     if (isa<UndefValue>(C))
 1084     if (isa<UndefValue>(C))
 1124   if (isa<UndefValue>(C))
 1134   if (TrackedGlobals.empty() || !isa<GlobalVariable>(SI.getOperand(1)))
 1166   if (isa<ConstantPointerNull>(Ptr)) {
 1188     if (isa<UndefValue>(C))
 1296         if (isa<UndefValue>(C))
 1455         if (isa<ExtractValueInst>(I) || isa<InsertValueInst>(I))
 1455         if (isa<ExtractValueInst>(I) || isa<InsertValueInst>(I))
 1489       if (isa<ExtractValueInst>(I))
 1679       if (isa<UndefValue>(BI->getCondition())) {
 1707       if (isa<UndefValue>(IBR->getAddress())) {
 1731       if (isa<UndefValue>(SI->getCondition())) {
 1937                if (isa<Instruction>(U) &&
 1964       if (!isa<UndefValue>(RI->getOperand(0)))
 1975     if (!isa<ConstantInt>(SI->getCondition())) {
 1981     if (!isa<ConstantInt>(BI->getCondition())) {
 1987     if (!isa<BlockAddress>(IBR->getAddress()->stripPointerCasts())) {
lib/Transforms/Scalar/SROA.cpp
  978       } else if (!isa<BitCastInst>(I) && !isa<PHINode>(I) &&
  978       } else if (!isa<BitCastInst>(I) && !isa<PHINode>(I) &&
  979                  !isa<SelectInst>(I) && !isa<AddrSpaceCastInst>(I)) {
  979                  !isa<SelectInst>(I) && !isa<AddrSpaceCastInst>(I)) {
  992     assert(isa<PHINode>(I) || isa<SelectInst>(I));
  992     assert(isa<PHINode>(I) || isa<SelectInst>(I));
 1138     if (isa<IntrinsicInst>(*U->getUser()))
 1716   if (isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) {
 1716   if (isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) {
 1768   assert(!(isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) &&
 1768   assert(!(isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) &&
 2031     if (!isa<VectorType>(LI->getType()) && RelBegin == 0 && RelEnd == Size)
 2056     if (!isa<VectorType>(ValueTy) && RelBegin == 0 && RelEnd == Size)
 2068     if (MI->isVolatile() || !isa<Constant>(MI->getLength()))
 2764     if (!isa<Constant>(II.getLength())) {
 3136       assert(isa<BitCastInst>(I) || isa<AddrSpaceCastInst>(I) ||
 3136       assert(isa<BitCastInst>(I) || isa<AddrSpaceCastInst>(I) ||
 3137              isa<PHINode>(I) || isa<SelectInst>(I) ||
 3137              isa<PHINode>(I) || isa<SelectInst>(I) ||
 3138              isa<GetElementPtrInst>(I));
 3155     if (isa<PHINode>(OldPtr))
 4293       if (isa<LoadInst>(S.getUse()->getUser()) ||
 4294           isa<StoreInst>(S.getUse()->getUser())) {
 4310       if (isa<LoadInst>(S.getUse()->getUser()) ||
 4311           isa<StoreInst>(S.getUse()->getUser())) {
lib/Transforms/Scalar/Scalarizer.cpp
  840       if (isa<PHINode>(Op))
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
  589   } else if (isa<TruncInst>(V)) {
  593   } else if (isa<SExtInst>(V)) {
  596   } else if (isa<ZExtInst>(V)) {
  651     assert(isa<ConstantInt>(U));
  658         (isa<SExtInst>(Cast) || isa<ZExtInst>(Cast) || isa<TruncInst>(Cast)) &&
  658         (isa<SExtInst>(Cast) || isa<ZExtInst>(Cast) || isa<TruncInst>(Cast)) &&
  658         (isa<SExtInst>(Cast) || isa<ZExtInst>(Cast) || isa<TruncInst>(Cast)) &&
  685     assert(isa<ConstantInt>(UserChain[ChainIndex]));
 1264       isa<ConstantInt>(FirstOffsetDef->getOperand(1)))
 1273           (isa<ConstantInt>(BO->getOperand(0)) ||
 1274            isa<ConstantInt>(BO->getOperand(1))))
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  118       if (isa<Constant>(OpV))
  143   assert(!isa<Constant>(Invariant) && "Why are we unswitching on a constant?");
  596       !isa<UnreachableInst>(SI.getDefaultDest()->getTerminator())) {
  876         if (!isa<MemoryPhi>(*Defs->begin()) || (++Defs->begin() != Defs->end()))
  888       if (isa<Constant>(SI->getCondition()))
  918     if (!BI->isConditional() || isa<Constant>(BI->getCondition()))
 1047           (isa<PHINode>(I) || isa<LandingPadInst>(I) || isa<CatchPadInst>(I)) &&
 1047           (isa<PHINode>(I) || isa<LandingPadInst>(I) || isa<CatchPadInst>(I)) &&
 1047           (isa<PHINode>(I) || isa<LandingPadInst>(I) || isa<CatchPadInst>(I)) &&
 1919     assert(isa<Instruction>(BI->getCondition()) &&
 2551           if (!isa<Constant>(Cond) && L.isLoopInvariant(Cond))
 2558       if (!isa<Constant>(SI->getCondition()) &&
 2565     if (!BI || !BI->isConditional() || isa<Constant>(BI->getCondition()) ||
 2610     if (isa<CleanupPadInst>(ExitBB->getFirstNonPHI())) {
lib/Transforms/Scalar/SimplifyCFGPass.cpp
   92       while (isa<DbgInfoIntrinsic>(I) && I != BB.begin())
   94       if (!isa<DbgInfoIntrinsic>(I) &&
   95           (!isa<PHINode>(I) || I != BB.begin() || Ret->getNumOperands() == 0 ||
lib/Transforms/Scalar/Sink.cpp
   74   if (Inst->isTerminator() || isa<PHINode>(Inst) || Inst->isEHPad() ||
  224     if (isa<DbgInfoIntrinsic>(Inst))
lib/Transforms/Scalar/SpeculateAroundPHIs.cpp
  118           if (isa<PHINode>(OpI)) {
  582       assert(!isa<InvokeInst>(PredBB->getTerminator()) &&
  685           isa<Constant>(NewI->getOperand(0)) &&
  686           !isa<Constant>(NewI->getOperand(1)))
  781     if (isa<IndirectBrInst>(TermInst) ||
  782         isa<InvokeInst>(TermInst) ||
  783         isa<CallBrInst>(TermInst)) {
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
  389   if (!isa<IntegerType>(I->getType()))
  457   if (!isa<IntegerType>(I->getType()))
lib/Transforms/Scalar/TailRecursionElimination.cpp
  240       if (!CI || CI->isTailCall() || isa<DbgInfoIntrinsic>(&I))
  255           if (isa<Constant>(Arg.getUser()))
  363   if (isa<Constant>(V)) return true; // Static constants are always dyn consts
  433   if (!I->hasOneUse() || !isa<ReturnInst>(I->user_back()))
  443   while (isa<DbgInfoIntrinsic>(I))
  544       !isa<UndefValue>(Ret->getReturnValue()) &&
  586           if (isa<ConstantInt>(AI->getArraySize()))
lib/Transforms/Utils/AddDiscriminators.cpp
  113   return !isa<IntrinsicInst>(I) || isa<MemIntrinsic>(I);
  113   return !isa<IntrinsicInst>(I) || isa<MemIntrinsic>(I);
  238       if (!isa<InvokeInst>(I) && (!isa<CallInst>(I) || isa<IntrinsicInst>(I)))  
  238       if (!isa<InvokeInst>(I) && (!isa<CallInst>(I) || isa<IntrinsicInst>(I)))  
  238       if (!isa<InvokeInst>(I) && (!isa<CallInst>(I) || isa<IntrinsicInst>(I)))  
lib/Transforms/Utils/BasicBlockUtils.cpp
   82            isa<UnreachableInst>(BB->getTerminator()) &&
  141   if (!isa<PHINode>(BB->begin())) return;
  218   if (isa<PHINode>(BB->front())) {
  220       if (!isa<PHINode>(PN.getIncomingValue(0)) ||
  283     if (isa<Instruction>(*Incoming)) {
  309            isa<UnreachableInst>(BB->getTerminator()) &&
  394     if (TI->getNumSuccessors() > 1 && !isa<IndirectBrInst>(TI))
  406   while (isa<PHINode>(SplitIt) || SplitIt->isEHPad())
  533   for (BasicBlock::iterator I = OrigBB->begin(); isa<PHINode>(I); ) {
  633     assert(!isa<IndirectBrInst>(Preds[i]->getTerminator()) &&
  635     assert(!isa<CallBrInst>(Preds[i]->getTerminator()) &&
  646     for (BasicBlock::iterator I = BB->begin(); isa<PHINode>(I); ++I)
  688     assert(!isa<IndirectBrInst>(Preds[i]->getTerminator()) &&
  706     assert(!isa<IndirectBrInst>(Pred->getTerminator()) &&
lib/Transforms/Utils/BreakCriticalEdges.cpp
  142   assert(!isa<IndirectBrInst>(TI) &&
  153   if (isa<CallBrInst>(TI) && SuccNum > 0)
  157       isa<UnreachableInst>(DestBB->getFirstNonPHIOrDbgOrLifetime()))
  179     for (BasicBlock::iterator I = DestBB->begin(); isa<PHINode>(I); ++I) {
lib/Transforms/Utils/BypassSlowDivision.cpp
  205     if (!C && isa<BitCastInst>(Op1))
  223              isa<UndefValue>(V);
  383   if (isa<ConstantInt>(Divisor)) {
  396         isa<ConstantInt>(BCI->getOperand(0)))
lib/Transforms/Utils/CloneFunction.cpp
   63     hasCalls |= (isa<CallInst>(I) && !isa<DbgInfoIntrinsic>(I));
   63     hasCalls |= (isa<CallInst>(I) && !isa<DbgInfoIntrinsic>(I));
   65       if (isa<ConstantInt>(AI->getArraySize()))
  340     if (!isa<PHINode>(NewInst)) {
  367     hasCalls |= (isa<CallInst>(II) && !isa<DbgInfoIntrinsic>(II));
  367     hasCalls |= (isa<CallInst>(II) && !isa<DbgInfoIntrinsic>(II));
  375       if (isa<ConstantInt>(AI->getArraySize()))
  506       if (isa<PHINode>(VMap[&PN]))
  610     if (isa<PHINode>(VMap[PHIToResolve[Idx]]))
  690     assert(!isa<PHINode>(Dest->begin()));
lib/Transforms/Utils/CodeExtractor.cpp
  104     if (isa<BlockAddress const>(Curr))
  107     if (isa<Instruction>(Curr) && cast<Instruction>(Curr)->getParent() != &BB)
  119     if (isa<AllocaInst>(I)) {
  278   if (isa<Argument>(V)) return true;
  336       if (!isa<AllocaInst>(Base)) {
  672     for (AfterPHIs = OldPred->begin(); isa<PHINode>(AfterPHIs); ++AfterPHIs) {
 1024       assert((!isa<Instruction>(Mem) || cast<Instruction>(Mem)->getFunction() ==
 1492     if (!isa<AllocaInst>(II)) {
 1545   for (BasicBlock::iterator I = header->begin(); isa<PHINode>(I); ++I) {
 1579       if (isa<DbgInfoIntrinsic>(Inst))
 1596     return isa<ReturnInst>(Term) || isa<ResumeInst>(Term);
 1596     return isa<ReturnInst>(Term) || isa<ResumeInst>(Term);
lib/Transforms/Utils/CtorUtils.cpp
   90   if (isa<ConstantAggregateZero>(GV->getInitializer()))
   95     if (isa<ConstantAggregateZero>(V))
   98     if (isa<ConstantPointerNull>(CS->getOperand(1)))
  102     if (!isa<Function>(CS->getOperand(1)))
lib/Transforms/Utils/DemoteRegToStack.cpp
   96     for (; isa<PHINode>(InsertPt) || InsertPt->isEHPad(); ++InsertPt)
  143   for (; isa<PHINode>(InsertPt) || InsertPt->isEHPad(); ++InsertPt)
lib/Transforms/Utils/EntryExitInstrumenter.cpp
   94       if (!isa<ReturnInst>(T))
lib/Transforms/Utils/EscapeEnumerator.cpp
   40     if (!isa<ReturnInst>(TI) && !isa<ResumeInst>(TI))
   40     if (!isa<ReturnInst>(TI) && !isa<ResumeInst>(TI))
lib/Transforms/Utils/Evaluator.cpp
   70   if (C->getNumOperands() == 0 || isa<BlockAddress>(C))
   74   if (isa<ConstantAggregate>(C)) {
  102       if (!isa<ConstantInt>(CE->getOperand(i)))
  108     if (!isa<ConstantInt>(CE->getOperand(1)))
  144         isa<GlobalVariable>(CE->getOperand(0)) &&
  167                isa<GlobalVariable>(CE->getOperand(0))) {
  191     if (!isa<StructType>(Ty))
  478     } else if (isa<CallInst>(CurInst) || isa<InvokeInst>(CurInst)) {
  478     } else if (isa<CallInst>(CurInst) || isa<InvokeInst>(CurInst)) {
  482       if (isa<DbgInfoIntrinsic>(CS.getInstruction())) {
  489       if (isa<InlineAsm>(CS.getCalledValue())) {
  631       } else if (isa<ReturnInst>(CurInst)) {
lib/Transforms/Utils/FlattenCFG.cpp
  193         if (isa<PHINode>(CI) || !isSafeToSpeculativelyExecute(CI))
  438     if (isa<PHINode>(CI) || CI->mayHaveSideEffects() ||
lib/Transforms/Utils/FunctionImportUtils.cpp
   27   assert(!isa<GlobalAlias>(SGV) &&
  132     if (doImportAsDefinition(SGV) && !isa<GlobalAlias>(SGV))
  161     if (doImportAsDefinition(SGV) && !isa<GlobalAlias>(SGV))
  179       if (doImportAsDefinition(SGV) && !isa<GlobalAlias>(SGV))
lib/Transforms/Utils/GlobalStatus.cpp
   46   if (isa<GlobalValue>(C))
   49   if (isa<ConstantData>(C))
   74       if (!isa<PointerType>(CE->getType()))
  123             } else if (isa<LoadInst>(StoredVal) &&
  140       } else if (isa<BitCastInst>(I) || isa<GetElementPtrInst>(I)) {
  140       } else if (isa<BitCastInst>(I) || isa<GetElementPtrInst>(I)) {
  145       } else if (isa<SelectInst>(I) || isa<PHINode>(I)) {
  145       } else if (isa<SelectInst>(I) || isa<PHINode>(I)) {
  153       } else if (isa<CmpInst>(I)) {
lib/Transforms/Utils/InlineFunction.cpp
  119       for (; isa<PHINode>(I); ++I) {
  260             if (!isa<CleanupPadInst>(Child) && !isa<CatchSwitchInst>(Child))
  260             if (!isa<CleanupPadInst>(Child) && !isa<CatchSwitchInst>(Child))
  279             if (isa<ConstantTokenNone>(ChildUnwindDestToken)) {
  300         } else if (isa<CleanupPadInst>(U) || isa<CatchSwitchInst>(U)) {
  300         } else if (isa<CleanupPadInst>(U) || isa<CatchSwitchInst>(U)) {
  320         if (isa<Instruction>(ChildUnwindDestToken) &&
  346       if (isa<CatchPadInst>(ExitedPad))
  414     if (isa<CatchPadInst>(AncestorPad))
  491               (!isa<InvokeInst>(U) ||
  496           if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U))
  496           if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U))
  501       assert(isa<CleanupPadInst>(UselessPad));
  503         assert(!isa<CleanupReturnInst>(U) && "Expected useless pad");
  504         assert((!isa<InvokeInst>(U) ||
  509         if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U))
  509         if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U))
  533     if (!CI || CI->doesNotThrow() || isa<InlineAsm>(CI->getCalledValue()))
  558       if (UnwindDestToken && !isa<ConstantTokenNone>(UnwindDestToken))
  688                isa<ConstantTokenNone>(FuncletUnwindMap[CleanupPad]));
  713           if (UnwindDestToken && !isa<ConstantTokenNone>(UnwindDestToken))
  738     } else if (!isa<FuncletPadInst>(I)) {
 1052         bool IsNonPtrConst = isa<ConstantInt>(V) || isa<ConstantFP>(V) ||
 1052         bool IsNonPtrConst = isa<ConstantInt>(V) || isa<ConstantFP>(V) ||
 1053                              isa<ConstantPointerNull>(V) ||
 1054                              isa<ConstantDataVector>(V) || isa<UndefValue>(V);
 1054                              isa<ConstantDataVector>(V) || isa<UndefValue>(V);
 1072         if (!isa<Argument>(V) &&
 1345   return isa<Constant>(AI->getArraySize()) && !AI->isUsedWithInAlloca();
 1457     if (!isa<BasicBlock>(Entry.first) || !Entry.second)
 1517       if (isa<CallInst>(Entry.first))
 1546   if (isa<CallBrInst>(TheCall))
 1632           if (isa<CleanupPadInst>(CallSiteEHPad)) {
 1636               if (isa<CatchSwitchInst>(CalledBB.getFirstNonPHI()))
 1662         !isa<ConstantTokenNone>(CallSiteUnwindDestToken);
 1772         if (isa<CallInst>(I))
 1774         else if (isa<CallBrInst>(I))
 1844       while (isa<AllocaInst>(I) &&
 2039     if (isa<LandingPadInst>(FirstNonPHI)) {
 2102         if (isa<ConstantTokenNone>(CatchSwitch->getParentPad()))
 2106         if (isa<ConstantTokenNone>(FPI->getParentPad()))
lib/Transforms/Utils/LCSSA.cpp
  194       if (isa<PHINode>(UserBB->begin()) && isExitBlock(UserBB, ExitBlocks)) {
  358            !isa<PHINode>(I.user_back())))
lib/Transforms/Utils/Local.cpp
  167     if (isa<UnreachableInst>(DefaultDest->getFirstNonPHIOrDbg()) &&
  407       return isa<UndefValue>(II->getArgOperand(1));
  427       return C->isNullValue() || isa<UndefValue>(C);
  645   if (!isa<PHINode>(BB->begin()))
  729            isa<UnreachableInst>(PredBB->getTerminator()) &&
  752   return First == Second || isa<UndefValue>(First) || isa<UndefValue>(Second);
  752   return First == Second || isa<UndefValue>(First) || isa<UndefValue>(Second);
  773   for (BasicBlock::iterator I = Succ->begin(); isa<PHINode>(I); ++I) {
  833   if (!isa<UndefValue>(OldVal)) {
  862     if (!isa<UndefValue>(V))
  877     if (!isa<UndefValue>(V)) continue;
  915   if (isa<PHINode>(OldVal) && cast<PHINode>(OldVal)->getParent() == BB) {
  976     while (isa<PHINode>(*BBI)) {
 1015   if (isa<PHINode>(Succ->begin())) {
 1022     for (BasicBlock::iterator I = Succ->begin(); isa<PHINode>(I); ++I) {
 1623     bool StackValue = isa<DbgValueInst>(DII);
 1672     if (CI->isNoopCast(DL) || isa<ZExtInst>(&I))
 1744   if (isa<Instruction>(&To)) {
 1891     if (!isa<DbgInfoIntrinsic>(Inst))
 2054               if (!isa<UnreachableInst>(CI->getNextNode())) {
 2061         } else if ((isa<ConstantPointerNull>(Callee) &&
 2063                    isa<UndefValue>(Callee)) {
 2072           if (!isa<UnreachableInst>(CI->getNextNode())) {
 2089         if (isa<UndefValue>(Ptr) ||
 2090             (isa<ConstantPointerNull>(Ptr) &&
 2104       if ((isa<ConstantPointerNull>(Callee) &&
 2106           isa<UndefValue>(Callee)) {
 2359     if (isa<LoadInst>(K) || isa<StoreInst>(K))
 2359     if (isa<LoadInst>(K) || isa<StoreInst>(K))
 2438   if (!isa<LoadInst>(I))
 2619     if (isa<DbgInfoIntrinsic>(I)) {
 2723     if (I->isLogicalShift() && isa<ConstantInt>(I->getOperand(1))) {
 2752         isa<ConstantInt>(I->getOperand(1))) {
 2907   if (!isa<Constant>(I->getOperand(OpIdx)))
 2916     if (isa<InlineAsm>(ImmutableCallSite(I).getCalledValue()))
 2921     if (isa<IntrinsicInst>(I))
lib/Transforms/Utils/LoopRotationUtils.cpp
  124       if (!isa<PHINode>(UserInst)) {
  335         !isa<DbgInfoIntrinsic>(Inst) && !isa<AllocaInst>(Inst)) {
  335         !isa<DbgInfoIntrinsic>(Inst) && !isa<AllocaInst>(Inst)) {
  446   if (!isa<ConstantInt>(PHBI->getCondition()) ||
  535     if (isa<DbgInfoIntrinsic>(I))
  556           !isa<Constant>(I->getOperand(0))
  558               : !isa<Constant>(I->getOperand(1)) ? I->getOperand(1) : nullptr;
lib/Transforms/Utils/LoopSimplify.cpp
  185   for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ) {
  391   for (BasicBlock::iterator I = Header->begin(); isa<PHINode>(I); ++I) {
lib/Transforms/Utils/LoopUnroll.cpp
  190     if (isa<ConstantInt>(PN.getIncomingValueForBlock(PreHeader)))
  384                           return isa<PHINode>(BB->begin());
  546   for (BasicBlock::iterator I = Header->begin(); isa<PHINode>(I); ++I) {
  590         if (!isa<DbgInfoIntrinsic>(&I))
  853           if (isa<BranchInst>(Term) && cast<BranchInst>(Term)->isConditional()) {
lib/Transforms/Utils/LoopUnrollAndJam.cpp
  301         if (!isa<DbgInfoIntrinsic>(&I))
  624       if (isa<LoadInst>(Src) && isa<LoadInst>(Dst))
  624       if (isa<LoadInst>(Src) && isa<LoadInst>(Dst))
  798               if (isa<PHINode>(I))
lib/Transforms/Utils/LoopUnrollPeel.cpp
  204     if (!isa<SCEVAddRecExpr>(LeftSCEV)) {
  205       if (isa<SCEVAddRecExpr>(RightSCEV)) {
  311     for (auto BI = L->getHeader()->begin(); isa<PHINode>(&*BI); ++BI) {
  535   for (BasicBlock::iterator I = Header->begin(); isa<PHINode>(I); ++I) {
  732   for (BasicBlock::iterator I = Header->begin(); isa<PHINode>(I); ++I) {
lib/Transforms/Utils/LoopUnrollRuntime.cpp
  375   for (BasicBlock::iterator I = Header->begin(); isa<PHINode>(I); ++I) {
  618   if (isa<SCEVCouldNotCompute>(BECountSC) ||
  629   if (isa<SCEVCouldNotCompute>(TripCountSC)) {
  807      if (!isa<PHINode>(II))
lib/Transforms/Utils/LoopUtils.cpp
   69         if (isa<IndirectBrInst>(PredBB->getTerminator()))
   72         if (isa<CallBrInst>(PredBB->getTerminator()))
  333         if (!isa<MDString>(NameMD))
  729   if (isa<SCEVCouldNotCompute>(InnerLoopBECountSC) ||
  866   assert(isa<VectorType>(Src->getType()) && "Type must be a vector");
lib/Transforms/Utils/LoopVersioning.cpp
  228   const Value *Ptr = isa<LoadInst>(OrigInst)
lib/Transforms/Utils/LowerSwitch.cpp
  379   for (BasicBlock::iterator I = Succ->begin(); isa<PHINode>(I); ++I) {
  476   if (isa<UnreachableInst>(Default->getFirstNonPHIOrDbg())) {
lib/Transforms/Utils/PredicateInfo.cpp
   59   assert(isa<PredicateWithEdge>(PB) &&
   68   assert(isa<PredicateWithEdge>(PB) &&
   77   assert(isa<PredicateWithEdge>(PB) &&
  217       assert(isa<PredicateAssume>(VD.PInfo) &&
  333   if ((isa<Instruction>(Op0) || isa<Argument>(Op0)) && !Op0->hasOneUse())
  333   if ((isa<Instruction>(Op0) || isa<Argument>(Op0)) && !Op0->hasOneUse())
  335   if ((isa<Instruction>(Op1) || isa<Argument>(Op1)) && !Op1->hasOneUse())
  335   if ((isa<Instruction>(Op1) || isa<Argument>(Op1)) && !Op1->hasOneUse())
  364   } else if (isa<CmpInst>(Operand)) {
  436   } else if (isa<CmpInst>(BI->getCondition())) {
  464   if ((!isa<Instruction>(Op) && !isa<Argument>(Op)) || Op->hasOneUse())
  464   if ((!isa<Instruction>(Op) && !isa<Argument>(Op)) || Op->hasOneUse())
  556     if (isa<PredicateWithEdge>(ValInfo)) {
  627       } else if (isa<PredicateWithEdge>(PossibleCopy)) {
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
  192     return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) ||
  192     return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) ||
  193            (isa<StoreInst>(I) && isa<AllocaInst>(I->getOperand(1)));
  193            (isa<StoreInst>(I) && isa<AllocaInst>(I->getOperand(1)));
  322     if (isa<LoadInst>(I) || isa<StoreInst>(I))
  322     if (isa<LoadInst>(I) || isa<StoreInst>(I))
  351   bool StoringGlobalVal = !isa<Instruction>(OnlyStore->getOperand(0));
lib/Transforms/Utils/SSAUpdater.cpp
  151   if (isa<PHINode>(BB->begin())) {
  391       if (isa<StoreInst>(I)) {
lib/Transforms/Utils/SimplifyCFG.cpp
  244       for (BasicBlock::iterator BBI = Succ->begin(); isa<PHINode>(BBI); ++BBI) {
  287       for (BasicBlock::iterator BBI = Succ->begin(); isa<PHINode>(BBI); ++BBI) {
  290             !isa<ConstantInt>(PN->getIncomingValueForBlock(SI2BB)))
  412   if (CI || !isa<Constant>(V) || !V->getType()->isPointerTy())
  420   if (isa<ConstantPointerNull>(V))
  801   assert(isa<BranchInst>(I) || isa<SelectInst>(I));
  801   assert(isa<BranchInst>(I) || isa<SelectInst>(I));
  850     if (isa<BranchInst>(TI)) {
 1255     while (isa<DbgInfoIntrinsic>(I1))
 1257     while (isa<DbgInfoIntrinsic>(I2))
 1261   if (isa<PHINode>(I1) || !I1->isIdenticalToWhenDefined(I2) ||
 1262       (isa<InvokeInst>(I1) && !isSafeToHoistInvoke(BB1, BB2, I1, I2)) ||
 1263       isa<CallBrInst>(I1))
 1289     if (isa<DbgInfoIntrinsic>(I1) || isa<DbgInfoIntrinsic>(I2)) {
 1289     if (isa<DbgInfoIntrinsic>(I1) || isa<DbgInfoIntrinsic>(I2)) {
 1290       assert (isa<DbgInfoIntrinsic>(I1) && isa<DbgInfoIntrinsic>(I2));
 1290       assert (isa<DbgInfoIntrinsic>(I1) && isa<DbgInfoIntrinsic>(I2));
 1336       while (isa<DbgInfoIntrinsic>(I1))
 1338       while (isa<DbgInfoIntrinsic>(I2))
 1348   if (isa<InvokeInst>(I1) && !isSafeToHoistInvoke(BB1, BB2, I1, I2))
 1352   if (isa<CallBrInst>(I1))
 1368       if (isa<ConstantExpr>(BB1V) && !isSafeToSpeculativelyExecute(BB1V))
 1370       if (isa<ConstantExpr>(BB2V) && !isSafeToSpeculativelyExecute(BB2V))
 1454     if (isa<PHINode>(I) || I->isEHPad() || isa<AllocaInst>(I) ||
 1454     if (isa<PHINode>(I) || I->isEHPad() || isa<AllocaInst>(I) ||
 1503   if (isa<StoreInst>(I0) && any_of(Insts, [](const Instruction *I) {
 1504         return isa<AllocaInst>(I->getOperand(1)->stripPointerCasts());
 1507   if (isa<LoadInst>(I0) && any_of(Insts, [](const Instruction *I) {
 1508         return isa<AllocaInst>(I->getOperand(0)->stripPointerCasts());
 1512         return isa<AllocaInst>(I->getOperand(1)->stripPointerCasts());
 1530       if (isa<CallBase>(I0) && OI == OE - 1) {
 1554     } while (isa<DbgInfoIntrinsic>(I) && I != &BB->front());
 1555     if (!isa<DbgInfoIntrinsic>(I))
 1664         for (Inst = Inst->getPrevNode(); Inst && isa<DbgInfoIntrinsic>(Inst);)
 1683         for (Inst = Inst->getPrevNode(); Inst && isa<DbgInfoIntrinsic>(Inst);)
 1750     if (isa<BranchInst>(T) && cast<BranchInst>(T)->isUnconditional())
 1752     else if ((isa<BranchInst>(T) || isa<SwitchInst>(T)) && !Cond)
 1752     else if ((isa<BranchInst>(T) || isa<SwitchInst>(T)) && !Cond)
 1904     if (CurI.mayHaveSideEffects() && !isa<StoreInst>(CurI))
 1960   if (isa<FCmpInst>(BrCond))
 1992     if (isa<DbgInfoIntrinsic>(I)) {
 2161       if (UI->getParent() != BB || isa<PHINode>(UI))
 2215     if (isa<IndirectBrInst>(PredBB->getTerminator()))
 2310       isa<ConstantInt>(IfCond))
 2319   for (BasicBlock::iterator I = BB->begin(); isa<PHINode>(I); ++NumPhis, ++I)
 2330   for (BasicBlock::iterator II = BB->begin(); isa<PHINode>(II);) {
 2364       (isa<BinaryOperator>(PN->getIncomingValue(0)) ||
 2365        isa<BinaryOperator>(PN->getIncomingValue(1)) ||
 2366        isa<BinaryOperator>(IfCond)) &&
 2383       if (!AggressiveInsts.count(&*I) && !isa<DbgInfoIntrinsic>(I)) {
 2396       if (!AggressiveInsts.count(&*I) && !isa<DbgInfoIntrinsic>(I)) {
 2507     if (TrueValue == FalseValue || isa<UndefValue>(FalseValue)) {
 2508     } else if (isa<UndefValue>(TrueValue)) {
 2533   if (!isa<BinaryOperator>(Inst) && !isa<CmpInst>(Inst))
 2533   if (!isa<BinaryOperator>(Inst) && !isa<CmpInst>(Inst))
 2596             if (isa<CmpInst>(Curr)) {
 2610   if (!Cond || (!isa<CmpInst>(Cond) && !isa<BinaryOperator>(Cond)) ||
 2610   if (!Cond || (!isa<CmpInst>(Cond) && !isa<BinaryOperator>(Cond)) ||
 2618   while (isa<DbgInfoIntrinsic>(CondIt))
 2633     if (isa<DbgInfoIntrinsic>(I))
 2712       if (NewCond->hasOneUse() && isa<CmpInst>(NewCond)) {
 2732       if (isa<DbgInfoIntrinsic>(BonusInst))
 2869       if (isa<DbgInfoIntrinsic>(I))
 2915   for (auto I = Succ->begin(); isa<PHINode>(I); ++I)
 2933       (!isa<Instruction>(V) || cast<Instruction>(V)->getParent() != BB))
 3011       if (!isa<BinaryOperator>(I) && !isa<GetElementPtrInst>(I))
 3011       if (!isa<BinaryOperator>(I) && !isa<GetElementPtrInst>(I))
 3321   for (BasicBlock::iterator II = CommonDest->begin(); isa<PHINode>(II);
 3596   if (isa<PHINode>(BB->begin()) || !ICI->hasOneUse())
 3606   if (!Pred || !isa<SwitchInst>(Pred->getTerminator()))
 3650       isa<PHINode>(++BasicBlock::iterator(PHIUse)))
 3793   for (BasicBlock::iterator BBI = EdgeBB->begin(); isa<PHINode>(BBI); ++BBI) {
 3808   if (isa<PHINode>(RI->getValue()))
 3810   else if (isa<LandingPadInst>(RI->getParent()->getFirstNonPHI()) &&
 3827     if (!isa<DbgInfoIntrinsic>(I))
 3854       if (!isa<DbgInfoIntrinsic>(I)) {
 3907     if (!isa<DbgInfoIntrinsic>(I))
 4096   if (isa<UndefValue>(RI->getOperand(0)))
 4154     if (isa<ReturnInst>(BI->getSuccessor(0)->getTerminator()) &&
 4155         isa<ReturnInst>(BI->getSuccessor(1)->getTerminator()) &&
 4175     if (isa<CallInst>(BBI) && !isa<DbgInfoIntrinsic>(BBI))
 4175     if (isa<CallInst>(BBI) && !isa<DbgInfoIntrinsic>(BBI))
 4191       } else if (isa<CatchPadInst>(BBI)) {
 4199       } else if (!isa<FenceInst>(BBI) && !isa<VAArgInst>(BBI) &&
 4199       } else if (!isa<FenceInst>(BBI) && !isa<VAArgInst>(BBI) &&
 4200                  !isa<LandingPadInst>(BBI)) {
 4294     } else if (isa<CleanupReturnInst>(TI)) {
 4341       !isa<UnreachableInst>(SI->getDefaultDest()->getFirstNonPHIOrDbg());
 4428   for (auto BBI = ContiguousDest->begin(); isa<PHINode>(BBI); ++BBI) {
 4435   for (auto BBI = OtherDest->begin(); isa<PHINode>(BBI); ++BBI) {
 4485       !isa<UnreachableInst>(SI->getDefaultDest()->getFirstNonPHIOrDbg());
 4611   if (!isa<ConstantFP>(C) && !isa<ConstantInt>(C) &&
 4611   if (!isa<ConstantFP>(C) && !isa<ConstantInt>(C) &&
 4612       !isa<ConstantPointerNull>(C) && !isa<GlobalValue>(C) &&
 4612       !isa<ConstantPointerNull>(C) && !isa<GlobalValue>(C) &&
 4613       !isa<UndefValue>(C) && !isa<ConstantExpr>(C))
 4613       !isa<UndefValue>(C) && !isa<ConstantExpr>(C))
 4814        !isa<UnreachableInst>(DefaultDest->getFirstNonPHIOrDbg())))
 5024   if (isa<IntegerType>(ValueType)) {
 5066       if (!isa<UndefValue>(TableContents[I - 1])) {
 5257     if (!CaseConst || CaseConst == DefaultConst || isa<UndefValue>(CaseConst))
 5416       !isa<UnreachableInst>(SI->getDefaultDest()->getFirstNonPHIOrDbg());
 5492     if (PHI->hasOneUse() && isa<ReturnInst>(*PHI->user_begin()) &&
 5749   if (isa<PHINode>(*Succ->begin()))
 5759     for (++I; isa<DbgInfoIntrinsic>(I); ++I)
 5781       if (isa<DbgInfoIntrinsic>(Inst))
 5823     if (ICI->isEquality() && isa<ConstantInt>(ICI->getOperand(1))) {
 5824       for (++I; isa<DbgInfoIntrinsic>(I); ++I)
 5834     for (++I; isa<DbgInfoIntrinsic>(I); ++I)
 5972   if (C->isNullValue() || isa<UndefValue>(C)) {
lib/Transforms/Utils/SimplifyIndVar.cpp
  121         !isa<ConstantInt>(UseInst->getOperand(1)))
  126     if (!isa<BinaryOperator>(IVOperand)
  127         || !isa<ConstantInt>(IVOperand->getOperand(1)))
  541     if (isa<Instruction>(U) &&
  709   if (isa<PHINode>(UseInst))
  907       if ((isa<OverflowingBinaryOperator>(BO) &&
  909           (isa<ShlOperator>(BO) && strengthenRightShift(BO, IVOperand))) {
  951   for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I) {
lib/Transforms/Utils/SimplifyLibCalls.cpp
  701           (GEP->isInBounds() && isa<GlobalVariable>(GEP->getOperand(0)) &&
  782   if (isa<ConstantPointerNull>(EndPtr)) {
 1112   if (isa<IntrinsicInst>(CI))
 1134   if (isa<IntrinsicInst>(CI))
 1191   if (isa<IntrinsicInst>(CI))
 1205   if (isa<ConstantPointerNull>(CI->getArgOperand(0)))
 1352   if (!isa<FPMathOperator>(Call))
 1412   if (isa<SIToFPInst>(I2F) || isa<UIToFPInst>(I2F)) {
 1412   if (isa<SIToFPInst>(I2F) || isa<UIToFPInst>(I2F)) {
 1418         (BitWidth == 32 && isa<SIToFPInst>(I2F)))
 1419       return isa<SIToFPInst>(I2F) ? B.CreateSExt(Op, B.getInt32Ty())
 1508       (isa<SIToFPInst>(Expo) || isa<UIToFPInst>(Expo)) &&
 1508       (isa<SIToFPInst>(Expo) || isa<UIToFPInst>(Expo)) &&
 1752   if (AllowApprox && (isa<SIToFPInst>(Expo) || isa<UIToFPInst>(Expo))) {
 1752   if (AllowApprox && (isa<SIToFPInst>(Expo) || isa<UIToFPInst>(Expo))) {
 1773   if ((isa<SIToFPInst>(Op) || isa<UIToFPInst>(Op)) &&
 1773   if ((isa<SIToFPInst>(Op) || isa<UIToFPInst>(Op)) &&
 2269   if (!isa<ConstantPointerNull>(CI->getArgOperand(1)))
 3008   else if (isa<FPMathOperator>(CI) && CI->isFast())
lib/Transforms/Utils/SplitModule.cpp
   63   assert((!isa<Constant>(U) || isa<GlobalValue>(U)) && "Bad user");
   63   assert((!isa<Constant>(U) || isa<GlobalValue>(U)) && "Bad user");
   68   } else if (isa<GlobalIndirectSymbol>(U) || isa<Function>(U) ||
   68   } else if (isa<GlobalIndirectSymbol>(U) || isa<Function>(U) ||
   69              isa<GlobalVariable>(U)) {
   85       if (isa<Constant>(UU) && !isa<GlobalValue>(UU)) {
   85       if (isa<Constant>(UU) && !isa<GlobalValue>(UU)) {
lib/Transforms/Utils/SymbolRewriter.cpp
  274     if (isa<yaml::NullNode>(Document.getRoot()))
lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
   52     if (isa<ReturnInst>(I.getTerminator()))
   54     else if (isa<UnreachableInst>(I.getTerminator()))
lib/Transforms/Utils/VNCoercion.cpp
  532     if (!isa<Constant>(MSI->getValue()))
lib/Transforms/Utils/ValueMapper.cpp
  358   if (isa<GlobalValue>(V)) {
  475   if (isa<ConstantArray>(C))
  477   if (isa<ConstantStruct>(C))
  479   if (isa<ConstantVector>(C))
  482   if (isa<UndefValue>(C))
  484   if (isa<ConstantAggregateZero>(C))
  486   assert(isa<ConstantPointerNull>(C));
  527       assert((isa<MDString>(Op) || M.getVM().getMappedMD(Op)) &&
  573   if (isa<MDString>(Op))
  782   if (isa<MDString>(MD))
  798   assert(isa<MDNode>(MD) && "Expected a metadata node");
  805   assert(!isa<LocalAsMetadata>(MD) && "Unexpected local metadata");
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
  436   if (!isa<SExtInst>(OpA) && !isa<ZExtInst>(OpA))
  436   if (!isa<SExtInst>(OpA) && !isa<ZExtInst>(OpA))
  439   bool Signed = isa<SExtInst>(OpA);
  452       isa<ConstantInt>(OpB->getOperand(1)) &&
  606   bool IsLoadChain = isa<LoadInst>(Chain[0]);
  610         assert(isa<LoadInst>(I) &&
  613         assert(isa<StoreInst>(I) &&
  619     if (isa<LoadInst>(I) || isa<StoreInst>(I)) {
  619     if (isa<LoadInst>(I) || isa<StoreInst>(I)) {
  624     } else if (isa<IntrinsicInst>(&I) &&
  675       if (isa<StoreInst>(MemInstr) && ChainLoad &&
  680       if (MemLoad && isa<StoreInst>(ChainInstr) &&
  787       if (isa<VectorType>(Ty) && !llvm::all_of(LI->users(), [](const User *U) {
  789             return EEI && isa<ConstantInt>(EEI->getOperand(1));
  833       if (isa<VectorType>(Ty) && !llvm::all_of(SI->users(), [](const User *U) {
  835             return EEI && isa<ConstantInt>(EEI->getOperand(1));
  927     if (isa<LoadInst>(*Operands.begin()))
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
  518       isa<Constant>(ID.getStartValue()) &&
  671           !isa<DbgInfoIntrinsic>(CI) &&
  721           isa<ExtractElementInst>(I)) {
  967     if (!isa<BranchInst>(BB->getTerminator())) {
lib/Transforms/Vectorize/LoopVectorize.cpp
  308   assert((isa<LoadInst>(I) || isa<StoreInst>(I)) &&
  308   assert((isa<LoadInst>(I) || isa<StoreInst>(I)) &&
  341   if (isa<FPMathOperator>(V))
  347   if (isa<FPMathOperator>(V))
  815         !isa<DbgInfoIntrinsic>(Inst)) {
  904   if (LVer && (isa<LoadInst>(Orig) || isa<StoreInst>(Orig)))
  904   if (LVer && (isa<LoadInst>(Orig) || isa<StoreInst>(Orig)))
 1221     bool LI = isa<LoadInst>(V);
 1222     bool SI = isa<StoreInst>(V);
 1244     if (isa<LoadInst>(I) || isa<StoreInst>(I))
 1244     if (isa<LoadInst>(I) || isa<StoreInst>(I))
 1676   assert((isa<PHINode>(EntryVal) || isa<TruncInst>(EntryVal)) &&
 1676   assert((isa<PHINode>(EntryVal) || isa<TruncInst>(EntryVal)) &&
 1683   if (isa<TruncInst>(EntryVal)) {
 1716   Value *SplatVF = isa<Constant>(Mul)
 1730     if (isa<TruncInst>(EntryVal))
 1769   assert((isa<PHINode>(EntryVal) || isa<TruncInst>(EntryVal)) &&
 1769   assert((isa<PHINode>(EntryVal) || isa<TruncInst>(EntryVal)) &&
 1778   if (isa<TruncInst>(EntryVal))
 1937   if (isa<Instruction>(MulOp))
 1942   if (isa<Instruction>(BOp))
 2236   if (isa<LoadInst>(Instr)) {
 2844     assert(isa<SCEVConstant>(Step) &&
 2866     if (isa<Instruction>(MulExp))
 2872     if (isa<Instruction>(BOp))
 3042   assert(isa<BranchInst>(OrigLoop->getLoopLatch()->getTerminator()) &&
 3124       assert(isa<PHINode>(UI) && "Expected LCSSA form");
 3137       assert(isa<PHINode>(UI) && "Expected LCSSA form");
 3170     return isa<InsertElementInst>(I) || isa<ExtractElementInst>(I) ||
 3170     return isa<InsertElementInst>(I) || isa<ExtractElementInst>(I) ||
 3171            isa<ShuffleVectorInst>(I) || isa<GetElementPtrInst>(I);
 3171            isa<ShuffleVectorInst>(I) || isa<GetElementPtrInst>(I);
 3302           !isa<Instruction>(I))
 3366       } else if (isa<LoadInst>(I) || isa<PHINode>(I)) {
 3366       } else if (isa<LoadInst>(I) || isa<PHINode>(I)) {
 3560       isa<PHINode>(PreviousLastPart))
 3731         if (isa<SelectInst>(U)) {
 3735           assert(isa<PHINode>(U) && "Reduction exit must feed Phi's or select");
 3849       if (isa<Instruction>(IncomingValue)) 
 3904       if (!I || isa<PHINode>(I) || I->getParent() == PredBB ||
 4259     if (isa<DbgInfoIntrinsic>(I))
 4322       if (isa<FPMathOperator>(V))
 4392     return ((isa<BitCastInst>(V) && V->getType()->isPointerTy()) ||
 4393             isa<GetElementPtrInst>(V)) &&
 4417           return isa<LoadInst>(U) || isa<StoreInst>(U);
 4417           return isa<LoadInst>(U) || isa<StoreInst>(U);
 4493                  ((isa<LoadInst>(J) || isa<StoreInst>(J)) &&
 4493                  ((isa<LoadInst>(J) || isa<StoreInst>(J)) &&
 4566     return isa<LoadInst>(I) ?
 4612   return isa<LoadInst>(I) ? TTI.isLegalMaskedLoad(Ty, Alignment)
 5085       if (!isa<LoadInst>(I) && !isa<StoreInst>(I) && !isa<PHINode>(I))
 5085       if (!isa<LoadInst>(I) && !isa<StoreInst>(I) && !isa<PHINode>(I))
 5085       if (!isa<LoadInst>(I) && !isa<StoreInst>(I) && !isa<PHINode>(I))
 5505   return isa<LoadInst>(I) ||
 5506          (isa<StoreInst>(I) &&
 5800   if (isa<LoadInst>(I)) {
 5844   if (isa<LoadInst>(I)) {
 5917       (!isa<LoadInst>(I) || !TTI.supportsEfficientVectorElementLoadStore()))
 5921   if (isa<LoadInst>(I) && !TTI.prefersVectorizedAddressing())
 5925   if (isa<StoreInst>(I) && TTI.supportsEfficientVectorElementLoadStore())
 5953       if (isa<StoreInst>(&I) && isScalarWithPredication(&I))
 6059         if ((InstOp->getParent() == I->getParent()) && !isa<PHINode>(InstOp) &&
 6065     if (isa<LoadInst>(I)) {
 6747   if (!isa<LoadInst>(I) && !isa<StoreInst>(I))
 6747   if (!isa<LoadInst>(I) && !isa<StoreInst>(I))
 6801   if (isa<TruncInst>(I) && LoopVectorizationPlanner::getDecisionAndClampRange(
 6899     if (!isa<PHINode>(I) && (CM.isScalarAfterVectorization(I, VF) ||
 6914     if (isa<LoadInst>(I) || isa<StoreInst>(I)) {
 6914     if (isa<LoadInst>(I) || isa<StoreInst>(I)) {
 7133       if (isa<BranchInst>(Instr) ||
 7391   assert(isa<UnreachableInst>(CurrentTerminator) &&
lib/Transforms/Vectorize/SLPVectorizer.cpp
  203     if (!isa<Constant>(i) || isa<ConstantExpr>(i) || isa<GlobalValue>(i))
  203     if (!isa<Constant>(i) || isa<ConstantExpr>(i) || isa<GlobalValue>(i))
  203     if (!isa<Constant>(i) || isa<ConstantExpr>(i) || isa<GlobalValue>(i))
  286     if (isa<UndefValue>(Vec))
  366   if (llvm::any_of(VL, [](Value *V) { return !isa<Instruction>(V); }))
  369   bool IsCastOp = isa<CastInst>(VL[BaseIndex]);
  370   bool IsBinOp = isa<BinaryOperator>(VL[BaseIndex]);
  379     if (IsBinOp && isa<BinaryOperator>(VL[Cnt])) {
  387     } else if (IsCastOp && isa<CastInst>(VL[Cnt])) {
  797           if (isa<LoadInst>(Op)) {
  810           if ((isa<Instruction>(Op) && isa<Instruction>(OpLastLane) &&
  810           if ((isa<Instruction>(Op) && isa<Instruction>(OpLastLane) &&
  813               (isa<UndefValue>(OpLastLane) && isa<Instruction>(Op)) ||
  813               (isa<UndefValue>(OpLastLane) && isa<Instruction>(Op)) ||
  814               isa<UndefValue>(Op)) {
  816             unsigned Score = (isa<UndefValue>(Op)) ? GoodScore : BestScore;
  824           if (isa<Constant>(Op)) {
  825             unsigned Score = (isa<UndefValue>(Op)) ? GoodScore : BestScore;
  890       assert(isa<Instruction>(VL[0]) && "Expected instruction");
  897           assert(isa<Instruction>(VL[Lane]) && "Expected instruction");
 1011         if (isa<LoadInst>(OpLane0))
 1013         else if (isa<Instruction>(OpLane0)) {
 1020         else if (isa<Constant>(OpLane0))
 1022         else if (isa<Argument>(OpLane0))
 2591       if (isa<BinaryOperator>(VL0) && VL0->isCommutative()) {
 2642         if (!isa<ConstantInt>(Op)) {
 2778       if (isa<BinaryOperator>(VL0)) {
 3014               if ((isa<SExtInst>(Ext) || isa<ZExtInst>(Ext)) &&
 3014               if ((isa<SExtInst>(Ext) || isa<ZExtInst>(Ext)) &&
 3016                          [](User *U) { return isa<GetElementPtrInst>(U); })) {
 3118         unsigned OpIdx = isa<BinaryOperator>(I) ? 1 : 0;
 3377       if (isa<Instruction>(&*J) && getTreeEntry(&*J))
 3401       if ((isa<CallInst>(&*PrevInstIt) &&
 3402            !isa<DbgInfoIntrinsic>(&*PrevInstIt)) &&
 3688       if (Res.second || isa<Constant>(V))
 4325             if (isa<CatchSwitchInst>(IncomingTerminator)) {
 4452       if (!isa<InsertElementInst>(In) && !isa<ExtractElementInst>(In))
 4452       if (!isa<InsertElementInst>(In) && !isa<ExtractElementInst>(In))
 4481   if (isa<PHINode>(S.OpValue))
 4570   if (isa<PHINode>(OpValue))
 4610   assert(!isa<PHINode>(I) && "phi nodes don't need to be scheduled");
 4698         (!isa<IntrinsicInst>(I) ||
 4752             if (isa<Instruction>(U)) {
 4949     if (isa<VectorType>(Ty))
 4954     else if (isa<LoadInst>(I))
 4960     else if (isa<PHINode>(I) || isa<CastInst>(I) || isa<GetElementPtrInst>(I) ||
 4960     else if (isa<PHINode>(I) || isa<CastInst>(I) || isa<GetElementPtrInst>(I) ||
 4960     else if (isa<PHINode>(I) || isa<CastInst>(I) || isa<GetElementPtrInst>(I) ||
 4961              isa<CmpInst>(I) || isa<SelectInst>(I) || isa<BinaryOperator>(I)) {
 4961              isa<CmpInst>(I) || isa<SelectInst>(I) || isa<BinaryOperator>(I)) {
 4961              isa<CmpInst>(I) || isa<SelectInst>(I) || isa<BinaryOperator>(I)) {
 4989   if (isa<Constant>(V)) {
 5129         return isa<GetElementPtrInst>(R->user_back());
 5484       if (GEP->getNumIndices() > 1 || isa<Constant>(Idx))
 5639   if (!isa<BinaryOperator>(I) && !isa<CmpInst>(I))
 5639   if (!isa<BinaryOperator>(I) && !isa<CmpInst>(I))
 6186           if (!isa<ExtractElementInst>(RHS) ||
 6190           if (!isa<ExtractElementInst>(LHS) ||
 6194           if (!isa<ExtractElementInst>(LHS) || !isa<ExtractElementInst>(RHS))
 6194           if (!isa<ExtractElementInst>(LHS) || !isa<ExtractElementInst>(RHS))
 6639     if (isa<UndefValue>(V))
 6657     if (isa<UndefValue>(V))
 6684     return isa<Instruction>(R) &&
 6743   if (Root->getParent() != BB || isa<PHINode>(Root))
 6801             if (!isa<PHINode>(I) && !R.isDeleted(I) && I->getParent() == BB)
 6816   if (!isa<BinaryOperator>(I))
 6848                     [](Value *V) { return isa<ExtractElementInst>(V); }) &&
 6966     if (isa<DbgInfoIntrinsic>(it))
 6989     if (it->use_empty() && (it->getType()->isVoidTy() || isa<CallInst>(it) ||
 6990                             isa<InvokeInst>(it))) {
 6993       if (ShouldStartVectorizeHorAtStore || !isa<StoreInst>(it)) {
 7013     if (isa<InsertElementInst>(it) || isa<CmpInst>(it) ||
 7013     if (isa<InsertElementInst>(it) || isa<CmpInst>(it) ||
 7014         isa<InsertValueInst>(it))
 7069           if (isa<SCEVConstant>(SE->getMinusSCEV(SCEVI, SCEVJ))) {
 7091         assert(GEP->getNumIndices() == 1 || !isa<Constant>(GEPIdx));
lib/Transforms/Vectorize/VPlan.cpp
  144     if (isa<UnreachableInst>(PredBBTerminator)) {
  219     assert(isa<UnreachableInst>(CurrentTerminator) &&
  435           isa<UnreachableInst>(LastBB->getTerminator())) &&
  437   assert((!EnableVPlanNativePath || isa<BranchInst>(LastBB->getTerminator())) &&
  491   return (isa<VPRegionBlock>(Block) ? "cluster_N" : "N") +
  735       assert(isa<VPInstruction>(&VPI) && "Can only handle VPInstructions");
lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp
   97     assert(isa<VPInstruction>(VPVal) && "Expected VPInstruction for phi node.");
  289       assert(isa<BranchInst>(TI) && "Unsupported terminator!");
lib/Transforms/Vectorize/VPlanHCFGTransforms.cpp
   58       if (isa<LoadInst>(Inst) || isa<StoreInst>(Inst))
   58       if (isa<LoadInst>(Inst) || isa<StoreInst>(Inst))
lib/Transforms/Vectorize/VPlanPredicator.cpp
  169       assert(isa<VPBasicBlock>(PredBlock) && "Only BBs have multiple exits");
  196     assert(!isa<VPRegionBlock>(Block) && "Nested region not expected");
  213     assert(!isa<VPRegionBlock>(CurrBlock) && "Nested region not expected");
lib/Transforms/Vectorize/VPlanSLP.cpp
   79         return Op && isa<VPInstruction>(Op) &&
  225   if (!isa<VPInstruction>(V1) || !isa<VPInstruction>(V2))
  225   if (!isa<VPInstruction>(V1) || !isa<VPInstruction>(V2))
lib/XRay/FDRRecordProducer.cpp
  132     assert(isa<BufferExtents>(R.get()));
tools/bugpoint-passes/TestPasses.cpp
   37         if (isa<CallInst>(*I))
tools/bugpoint/CrashDebugger.cpp
  215   if (isa<ConstantAggregateZero>(UsedVar->getInitializer())) {
tools/bugpoint/ExtractFunction.cpp
   75       if (C && !isa<GlobalValue>(C) && !Done.count(C))
tools/clang/examples/clang-interpreter/main.cpp
  159   if (Jobs.size() != 1 || !isa<driver::Command>(*Jobs.begin())) {
tools/clang/include/clang/AST/ASTLambda.h
   34   if (!DC || !isa<CXXMethodDecl>(DC)) return false;
tools/clang/include/clang/AST/ASTNodeTraverser.h
   93       if (!isa<FunctionDecl>(*D) && !isa<ObjCMethodDecl>(*D)) {
   93       if (!isa<FunctionDecl>(*D) && !isa<ObjCMethodDecl>(*D)) {
  111       if (isa<DeclStmt>(S) || isa<GenericSelectionExpr>(S)) {
  111       if (isa<DeclStmt>(S) || isa<GenericSelectionExpr>(S)) {
  439         assert(isa<CXXRecordDecl>(RedeclWithBadType) &&
tools/clang/include/clang/AST/AttrIterator.h
   47     while (!isa<SpecificAttr>(*Current))
   52     while (Current != I && !isa<SpecificAttr>(*Current))
tools/clang/include/clang/AST/CanonicalType.h
  642   assert((Other.isNull() || isa<T>(Other.getTypePtr())) &&
  658   if (isa<U>(Stored.getTypePtr()))
  670   assert(!Stored.isNull() && isa<U>(Stored.getTypePtr()));
tools/clang/include/clang/AST/Decl.h
  360     if (isa<EnumDecl>(DC))
 1326     return isa<ParmVarDecl>(this) ? false :
 1337     assert(!isa<ParmVarDecl>(this) && "Cannot demote ParmVarDecls!");
 1344     return isa<ParmVarDecl>(this) ? false : NonParmVarDeclBits.ExceptionVar;
 1347     assert(!isa<ParmVarDecl>(this));
 1362     return isa<ParmVarDecl>(this) ? false : NonParmVarDeclBits.NRVOVariable;
 1365     assert(!isa<ParmVarDecl>(this));
 1372     return isa<ParmVarDecl>(this) ? false : NonParmVarDeclBits.CXXForRangeDecl;
 1375     assert(!isa<ParmVarDecl>(this));
 1401     return isa<ParmVarDecl>(this) ? false : NonParmVarDeclBits.IsInline;
 1404     return isa<ParmVarDecl>(this) ? false
 1408     assert(!isa<ParmVarDecl>(this));
 1413     assert(!isa<ParmVarDecl>(this));
 1419     return isa<ParmVarDecl>(this) ? false : NonParmVarDeclBits.IsConstexpr;
 1422     assert(!isa<ParmVarDecl>(this));
 1428     return isa<ParmVarDecl>(this) ? false : NonParmVarDeclBits.IsInitCapture;
 1431     assert(!isa<ParmVarDecl>(this));
 1442     return isa<ParmVarDecl>(this)
 1447     assert(!isa<ParmVarDecl>(this));
 4422   assert(!isa<NamedDecl>(static_cast<decl_type*>(this)) ||
tools/clang/include/clang/AST/DeclBase.h
  517     Vec.erase(std::remove_if(Vec.begin(), Vec.end(), isa<T, Attr*>), Vec.end());
 2058       while (*Current && !isa<SpecificDecl>(*Current))
 2135              (!isa<SpecificDecl>(*Current) ||
tools/clang/include/clang/AST/DeclTemplate.h
 1753            isa<CXXRecordDecl>(getLexicalDeclContext());
 2597            isa<CXXRecordDecl>(getLexicalDeclContext());
 3089   return TD && (isa<ClassTemplateDecl>(TD) ||
 3090                 isa<ClassTemplatePartialSpecializationDecl>(TD) ||
 3091                 isa<TypeAliasTemplateDecl>(TD) ||
 3092                 isa<TemplateTemplateParmDecl>(TD))
tools/clang/include/clang/AST/Expr.h
  406       return (isa<LValueReferenceType>(RT)
tools/clang/include/clang/AST/ExprCXX.h
 2910     if (isa<UnaryOperator>(E)) {
 4466     if (isa<FieldDecl>(ExtendingDecl))
 4470     if (isa<BindingDecl>(ExtendingDecl))
tools/clang/include/clang/AST/GlobalDecl.h
   45     assert(!isa<CXXConstructorDecl>(D) && "Use other ctor with ctor decls!");
   46     assert(!isa<CXXDestructorDecl>(D) && "Use other ctor with dtor decls!");
   80     assert(isa<CXXConstructorDecl>(getDecl()) && "Decl is not a ctor!");
   85     assert(isa<CXXDestructorDecl>(getDecl()) && "Decl is not a dtor!");
   90     assert(isa<VarDecl>(getDecl()) &&
   97     assert(isa<FunctionDecl>(getDecl()) &&
   98            !isa<CXXConstructorDecl>(getDecl()) &&
   99            !isa<CXXDestructorDecl>(getDecl()) &&
  124     assert(isa<CXXConstructorDecl>(getDecl()));
  131     assert(isa<CXXDestructorDecl>(getDecl()));
  138     assert(isa<FunctionDecl>(getDecl()) &&
  139            !isa<CXXConstructorDecl>(getDecl()) &&
  140            !isa<CXXDestructorDecl>(getDecl()) &&
tools/clang/include/clang/AST/JSONNodeDumper.h
  360         assert(isa<CXXRecordDecl>(RedeclWithBadType) &&
tools/clang/include/clang/AST/LexicallyOrderedRecursiveASTVisitor.h
   89       if (!isa<ObjCImplementationDecl>(Child) &&
   90           !isa<ObjCCategoryImplDecl>(Child)) {
tools/clang/include/clang/AST/RecursiveASTVisitor.h
 1375   if (isa<BlockDecl>(Child) || isa<CapturedDecl>(Child))
 1375   if (isa<BlockDecl>(Child) || isa<CapturedDecl>(Child))
 2095   if (!isa<ParmVarDecl>(D) &&
tools/clang/include/clang/AST/Stmt.h
 1414       if (!isa<NullStmt>(B))
tools/clang/include/clang/AST/StmtOpenMP.h
  162       while (this->I != End && !isa<SpecificClause>(*this->I))
 1094       assert(isa<CXXForRangeStmt>(Body) &&
 1103         assert(isa<CXXForRangeStmt>(Body) &&
tools/clang/include/clang/AST/Type.h
  963     if (isa<ParenType>(*this))
 4202     assert(!isa<TypedefType>(can) && "Invalid canonical type");
 4229     assert(isa<AttributedType>(UnderlyingTy) &&
 4304     assert(!isa<TypedefType>(can) && "Invalid canonical type");
 4947     return isa<InjectedClassNameType>(getCanonicalTypeInternal());
 5080     assert(isa<TemplateSpecializationType>(TST));
 6204   return !isa<FunctionType>(T) && !isa<ArrayType>(T);
 6204   return !isa<FunctionType>(T) && !isa<ArrayType>(T);
 6388   return isa<FunctionType>(CanonicalType);
 6392   return isa<PointerType>(CanonicalType);
 6400   return isa<BlockPointerType>(CanonicalType);
 6404   return isa<ReferenceType>(CanonicalType);
 6408   return isa<LValueReferenceType>(CanonicalType);
 6412   return isa<RValueReferenceType>(CanonicalType);
 6430   return isa<MemberPointerType>(CanonicalType);
 6448   return isa<ArrayType>(CanonicalType);
 6452   return isa<ConstantArrayType>(CanonicalType);
 6456   return isa<IncompleteArrayType>(CanonicalType);
 6460   return isa<VariableArrayType>(CanonicalType);
 6464   return isa<DependentSizedArrayType>(CanonicalType);
 6468   return isa<BuiltinType>(CanonicalType);
 6472   return isa<RecordType>(CanonicalType);
 6476   return isa<EnumType>(CanonicalType);
 6480   return isa<ComplexType>(CanonicalType);
 6484   return isa<VectorType>(CanonicalType);
 6488   return isa<ExtVectorType>(CanonicalType);
 6492   return isa<DependentAddressSpaceType>(CanonicalType);
 6496   return isa<ObjCObjectPointerType>(CanonicalType);
 6500   return isa<ObjCObjectType>(CanonicalType);
 6504   return isa<ObjCInterfaceType>(CanonicalType) ||
 6505     isa<ObjCObjectType>(CanonicalType);
 6509   return isa<AtomicType>(CanonicalType);
 6547   return isa<DecltypeType>(this);
 6584   return isa<PipeType>(CanonicalType);
 6614   return isa<TemplateTypeParmType>(CanonicalType);
 6747   return isa<PointerType>(CanonicalType) ||
 6748          isa<BlockPointerType>(CanonicalType) ||
 6749          isa<MemberPointerType>(CanonicalType) ||
 6750          isa<ComplexType>(CanonicalType) ||
 6751          isa<ObjCObjectPointerType>(CanonicalType);
 6867   if (!isa<T>(CanonicalType))
 6883   if (!isa<T>(CanonicalType))
 6915   if (!isa<ArrayType>(CanonicalType))
 6928   assert(isa<T>(CanonicalType));
 6933   assert(isa<ArrayType>(CanonicalType));
 6944   assert(isa<PointerType>(Adjusted));
tools/clang/include/clang/AST/TypeLoc.h
 1438     if (isa<FunctionNoProtoType>(getTypePtr()))
tools/clang/include/clang/AST/VTableBuilder.h
   71     assert(!isa<CXXDestructorDecl>(MD) &&
   89     assert(!isa<CXXDestructorDecl>(MD) &&
  559     if (isa<CXXDestructorDecl>(GD.getDecl()) &&
tools/clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h
   71   if (isa<til::Wildcard>(E1))
   72     return isa<til::Wildcard>(E2);
   73   if (isa<til::Wildcard>(E2))
   74     return isa<til::Wildcard>(E1);
  323   bool isInvalid() const { return sexpr() && isa<til::Undefined>(sexpr()); }
  325   bool isUniversal() const { return sexpr() && isa<til::Wildcard>(sexpr()); }
tools/clang/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h
  716       if (isa<Wildcard>(E->record())) {
tools/clang/include/clang/Analysis/AnyCall.h
   70     if (D && ((K == Function && !isa<FunctionDecl>(D)) ||
   71               (K == Block && !isa<BlockDecl>(D))))
   94     if (isa<CXXConstructorDecl>(D)) {
   96     } else if (isa <CXXDestructorDecl>(D)) {
tools/clang/include/clang/Analysis/CFG.h
  189     assert(isa<CallExpr>(E) || isa<ObjCMessageExpr>(E));
  189     assert(isa<CallExpr>(E) || isa<ObjCMessageExpr>(E));
  200     assert(C && (isa<TemporaryObjectConstructionContext>(C) ||
  202                  isa<ReturnedValueConstructionContext>(C) ||
  203                  isa<VariableConstructionContext>(C) ||
  204                  isa<ConstructorInitializerConstructionContext>(C) ||
  205                  isa<ArgumentConstructionContext>(C)));
tools/clang/include/clang/Analysis/ConstructionContext.h
  119     assert(isa<CallExpr>(E) || isa<CXXConstructExpr>(E) ||
  119     assert(isa<CallExpr>(E) || isa<CXXConstructExpr>(E) ||
  120            isa<ObjCMessageExpr>(E));
  643     assert(isa<CallExpr>(CE) || isa<CXXConstructExpr>(CE) ||
  643     assert(isa<CallExpr>(CE) || isa<CXXConstructExpr>(CE) ||
  644            isa<ObjCMessageExpr>(CE));
tools/clang/include/clang/Lex/Preprocessor.h
 1041     while (MD && isa<VisibilityMacroDirective>(MD))
tools/clang/include/clang/Sema/Initialization.h
  677     if (isa<InitListExpr>(Init))
tools/clang/include/clang/Sema/Lookup.h
  531     return getResultKind() == Found && isa<TagDecl>(getFoundDecl());
  714       if (isa<UnresolvedUsingValueDecl>((*I)->getUnderlyingDecl()))
tools/clang/include/clang/Sema/Overload.h
 1116     if (isa<UsingDecl>(ND))
tools/clang/include/clang/Sema/ScopeInfo.h
  923     assert(isa<DeclRefExpr>(VarExpr) || isa<MemberExpr>(VarExpr) ||
  923     assert(isa<DeclRefExpr>(VarExpr) || isa<MemberExpr>(VarExpr) ||
  924            isa<FunctionParmPackExpr>(VarExpr));
  976     assert(isa<DeclRefExpr>(CapturingVarExpr) ||
  977            isa<MemberExpr>(CapturingVarExpr) ||
  978            isa<FunctionParmPackExpr>(CapturingVarExpr));
  982     assert(isa<DeclRefExpr>(CapturingVarExpr) ||
  983            isa<MemberExpr>(CapturingVarExpr) ||
  984            isa<FunctionParmPackExpr>(CapturingVarExpr));
tools/clang/include/clang/Sema/Sema.h
  836         assert(isa<ObjCMethodDecl>(DC));
 2296     return D && isa<ObjCMethodDecl>(D);
tools/clang/include/clang/StaticAnalyzer/Checkers/SValExplainer.h
   38       if (isa<CXXThisRegion>(S->getRegion()))
  150     if (isa<HeapSpaceRegion>(R->getMemorySpace()))
  184     if (isa<ParmVarDecl>(VD))
tools/clang/include/clang/StaticAnalyzer/Core/Checker.h
   37     return isa<DECL>(D);
   89     return isa<STMT>(S);
  108     return isa<STMT>(S);
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
 1244   assert(isa<T>(*this) && "Cloning to unrelated type");
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerHelpers.h
   33   if (isa<T>(S))
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
  588     assert(isa<ObjCMethodDecl>(fd) || isa<FunctionDecl>(fd));
  588     assert(isa<ObjCMethodDecl>(fd) || isa<FunctionDecl>(fd));
  601     assert(isa<ObjCMethodDecl>(FD));
  688     assert(isa<GlobalImmutableSpaceRegion>(sreg) ||
  689            isa<StackLocalsSpaceRegion>(sreg) ||
  690            isa<UnknownSpaceRegion>(sreg));
  773     assert(s && isa<SymbolData>(s));
  777     assert(isa<UnknownSpaceRegion>(sreg) || isa<HeapSpaceRegion>(sreg));
  777     assert(isa<UnknownSpaceRegion>(sreg) || isa<HeapSpaceRegion>(sreg));
  881     assert(isa<GlobalInternalSpaceRegion>(sReg) ||
  882            isa<StackLocalsSpaceRegion>(sReg));
  938     assert(isa<GlobalsSpaceRegion>(sReg) || isa<StackSpaceRegion>(sReg) ||
  938     assert(isa<GlobalsSpaceRegion>(sReg) || isa<StackSpaceRegion>(sReg) ||
  939            isa<BlockDataRegion>(sReg) || isa<UnknownSpaceRegion>(sReg));
  939            isa<BlockDataRegion>(sReg) || isa<UnknownSpaceRegion>(sReg));
 1130     assert(isa<StackLocalsSpaceRegion>(sReg) ||
 1131            isa<GlobalInternalSpaceRegion>(sReg));
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConstraintManager.h
  268     if (isa<SymbolData>(Sym))
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
  362     return !isa<SymbolData>(getSymbol());
tools/clang/include/clang/Tooling/Refactoring/RecursiveSymbolVisitor.h
   44     return isa<CXXConversionDecl>(D) ? true : visit(D, D->getLocation());
tools/clang/lib/ARCMigrate/ObjCMT.cpp
  229     return !(isa<ArraySubscriptExpr>(Expr) || isa<CallExpr>(Expr) ||
  229     return !(isa<ArraySubscriptExpr>(Expr) || isa<CallExpr>(Expr) ||
  230              isa<DeclRefExpr>(Expr) || isa<CXXNamedCastExpr>(Expr) ||
  230              isa<DeclRefExpr>(Expr) || isa<CXXNamedCastExpr>(Expr) ||
  231              isa<CXXConstructExpr>(Expr) || isa<CXXThisExpr>(Expr) ||
  231              isa<CXXConstructExpr>(Expr) || isa<CXXThisExpr>(Expr) ||
  232              isa<CXXTypeidExpr>(Expr) ||
  233              isa<CXXUnresolvedConstructExpr>(Expr) ||
  234              isa<ObjCMessageExpr>(Expr) || isa<ObjCPropertyRefExpr>(Expr) ||
  234              isa<ObjCMessageExpr>(Expr) || isa<ObjCPropertyRefExpr>(Expr) ||
  235              isa<ObjCProtocolExpr>(Expr) || isa<MemberExpr>(Expr) ||
  235              isa<ObjCProtocolExpr>(Expr) || isa<MemberExpr>(Expr) ||
  236              isa<ObjCIvarRefExpr>(Expr) || isa<ParenExpr>(FullExpr) ||
  236              isa<ObjCIvarRefExpr>(Expr) || isa<ParenExpr>(FullExpr) ||
  237              isa<ParenListExpr>(Expr) || isa<SizeOfPackExpr>(Expr));
  237              isa<ParenListExpr>(Expr) || isa<SizeOfPackExpr>(Expr));
  388   if (isa<ObjCMethodDecl>(D))
  517   if (!isa<TypedefType>(RT)) {
 1416   if (isa<FunctionDecl>(LastFD)) {
 1571   if (!isa<ObjCInterfaceDecl>(CDecl) || CDecl->isDeprecated())
tools/clang/lib/ARCMigrate/TransARCAssign.cpp
   49     if (declRef && isa<VarDecl>(declRef->getDecl())) {
tools/clang/lib/ARCMigrate/TransAutoreleasePool.cpp
  308                isa<DeclRefExpr>(retS->getRetValue()->IgnoreParenCasts())) &&
tools/clang/lib/ARCMigrate/TransBlockObjCVariable.cpp
  105     if (isa<AttributedType>(ty.getTypePtr()))
tools/clang/lib/ARCMigrate/TransGCAttrs.cpp
  121     if (isa<TranslationUnitDecl>(D))
  152       return isa<ObjCImplDecl>(ContD);
tools/clang/lib/ARCMigrate/TransProperties.cpp
  321         if (isa<AttributedType>(I->IvarD->getType()))
tools/clang/lib/ARCMigrate/TransProtectedScope.cpp
   89     while (Parent && (isa<SwitchCase>(Parent) || isa<LabelStmt>(Parent)))
   89     while (Parent && (isa<SwitchCase>(Parent) || isa<LabelStmt>(Parent)))
tools/clang/lib/ARCMigrate/TransRetainReleaseDealloc.cpp
  254     while (OuterS && (isa<ParenExpr>(OuterS) ||
  255                       isa<CastExpr>(OuterS) ||
  256                       isa<FullExpr>(OuterS)));
  414       if (isa<ObjCAtFinallyStmt>(S))
tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp
  182     while (isa<MemberExpr>(base))
  184     if (isa<ObjCIvarRefExpr>(base) &&
  185         isa<ReturnStmt>(StmtMap->getParentIgnoreParenCasts(E))) {
  239         if (isa<ParenExpr>(E->getSubExpr())) {
  264       if (isa<ParenExpr>(WrapE)) {
  374       } while (parent && isa<FullExpr>(parent));
tools/clang/lib/AST/ASTContext.cpp
  147   if (isa<ParmVarDecl>(D))
  152   if (isa<TemplateTypeParmDecl>(D) ||
  153       isa<NonTypeTemplateParmDecl>(D) ||
  154       isa<TemplateTemplateParmDecl>(D))
  163   if (isa<ObjCMethodDecl>(D) || isa<ObjCContainerDecl>(D) ||
  163   if (isa<ObjCMethodDecl>(D) || isa<ObjCContainerDecl>(D) ||
  164       isa<ObjCPropertyDecl>(D) ||
  165       isa<RedeclarableTemplateDecl>(D) ||
  166       isa<ClassTemplateSpecializationDecl>(D))
  171       if (isa<TypedefDecl>(D)) {
  221         (isa<FieldDecl>(D) || isa<EnumConstantDecl>(D) || isa<VarDecl>(D) ||
  221         (isa<FieldDecl>(D) || isa<EnumConstantDecl>(D) || isa<VarDecl>(D) ||
  221         (isa<FieldDecl>(D) || isa<EnumConstantDecl>(D) || isa<VarDecl>(D) ||
  222          isa<ObjCMethodDecl>(D) || isa<ObjCPropertyDecl>(D))) {
  222          isa<ObjCMethodDecl>(D) || isa<ObjCPropertyDecl>(D))) {
  552     if (isa<ObjCMethodDecl>(D) || isa<FunctionDecl>(D)) {
  552     if (isa<ObjCMethodDecl>(D) || isa<FunctionDecl>(D)) {
 1089       if (isa<ImportDecl>(OnlyDecl))
 1460   assert((isa<UsingDecl>(Pattern) ||
 1461           isa<UnresolvedUsingValueDecl>(Pattern) ||
 1462           isa<UnresolvedUsingTypenameDecl>(Pattern)) &&
 1464   assert((isa<UsingDecl>(Inst) ||
 1465           isa<UnresolvedUsingValueDecl>(Inst) ||
 1466           isa<UnresolvedUsingTypenameDecl>(Inst)) &&
 1611     if (isa<FieldDecl>(D)) {
 1618   else if (isa<FieldDecl>(D))
 1644           if (isa<VariableArrayType>(arrayType))
 1646           else if (isa<ConstantArrayType>(arrayType) &&
 2593   if (isa<GNUNullExpr>(E)) return true;
 3938   if (!isa<CXXRecordDecl>(D)) return false;
 3940   if (isa<ClassTemplatePartialSpecializationDecl>(RD))
 3943       !isa<ClassTemplateSpecializationDecl>(RD))
 3955     assert(isa<InjectedClassNameType>(Decl->TypeForDecl));
 3959     assert(isa<InjectedClassNameType>(Decl->TypeForDecl));
 3978   assert(!isa<TemplateTypeParmDecl>(Decl) &&
 4208     isa<TypeAliasTemplateDecl>(Template.getAsTemplateDecl());
 4569       isa<ObjCInterfaceType>(baseType))
 5158   if (isa<ArrayType>(Ty)) {
 5160   } else if (isa<FunctionType>(Ty)) {
 5243     } else if (!isa<IncompleteArrayType>(AT1) ||
 5244                !isa<IncompleteArrayType>(AT2)) {
 5552   if (!isa<ArrayType>(T.getCanonicalType()))
 6152     if (isa<PipeType>(T))
 6360       if (!isa<ConstantArrayType>(AT))
 6403       if (!isa<ConstantArrayType>(AT))
 6474       if (!isa<ConstantArrayType>(AT))
 6604   if (isa<TypedefType>(PointeeTy.getTypePtr())) {
 6837     if (isa<PointerType>(CT)) {
 6853     if (isa<TypedefType>(T.getTypePtr())) {
 6911     if (isa<IncompleteArrayType>(AT) && !Options.IsStructField()) {
 6925         assert((isa<VariableArrayType>(AT) || isa<IncompleteArrayType>(AT)) &&
 6925         assert((isa<VariableArrayType>(AT) || isa<IncompleteArrayType>(AT)) &&
 7721     assert(isa<FunctionTemplateDecl>(D) ||
 7722            isa<UnresolvedUsingValueDecl>(D) ||
 7723            (isa<UsingShadowDecl>(D) &&
 7724             isa<FunctionTemplateDecl>(D->getUnderlyingDecl())));
 9878     while (LexicalContext && !isa<FunctionDecl>(LexicalContext))
 9962         isa<VarTemplatePartialSpecializationDecl>(VD))
 9968   } else if (isa<PragmaCommentDecl>(D))
 9970   else if (isa<PragmaDetectMismatchDecl>(D))
 9972   else if (isa<OMPThreadPrivateDecl>(D))
 9974   else if (isa<OMPAllocateDecl>(D))
 9976   else if (isa<OMPDeclareReductionDecl>(D) || isa<OMPDeclareMapperDecl>(D))
 9976   else if (isa<OMPDeclareReductionDecl>(D) || isa<OMPDeclareMapperDecl>(D))
 9978   else if (isa<ImportDecl>(D))
 9998         isa<FunctionDecl>(D) &&
10006         isa<CXXMethodDecl>(D) &&
tools/clang/lib/AST/ASTDiagnostic.cpp
  166     if (isa<VectorType>(Underlying))
  443         assert(isa<NamedDecl>(DC) && "Expected a NamedDecl");
  445         if (isa<NamespaceDecl>(ND))
  447         else if (isa<ObjCMethodDecl>(ND))
  449         else if (isa<FunctionDecl>(ND))
 1324       if (isa<TemplateTypeParmDecl>(FromParamND)) {
 1326       } else if (isa<TemplateTemplateParmDecl>(FromParamND)) {
 1328       } else if (isa<NonTypeTemplateParmDecl>(FromParamND)) {
 1806     if (isa<IntegerLiteral>(E)) return false;
 1810         if (isa<IntegerLiteral>(UO->getSubExpr()))
 1813     if (isa<CXXBoolLiteralExpr>(E))
 1828       if (E && !isa<CXXNullPtrLiteralExpr>(E)) {
tools/clang/lib/AST/ASTDumper.cpp
   97       assert(isa<CXXRecordDecl>(RedeclWithBadType) &&
tools/clang/lib/AST/ASTImporter.cpp
 1548   if (isa<RecordDecl>(D) && (FunDecl = dyn_cast<FunctionDecl>(OrigDC)) &&
 1677   bool AccumulateChildErrors = isa<TagDecl>(FromDC);
 1728     if (isa<FieldDecl>(D) || isa<IndirectFieldDecl>(D) || isa<FriendDecl>(D)) {
 1728     if (isa<FieldDecl>(D) || isa<IndirectFieldDecl>(D) || isa<FriendDecl>(D)) {
 1728     if (isa<FieldDecl>(D) || isa<IndirectFieldDecl>(D) || isa<FriendDecl>(D)) {
 3089     if (isa<CXXMethodDecl>(FoundByLookup)) {
 3705           if (isa<IncompleteArrayType>(FoundArray) &&
 3706               isa<ConstantArrayType>(TArray)) {
 3715           } else if (isa<IncompleteArrayType>(TArray) &&
 3716                      isa<ConstantArrayType>(FoundArray)) {
 7678   if (isa<CXXStaticCastExpr>(E)) {
 7682   } else if (isa<CXXDynamicCastExpr>(E)) {
 7686   } else if (isa<CXXReinterpretCastExpr>(E)) {
 7690   } else if (isa<CXXConstCastExpr>(E)) {
 7799   assert(F && (isa<FieldDecl>(*F) || isa<IndirectFieldDecl>(*F)) &&
 7799   assert(F && (isa<FieldDecl>(*F) || isa<IndirectFieldDecl>(*F)) &&
 7811     if (isa<FieldDecl>(*D) || isa<IndirectFieldDecl>(*D))
 7811     if (isa<FieldDecl>(*D) || isa<IndirectFieldDecl>(*D))
tools/clang/lib/AST/ASTImporterLookupTable.cpp
   37       if (isa<ElaboratedType>(Ty))
   48         else if (isa<TypedefType>(Ty)) {
tools/clang/lib/AST/CXXInheritance.cpp
  515     if (isa<TypedefNameDecl>(Path.Decls.front()) ||
tools/clang/lib/AST/CommentSema.cpp
  812          isa<FunctionDecl>(ThisDeclInfo->CurrentDecl);
  840          isa<ObjCMethodDecl>(ThisDeclInfo->CurrentDecl);
  929          isa<RecordDecl>(ThisDeclInfo->CurrentDecl) &&
  939           (isa<ClassTemplateDecl>(ThisDeclInfo->CurrentDecl));
  948          (isa<FunctionTemplateDecl>(ThisDeclInfo->CurrentDecl));
  957          isa<ObjCInterfaceDecl>(ThisDeclInfo->CurrentDecl);
  966          isa<ObjCProtocolDecl>(ThisDeclInfo->CurrentDecl);
tools/clang/lib/AST/ComparisonCategories.cpp
   62   if (Lookup.size() != 1 || !isa<VarDecl>(Lookup.front()))
tools/clang/lib/AST/Decl.cpp
  180   return isa<TypeDecl>(D) ||
  181          isa<ClassTemplateDecl>(D) ||
  182          isa<ObjCInterfaceDecl>(D);
  254     if (isa<TemplateTypeParmDecl>(P))
  305     if (isa<FunctionDecl>(DC) || isa<BlockDecl>(DC))
  305     if (isa<FunctionDecl>(DC) || isa<BlockDecl>(DC))
  656         !isa<VarTemplateSpecializationDecl>(Var) &&
  683   assert(!isa<FieldDecl>(D) && "Didn't expect a FieldDecl!");
  717            !isa<TranslationUnitDecl>(DC);
  861   } else if (isa<EnumConstantDecl>(D)) {
  880   } else if (isa<NamespaceDecl>(D)) {
  885   } else if (isa<ObjCInterfaceDecl>(D)) {
  921   if (!(isa<CXXMethodDecl>(D) ||
  922         isa<VarDecl>(D) ||
  923         isa<FieldDecl>(D) ||
  924         isa<IndirectFieldDecl>(D) ||
  925         isa<TagDecl>(D) ||
  926         isa<TemplateDecl>(D)))
 1042   assert(!explicitSpecSuppressor || !isa<TemplateDecl>(explicitSpecSuppressor));
 1132   if (!IsMostRecent && !isa<NamespaceDecl>(ND)) {
 1188   else if (isa<ParmVarDecl>(ContextDecl))
 1292     if (isa<VarDecl>(D) && useInlineVisibilityHidden(FD) &&
 1569   if (getDeclName() || isa<DecompositionDecl>(this))
 1602     if (isa<NamedDecl>(Ctx))
 1704   if (isa<ObjCMethodDecl>(this))
 1709   if (isa<ParmVarDecl>(this))
 1790   if (isa<UsingShadowDecl>(D))
 1793   if (isa<FieldDecl>(D) || isa<IndirectFieldDecl>(D) || isa<MSPropertyDecl>(D))
 1793   if (isa<FieldDecl>(D) || isa<IndirectFieldDecl>(D) || isa<MSPropertyDecl>(D))
 1793   if (isa<FieldDecl>(D) || isa<IndirectFieldDecl>(D) || isa<MSPropertyDecl>(D))
 2105          isa<VarTemplatePartialSpecializationDecl>(this)))
 2134         !isa<VarTemplatePartialSpecializationDecl>(VTSD) &&
 2284   if (isa<ParmVarDecl>(this))
 2450   return isa<PackExpansionType>(getType());
 2585       isa<IncompleteArrayType>(getType()))
 2620   assert((isa<VarTemplateSpecializationDecl>(this) ||
 2689   if (isa<ObjCMethodDecl>(getDeclContext()))
 2833   if (isa<CompoundStmt>(S) && cast<CompoundStmt>(S)->body_empty())
 2945   if (isa<CXXRecordDecl>(getDeclContext()))
 3006   if (!isa<CXXMethodDecl>(this) || getOverloadedOperator() != OO_Delete ||
 4087   assert((!isa<CXXRecordDecl>(this) ||
 4383     assert(isa<FieldDecl>(Decls[i]) || isa<IndirectFieldDecl>(Decls[i]));
 4383     assert(isa<FieldDecl>(Decls[i]) || isa<IndirectFieldDecl>(Decls[i]));
 4598     if (isa<WeakAttr>(I) || isa<WeakRefAttr>(I))
 4598     if (isa<WeakAttr>(I) || isa<WeakRefAttr>(I))
tools/clang/lib/AST/DeclBase.cpp
  134   assert(!isa<TagDecl>(this) || !cast<TagDecl>(this)->isCompleteDefinition());
  139   if (!isa<ParmVarDecl>(this)) {
  227   return isa<TemplateDecl>(this);
  340     if (!isa<TagDecl>(LDC))
  660   } else if (isa<ObjCInterfaceDecl>(this) &&
  676     if (isa<WeakImportAttr>(A))
  922   if (isa<TranslationUnitDecl>(this) ||
  923       isa<TemplateTypeParmDecl>(this) ||
  924       isa<NonTypeTemplateParmDecl>(this) ||
  926       !isa<CXXRecordDecl>(getDeclContext()) ||
  928       isa<StaticAssertDecl>(this) ||
  929       isa<BlockDecl>(this) ||
  932       isa<ParmVarDecl>(this) ||
  935       isa<CXXRecordDecl>(this) ||
  936       isa<ClassScopeFunctionSpecializationDecl>(this))
 1042   if (isa<FunctionDecl>(this))
 1093   if (isa<ClassTemplatePartialSpecializationDecl>(this))
 1223         assert(isa<InjectedClassNameType>(Tag->getTypeForDecl()));
 1260     if (FieldsAlreadyLoaded && isa<FieldDecl>(D))
 1418   if ((D->getIdentifierNamespace() == 0 && !isa<UsingDirectiveDecl>(D)) ||
 1432   if (isa<ClassTemplateSpecializationDecl>(D))
 1468   if (isa<NamedDecl>(D)) {
 1851   if (!(isa<TagDecl>(DCAsDecl) && cast<TagDecl>(DCAsDecl)->isBeingDefined()))
tools/clang/lib/AST/DeclCXX.cpp
  673       !isa<FieldDecl>(D) &&
  674       !isa<IndirectFieldDecl>(D) &&
  675       (!isa<TagDecl>(D) || cast<TagDecl>(D)->getTagKind() == TTK_Class ||
 1345   } else if (isa<CXXDestructorDecl>(D)) {
 1370   } else if (isa<CXXDestructorDecl>(D))
 1682   assert(!isa<ClassTemplatePartialSpecializationDecl>(this));
 1996   if (isa<CXXDestructorDecl>(this)) {
 2250   if (!isa<RValueReferenceType>(ParamType))
 2270   if (isa<CXXConstructorDecl>(this)) return nullptr;
 2275   if (isa<CXXConstructorDecl>(this)) return nullptr;
 2280   if (isa<CXXConstructorDecl>(this)) return 0;
 2286   if (isa<CXXConstructorDecl>(this))
tools/clang/lib/AST/DeclFriend.cpp
   42     assert(isa<FunctionDecl>(D) ||
   43            isa<CXXRecordDecl>(D) ||
   44            isa<FunctionTemplateDecl>(D) ||
   45            isa<ClassTemplateDecl>(D));
tools/clang/lib/AST/DeclObjC.cpp
  844   if (isa<ObjCProtocolDecl>(DC))
 1150   if (isa<ObjCProtocolDecl>(getDeclContext()))
 1764     assert((isa<ObjCInterfaceDecl>(DC) || isa<ObjCImplementationDecl>(DC) ||
 1764     assert((isa<ObjCInterfaceDecl>(DC) || isa<ObjCImplementationDecl>(DC) ||
 1765             isa<ObjCCategoryDecl>(DC)) &&
tools/clang/lib/AST/DeclPrinter.cpp
  348           if (isa<CXXDefaultArgExpr>(Args[I]))
  380     if (isa<ObjCIvarDecl>(*D))
  391           !isa<ClassTemplateSpecializationDecl>(DC))
  409       if (!BaseType.isNull() && isa<ElaboratedType>(BaseType) &&
  422     if (isa<TagDecl>(*D) && !cast<TagDecl>(*D)->isFreeStanding()) {
  427     if (isa<AccessSpecDecl>(*D)) {
  441     if (isa<OMPThreadPrivateDecl>(*D) || isa<OMPDeclareReductionDecl>(*D) ||
  441     if (isa<OMPThreadPrivateDecl>(*D) || isa<OMPDeclareReductionDecl>(*D) ||
  442         isa<OMPDeclareMapperDecl>(*D) || isa<OMPRequiresDecl>(*D) ||
  442         isa<OMPDeclareMapperDecl>(*D) || isa<OMPRequiresDecl>(*D) ||
  443         isa<OMPAllocateDecl>(*D))
  445     else if (isa<ObjCMethodDecl>(*D) && cast<ObjCMethodDecl>(*D)->hasBody())
  457     } else if (isa<NamespaceDecl>(*D) || isa<LinkageSpecDecl>(*D) ||
  457     } else if (isa<NamespaceDecl>(*D) || isa<LinkageSpecDecl>(*D) ||
  458              isa<ObjCImplementationDecl>(*D) ||
  459              isa<ObjCInterfaceDecl>(*D) ||
  460              isa<ObjCProtocolDecl>(*D) ||
  461              isa<ObjCCategoryImplDecl>(*D) ||
  462              isa<ObjCCategoryDecl>(*D))
  464     else if (isa<EnumConstantDecl>(*D)) {
  475         ((isa<FunctionDecl>(*D) &&
  477          (isa<FunctionTemplateDecl>(*D) &&
  727     } else if (!ConversionDecl && !isa<CXXDestructorDecl>(D)) {
  770       if (!Policy.TerseOutput && isa<CXXConstructorDecl>(*D))
  879       if ((D->getInitStyle() == VarDecl::CallInit) && !isa<ParenListExpr>(Init))
  888       if ((D->getInitStyle() == VarDecl::CallInit) && !isa<ParenListExpr>(Init))
 1160       !isa<CXXDeductionGuideDecl>(D->getTemplatedDecl())) {
tools/clang/lib/AST/Expr.cpp
  188   if (isa<ObjCBoolLiteralExpr>(E))
  281   assert(!isa<ConstantExpr>(E));
  411   if (isa<NonTypeTemplateParmDecl>(D)) {
  455   if (isa<CXXMethodDecl>(D) && D->getDeclContext()->isDependentContext()) {
  696   if (isa<BlockDecl>(CurrentDecl)) {
  789     while (Ctx && isa<NamedDecl>(Ctx)) {
  843     if (isa<CXXMethodDecl>(FD) &&
  851     else if (!isa<CXXConstructorDecl>(FD) && !isa<CXXDestructorDecl>(FD))
  851     else if (!isa<CXXConstructorDecl>(FD) && !isa<CXXDestructorDecl>(FD))
  889   if (isa<TranslationUnitDecl>(CurrentDecl) && IK == PrettyFunction) {
 1504     if (isa<CXXPseudoDestructorExpr>(Callee->IgnoreParens()))
 1529   if (isa<CXXOperatorCallExpr>(this))
 1538   if (isa<CXXOperatorCallExpr>(this))
 1916       assert((isa<CXXMemberCallExpr>(SubExpr) ||
 1917               isa<BlockExpr>(SubExpr)) &&
 2283   return isa<StringLiteral>(Init) || isa<ObjCEncodeExpr>(Init);
 2283   return isa<StringLiteral>(Init) || isa<ObjCEncodeExpr>(Init);
 2632     if (isa<UnaryOperator>(PO->getSyntacticForm()) ||
 2633         isa<BinaryOperator>(PO->getSyntacticForm()))
 2674         if (!(DRE && isa<VarDecl>(DRE->getDecl()) &&
 2676             !isa<CallExpr>(CE->getSubExpr()->IgnoreParens())) {
 2791     assert(isa<CXXMethodDecl>(mem->getMemberDecl()));
 2802   assert(isa<UnresolvedMemberExpr>(expr) || isa<CXXPseudoDestructorExpr>(expr));
 2802   assert(isa<UnresolvedMemberExpr>(expr) || isa<CXXPseudoDestructorExpr>(expr));
 2977     if (MCE->getMethodDecl() && isa<CXXConversionDecl>(MCE->getMethodDecl()))
 3007   return isa<CXXDefaultArgExpr>(E);
 3047     if (!isa<ObjCPropertyRefExpr>(E))
 3055   if (isa<ImplicitCastExpr>(E)) {
 3066   if (isa<MemberExpr>(E))
 3074   if (isa<OpaqueValueExpr>(E))
 3749   } else if (isa<GNUNullExpr>(this)) {
 3796   if (isa<IntegerLiteral>(this))
 3903   if (isa<ExtVectorElementExpr>(E))
 4000       while (isa<MemberExpr>(E1) && isa<MemberExpr>(E2)) {
 4000       while (isa<MemberExpr>(E1) && isa<MemberExpr>(E2)) {
 4012       if (isa<CXXThisExpr>(E1) && isa<CXXThisExpr>(E2))
 4012       if (isa<CXXThisExpr>(E1) && isa<CXXThisExpr>(E2))
 4529     if (isa<OpaqueValueExpr>(E))
tools/clang/lib/AST/ExprCXX.cpp
  476           isa<UnresolvedUsingValueDecl>(*I)) {
  587   if (isa<CXXTemporaryObjectExpr>(this))
  593   if (isa<CXXTemporaryObjectExpr>(this))
 1484     if (isa<UnresolvedUsingValueDecl>(decl))
tools/clang/lib/AST/ExprClassification.cpp
  226       return isa<FunctionDecl>(cast<DeclRefExpr>(E)->getDecl())
  254       if (isa<ObjCPropertyRefExpr>(Op))
  444   if (isa<CXXMethodDecl>(D) && cast<CXXMethodDecl>(D)->isInstance())
  451     islvalue = isa<VarDecl>(D) || isa<FieldDecl>(D) ||
  451     islvalue = isa<VarDecl>(D) || isa<FieldDecl>(D) ||
  452                isa<IndirectFieldDecl>(D) ||
  453                isa<BindingDecl>(D) ||
  455                 (isa<FunctionDecl>(D) || isa<MSPropertyDecl>(D) ||
  455                 (isa<FunctionDecl>(D) || isa<MSPropertyDecl>(D) ||
  456                  isa<FunctionTemplateDecl>(D)));
  483     return (isa<FunctionDecl>(E->getMemberDecl())
  495     if (isa<ObjCPropertyRefExpr>(Base))
  510   if (isa<VarDecl>(Member) && Member->getDeclContext()->isRecord())
  516   if (isa<FieldDecl>(Member)) {
  521     if (isa<ObjCPropertyRefExpr>(Base))
  585     bool TrueIsThrow = isa<CXXThrowExpr>(True->IgnoreParenImpCasts());
  586     bool FalseIsThrow = isa<CXXThrowExpr>(False->IgnoreParenImpCasts());
tools/clang/lib/AST/ExprConstant.cpp
  720       assert(isa<CallExpr>(AllocExpr));
 1502         assert((isa<MemberExpr>(E) || tryUnwrapAllocSizeCall(E)) &&
 1572       if (checkSubobject(Info, E, isa<FieldDecl>(D) ? CSK_Field : CSK_Base))
 1805   bool IsMemberCall = isa<CXXMethodDecl>(Callee) &&
 1806                       !isa<CXXConstructorDecl>(Callee) &&
 1869     return isa<FunctionDecl>(D);
 1924   return E && !isa<MaterializeTemporaryExpr>(E);
 1934   if (Decl && isa<VarDecl>(Decl)) {
 2931   assert(!isa<SourceLocExpr>(Lit) &&
 3753     } else if (isa<StringLiteral>(Base) || isa<PredefinedExpr>(Base)) {
 3753     } else if (isa<StringLiteral>(Base) || isa<PredefinedExpr>(Base)) {
 4422     if (isa<DefaultStmt>(SC)) {
 4905   if (!Info.Ctx.getLangOpts().CPlusPlus2a && isa<CXXMethodDecl>(Declaration) &&
 5006       isa<CXXDestructorDecl>(NamedMember) ? AK_Destroy : AK_MemberCall, false);
 5085       isa<CXXDestructorDecl>(Found) ? AK_Destroy : AK_MemberCall);
 5701                                   isa<CXXDefaultInitExpr>(Init));
 7379          E->getType()->isVoidType() || isa<ObjCSelectorExpr>(E));
 7401       isa<DeclRefExpr>(E) &&
 8489         << isa<CXXMethodDecl>(OperatorNew) << OperatorNew;
 8855   if (isa<CXXRecordDecl>(RD) && cast<CXXRecordDecl>(RD)->getNumVBases()) {
 8929                                   isa<CXXDefaultInitExpr>(InitExpr));
 8986                                   isa<CXXDefaultInitExpr>(Init));
 9472   if (isa<ImplicitValueInitExpr>(FillerExpr))
10112     if (!isa<StringLiteral>(E))
10181     if (isa<CompoundLiteralExpr>(E))
10321   return !E || !isa<MemberExpr>(E);
13199         << isa<CXXMethodDecl>(OperatorDelete) << OperatorDelete;
13243           << isa<CXXMethodDecl>(VirtualDelete) << VirtualDelete;
13963     if (isa<EnumConstantDecl>(cast<DeclRefExpr>(E)->getDecl()))
13971       if (isa<ParmVarDecl>(D))
14129     if (isa<ExplicitCastExpr>(E)) {
tools/clang/lib/AST/ExternalASTMerger.cpp
   39   if (isa<LinkageSpecDecl>(DC))
   81     if (isa<DeclContext>(SearchResultDecl) &&
  248   if (isa<FunctionDecl>(C.first.get()))
  359   if (isa<ObjCContainerDecl>(D1) && isa<ObjCContainerDecl>(D2))
  359   if (isa<ObjCContainerDecl>(D1) && isa<ObjCContainerDecl>(D2))
  468   if (!isa<TemplateDecl>(D))
tools/clang/lib/AST/FormatString.cpp
  980   assert(isa<TypedefType>(QT) && "Expected a TypedefType");
 1004     if (!isa<TypedefType>(T))
tools/clang/lib/AST/Interp/Function.h
  109   bool isConstructor() const { return isa<CXXConstructorDecl>(F); }
tools/clang/lib/AST/Interp/InterpFrame.cpp
   77       if (isa<RecordDecl>(D)) {
  115   if (M && M->isInstance() && !isa<CXXConstructorDecl>(F)) {
tools/clang/lib/AST/Interp/Program.cpp
  336     if (isa<IncompleteArrayType>(ArrayType)) {
tools/clang/lib/AST/ItaniumMangle.cpp
   63   if (isa<CapturedDecl>(DC) || isa<OMPDeclareReductionDecl>(DC) ||
   63   if (isa<CapturedDecl>(DC) || isa<OMPDeclareReductionDecl>(DC) ||
   64       isa<OMPDeclareMapperDecl>(DC)) {
   84   return isa<FunctionDecl>(DC) || isa<ObjCMethodDecl>(DC) || isa<BlockDecl>(DC);
   84   return isa<FunctionDecl>(DC) || isa<ObjCMethodDecl>(DC) || isa<BlockDecl>(DC);
   84   return isa<FunctionDecl>(DC) || isa<ObjCMethodDecl>(DC) || isa<BlockDecl>(DC);
  293       if (!isa<FunctionDecl>(ND) && !isa<VarDecl>(ND)) {
  293       if (!isa<FunctionDecl>(ND) && !isa<VarDecl>(ND)) {
  390     assert(!D || (!isa<CXXDestructorDecl>(D) &&
  391                   !isa<CXXConstructorDecl>(D)));
  610   if (VD && !isa<DecompositionDecl>(D)) {
  623         !isa<VarTemplateSpecializationDecl>(D))
  750     if (!(isa<CXXConstructorDecl>(FD) || isa<CXXDestructorDecl>(FD) ||
  750     if (!(isa<CXXConstructorDecl>(FD) || isa<CXXDestructorDecl>(FD) ||
  751           isa<CXXConversionDecl>(FD)))
  763   while (isa<LinkageSpecDecl>(DC)) {
  972   } else if (isa<BuiltinTemplateDecl>(ND) || isa<ConceptDecl>(ND)) {
  972   } else if (isa<BuiltinTemplateDecl>(ND) || isa<ConceptDecl>(ND)) {
 1359     if (isa<ObjCContainerDecl>(ND))
 1553   assert(isa<NamedDecl>(D) || isa<BlockDecl>(D));
 1553   assert(isa<NamedDecl>(D) || isa<BlockDecl>(D));
 1661     if ((isa<VarDecl>(Context) || isa<FieldDecl>(Context)) &&
 1661     if ((isa<VarDecl>(Context) || isa<FieldDecl>(Context)) &&
 1744     if ((isa<VarDecl>(Context) || isa<FieldDecl>(Context)) &&
 1744     if ((isa<VarDecl>(Context) || isa<FieldDecl>(Context)) &&
 1745         !isa<ParmVarDecl>(Context)) {
 1893     if (isa<BuiltinTemplateDecl>(ND) || isa<ConceptDecl>(ND))
 1893     if (isa<BuiltinTemplateDecl>(ND) || isa<ConceptDecl>(ND))
 2062       if (isa<TemplateTemplateParmDecl>(TD))
 2401       isa<AutoType>(Ty))
 2470   if (quals && isa<ArrayType>(T)) {
 3389   if (isa<DeclRefExpr>(E) ||
 3390       isa<MemberExpr>(E) ||
 3391       isa<UnresolvedLookupExpr>(E) ||
 3392       isa<DependentScopeDeclRefExpr>(E) ||
 3393       isa<CXXDependentScopeMemberExpr>(E) ||
 3394       isa<UnresolvedMemberExpr>(E))
 3781       if (isa<PackExpansionExpr>(Arg))
 3816                  isa<InitListExpr>(Init)) {
 3919           (CE->getNumArgs() == 1 || isa<CXXDefaultArgExpr>(CE->getArg(1))) &&
 4292     assert(isa<ConstantArrayType>(E->getType()));
 4565       if (isa<VarDecl>(D) || isa<FunctionDecl>(D)) {
 4565       if (isa<VarDecl>(D) || isa<FunctionDecl>(D)) {
 4936   assert((isa<FunctionDecl>(D) || isa<VarDecl>(D)) &&
 4936   assert((isa<FunctionDecl>(D) || isa<VarDecl>(D)) &&
 4938   assert(!isa<CXXConstructorDecl>(D) && !isa<CXXDestructorDecl>(D) &&
 4938   assert(!isa<CXXConstructorDecl>(D) && !isa<CXXDestructorDecl>(D) &&
 4985   assert(!isa<CXXDestructorDecl>(MD) &&
tools/clang/lib/AST/Mangle.cpp
  233   assert(!isa<CXXConstructorDecl>(DC) && !isa<CXXDestructorDecl>(DC));
  233   assert(!isa<CXXConstructorDecl>(DC) && !isa<CXXDestructorDecl>(DC));
  240     assert((isa<NamedDecl>(DC) || isa<BlockDecl>(DC)) &&
  240     assert((isa<NamedDecl>(DC) || isa<BlockDecl>(DC)) &&
  242     if (isa<BlockDecl>(DC))
  243       for (; DC && isa<BlockDecl>(DC); DC = DC->getParent())
  245     assert((isa<TranslationUnitDecl>(DC) || isa<NamedDecl>(DC)) &&
  245     assert((isa<TranslationUnitDecl>(DC) || isa<NamedDecl>(DC)) &&
  376     if (!(isa<CXXRecordDecl>(D) || isa<CXXMethodDecl>(D)))
  376     if (!(isa<CXXRecordDecl>(D) || isa<CXXMethodDecl>(D)))
tools/clang/lib/AST/MicrosoftMangle.cpp
  100   if (isa<CapturedDecl>(DC) || isa<OMPDeclareReductionDecl>(DC) ||
  100   if (isa<CapturedDecl>(DC) || isa<OMPDeclareReductionDecl>(DC) ||
  101       isa<OMPDeclareMapperDecl>(DC)) {
  457   if (VD && !isa<DecompositionDecl>(D)) {
  470         !isa<VarTemplateSpecializationDecl>(D) &&
  799     if (isa<FunctionTemplateDecl>(TD)) {
  941             if ((isa<VarDecl>(LambdaContextDecl) ||
  942                  isa<FieldDecl>(LambdaContextDecl)) &&
  965       } else if (isa<EnumDecl>(TD) &&
 1047     if (isa<TagDecl>(ND) || isa<VarDecl>(ND)) {
 1047     if (isa<TagDecl>(ND) || isa<VarDecl>(ND)) {
 1094         if (!isa<ParmVarDecl>(MC))
 1119       if (isa<RecordDecl>(DC))
 1124     } else if (isa<NamedDecl>(DC)) {
 1459     if (isa<FieldDecl>(ND) || isa<IndirectFieldDecl>(ND)) {
 1459     if (isa<FieldDecl>(ND) || isa<IndirectFieldDecl>(ND)) {
 1487           !isa<FunctionTemplateDecl>(TD)) {
 1492         if (!isa<FunctionTemplateDecl>(TD)) {
 1517       if (isa<TemplateTypeParmDecl>(Parm) ||
 1518           isa<TemplateTemplateParmDecl>(Parm))
 1525       else if (isa<NonTypeTemplateParmDecl>(Parm))
 1540     } else if (isa<TypeAliasDecl>(ND)) {
 1925     if ((!IsPointer && Quals) || isa<TagType>(T) || isArtificialTagType(T)) {
 2188     if (isa<CXXDestructorDecl>(MD)) {
 2190     } else if (isa<CXXConstructorDecl>(MD)) {
 2215     if (isa<CXXDestructorDecl>(D) && isStructorDecl(D)) {
 2342     if (isa<CXXDestructorDecl>(MD) && isStructorDecl(MD) &&
 2694   if (!isa<ExtVectorType>(T)) {
 2947   assert((isa<FunctionDecl>(D) || isa<VarDecl>(D)) &&
 2947   assert((isa<FunctionDecl>(D) || isa<VarDecl>(D)) &&
 2949   assert(!isa<CXXConstructorDecl>(D) && !isa<CXXDestructorDecl>(D) &&
 2949   assert(!isa<CXXConstructorDecl>(D) && !isa<CXXDestructorDecl>(D) &&
tools/clang/lib/AST/NestedNameSpecifier.cpp
  152     if (isa<CXXRecordDecl>(ND))
  154     return isa<NamespaceDecl>(ND) ? Namespace : NamespaceAlias;
  328     assert(!isa<ElaboratedType>(T) &&
tools/clang/lib/AST/ODRHash.cpp
  288     if (!isa<FunctionDecl>(D)) {
  473     if (isa<ClassTemplateSpecializationDecl>(DC)) {
  521     if (isa<ClassTemplateSpecializationDecl>(DC)) return;
  524         if (!isa<CXXMethodDecl>(DC)) return;
  613       assert(isa<EnumConstantDecl>(SubDecl) && "Unexpected Decl");
tools/clang/lib/AST/OpenMPClause.cpp
 1361       if (isa<OMPCapturedExprDecl>(DRE->getDecl()))
tools/clang/lib/AST/ParentMap.cpp
  141   do { S = getParent(S); } while (S && isa<ParenExpr>(S));
  149   while (S && (isa<ParenExpr>(S) || isa<CastExpr>(S)));
  149   while (S && (isa<ParenExpr>(S) || isa<CastExpr>(S)));
  157   } while (S && isa<Expr>(S) && cast<Expr>(S)->IgnoreParenImpCasts() != S);
  164   while (isa<ParenExpr>(S)) {
  176   while (P && (isa<ParenExpr>(P) || isa<CastExpr>(P) ||
  176   while (P && (isa<ParenExpr>(P) || isa<CastExpr>(P) ||
  177                isa<FullExpr>(P))) {
  187       return isa<Expr>(P);
tools/clang/lib/AST/PrintfFormatString.cpp
  839   if (isa<TypedefType>(QT) && (LangOpt.C99 || LangOpt.CPlusPlus11))
  869   if (!isa<TypedefType>(QT) && QT->isCharType()) {
tools/clang/lib/AST/QualTypeNames.cpp
  122   assert(!isa<DependentTemplateSpecializationType>(TypePtr));
  372   if (isa<PointerType>(QT.getTypePtr())) {
  397   if (isa<ReferenceType>(QT.getTypePtr())) {
  399     bool IsLValueRefTy = isa<LValueReferenceType>(QT.getTypePtr());
  417   while (isa<SubstTemplateTypeParmType>(QT.getTypePtr())) {
  446   if (isa<const TemplateSpecializationType>(QT.getTypePtr()) ||
  447       isa<const RecordType>(QT.getTypePtr())) {
tools/clang/lib/AST/RecordLayoutBuilder.cpp
 2038   if (isa<ObjCIvarDecl>(D))
 2636   if (!isa<CXXRecordDecl>(RD))
 2996     if (MD->isVirtual() && !isa<CXXDestructorDecl>(MD) && !MD->isPure())
tools/clang/lib/AST/ScanfFormatString.cpp
  503   if (isa<TypedefType>(PT) && (LangOpt.C99 || LangOpt.CPlusPlus11))
tools/clang/lib/AST/Stmt.cpp
  346   } while (isa<ValueStmt>(S));
  908   return isa<ObjCAvailabilityCheckExpr>(getCond());
tools/clang/lib/AST/StmtOpenMP.cpp
   29   if (isa<OMPTargetEnterDataDirective>(this) ||
   30       isa<OMPTargetExitDataDirective>(this) ||
   31       isa<OMPTargetUpdateDirective>(this))
tools/clang/lib/AST/StmtPrinter.cpp
   89       if (S && isa<Expr>(S)) {
 1220       if (isa<UnaryOperator>(Node->getSubExpr()))
 1336     if (isa<CXXDefaultArgExpr>(Call->getArg(i))) {
 1660       if (!isa<CXXDefaultArgExpr>(Node->getArg(ArgIdx)))
 1684   if (MD && isa<CXXConversionDecl>(MD)) {
 2015   if (NumPlace > 0 && !isa<CXXDefaultArgExpr>(E->getPlacementArg(0))) {
 2019       if (isa<CXXDefaultArgExpr>(E->getPlacementArg(i)))
 2080     if (isa<CXXDefaultArgExpr>(E->getArg(i))) {
 2406   if (isa<FunctionNoProtoType>(AFT)) {
tools/clang/lib/AST/TemplateBase.cpp
  121            isa<PackExpansionType>(getAsType());
  143             isa<PackExpansionExpr>(getAsExpr()));
  208     return isa<PackExpansionType>(getAsType());
  211     return isa<PackExpansionExpr>(getAsExpr());
tools/clang/lib/AST/TemplateName.cpp
  173     if (isa<TemplateTemplateParmDecl>(Template))
tools/clang/lib/AST/TextNodeDumper.cpp
  174   if (isa<LocInfoType>(T)) {
  265   if (!isa<FunctionDecl>(*D)) {
tools/clang/lib/AST/Type.cpp
  307   if (!isa<ArrayType>(CanonicalType))
  706     if (isa<ObjCInterfaceType>(objcObject))
  724     if (isa<ObjCInterfaceType>(objcObject))
  741     if (isa<ObjCInterfaceType>(objcObject))
 1255     if (isa<FunctionNoProtoType>(funcType)) {
 2047   return isa<ComplexType>(CanonicalType);
 2061   } else if (isa<PointerType>(T)) {
 2063   } else if (isa<BlockPointerType>(T)) {
 2065   } else if (isa<ObjCObjectPointerType>(T)) {
 2067   } else if (isa<MemberPointerType>(T)) {
 2069   } else if (isa<EnumType>(T)) {
 2098   return isa<ArrayType>(CanonicalType);
 2108   return !isa<VariableArrayType>(CanonicalType);
 2441   if (isa<AutoType>(BaseTy->getCanonicalTypeInternal()))
 3126     if (isa<PackExpansionType>(getParamType(ArgIdx - 1)))
 3872       if (isa<ClassTemplateDecl>(templateDecl))
 4104     if (isa<VariableArrayType>(arr) &&
tools/clang/lib/AST/TypeLoc.cpp
  414     if (A && (isa<TypeNullableAttr>(A) || isa<TypeNonNullAttr>(A) ||
  414     if (A && (isa<TypeNullableAttr>(A) || isa<TypeNonNullAttr>(A) ||
  415               isa<TypeNullUnspecifiedAttr>(A)))
tools/clang/lib/AST/TypePrinter.cpp
  376   if (isa<ArrayType>(T->getPointeeType()))
  386   if (isa<ArrayType>(T->getPointeeType()))
  420   if (isa<ArrayType>(Inner))
  432   if (isa<ArrayType>(Inner))
  445   if (isa<ArrayType>(Inner))
  457   if (isa<ArrayType>(Inner))
  469   if (isa<ArrayType>(T->getPointeeType()))
  485   if (isa<ArrayType>(T->getPointeeType()))
 1173     if (isa<CXXRecordDecl>(D) && cast<CXXRecordDecl>(D)->isLambda()) {
 1344   if (!HasEmptyPlaceHolder && !isa<FunctionType>(T->getInnerType())) {
 1352   if (!HasEmptyPlaceHolder && !isa<FunctionType>(T->getInnerType())) {
tools/clang/lib/AST/VTableBuilder.cpp
  291   if (isa<ReferenceType>(CanDerivedReturnType)) {
  296   } else if (isa<PointerType>(CanDerivedReturnType)) {
  493   if (isa<CXXDestructorDecl>(LHS))
  494     return isa<CXXDestructorDecl>(RHS);
 1138     if (isa<CXXDestructorDecl>(MD)) {
 2693     if (isa<CXXDestructorDecl>(Overrider.Method)) {
 3617     if (isa<CXXDestructorDecl>(MD)) {
 3734   if (isa<CXXDestructorDecl>(GD.getDecl()))
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
  479   for (; Ctx && isa<NamedDecl>(Ctx); Ctx = Ctx->getParent()) {
  492       if (!isa<ClassTemplateSpecializationDecl>(Ctx)) {
tools/clang/lib/Analysis/AnalysisDeclContext.cpp
  145   return isa<ImplicitParamDecl>(VD) && VD->getName() == "self";
  334     if (!isa<NamespaceDecl>(Parent))
tools/clang/lib/Analysis/CFG.cpp
   93   return isa<IntegerLiteral>(E);
  104     return isa<EnumConstantDecl>(DR->getDecl()) ? DR : nullptr;
  147   if (isa<DeclRefExpr>(E1) != isa<DeclRefExpr>(E2))
  147   if (isa<DeclRefExpr>(E1) != isa<DeclRefExpr>(E2))
  151   if (!isa<DeclRefExpr>(E1))
  156   assert(isa<DeclRefExpr>(E1) && isa<DeclRefExpr>(E2));
  156   assert(isa<DeclRefExpr>(E1) && isa<DeclRefExpr>(E2));
  160   assert(isa<EnumConstantDecl>(Decl1) && isa<EnumConstantDecl>(Decl2));
  160   assert(isa<EnumConstantDecl>(Decl1) && isa<EnumConstantDecl>(Decl2));
  164   assert(isa<EnumDecl>(DC1) && isa<EnumDecl>(DC2));
  164   assert(isa<EnumDecl>(DC1) && isa<EnumDecl>(DC2));
  795     assert(!isa<Expr>(S) || cast<Expr>(S)->IgnoreParens() == S);
 1343   assert((isa<CXXConstructExpr>(E) || isa<CallExpr>(E) ||
 1343   assert((isa<CXXConstructExpr>(E) || isa<CallExpr>(E) ||
 1344           isa<ObjCMessageExpr>(E)) && "Expression cannot construct an object!");
 1638     HasTemporaries = isa<ExprWithCleanups>(Init);
 2682   if (!C->body_empty() && !isa<ReturnStmt>(*C->body_rbegin())) {
 2779   if (isa<LabelDecl>(*DS->decl_begin()))
 2840     HasTemporaries = isa<ExprWithCleanups>(Init);
 2945     if (!isa<CompoundStmt>(Else))
 2968     if (!isa<CompoundStmt>(Then))
 3043   assert(isa<ReturnStmt>(S) || isa<CoreturnStmt>(S));
 3043   assert(isa<ReturnStmt>(S) || isa<CoreturnStmt>(S));
 3358     if (!isa<CompoundStmt>(F->getBody()))
 3698     if (!isa<CompoundStmt>(W->getBody()))
 3897     if (!isa<CompoundStmt>(D->getBody()))
 4053   if (!isa<CompoundStmt>(Terminator->getBody()))
 4145     while (isa<CaseStmt>(Sub)) {
 4700   if (isa<LambdaExpr>(E)) {
 4868       if (!isa<CompoundStmt>(S))
 5047         if (!L || !isa<CaseStmt>(L))
 5440       if (isa<CXXOperatorCallExpr>(S))
 5445     } else if (isa<CXXOperatorCallExpr>(S)) {
 5447     } else if (isa<CXXBindTemporaryExpr>(S)) {
 5463     if (isa<Expr>(S))
 5601     } else if (isa<DefaultStmt>(Label))
 5824           if (isa<CXXThrowExpr>(StmtElm->getStmt()))
 5887   if (isa<ObjCForCollectionStmt>(Cond))
tools/clang/lib/Analysis/CallGraph.cpp
  200   if (F && !isa<ObjCMethodDecl>(F))
tools/clang/lib/Analysis/ConstructionContext.cpp
  146     assert(isa<CallExpr>(E) || isa<CXXConstructExpr>(E) ||
  146     assert(isa<CallExpr>(E) || isa<CXXConstructExpr>(E) ||
  147            isa<ObjCMessageExpr>(E));
tools/clang/lib/Analysis/Consumed.cpp
  614   if (isa<CXXOperatorCallExpr>(Call) && isa<CXXMethodDecl>(FunD))
  614   if (isa<CXXOperatorCallExpr>(Call) && isa<CXXMethodDecl>(FunD))
  840     if (isa<VarDecl>(DI))
 1093     if (isa<ParmVarDecl>(DM.first)) {
 1239     if (!PInfo.isValid() && isa<BinaryOperator>(Cond))
tools/clang/lib/Analysis/LiveVariables.cpp
  265   if (isa<Expr>(S)) {
  489     if (isa<VarDecl>(D) || isa<BindingDecl>(D)) {
  489     if (isa<VarDecl>(D) || isa<BindingDecl>(D)) {
tools/clang/lib/Analysis/PathDiagnostic.cpp
  923   if (isa<BlockDecl>(D)) {
  948     } else if (isa<CXXDestructorDecl>(MD)) {
 1210     else if (isa<BlockDecl>(D))
tools/clang/lib/Analysis/ProgramPoint.cpp
  150     if (isa<SwitchStmt>(T)) {
  169           assert(isa<DefaultStmt>(Label));
  175     } else if (isa<IndirectGotoStmt>(T)) {
tools/clang/lib/Analysis/ReachableCode.cpp
   37   return isa<EnumConstantDecl>(DR->getDecl());
   42   return isa<IntegerLiteral>(Ex) || isa<StringLiteral>(Ex) ||
   42   return isa<IntegerLiteral>(Ex) || isa<StringLiteral>(Ex) ||
   43          isa<CXXBoolLiteralExpr>(Ex) || isa<ObjCBoolLiteralExpr>(Ex) ||
   43          isa<CXXBoolLiteralExpr>(Ex) || isa<ObjCBoolLiteralExpr>(Ex) ||
   44          isa<CharacterLiteral>(Ex) ||
  296     if (isa<SwitchStmt>(Term))
  299     if (isa<BinaryOperator>(Term)) {
  616   if (isa<BreakStmt>(S)) {
tools/clang/lib/Analysis/RetainSummaryManager.cpp
  755       } else if (isOSObjectThisCast(FName) && isa<CXXMethodDecl>(FD) &&
tools/clang/lib/Analysis/ThreadSafety.cpp
 1407   if (isa<CXXNullPtrLiteralExpr>(E) || isa<GNUNullExpr>(E)) {
 1407   if (isa<CXXNullPtrLiteralExpr>(E) || isa<GNUNullExpr>(E)) {
 1502   if (!Cond || isa<ConditionalOperator>(PredBlock->getTerminatorStmt()))
 1921   bool Dtor = isa<CXXDestructorDecl>(D);
 2080                          /*SkipFirstParam*/ !isa<CXXMethodDecl>(FD));
 2153       } else if (isa<CallExpr>(E) && E->isRValue()) {
 2242     if (isa<CXXThrowExpr>(S->getStmt()))
 2275   if (isa<CXXConstructorDecl>(D))
 2277   if (isa<CXXDestructorDecl>(D))
 2338       } else if (isa<ExclusiveTrylockFunctionAttr>(Attr)) {
 2341       } else if (isa<SharedTrylockFunctionAttr>(Attr)) {
 2344       } else if (isa<TryAcquireCapabilityAttr>(Attr)) {
 2406         if (isa<ContinueStmt>(Terminator) || isa<BreakStmt>(Terminator)) {
 2406         if (isa<ContinueStmt>(Terminator) || isa<BreakStmt>(Terminator)) {
 2445         bool IsLoop = Terminator && isa<ContinueStmt>(Terminator);
tools/clang/lib/Analysis/ThreadSafetyCommon.cpp
  122   } else if (D && isa<CXXDestructorDecl>(D)) {
  184   if (!E || isa<til::Literal>(E))
  283       if (isa<FunctionDecl>(D)
  293     VD = isa<FunctionDecl>(D)
  827   auto Parms = isa<ObjCMethodDecl>(D) ? cast<ObjCMethodDecl>(D)->parameters()
tools/clang/lib/Analysis/UninitializedValues.cpp
  676             if (isa<SwitchStmt>(Term)) {
  678               if (!Label || !isa<SwitchCase>(Label))
tools/clang/lib/CodeGen/Address.h
   97     return llvm::isa<llvm::Constant>(addr.getPointer());
tools/clang/lib/CodeGen/CGAtomic.cpp
 1214   if (isa<llvm::ConstantInt>(Order)) {
 1581     if (isa<llvm::IntegerType>(Value->getType()))
 1587       if (isa<llvm::PointerType>(Value->getType()))
tools/clang/lib/CodeGen/CGBlocks.cpp
  416   if (isa<ParmVarDecl>(var))
  552     assert(CGF && CGF->CurFuncDecl && isa<CXXMethodDecl>(CGF->CurFuncDecl) &&
 1278     if (!isa<ParmVarDecl>(E->getCalleeDecl()))
 2955     assert((isa<llvm::Function>(C->stripPointerCasts()) ||
 2956             isa<llvm::GlobalVariable>(C->stripPointerCasts())) &&
tools/clang/lib/CodeGen/CGBuiltin.cpp
 1258         if (!isa<Constant>(ArgVal))
 2904     if (isa<llvm::ConstantInt>(Order)) {
 2987     if (isa<llvm::ConstantInt>(Order)) {
 3045     if (isa<llvm::ConstantInt>(Order)) {
 9469     AllConstants &= isa<Constant>(Ops[i]);
tools/clang/lib/CodeGen/CGCXX.cpp
  225   if (isa<CXXDestructorDecl>(MD)) {
tools/clang/lib/CodeGen/CGCall.cpp
  279   assert(!isa<CXXConstructorDecl>(MD) && "wrong method for constructors!");
  280   assert(!isa<CXXDestructorDecl>(MD) && "wrong method for destructors!");
  440   assert(isa<FunctionType>(FTy));
  516   if (isa<CXXConstructorDecl>(GD.getDecl()) ||
  517       isa<CXXDestructorDecl>(GD.getDecl()))
  972   if (isa<ComplexExpansion>(Exp.get()))
  974   assert(isa<NoExpansion>(Exp.get()));
  996     assert(isa<NoExpansion>(Exp.get()));
 1045   } else if (isa<ComplexExpansion>(Exp.get())) {
 1050     assert(isa<NoExpansion>(Exp.get()));
 1092   } else if (isa<ComplexExpansion>(Exp.get())) {
 1097     assert(isa<NoExpansion>(Exp.get()));
 1169   if (isa<llvm::PointerType>(Val->getType())) {
 1171     if (isa<llvm::PointerType>(Ty))
 1179   if (isa<llvm::PointerType>(DestIntTy))
 1203   if (isa<llvm::PointerType>(Ty))
 1236   if ((isa<llvm::IntegerType>(Ty) || isa<llvm::PointerType>(Ty)) &&
 1236   if ((isa<llvm::IntegerType>(Ty) || isa<llvm::PointerType>(Ty)) &&
 1237       (isa<llvm::IntegerType>(SrcTy) || isa<llvm::PointerType>(SrcTy))) {
 1237       (isa<llvm::IntegerType>(SrcTy) || isa<llvm::PointerType>(SrcTy))) {
 1310   if ((isa<llvm::IntegerType>(SrcTy) || isa<llvm::PointerType>(SrcTy)) &&
 1310   if ((isa<llvm::IntegerType>(SrcTy) || isa<llvm::PointerType>(SrcTy)) &&
 1311       (isa<llvm::IntegerType>(DstTy) || isa<llvm::PointerType>(DstTy))) {
 1311       (isa<llvm::IntegerType>(DstTy) || isa<llvm::PointerType>(DstTy))) {
 2176   if (isa<llvm::IntegerType>(varType))
 2291       isa<ParmVarDecl>(Arg) && cast<ParmVarDecl>(Arg)->isKNRPromoted();
 2352       if (!isa<llvm::StructType>(ArgI.getCoerceToType()) &&
 2637       if (isa<llvm::BitCastInst>(prev)) {
 2641       assert(isa<llvm::CallInst>(prev));
 2764           if (isa<llvm::BitCastInst>(&*II) && (CastAddr == &*II))
 2903       else if (isa<BlockDecl>(CurCodeDecl))
 3108   return isa<llvm::ConstantPointerNull>(addr);
 3461     assert((!isa<ObjCIndirectCopyRestoreExpr>(*Arg) ||
 3464             (isa<ObjCMethodDecl>(AC.getDecl()) &&
 3519     if ((disabledDebugInfo = isa<CXXDefaultArgExpr>(E) && CGF.getDebugInfo()))
 3615   if (HasAggregateEvalKind && isa<ImplicitCastExpr>(E) &&
 4033       if (!isa<llvm::StructType>(ArgInfo.getCoerceToType()) &&
 4476       bool requiresExtract = isa<llvm::StructType>(CI->getType());
tools/clang/lib/CodeGen/CGClass.cpp
  111   assert(isa<CXXMethodDecl>(CurFuncDecl));
  844   bool IsTryBody = (Body && isa<CXXTryStmt>(Body));
 1459   bool isTryBody = (Body && isa<CXXTryStmt>(Body));
 1536   assert(isa<CompoundStmt>(RootS) &&
 2249     if (I < Params.size() && isa<ImplicitParamDecl>(Params[I])) {
 2628       if (isa<CXXDestructorDecl>(MD) && MD->isImplicit())
tools/clang/lib/CodeGen/CGCleanup.cpp
  205   assert(isa<EHCleanupScope>(*begin()));
  646   assert(isa<EHCleanupScope>(*EHStack.begin()) && "top not a cleanup!");
tools/clang/lib/CodeGen/CGCoroutine.cpp
  295   assert(isa<CallExpr>(RE) && "unexpected suspend expression type");
tools/clang/lib/CodeGen/CGDebugInfo.cpp
  191   } else if (isa<llvm::DILexicalBlock>(Scope) ||
  192              isa<llvm::DISubprogram>(Scope)) {
  296   } else if (isa<ObjCProtocolDecl>(DC)) {
  314   if (isa<ClassTemplateSpecializationDecl>(RD)) {
  891     return isa<CXXRecordDecl>(TD) || isa<EnumDecl>(TD);
  891     return isa<CXXRecordDecl>(TD) || isa<EnumDecl>(TD);
 1203   if (isa<FunctionNoProtoType>(Ty))
 1400   if (isa<InjectedClassNameType>(Ty))
 1431             isa<VarTemplateSpecializationDecl>(V))
 1434         if (isa<VarTemplatePartialSpecializationDecl>(V))
 1489   if (isa<ClassTemplateSpecializationDecl>(RD)) {
 1533   if (isa<FunctionDecl>(RD->getDeclContext()))
 1541       isa<CXXConstructorDecl>(Method) || isa<CXXDestructorDecl>(Method);
 1541       isa<CXXConstructorDecl>(Method) || isa<CXXDestructorDecl>(Method);
 1581       if (!isa<CXXDestructorDecl>(Method))
 2966   if (isa<RecordDecl>(D) && !cast<RecordDecl>(D)->getDefinition())
 3289   if (VD->getDeclContext() && !isa<FunctionDecl>(VD->getDeclContext()) &&
 3290       !isa<ObjCMethodDecl>(VD->getDeclContext()))
 3295   if (isa<VarTemplateSpecializationDecl>(VD)) {
 3572   } else if (isa<VarDecl>(D) &&
 3619   if (HasDecl && isa<FunctionDecl>(D))
 3673   if (isa<FunctionDecl>(D)) {
 3915       VD->isImplicit() || (isa<Decl>(VD->getDeclContext()) &&
 3995         if (FieldName.empty() && !isa<RecordType>(Field->getType()))
 4455     assert(isa<EnumType>(ED->getTypeForDecl()) && "Enum without EnumType?");
 4462       if (isa<RecordDecl>(ED->getDeclContext()))
 4479   if (isa<FunctionDecl>(VD->getDeclContext()))
 4521   if (isa<VarTemplateSpecializationDecl>(VD))
tools/clang/lib/CodeGen/CGDecl.cpp
  280   if (isa<BlockDecl>(DC) || isa<CapturedDecl>(DC)) {
  280   if (isa<BlockDecl>(DC) || isa<CapturedDecl>(DC)) {
  297     assert(isa<ObjCMethodDecl>(DC) && "unexpected parent code decl");
  658   if (!isa<VarDecl>(decl)) return false;
  801     if (!D || !isa<VarDecl>(D) || !cast<VarDecl>(D)->isARCPseudoStrong()) {
  862   if (isa<llvm::ConstantAggregateZero>(Init) ||
  863       isa<llvm::ConstantPointerNull>(Init) ||
  864       isa<llvm::UndefValue>(Init))
  866   if (isa<llvm::ConstantInt>(Init) || isa<llvm::ConstantFP>(Init) ||
  866   if (isa<llvm::ConstantInt>(Init) || isa<llvm::ConstantFP>(Init) ||
  867       isa<llvm::ConstantVector>(Init) || isa<llvm::BlockAddress>(Init) ||
  867       isa<llvm::ConstantVector>(Init) || isa<llvm::BlockAddress>(Init) ||
  868       isa<llvm::ConstantExpr>(Init))
  872   if (isa<llvm::ConstantArray>(Init) || isa<llvm::ConstantStruct>(Init)) {
  872   if (isa<llvm::ConstantArray>(Init) || isa<llvm::ConstantStruct>(Init)) {
  900   assert(!Init->isNullValue() && !isa<llvm::UndefValue>(Init) &&
  903   if (isa<llvm::ConstantInt>(Init) || isa<llvm::ConstantFP>(Init) ||
  903   if (isa<llvm::ConstantInt>(Init) || isa<llvm::ConstantFP>(Init) ||
  904       isa<llvm::ConstantVector>(Init) || isa<llvm::BlockAddress>(Init) ||
  904       isa<llvm::ConstantVector>(Init) || isa<llvm::BlockAddress>(Init) ||
  905       isa<llvm::ConstantExpr>(Init)) {
  916       if (!Elt->isNullValue() && !isa<llvm::UndefValue>(Elt))
  924   assert((isa<llvm::ConstantStruct>(Init) || isa<llvm::ConstantArray>(Init)) &&
  924   assert((isa<llvm::ConstantStruct>(Init) || isa<llvm::ConstantArray>(Init)) &&
  931     if (!Elt->isNullValue() && !isa<llvm::UndefValue>(Elt))
  944   if (isa<llvm::ConstantAggregateZero>(Init)) return true;
 1089     } else if (isa<BlockDecl>(DC)) {
 1091     } else if (isa<CapturedDecl>(DC)) {
 1165         constant->isNullValue() || isa<llvm::UndefValue>(constant);
 1178     if (!isa<llvm::UndefValue>(Pattern)) {
 1237   assert(!isa<llvm::UndefValue>(constant));
 1243   if (isa<llvm::UndefValue>(constant))
 1255   if (isa<llvm::UndefValue>(constant))
 1894       if (isa<VarDecl>(D))
 2201     if (!isa<VariableArrayType>(arrayType))
 2348   assert((isa<ParmVarDecl>(D) || isa<ImplicitParamDecl>(D)) &&
 2348   assert((isa<ParmVarDecl>(D) || isa<ImplicitParamDecl>(D)) &&
tools/clang/lib/CodeGen/CGException.cpp
 1168     doImplicitRethrow = isa<CXXDestructorDecl>(CurCodeDecl) ||
 1169                         isa<CXXConstructorDecl>(CurCodeDecl);
 1798     if (isa<ImplicitParamDecl>(VD)) {
 1807     assert((isa<ImplicitParamDecl>(VD) || VD->isLocalVarDeclOrParm()) &&
tools/clang/lib/CodeGen/CGExpr.cpp
  127   assert(isa<llvm::AllocaInst>(Var.getPointer()));
  291               VD && isa<VarDecl>(VD) && VD->hasAttr<ObjCPreciseLifetimeAttr>();
  422   assert((!M->getExtendingDecl() || !isa<VarDecl>(M->getExtendingDecl()) ||
  865   } else if (!isa<IncompleteArrayType>(AT))
  993   if (isa<llvm::IntegerType>(InVal.first->getType())) {
 1066         if (isa<ExplicitCastExpr>(CE)) {
 1186   while (!isa<CXXThisExpr>(Base)) {
 1188     if (isa<CXXDynamicCastExpr>(Base))
 1209   if (SanOpts.has(SanitizerKind::ArrayBounds) && isa<ArraySubscriptExpr>(E))
 1213   if (!isa<DeclRefExpr>(E) && !LV.isBitField() && LV.isSimple()) {
 1219       if (IsBaseCXXThis || isa<DeclRefExpr>(ME->getBase()))
 1438   if (isa<ParmVarDecl>(value)) {
 1442   } else if (isa<EnumConstantDecl>(value)) {
 1480   if (isa<VarDecl>(value)) {
 1484     assert(isa<EnumConstantDecl>(value));
 2193   if (isa<ObjCIvarRefExpr>(E)) {
 2585       assert(isa<BlockDecl>(CurCodeDecl));
 2594   assert((ND->isUsed(false) || !isa<VarDecl>(ND) || E->isNonOdrUse() ||
 3332     assert(isa<llvm::ArrayType>(Addr.getElementType()) &&
 3414     assert(isa<llvm::ConstantInt>(idx) &&
 3481       !isa<ExtVectorElementExpr>(E->getBase())) {
 3493   if (isa<ExtVectorElementExpr>(E->getBase())) {
 3627         assert(isa<llvm::ArrayType>(Addr.getElementType()) &&
 3875     if (IsBaseCXXThis || isa<DeclRefExpr>(BaseExpr))
 4790       (!TargetDecl || !isa<FunctionDecl>(TargetDecl))) {
 4843       (!TargetDecl || !isa<FunctionDecl>(TargetDecl))) {
 4933   if (isa<FunctionNoProtoType>(FnType) || Chain) {
 4999   if (Accuracy == 0.0 || !isa<llvm::Instruction>(Val))
tools/clang/lib/CodeGen/CGExprAgg.cpp
  238   if (isa<CXXRecordDecl>(Record) &&
  451   if (isa<ImplicitValueInitExpr>(E))
  686     assert(isa<CXXDynamicCastExpr>(E) && "CK_Dynamic without a dynamic_cast?");
 1371   if ((isa<ImplicitValueInitExpr>(E) || isa<CXXScalarValueInitExpr>(E)) &&
 1371   if ((isa<ImplicitValueInitExpr>(E) || isa<CXXScalarValueInitExpr>(E)) &&
 1396   } else if (isa<ImplicitValueInitExpr>(E) || isa<CXXScalarValueInitExpr>(E)) {
 1396   } else if (isa<ImplicitValueInitExpr>(E) || isa<CXXScalarValueInitExpr>(E)) {
 1398   } else if (isa<NoInitExpr>(E)) {
tools/clang/lib/CodeGen/CGExprCXX.cpp
   40   assert(CE == nullptr || isa<CXXMemberCallExpr>(CE) ||
   41          isa<CXXOperatorCallExpr>(CE));
   67     unsigned ArgsToSkip = isa<CXXOperatorCallExpr>(CE) ? 1 : 0;
  183   if (isa<BinaryOperator>(callee))
  210   assert(isa<CXXMemberCallExpr>(CE) || isa<CXXOperatorCallExpr>(CE));
  210   assert(isa<CXXMemberCallExpr>(CE) || isa<CXXOperatorCallExpr>(CE));
  285     if (isa<CXXDestructorDecl>(MD)) return RValue::get(nullptr);
  290         LValue RHS = isa<CXXOperatorCallExpr>(CE)
  328     if (IsImplicitObjectCXXThis || isa<DeclRefExpr>(IOA))
  642   assert(isa<CXXConstructExpr>(Exp) &&
  701   assert(isa<llvm::IntegerType>(numElements->getType()));
 1164   if (isa<ImplicitValueInitExpr>(Init)) {
 1198             if (!isa<ImplicitValueInitExpr>(ILE->getInit(i)))
 2093   if (isa<ArraySubscriptExpr>(E))
tools/clang/lib/CodeGen/CGExprConstant.cpp
  245           isa<llvm::UndefValue>(Elems[*FirstElemToUpdate])) {
  360   if (isa<llvm::ConstantAggregateZero>(C)) {
  369   if (isa<llvm::UndefValue>(C)) {
  626     if (!isa<NoInitExpr>(Filler)) {
  643     } else if (!Init || isa<NoInitExpr>(Init)) {
  692     if (Init && isa<NoInitExpr>(Init))
 1542                    isa<llvm::ConstantInt>(IndexValues[j]) &&
 1813   assert(isa<llvm::IntegerType>(destTy) || isa<llvm::PointerType>(destTy));
 1813   assert(isa<llvm::IntegerType>(destTy) || isa<llvm::PointerType>(destTy));
 1835   if (isa<llvm::PointerType>(destTy))
tools/clang/lib/CodeGen/CGExprScalar.cpp
  174   assert((isa<UnaryOperator>(Op.E) || isa<BinaryOperator>(Op.E)) &&
  174   assert((isa<UnaryOperator>(Op.E) || isa<BinaryOperator>(Op.E)) &&
  280         if (isa<ParmVarDecl>(VD) && !CGF.SanOpts.has(SanitizerKind::Alignment))
  615     if (isa<MemberPointerType>(E->getType())) // never sugared
  861   assert((SrcType->isIntegerType() || isa<llvm::PointerType>(Src->getType())) &&
  864   if (isa<llvm::IntegerType>(Src->getType()))
  867   assert(isa<llvm::PointerType>(Src->getType()));
  875   if (!isa<llvm::IntegerType>(DstTy))
  952   assert(isa<llvm::IntegerType>(SrcTy) && isa<llvm::IntegerType>(DstTy) &&
  952   assert(isa<llvm::IntegerType>(SrcTy) && isa<llvm::IntegerType>(DstTy) &&
 1036   assert(isa<llvm::IntegerType>(SrcTy) && isa<llvm::IntegerType>(DstTy) &&
 1036   assert(isa<llvm::IntegerType>(SrcTy) && isa<llvm::IntegerType>(DstTy) &&
 1261     if (isa<llvm::PointerType>(SrcTy))
 1275   if (isa<llvm::PointerType>(SrcTy)) {
 1277     assert(isa<llvm::IntegerType>(DstTy) && "not ptr->int?");
 1294   if (isa<llvm::VectorType>(SrcTy) || isa<llvm::VectorType>(DstTy)) {
 1294   if (isa<llvm::VectorType>(SrcTy) || isa<llvm::VectorType>(DstTy)) {
 1360   if (isa<llvm::IntegerType>(SrcTy)) {
 1365     if (isa<llvm::IntegerType>(DstTy))
 1371   } else if (isa<llvm::IntegerType>(DstTy)) {
 1680             isa<llvm::IntegerType>(SrcEltTy)) && "Unknown boolean conversion");
 1693   if (isa<llvm::IntegerType>(SrcEltTy)) {
 1695     if (isa<llvm::IntegerType>(DstEltTy))
 1701   } else if (isa<llvm::IntegerType>(DstEltTy)) {
 1817       if (isa<ExtVectorElementExpr>(IE)) {
 1865     if (isa<ExtVectorElementExpr>(IE)) {
 1916     VIsUndefShuffle = isa<llvm::UndefValue>(Init);
 1939   if (isa<CXXThisExpr>(E->IgnoreParens())) {
 2031       if (CI->getMetadata("heapallocsite") && isa<ExplicitCastExpr>(CE))
 3023           (isa<llvm::VectorType>(ValTy) &&
 3607            isa<llvm::IntegerType>(Ops.LHS->getType())) {
 3670            isa<llvm::IntegerType>(Ops.LHS->getType())) {
 3831           !isa<llvm::ConstantPointerNull>(LHS) &&
 3832           !isa<llvm::ConstantPointerNull>(RHS)) {
 4392   unsigned NumElementsSrc = isa<llvm::VectorType>(SrcTy) ?
 4394   unsigned NumElementsDst = isa<llvm::VectorType>(DstTy) ?
 4566   if (isa<llvm::Constant>(GEPVal)) {
 4669       !isa<llvm::Constant>(GEPVal) && PtrTy->getPointerAddressSpace() == 0;
 4682   assert((!isa<llvm::Constant>(EvaluatedGEP.TotalOffset) ||
tools/clang/lib/CodeGen/CGObjC.cpp
  313     if (isa<MemberExpr>(receiver) || isa<ObjCIvarRefExpr>(receiver))
  313     if (isa<MemberExpr>(receiver) || isa<ObjCIvarRefExpr>(receiver))
  396           if (isa<llvm::ConstantPointerNull>(arg))
  603     bool isCategoryImpl = isa<ObjCCategoryImplDecl>(OMD->getDeclContext());
  653     bool isCategory = isa<ObjCCategoryImplDecl>(impl);
  718   assert(isa<CompoundStmt>(OMD->getBody()));
  986   assert(isa<ExprWithCleanups>(getter));
 1300   assert(isa<ExprWithCleanups>(setter));
 1987   if (isa<llvm::ConstantPointerNull>(value))
 2085   if (isa<llvm::ConstantPointerNull>(value))
 2145   if (!mandatory && isa<llvm::Instruction>(result)) {
 2233   if (isa<llvm::ConstantPointerNull>(value)) return;
 2371   if (isa<llvm::ConstantPointerNull>(value)) return value;
 2423   if (isa<llvm::ConstantPointerNull>(value) &&
 2633   if (isa<llvm::ConstantPointerNull>(value)) return;
 2746       isa<BinaryOperator>(e) &&
 2857   if (isa<BlockExpr>(e))
 3096   assert(!isa<ExprWithCleanups>(e));
 3115   } else if (isa<CallExpr>(e) ||
 3116              (isa<ObjCMessageExpr>(e) &&
tools/clang/lib/CodeGen/CGObjCGNU.cpp
  761       if (isa<ObjCMethodDecl>(CGF.CurCodeDecl)) {
 3284   bool isProtocol = isa<ObjCProtocolDecl>(OCD);
tools/clang/lib/CodeGen/CGObjCMac.cpp
 2977     if (isa<llvm::ConstantInt>(Result))
 4150       if (isa<ObjCAtTryStmt>(S)) {
 4282       if (!isa<llvm::CallInst>(I) && !isa<llvm::InvokeInst>(I))
 4282       if (!isa<llvm::CallInst>(I) && !isa<llvm::InvokeInst>(I))
 4284       if (isa<llvm::IntrinsicInst>(I))
 4318     if (isa<llvm::AllocaInst>(*I) && !AllocasToIgnore.count(&*I))
 4443   bool isTry = isa<ObjCAtTryStmt>(S);
 4805   if (!isa<llvm::PointerType>(SrcTy)) {
 4826   if (!isa<llvm::PointerType>(SrcTy)) {
 4852   if (!isa<llvm::PointerType>(SrcTy)) {
 4871   if (!isa<llvm::PointerType>(SrcTy)) {
 7418     assert(!isa<llvm::GlobalVariable>(ClassGV) ||
 7517   if (!isa<llvm::PointerType>(SrcTy)) {
 7537   if (!isa<llvm::PointerType>(SrcTy)) {
 7583   if (!isa<llvm::PointerType>(SrcTy)) {
 7604   if (!isa<llvm::PointerType>(SrcTy)) {
tools/clang/lib/CodeGen/CGOpenCLRuntime.cpp
  132   while(!isa<BlockExpr>(E) && E != Prev) {
  149   assert(isa<llvm::Function>(InvokeF) && "Invalid invoke function");
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
  999   bool AsArraySection = isa<OMPArraySectionExpr>(ClausesData[N].Ref);
 1709           !isa<llvm::Instruction>(LVal.getPointer()) ||
 4780     if (Init && (!ForDup || (isa<CXXConstructExpr>(Init) &&
 4791           assert(isa<ImplicitParamDecl>(OriginalVD) &&
 4792                  isa<CapturedDecl>(OriginalVD->getDeclContext()) &&
 4795                  isa<TranslationUnitDecl>(
 4810           if (!isa<CXXConstructExpr>(Init) || CGF.isTrivialInitializer(Init)) {
 4858     InitRequired = InitRequired || (Init && isa<CXXConstructExpr>(Init) &&
 6559       if (isa<AsmStmt>(S) || isa<NullStmt>(S) || isa<OMPFlushDirective>(S) ||
 6559       if (isa<AsmStmt>(S) || isa<NullStmt>(S) || isa<OMPFlushDirective>(S) ||
 6559       if (isa<AsmStmt>(S) || isa<NullStmt>(S) || isa<OMPFlushDirective>(S) ||
 6560           isa<OMPBarrierDirective>(S) || isa<OMPTaskyieldDirective>(S))
 6560           isa<OMPBarrierDirective>(S) || isa<OMPTaskyieldDirective>(S))
 6565               if (isa<EmptyDecl>(D) || isa<DeclContext>(D) ||
 6565               if (isa<EmptyDecl>(D) || isa<DeclContext>(D) ||
 6566                   isa<TypeDecl>(D) || isa<PragmaCommentDecl>(D) ||
 6566                   isa<TypeDecl>(D) || isa<PragmaCommentDecl>(D) ||
 6567                   isa<PragmaDetectMismatchDecl>(D) || isa<UsingDecl>(D) ||
 6567                   isa<PragmaDetectMismatchDecl>(D) || isa<UsingDecl>(D) ||
 6568                   isa<UsingDirectiveDecl>(D) ||
 6569                   isa<OMPDeclareReductionDecl>(D) ||
 6570                   isa<OMPThreadPrivateDecl>(D) || isa<OMPAllocateDecl>(D))
 6570                   isa<OMPThreadPrivateDecl>(D) || isa<OMPAllocateDecl>(D))
 7505     if (isa<MemberExpr>(AssocExpr)) {
 7509     } else if ((AE && isa<CXXThisExpr>(AE->getBase()->IgnoreParenImpCasts())) ||
 7511                 isa<CXXThisExpr>(OASE->getBase()->IgnoreParenImpCasts()))) {
 7605                 isa<MemberExpr>(Next->getAssociatedExpression()) ||
 7606                 isa<ArraySubscriptExpr>(Next->getAssociatedExpression()) ||
 7607                 isa<OMPArraySectionExpr>(Next->getAssociatedExpression())) &&
 7975         auto It = Info.find(isa<MemberExpr>(IE) ? nullptr : VD);
 7995         if (isa<MemberExpr>(IE)) {
 8572       if (!isa<llvm::Constant>(S)) {
 9444       isa<OMPExecutableDirective>(S) &&
 9750   if (isa<FunctionDecl>(GD.getDecl()) ||
 9751       isa<OMPDeclareReductionDecl>(GD.getDecl()))
10080   assert((isa<OMPTargetEnterDataDirective>(D) ||
10081           isa<OMPTargetExitDataDirective>(D) ||
10082           isa<OMPTargetUpdateDirective>(D)) &&
10675   if (isa<CXXMethodDecl>(FD))
10689         if (isa<CXXThisExpr>(E)) {
10704         if (isa<CXXThisExpr>(E)) {
10727         if (isa<CXXThisExpr>(E)) {
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
  322     if (!isa<VarDecl>(VD) ||
  371       if (!isa<ParmVarDecl>(VarD) && VarD->hasInit()) {
  419         if (isa<OMPCapturedExprDecl>(VD))
  480         if (isa<OMPCapturedExprDecl>(VD))
  493           if (E->isInitCapture(&C) || isa<OMPCapturedExprDecl>(VD))
  506         if (isa<OMPCapturedExprDecl>(VD) || VD->isInitCapture())
  534     if (isa<OMPCapturedExprDecl>(VD))
 1840   if (!isa<llvm::Function>(Addr))
 4465   if (isa<ImplicitParamDecl>(NativeParam))
tools/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp
  740   if (isa<CXXRecordDecl>(D) && !D->isUnion() && !D->hasAttr<FinalAttr>()) {
tools/clang/lib/CodeGen/CGStmt.cpp
   62       assert(!isa<DeclStmt>(*S) && "Unexpected DeclStmt!");
  408       while (!isa<Expr>(ExprResult)) {
 1277       isa<BreakStmt>(S.getSubStmt())) {
 1401   if (!Case && isa<BreakStmt>(S))
 1654       if (isa<DefaultStmt>(Case))
 2126   if (isa<MSAsmStmt>(&S)) {
 2174         if (isa<llvm::PointerType>(Arg->getType()))
 2177         if (isa<llvm::IntegerType>(OutputTy))
 2179         else if (isa<llvm::PointerType>(OutputTy))
 2274   llvm::InlineAsm::AsmDialect AsmDialect = isa<MSAsmStmt>(&S) ?
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
   51            (CGF.CurCodeDecl && isa<BlockDecl>(CGF.CurCodeDecl));
  153         assert(isa<CXXForRangeStmt>(Body) &&
  183            (CGF.CurCodeDecl && isa<BlockDecl>(CGF.CurCodeDecl) &&
  256           (CurCodeDecl && isa<BlockDecl>(CurCodeDecl));
  823                 if (!isa<CXXConstructExpr>(Init) ||
 1157     bool isaOMPArraySectionExpr = isa<OMPArraySectionExpr>(IRef);
 1167                isa<ArraySubscriptExpr>(IRef)) {
 1379       assert(isa<CXXForRangeStmt>(Body) &&
 3758       !X.isSimple() || (!isa<llvm::ConstantInt>(Update.getScalarVal()) &&
 3869   assert(isa<BinaryOperator>(UE->IgnoreImpCasts()) &&
 3937     assert(isa<BinaryOperator>(UE->IgnoreImpCasts()) &&
 4652       assert(isa<CXXThisExpr>(ME->getBase()) &&
 5189           if (isa<OMPCapturedExprDecl>(VD)) {
tools/clang/lib/CodeGen/CGVTables.cpp
   63            (isa<PointerType>(typeL) && isa<PointerType>(typeR)) ||
   63            (isa<PointerType>(typeL) && isa<PointerType>(typeR)) ||
   64            (isa<ReferenceType>(typeL) && isa<ReferenceType>(typeR))));
   64            (isa<ReferenceType>(typeL) && isa<ReferenceType>(typeR))));
  204         return isa<llvm::StoreInst>(I) &&
  221       if (isa<llvm::ReturnInst>(T)) {
  263     if (isa<CXXDestructorDecl>(MD))
  294   assert(isa<CXXMethodDecl>(CurGD.getDecl()) &&
  328   if (isa<CXXDestructorDecl>(MD))
  346   assert(isa<CXXDestructorDecl>(MD) || // ignore dtor return types
  605   if (isa<CXXDestructorDecl>(MD) && GD.getDtorType() == Dtor_Base)
 1029       if (isa<TranslationUnitDecl>(DC->getRedeclContext())) {
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  597       return isa<ReturnStmt>(*LastStmt);
  948   if (D && isa<CXXMethodDecl>(D) && cast<CXXMethodDecl>(D)->isInstance()) {
 1002       EmitTypeCheck(isa<CXXConstructorDecl>(MD) ? TCK_ConstructorCall
 1122   if (MD && (isa<CXXConstructorDecl>(MD) || isa<CXXDestructorDecl>(MD)))
 1122   if (MD && (isa<CXXConstructorDecl>(MD) || isa<CXXDestructorDecl>(MD)))
 1187   if (isa<CXXDestructorDecl>(FD))
 1189   else if (isa<CXXConstructorDecl>(FD))
 1195   else if (isa<CXXMethodDecl>(FD) &&
 1200   } else if (FD->isDefaulted() && isa<CXXMethodDecl>(FD) &&
 1259   if (isa<LabelStmt>(S))
 1264   if (isa<SwitchCase>(S) && !IgnoreCaseStmts)
 1268   if (isa<SwitchStmt>(S))
 1288   if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) || isa<DoStmt>(S) ||
 1288   if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) || isa<DoStmt>(S) ||
 1288   if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) || isa<DoStmt>(S) ||
 1289       isa<ForStmt>(S))
 1292   if (isa<BreakStmt>(S))
 1310   if (isa<IfStmt>(S) || isa<SwitchStmt>(S) || isa<WhileStmt>(S) ||
 1310   if (isa<IfStmt>(S) || isa<SwitchStmt>(S) || isa<WhileStmt>(S) ||
 1310   if (isa<IfStmt>(S) || isa<SwitchStmt>(S) || isa<WhileStmt>(S) ||
 1311       isa<DoStmt>(S) || isa<ForStmt>(S) || isa<CompoundStmt>(S) ||
 1311       isa<DoStmt>(S) || isa<ForStmt>(S) || isa<CompoundStmt>(S) ||
 1311       isa<DoStmt>(S) || isa<ForStmt>(S) || isa<CompoundStmt>(S) ||
 1312       isa<CXXForRangeStmt>(S) || isa<CXXTryStmt>(S) ||
 1312       isa<CXXForRangeStmt>(S) || isa<CXXTryStmt>(S) ||
 1313       isa<ObjCForCollectionStmt>(S) || isa<ObjCAtTryStmt>(S))
 1313       isa<ObjCForCollectionStmt>(S) || isa<ObjCAtTryStmt>(S))
 1316   if (isa<DeclStmt>(S))
 1728   if (isa<VariableArrayType>(arrayType)) {
 1742     } while (isa<VariableArrayType>(arrayType));
 1763     assert(isa<ConstantArrayType>(arrayType));
 2026   if (!isa<llvm::ZExtInst>(value)) return PeepholeProtection();
 2343   assert(Assumption && isa<llvm::CallInst>(Assumption) &&
tools/clang/lib/CodeGen/CodeGenFunction.h
  150     if (!isa<llvm::Instruction>(value)) return false;
  600     return CurrentFuncletPad && isa<llvm::CleanupPadInst>(CurrentFuncletPad);
 1165       if (isa<ConditionalOperator>(op))
tools/clang/lib/CodeGen/CodeGenModule.cpp
  792     if (GV->isDeclarationForLinker() && isa<llvm::GlobalVariable>(GV) &&
  847   if (isa<llvm::Function>(GV) && !CGOpts.NoPLT && RM == llvm::Reloc::Static)
 1197   if (isa<CXXConstructorDecl>(D) &&
 1461   return !MD->isStatic() && !MD->isVirtual() && !isa<CXXConstructorDecl>(MD) &&
 1462          !isa<CXXDestructorDecl>(MD);
 1608     if (F->getAlignment() < 2 && isa<CXXMethodDecl>(D))
 1648   if (CodeGenOpts.KeepStaticConsts && D && isa<VarDecl>(D)) {
 1778   if (isa<CXXMethodDecl>(FD) && !cast<CXXMethodDecl>(FD)->isStatic())
 1850   if (isa<CXXConstructorDecl>(FD) || isa<CXXDestructorDecl>(FD))
 1850   if (isa<CXXConstructorDecl>(FD) || isa<CXXDestructorDecl>(FD))
 2348       getContext().getTargetInfo().isTLSSupported() && isa<VarDecl>(Global) &&
 2399   if (isa<llvm::FunctionType>(DeclTy))
 2451       if (isa<FunctionDecl>(Global) && !Global->hasAttr<CUDAHostAttr>() &&
 2455       assert((isa<FunctionDecl>(Global) || isa<VarDecl>(Global)) &&
 2455       assert((isa<FunctionDecl>(Global) || isa<VarDecl>(Global)) &&
 2536   if (LangOpts.OpenMP && isa<FunctionDecl>(Global) && OpenMPRuntime &&
 2542   if (getLangOpts().CPlusPlus && isa<VarDecl>(Global) &&
 2637       if (isa<FunctionDecl>(VD))
 2711         if (isa<FieldDecl>(Member))
 2813       if (isa<CXXConstructorDecl>(Method) || isa<CXXDestructorDecl>(Method))
 2813       if (isa<CXXConstructorDecl>(Method) || isa<CXXDestructorDecl>(Method))
 3066   assert(isa<llvm::GlobalValue>(Resolver) &&
 3149     if ((isa<llvm::Function>(Entry) || isa<llvm::GlobalAlias>(Entry)) &&
 3149     if ((isa<llvm::Function>(Entry) || isa<llvm::GlobalAlias>(Entry)) &&
 3167   if (isa<llvm::FunctionType>(Ty)) {
 3215     if (D && isa<CXXDestructorDecl>(D) &&
 3246         if (isa<CXXRecordDecl>(FD->getLexicalDeclContext())) {
 3595   if (isa<CXXConstructorDecl>(D) || isa<CXXDestructorDecl>(D))
 3595   if (isa<CXXConstructorDecl>(D) || isa<CXXDestructorDecl>(D))
 3598   else if (isa<CXXMethodDecl>(D)) {
 3604   } else if (isa<FunctionDecl>(D)) {
 4230   if (!getLangOpts().CPlusPlus && isa<VarDecl>(D) &&
 4364   if (!isa<llvm::Function>(Old)) return;
 4460   if (isa<llvm::FunctionType>(DeclTy)) {
 5069         isa<CXXRecordDecl>(InitVD->getLexicalDeclContext())) {
 5274       if (isa<VarDecl>(I) || isa<CXXRecordDecl>(I))
 5274       if (isa<VarDecl>(I) || isa<CXXRecordDecl>(I))
 5466     assert(isa<TypeDecl>(D) && "Unsupported decl kind");
tools/clang/lib/CodeGen/CodeGenPGO.cpp
  779   if (isa<CXXDestructorDecl>(D) && GD.getDtorType() != Dtor_Base)
  926   if (isa<llvm::Constant>(ValuePtr))
tools/clang/lib/CodeGen/CodeGenTypes.cpp
  802     if (isa<IncompleteArrayType>(AT))
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
 1235     if (!isa<BinaryConditionalOperator>(E)) {
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
   79     if (isa<CXXDestructorDecl>(GD.getDecl())) {
   93     if (isa<CXXConstructorDecl>(GD.getDecl())) {
  462     return (isa<CXXConstructorDecl>(GD.getDecl()) || (
  463               isa<CXXDestructorDecl>(GD.getDecl()) &&
  499     return isa<CXXConstructorDecl>(GD.getDecl()) ||
  500            (isa<CXXDestructorDecl>(GD.getDecl()) &&
  842   if (isa<llvm::Constant>(src))
 1526   if ((isa<CXXConstructorDecl>(GD.getDecl()) ? GD.getCtorType() == Ctor_Base
 1556   assert(isa<CXXConstructorDecl>(MD) || isa<CXXDestructorDecl>(MD));
 1556   assert(isa<CXXConstructorDecl>(MD) || isa<CXXDestructorDecl>(MD));
 1666       isa<NamespaceDecl>(DC) && cast<NamespaceDecl>(DC)->getIdentifier() &&
 1975   if (!isa<CXXDestructorDecl>(CGF.CurGD.getDecl()))
 2745   if (isa<CXXConstructorDecl>(MD) && GD.getCtorType() == Ctor_Base)
 2749   if (isa<CXXDestructorDecl>(MD) && GD.getDtorType() == Dtor_Base)
 3230     if (isa<BuiltinType>(Ty)) {
 3235     assert(isa<ObjCInterfaceType>(Ty));
 3554   assert(isa<BuiltinType>(T) || isa<ObjCInterfaceType>(T));
 3554   assert(isa<BuiltinType>(T) || isa<ObjCInterfaceType>(T));
 3558   if (isa<BuiltinType>(T)) return;
 4101   if (isa<ReferenceType>(CatchType)) {
 4212   assert(isa<RecordType>(CatchType) && "unexpected catch type!");
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
   62     if (isa<CXXDestructorDecl>(GD.getDecl())) {
  229     if (MD->isVirtual() && !isa<CXXDestructorDecl>(MD)) {
 1043   return isa<CXXConstructorDecl>(GD.getDecl());
 1047   return isa<CXXDestructorDecl>(GD.getDecl()) &&
 1264   if (isa<CXXDestructorDecl>(GD.getDecl()) &&
 1367   if (isa<CXXDestructorDecl>(MD))
 1415   if (isa<CXXDestructorDecl>(MD) && GD.getDtorType() == Dtor_Base)
 1453   assert(isa<CXXConstructorDecl>(MD) || isa<CXXDestructorDecl>(MD));
 1453   assert(isa<CXXConstructorDecl>(MD) || isa<CXXDestructorDecl>(MD));
 1454   if (isa<CXXConstructorDecl>(MD) && MD->getParent()->getNumVBases()) {
 1525   if (isa<CXXConstructorDecl>(MD) && MD->getParent()->getNumVBases()) {
 1592   if (ForVirtualBase && isa<CXXConstructorDecl>(CGF.CurCodeDecl)) {
 1968   assert(!isa<CXXConstructorDecl>(MD) && !isa<CXXDestructorDecl>(MD) &&
 1968   assert(!isa<CXXConstructorDecl>(MD) && !isa<CXXDestructorDecl>(MD) &&
 3087   if (isa<llvm::Constant>(Src))
 3153   bool IsConstant = isa<llvm::Constant>(Src);
tools/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
   99       if (isa<CXXMethodDecl>(D))
  334     bool IsCOFF = isa<llvm::object::COFFObjectFile>(*OF);
tools/clang/lib/CodeGen/SwiftCallingConv.cpp
  261           (!isa<llvm::StructType>(type) && !isa<llvm::ArrayType>(type))) &&
  261           (!isa<llvm::StructType>(type) && !isa<llvm::ArrayType>(type))) &&
  815   if (isa<ComplexType>(type)) {
  820   if (isa<VectorType>(type)) {
tools/clang/lib/CodeGen/TargetInfo.cpp
  163     if (!isa<CXXRecordDecl>(RT->getDecl()) &&
  502   if (isa<CXXRecordDecl>(RT->getDecl()))
 3003   if (isa<llvm::VectorType>(IRType)) {
 3188     if ((isa<llvm::PointerType>(IRType) && Has64BitPointers) ||
 3200         (isa<llvm::PointerType>(IRType) && !Has64BitPointers)) {
 3201       unsigned BitWidth = isa<llvm::PointerType>(IRType) ? 32 :
 3326     if (Hi == NoClass && isa<llvm::IntegerType>(ResType)) {
 3471     if (Hi == NoClass && isa<llvm::IntegerType>(ResType)) {
 7925          (isa<FunctionDecl>(D) && D->hasAttr<CUDAGlobalAttr>()) ||
 7926          (isa<VarDecl>(D) &&
 7936   return isa<VarDecl>(D) && D->hasAttr<HIPPinnedShadowAttr>();
tools/clang/lib/CodeGen/VarBypassDetector.cpp
   60       ((isa<Expr>(S) && !isa<StmtExpr>(S)) ? origParentScope
   60       ((isa<Expr>(S) && !isa<StmtExpr>(S)) ? origParentScope
tools/clang/lib/Driver/Action.cpp
  328   assert(isa<PrecompileJobAction>((Action*)this) && "invalid action kind");
tools/clang/lib/Driver/Driver.cpp
 1881   if (!isa<OffloadAction>(A)) {
 1914   if (isa<CompileJobAction>(A) || isa<BackendJobAction>(A) ||
 1914   if (isa<CompileJobAction>(A) || isa<BackendJobAction>(A) ||
 1915       isa<AssembleJobAction>(A))
 2609           if (!isa<AssembleJobAction>(CudaDeviceActions[I]) ||
 2873       if (isa<CompileJobAction>(HostAction)) {
 2882           assert(isa<CompileJobAction>(A));
 3079     if (CanUseBundler && isa<InputAction>(HostAction) &&
 3654     if (isa<LipoJobAction>(A)) {
 3935       if (!PJ || !isa<PreprocessJobAction>(PJ)) {
 4176         AtTopLevel && (isa<DsymutilJobAction>(A) || isa<VerifyJobAction>(A));
 4176         AtTopLevel && (isa<DsymutilJobAction>(A) || isa<VerifyJobAction>(A));
 4275     if (isa<OffloadWrapperJobAction>(JA)) {
 4367   if (AtTopLevel && !isa<DsymutilJobAction>(JA) && !isa<VerifyJobAction>(JA)) {
 4367   if (AtTopLevel && !isa<DsymutilJobAction>(JA) && !isa<VerifyJobAction>(JA)) {
 4374     assert(AtTopLevel && isa<PreprocessJobAction>(JA));
 4385   if (AtTopLevel && !CCGenDiagnostics && isa<PreprocessJobAction>(JA))
 4431   if (isa<DsymutilJobAction>(JA) || isa<VerifyJobAction>(JA))
 4431   if (isa<DsymutilJobAction>(JA) || isa<VerifyJobAction>(JA))
 4872   if (!isa<PreprocessJobAction>(JA) && !isa<PrecompileJobAction>(JA) &&
 4872   if (!isa<PreprocessJobAction>(JA) && !isa<PrecompileJobAction>(JA) &&
 4873       !isa<CompileJobAction>(JA) && !isa<BackendJobAction>(JA))
 4873       !isa<CompileJobAction>(JA) && !isa<BackendJobAction>(JA))
tools/clang/lib/Driver/ToolChains/Clang.cpp
  831   if (isa<CompileJobAction>(A) || isa<BackendJobAction>(A))
  831   if (isa<CompileJobAction>(A) || isa<BackendJobAction>(A))
 1058     if ((isa<PrecompileJobAction>(JA) &&
 1114       if (!isa<PrecompileJobAction>(JA)) {
 3393   bool IsHeaderModulePrecompile = isa<HeaderModulePrecompileJobAction>(JA);
 3530   if (!isa<AssembleJobAction>(JA)) {
 3553   if (isa<AnalyzeJobAction>(JA)) {
 3556   } else if (isa<MigrateJobAction>(JA)) {
 3558   } else if (isa<PreprocessJobAction>(JA)) {
 3567   } else if (isa<AssembleJobAction>(JA)) {
 3574   } else if (isa<PrecompileJobAction>(JA)) {
 3583   } else if (isa<VerifyPCHJobAction>(JA)) {
 3586     assert((isa<CompileJobAction>(JA) || isa<BackendJobAction>(JA)) &&
 3586     assert((isa<CompileJobAction>(JA) || isa<BackendJobAction>(JA)) &&
 3653       (isa<BackendJobAction>(JA) || isa<AssembleJobAction>(JA))) {
 3653       (isa<BackendJobAction>(JA) || isa<AssembleJobAction>(JA))) {
 3799   if (isa<AnalyzeJobAction>(JA))
 3802   if (isa<AnalyzeJobAction>(JA) ||
 3803       (isa<PreprocessJobAction>(JA) && Args.hasArg(options::OPT__analyze)))
 4129                     (isa<AssembleJobAction>(JA) || isa<CompileJobAction>(JA) ||
 4129                     (isa<AssembleJobAction>(JA) || isa<CompileJobAction>(JA) ||
 4130                      isa<BackendJobAction>(JA));
 4512   if (!isa<PreprocessJobAction>(JA) || Output.getType() != types::TY_PP_Asm)
 5196     if (isa<PreprocessJobAction>(JA))
 5243       !isa<PreprocessJobAction>(JA)) {
 5276       isa<CompileJobAction>(JA))
 5544              isa<PrecompileJobAction>(JA)) {
 6280   assert(isa<OffloadBundlingJobAction>(JA) && "Expecting bundling job!");
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
 1278     if (A && isa<LinkJobAction>(A) && A->isDeviceOffloading(Action::OFK_HIP)) {
tools/clang/lib/Driver/ToolChains/Gnu.cpp
   81       if (isa<AssembleJobAction>(JA) &&
   86       if ((isa<AssembleJobAction>(JA) || isa<LinkJobAction>(JA)) &&
   86       if ((isa<AssembleJobAction>(JA) || isa<LinkJobAction>(JA)) &&
   92       if ((isa<AssembleJobAction>(JA) || isa<LinkJobAction>(JA)) &&
   92       if ((isa<AssembleJobAction>(JA) || isa<LinkJobAction>(JA)) &&
tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp
   69   if ((isa<ObjCStringLiteral>(Arg) &&
   74       (isa<ObjCArrayLiteral>(Arg) &&
   79       (isa<ObjCDictionaryLiteral>(Arg) &&
  773   if (!isa<IntegerLiteral>(literalE) && !isa<FloatingLiteral>(literalE))
  773   if (!isa<IntegerLiteral>(literalE) && !isa<FloatingLiteral>(literalE))
  893   if (isa<ArraySubscriptExpr>(Expr) ||
  894       isa<CallExpr>(Expr) ||
  895       isa<DeclRefExpr>(Expr) ||
  896       isa<CXXNamedCastExpr>(Expr) ||
  897       isa<CXXConstructExpr>(Expr) ||
  898       isa<CXXThisExpr>(Expr) ||
  899       isa<CXXTypeidExpr>(Expr) ||
  900       isa<CXXUnresolvedConstructExpr>(Expr) ||
  901       isa<ObjCMessageExpr>(Expr) ||
  902       isa<ObjCPropertyRefExpr>(Expr) ||
  903       isa<ObjCProtocolExpr>(Expr) ||
  904       isa<MemberExpr>(Expr) ||
  905       isa<ObjCIvarRefExpr>(Expr) ||
  906       isa<ParenExpr>(FullExpr) ||
  907       isa<ParenListExpr>(Expr) ||
  908       isa<SizeOfPackExpr>(Expr))
  915   if (isa<ArraySubscriptExpr>(Expr) ||
  916       isa<CallExpr>(Expr) ||
  917       isa<DeclRefExpr>(Expr) ||
  918       isa<CastExpr>(Expr) ||
  919       isa<CXXNewExpr>(Expr) ||
  920       isa<CXXConstructExpr>(Expr) ||
  921       isa<CXXDeleteExpr>(Expr) ||
  922       isa<CXXNoexceptExpr>(Expr) ||
  923       isa<CXXPseudoDestructorExpr>(Expr) ||
  924       isa<CXXScalarValueInitExpr>(Expr) ||
  925       isa<CXXThisExpr>(Expr) ||
  926       isa<CXXTypeidExpr>(Expr) ||
  927       isa<CXXUnresolvedConstructExpr>(Expr) ||
  928       isa<ObjCMessageExpr>(Expr) ||
  929       isa<ObjCPropertyRefExpr>(Expr) ||
  930       isa<ObjCProtocolExpr>(Expr) ||
  931       isa<MemberExpr>(Expr) ||
  932       isa<ObjCIvarRefExpr>(Expr) ||
  933       isa<ParenExpr>(FullExpr) ||
  934       isa<ParenListExpr>(Expr) ||
  935       isa<SizeOfPackExpr>(Expr) ||
  936       isa<UnaryOperator>(Expr))
  970       return isa<EnumConstantDecl>(VD);
 1109   if (isa<ParenExpr>(OrigArg) || isa<IntegerLiteral>(OrigArg))
 1109   if (isa<ParenExpr>(OrigArg) || isa<IntegerLiteral>(OrigArg))
 1148       if (isa<ParenExpr>(OrigArg) || isa<IntegerLiteral>(OrigArg))
 1148       if (isa<ParenExpr>(OrigArg) || isa<IntegerLiteral>(OrigArg))
tools/clang/lib/Frontend/ASTConsumers.cpp
   74       if (isa<NamedDecl>(D))
  184   if (isa<FunctionDecl>(D) || isa<ObjCMethodDecl>(D)) {
  184   if (isa<FunctionDecl>(D) || isa<ObjCMethodDecl>(D)) {
tools/clang/lib/Frontend/ASTUnit.cpp
  291   if (isa<UsingShadowDecl>(ND))
  297   if (isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND) ||
  297   if (isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND) ||
  298       isa<ClassTemplateDecl>(ND) || isa<TemplateTemplateParmDecl>(ND) ||
  298       isa<ClassTemplateDecl>(ND) || isa<TemplateTemplateParmDecl>(ND) ||
  299       isa<TypeAliasTemplateDecl>(ND)) {
  301     if (LangOpts.CPlusPlus || !isa<TagDecl>(ND))
  315     if (LangOpts.CPlusPlus || isa<ObjCInterfaceDecl>(ND))
  327     if (isa<EnumDecl>(ND)) {
  341     } else if (isa<ClassTemplateDecl>(ND))
  343   } else if (isa<ValueDecl>(ND) || isa<FunctionTemplateDecl>(ND)) {
  343   } else if (isa<ValueDecl>(ND) || isa<FunctionTemplateDecl>(ND)) {
  349   } else if (isa<ObjCProtocolDecl>(ND)) {
  351   } else if (isa<ObjCCategoryDecl>(ND)) {
  353   } else if (isa<NamespaceDecl>(ND) || isa<NamespaceAliasDecl>(ND)) {
  353   } else if (isa<NamespaceDecl>(ND) || isa<NamespaceAliasDecl>(ND)) {
  443         if (isa<NamespaceDecl>(R.Declaration) ||
  444             isa<NamespaceAliasDecl>(R.Declaration))
  956     if (isa<ObjCMethodDecl>(D))
 1045       if (isa<ObjCMethodDecl>(D))
tools/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
   68       if (isa<driver::BindArchAction>(A))
   70       if (isa<driver::OffloadAction>(A)) {
   76   if (Jobs.size() == 0 || !isa<driver::Command>(*Jobs.begin()) ||
tools/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp
   62         if (FD->isInlined() && !isa<CXXMethodDecl>(FD) &&
   67             if (isa<ClassTemplateDecl>(RC->getParent()) || !isVisible(RC))
   91       if (isa<CXXConstructorDecl>(ND) || isa<CXXDestructorDecl>(ND))
   91       if (isa<CXXConstructorDecl>(ND) || isa<CXXDestructorDecl>(ND))
  105     if (isa<FieldDecl>(ND) || isa<ParmVarDecl>(ND))
  105     if (isa<FieldDecl>(ND) || isa<ParmVarDecl>(ND))
  128                         isa<VarDecl>(ND) ? llvm::ELF::STT_OBJECT
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
  500       return isa<BlockPointerType>(T);
  553         if (isa<ObjCInterfaceType>(PT->getPointeeType()) ||
  752             if (isa<ObjCInterfaceDecl>(*DI) &&
  777             if (isa<ObjCProtocolDecl>(*DI) &&
  854   if (!isa<TypedefType>(IvarT) && IvarT->isRecordType()) {
 1435       if (isa<OpaqueValueExpr>(Arg))
 1519       if (isa<OpaqueValueExpr>(Arg))
 1603   if (Stmts.empty() || !isa<ObjCForCollectionStmt>(Stmts.back()))
 1633   if (Stmts.empty() || !isa<ObjCForCollectionStmt>(Stmts.back()))
 1681   assert(isa<ObjCForCollectionStmt>(Stmts.back()) &&
 1823   if (isa<CompoundStmt>(S->getBody())) {
 1914   if (isa<ReturnStmt>(S) || isa<GotoStmt>(S)) {
 1914   if (isa<ReturnStmt>(S) || isa<GotoStmt>(S)) {
 2274   if (!isa<TypeOfExprType>(TypePtr))
 2276   while (isa<TypeOfExprType>(TypePtr)) {
 3057     if (isa<ObjCMethodDecl>(D))
 3629   if (isa<TypedefType>(Type)) {
 3725   if (isa<TypedefType>(Type))
 4052   if (isa<FunctionNoProtoType>(AFT)) {
 4728   if (isa<TypeOfExprType>(TypePtr)) {
 5426   if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) ||
 5426   if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) ||
 5427       isa<DoStmt>(S) || isa<ForStmt>(S))
 5427       isa<DoStmt>(S) || isa<ForStmt>(S))
 5429   else if (isa<ObjCForCollectionStmt>(S)) {
 5437     if (isa<BinaryOperator>(PseudoOp->getSyntacticForm())) {
 5445   else if (isa<OpaqueValueExpr>(S))
 5614   if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) ||
 5614   if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) ||
 5615       isa<DoStmt>(S) || isa<ForStmt>(S)) {
 5615       isa<DoStmt>(S) || isa<ForStmt>(S)) {
 5617     assert ((isa<SwitchStmt>(Stmts.back()) || isa<WhileStmt>(Stmts.back()) ||
 5617     assert ((isa<SwitchStmt>(Stmts.back()) || isa<WhileStmt>(Stmts.back()) ||
 5618              isa<DoStmt>(Stmts.back()) || isa<ForStmt>(Stmts.back()))
 5618              isa<DoStmt>(Stmts.back()) || isa<ForStmt>(Stmts.back()))
 7495       if (!isa<TypedefType>(IvarT) && IvarT->isRecordType()) {
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
  411       return isa<BlockPointerType>(T);
  460         if (isa<ObjCInterfaceType>(PT->getPointeeType()) ||
  684             if (isa<ObjCInterfaceDecl>(*DI) &&
  703             if (isa<ObjCProtocolDecl>(*DI) &&
 1410   if (Stmts.empty() || !isa<ObjCForCollectionStmt>(Stmts.back()))
 1427   if (Stmts.empty() || !isa<ObjCForCollectionStmt>(Stmts.back()))
 1475   assert(isa<ObjCForCollectionStmt>(Stmts.back()) &&
 1614   if (isa<CompoundStmt>(S->getBody())) {
 1721   if (isa<ReturnStmt>(S) || isa<GotoStmt>(S)) {
 1721   if (isa<ReturnStmt>(S) || isa<GotoStmt>(S)) {
 1734   if (isa<ReturnStmt>(S))
 1744   if (isa<ReturnStmt>(S)) {
 1765   if (isa<ReturnStmt>(S)) {
 2186   if (!isa<TypeOfExprType>(TypePtr))
 2188   while (isa<TypeOfExprType>(TypePtr)) {
 3262   if (isa<FunctionNoProtoType>(AFT)) {
 3897   if (isa<TypeOfExprType>(TypePtr)) {
 4550   if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) ||
 4550   if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) ||
 4551       isa<DoStmt>(S) || isa<ForStmt>(S))
 4551       isa<DoStmt>(S) || isa<ForStmt>(S))
 4553   else if (isa<ObjCForCollectionStmt>(S)) {
 4561     if (isa<BinaryOperator>(PseudoOp->getSyntacticForm())) {
 4716   if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) ||
 4716   if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) ||
 4717       isa<DoStmt>(S) || isa<ForStmt>(S)) {
 4717       isa<DoStmt>(S) || isa<ForStmt>(S)) {
 4719     assert ((isa<SwitchStmt>(Stmts.back()) || isa<WhileStmt>(Stmts.back()) ||
 4719     assert ((isa<SwitchStmt>(Stmts.back()) || isa<WhileStmt>(Stmts.back()) ||
 4720              isa<DoStmt>(Stmts.back()) || isa<ForStmt>(Stmts.back()))
 4720              isa<DoStmt>(Stmts.back()) || isa<ForStmt>(Stmts.back()))
tools/clang/lib/Index/IndexBody.cpp
   64     while (isa<CastExpr>(*It) || isa<ParenExpr>(*It)) {
   64     while (isa<CastExpr>(*It) || isa<ParenExpr>(*It)) {
  253       bool IsPropCall = Containing && isa<PseudoObjectExpr>(Containing);
tools/clang/lib/Index/IndexDecl.cpp
  204       bool TypeOverride = isa<TypeDecl>(D);
  214         } else if (!isa<TypeDecl>(ND))
  446       if (!isa<ObjCPropertyImplDecl>(I) ||
  706       if (isa<ClassTemplateDecl>(ND) && D->getDeclContext()->isDependentContext())
  742   if (!Visitor.Handled && isa<DeclContext>(D))
  759   if (isa<ObjCMethodDecl>(D))
tools/clang/lib/Index/IndexSymbol.cpp
   55   if (isa<ParmVarDecl>(D))
   58   if (isa<ObjCTypeParamDecl>(D))
   61   if (isa<UsingDirectiveDecl>(D))
   95   if (isa<ObjCProtocolDecl>(D->getDeclContext())) {
  133     if (isa<ClassTemplatePartialSpecializationDecl>(D)) {
  137     } else if (isa<ClassTemplateSpecializationDecl>(D)) {
  145     if (isa<ParmVarDecl>(D)) {
  147     } else if (isa<CXXRecordDecl>(D->getDeclContext())) {
  152     if (isa<VarTemplatePartialSpecializationDecl>(D)) {
  157     } else if (isa<VarTemplateSpecializationDecl>(D)) {
  292         if (isa<CXXConstructorDecl>(MD))
  294         else if (isa<CXXDestructorDecl>(MD))
  296         else if (isa<CXXConversionDecl>(MD))
tools/clang/lib/Index/IndexTypeSourceInfo.cpp
  194         Name, [](const NamedDecl *ND) { return isa<TypeDecl>(ND); });
tools/clang/lib/Index/IndexingContext.cpp
   65   if (isa<ObjCPropertyImplDecl>(D)) {
   84       (isa<NonTypeTemplateParmDecl>(D) || isa<TemplateTypeParmDecl>(D) ||
   84       (isa<NonTypeTemplateParmDecl>(D) || isa<TemplateTypeParmDecl>(D) ||
   85        isa<TemplateTemplateParmDecl>(D))) {
  165   } else if (isa<FieldDecl>(D) || isa<TypedefNameDecl>(D) ||
  165   } else if (isa<FieldDecl>(D) || isa<TypedefNameDecl>(D) ||
  166              isa<EnumConstantDecl>(D)) {
  183   if (isa<ObjCInterfaceDecl>(D))
  185   if (isa<ObjCCategoryDecl>(D))
  187   if (isa<ObjCIvarDecl>(D))
  189   if (isa<ObjCMethodDecl>(D))
  191   if (isa<ImportDecl>(D))
  218   } else if (isa<FieldDecl>(D) || isa<TypedefNameDecl>(D)) {
  218   } else if (isa<FieldDecl>(D) || isa<TypedefNameDecl>(D)) {
  251     return MD->isThisDeclarationADefinition() || isa<ObjCImplDecl>(ContainerDC);
  253   if (isa<TypedefNameDecl>(D) ||
  254       isa<EnumConstantDecl>(D) ||
  255       isa<FieldDecl>(D) ||
  256       isa<MSPropertyDecl>(D) ||
  257       isa<ObjCImplDecl>(D) ||
  258       isa<ObjCPropertyImplDecl>(D))
  266   return (ND->getDeclName().isEmpty() && !isa<TagDecl>(ND) &&
  267           !isa<ObjCCategoryDecl>(ND)) || isa<CXXDeductionGuideDecl>(ND);
  267           !isa<ObjCCategoryDecl>(ND)) || isa<CXXDeductionGuideDecl>(ND);
  274     if (isa<TranslationUnitDecl>(Parent))
  276     if (isa<LinkageSpecDecl>(Parent) || isa<BlockDecl>(Parent))
  276     if (isa<LinkageSpecDecl>(Parent) || isa<BlockDecl>(Parent))
  358   if (D->isImplicit() && !isa<ObjCMethodDecl>(D))
  360   if (!isa<NamedDecl>(D) || shouldSkipNamelessDecl(cast<NamedDecl>(D)))
  426     if (IsRef || (!isa<ParmVarDecl>(D) && isFunctionLocalSymbol(D))) {
tools/clang/lib/Index/USRGeneration.cpp
  200   else if (isa<LinkageSpecDecl>(DC)) // Linkage specs are transparent in USRs.
  211   Out << (isa<ObjCIvarDecl>(D) ? "@" : "@FI@");
  495   if (!isa<EnumDecl>(D) &&
  904     if (isa<TemplateTypeParmDecl>(*P)) {
tools/clang/lib/Lex/MacroInfo.cpp
  229   if (isa<VisibilityMacroDirective>(this))
tools/clang/lib/Lex/PPMacroExpansion.cpp
  228     while (MD && isa<VisibilityMacroDirective>(MD))
tools/clang/lib/Lex/PreprocessingRecord.cpp
  256   if (isa<MacroDefinitionRecord>(Entity)) {
tools/clang/lib/Parse/ParseCXXInlineMethods.cpp
  548           !isa<FunctionTemplateDecl>(LM.D) ||
  563     if (isa<CXXMethodDecl>(FD) ||
tools/clang/lib/Parse/ParseDecl.cpp
 6415       if (!ND || isa<ParmVarDecl>(ND))
tools/clang/lib/Parse/ParseDeclCXX.cpp
 3191             << (isa<NamedDecl>(TagDecl)
tools/clang/lib/Parse/ParseExpr.cpp
  556     if (isa<TypeDecl>(ND))
  567       if (isa<ValueDecl>(ND) && !isa<FunctionDecl>(ND))
  567       if (isa<ValueDecl>(ND) && !isa<FunctionDecl>(ND))
 2429       while (CodeDC->isRecord() || isa<EnumDecl>(CodeDC)) {
tools/clang/lib/Parse/ParseOpenMP.cpp
 1193         ND, Loc, MT, isa<VarDecl>(ND) ? OMPDeclareTargetDeclAttr::DT_Any : DT);
tools/clang/lib/Parse/ParseStmt.cpp
  133       return !candidate.getCorrectionSpecifier() || isa<ObjCIvarDecl>(FD);
 2085       getLangOpts().CPlusPlus && Decl && isa<CXXMethodDecl>(Decl);
 2124       getLangOpts().CPlusPlus && Decl && isa<CXXMethodDecl>(Decl);
tools/clang/lib/Parse/ParseTemplate.cpp
 1526       assert((!isa<FunctionTemplateDecl>(LPT.D) ||
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
  202             isa<TemplateSpecializationType>(NNS->getAsType())) {
  209     if (!MCE || isa<CXXThisExpr>(MCE->getImplicitObjectArgument()) ||
  342         (isa<CXXDestructorDecl>(FD) ||
  348             << !isa<CXXDestructorDecl>(FD) << !Ty->hasExceptionSpec()
  416           if (Term && isa<CXXTryStmt>(Term))
  465       if (Term && isa<CXXTryStmt>(Term)) {
  476     if (isa<ReturnStmt>(S) || isa<CoreturnStmt>(S)) {
  476     if (isa<ReturnStmt>(S) || isa<CoreturnStmt>(S)) {
  480     if (isa<ObjCAtThrowStmt>(S)) {
  484     if (isa<CXXThrowExpr>(S)) {
  488     if (isa<MSAsmStmt>(S)) {
  494     if (isa<CXXTryStmt>(S)) {
  657   else if (isa<BlockDecl>(D)) {
 1066         if (L && isa<SwitchCase>(L) && ReachableBlocks.insert(B).second)
 1096         if (Term && isa<SwitchStmt>(Term))
 1205         if (!isa<SwitchCase>(SW->getSubStmt()))
 1273     if (!Label || !isa<SwitchCase>(Label))
 1300       if (!(B->empty() && Term && isa<BreakStmt>(Term))) {
 1398           if (BaseVar->hasLocalStorage() && !isa<ParmVarDecl>(Base))
 1429   if (isa<sema::BlockScopeInfo>(CurFn))
 1431   else if (isa<sema::LambdaScopeInfo>(CurFn))
 1433   else if (isa<ObjCMethodDecl>(D))
 1466     if (isa<VarDecl>(KeyProp))
 1468     else if (isa<ObjCPropertyDecl>(KeyProp))
 1470     else if (isa<ObjCMethodDecl>(KeyProp))
 1472     else if (isa<ObjCIvarDecl>(KeyProp))
 2138         (isa<BlockDecl>(D)
 2140              : (isa<CXXMethodDecl>(D) &&
tools/clang/lib/Sema/CodeCompleteConsumer.cpp
  665   if (isa<EnumConstantDecl>(D))
  705       if (isa<ObjCInterfaceDecl>(Declaration))
  707       else if (isa<ObjCProtocolDecl>(Declaration))
tools/clang/lib/Sema/JumpDiagnostics.cpp
  212       return ScopePair(isa<TypedefDecl>(TD)
  289   unsigned &ParentScope = ((isa<Expr>(S) && !isa<StmtExpr>(S))
  289   unsigned &ParentScope = ((isa<Expr>(S) && !isa<StmtExpr>(S))
  810   bool IsAsmGoto = isa<GCCAsmStmt>(Jump);
  857     bool IsAsmGoto = isa<GCCAsmStmt>(Jump);
  884   if (isa<GotoStmt>(From) || isa<IndirectGotoStmt>(From)) {
  884   if (isa<GotoStmt>(From) || isa<IndirectGotoStmt>(From)) {
tools/clang/lib/Sema/ScopeInfo.cpp
   77     IsExact = isa<VarDecl>(D);
   82     IsExact = isa<CXXThisExpr>(ME->getBase()->IgnoreParenImpCasts());
  141   assert(isa<VarDecl>(Property));
  183     if (isa<OpaqueValueExpr>(RefExpr->getBase()))
  193     if (isa<VarDecl>(DRE->getDecl()))
tools/clang/lib/Sema/Sema.cpp
  668     if (isa<CXXDeductionGuideDecl>(ND))
  735         << isa<VarDecl>(VD) << VD;
  741         << isa<VarDecl>(VD) << VD;
  791                  (M->isPure() && !isa<CXXDestructorDecl>(M));
  859         << isa<TypeAliasDecl>(TD) << TD->getDeclName();
 1023         !(isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl)))
 1023         !(isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl)))
 1156           if (isa<CXXMethodDecl>(DiagD))
 1177                  isa<CXXMethodDecl>(DiagD) ? diag::warn_unused_member_function
 1255     if (isa<BlockDecl>(DC) || isa<EnumDecl>(DC) || isa<CapturedDecl>(DC)) {
 1255     if (isa<BlockDecl>(DC) || isa<EnumDecl>(DC) || isa<CapturedDecl>(DC)) {
 1255     if (isa<BlockDecl>(DC) || isa<EnumDecl>(DC) || isa<CapturedDecl>(DC)) {
 1257     } else if (isa<CXXMethodDecl>(DC) &&
 1278   while (isa<RecordDecl>(DC))
 1285   if (isa<ObjCMethodDecl>(DC) || isa<FunctionDecl>(DC))
 1285   if (isa<ObjCMethodDecl>(DC) || isa<FunctionDecl>(DC))
 1820     if (isa<sema::BlockScopeInfo>(FunctionScopes[e]))
 1850     while (I != E && isa<CapturingScopeInfo>(*I) && !isa<LambdaScopeInfo>(*I))
 1850     while (I != E && isa<CapturingScopeInfo>(*I) && !isa<LambdaScopeInfo>(*I))
 2089   return (!isa<CStyleCastExpr>(E) &&
 2090           !isa<UnaryOperator>(E) &&
 2091           !isa<BinaryOperator>(E) &&
 2092           !isa<CXXOperatorCallExpr>(E));
tools/clang/lib/Sema/SemaAccess.cpp
   70   if (isa<EnumDecl>(DC))
  106       if (isa<CXXRecordDecl>(DC)) {
  110       } else if (isa<FunctionDecl>(DC)) {
  452     if (isa<ClassTemplateSpecializationDecl>(Record)) {
  555   if (isa<ClassTemplateDecl>(Friend))
  558   if (isa<FunctionTemplateDecl>(Friend))
  561   if (isa<CXXRecordDecl>(Friend))
  564   assert(isa<FunctionDecl>(Friend) && "unknown friend decl kind");
 1072     if (isa<CXXConstructorDecl>(D) || isa<CXXDestructorDecl>(D) ||
 1072     if (isa<CXXConstructorDecl>(D) || isa<CXXDestructorDecl>(D) ||
 1073         (isa<FunctionTemplateDecl>(D) &&
 1074          isa<CXXConstructorDecl>(
 1078              << isa<CXXDestructorDecl>(D->getAsFunction());
 1112       if (isa<RecordDecl>(D) && cast<RecordDecl>(D)->isInjectedClassName())
 1136     if (isa<AccessSpecDecl>(I)) {
 1769   assert(isa<CXXMethodDecl>(target->getAsFunction()));
tools/clang/lib/Sema/SemaCUDA.cpp
  100            return isa<A>(Attribute) &&
tools/clang/lib/Sema/SemaCXXScopeSpec.cpp
   40   } else if (isa<InjectedClassNameType>(Ty))
  322   if (isa<NamespaceDecl>(SD))
  325   if (!isa<TypeDecl>(SD))
  342   } else if (isa<RecordDecl>(SD)) {
  344   } else if (isa<EnumDecl>(SD)) {
  683           (!isa<TypeDecl>(OuterDecl) || !isa<TypeDecl>(SD) ||
  683           (!isa<TypeDecl>(OuterDecl) || !isa<TypeDecl>(SD) ||
  726     if (isa<InjectedClassNameType>(T)) {
  730     } else if (isa<RecordType>(T)) {
  733     } else if (isa<TypedefType>(T)) {
  736     } else if (isa<EnumType>(T)) {
  739     } else if (isa<TemplateTypeParmType>(T)) {
  743     } else if (isa<UnresolvedUsingType>(T)) {
  747     } else if (isa<SubstTemplateTypeParmType>(T)) {
  751     } else if (isa<SubstTemplateTypeParmPackType>(T)) {
  943       isa<FunctionTemplateDecl>(TD) || isa<VarTemplateDecl>(TD)) {
  943       isa<FunctionTemplateDecl>(TD) || isa<VarTemplateDecl>(TD)) {
  949       << (TD && isa<VarTemplateDecl>(TD)) << Template << R;
 1025   if (isa<ObjCContainerDecl>(CurContext) || isa<ObjCMethodDecl>(CurContext))
 1025   if (isa<ObjCContainerDecl>(CurContext) || isa<ObjCMethodDecl>(CurContext))
tools/clang/lib/Sema/SemaCast.cpp
 1722     if (isa<LValueReferenceType>(DestTypeTmp) && !SrcExpr.get()->isLValue()) {
 1730     if (isa<RValueReferenceType>(DestTypeTmp) && SrcExpr.get()->isRValue()) {
 1864       if (isa<PointerType>(DestType))
 2375     while (isa<PointerType>(DestPtr) && isa<PointerType>(SrcPtr)) {
 2375     while (isa<PointerType>(DestPtr) && isa<PointerType>(SrcPtr)) {
 2552   if (!isa<CallExpr>(SrcExpr.get()))
 2720   if (isa<ObjCSelectorExpr>(SrcExpr.get())) {
 2890                           isa<InitListExpr>(CastExpr));
tools/clang/lib/Sema/SemaChecking.cpp
  279   if (isa<CXXPseudoDestructorExpr>(CE->getCallee()->IgnoreParens())) {
  501       if (isa<BlockExpr>(BlockArg)) {
  504       } else if (isa<DeclRefExpr>(BlockArg)) {
 3372   if (!isa<StringLiteral>(Arg->IgnoreParenImpCasts()))
 3392   if (!isa<StringLiteral>(Arg->IgnoreParenImpCasts()))
 4238   if (FDecl && (isa<FunctionDecl>(FDecl) || isa<ObjCMethodDecl>(FDecl))) {
 4238   if (FDecl && (isa<FunctionDecl>(FDecl) || isa<ObjCMethodDecl>(FDecl))) {
 4330                        : FDecl && isa<FunctionDecl>(FDecl)
 4332                        : FDecl && isa<ObjCMethodDecl>(FDecl)
 4375   bool IsMemberOperatorCall = isa<CXXOperatorCallExpr>(TheCall) &&
 4376                               isa<CXXMethodDecl>(FDecl);
 4377   bool IsMemberFunction = isa<CXXMemberCallExpr>(TheCall) ||
 5567   } else if (isa<CapturedDecl>(Caller)) {
 6522   if (!isa<StringLiteral>(Arg->IgnoreParenImpCasts()))
 7467   if (!isa<ObjCStringLiteral>(OrigFormatExpr)) {
 8572             << isa<InitListExpr>(E) << ExprTy << CallType
 9532     return isa<IntegerLiteral>(E) && cast<IntegerLiteral>(E)->getValue() == 0;
 9779     if (isa<IntegerLiteral>(RHS))
 9781     else if (isa<IntegerLiteral>(LHS))
10483     if (isa<EnumConstantDecl>(DR->getDecl()))
11084   bool NeedsParens = isa<AbstractConditionalOperator>(Ignored) ||
11085                      isa<BinaryOperator>(Ignored) ||
11086                      isa<CXXOperatorCallExpr>(Ignored);
11107       isa<FloatingLiteral>(E) || isa<FloatingLiteral>(InnerE);
11107       isa<FloatingLiteral>(E) || isa<FloatingLiteral>(InnerE);
11213   assert(isa<CompoundAssignOperator>(E) &&
11259   if (!isa<ImplicitCastExpr>(Ex))
11305   if (isa<CallExpr>(E))
11566     if (isa<StringLiteral>(E))
11572     if (isa<ObjCStringLiteral>(E) || isa<ObjCArrayLiteral>(E) ||
11572     if (isa<ObjCStringLiteral>(E) || isa<ObjCArrayLiteral>(E) ||
11573         isa<ObjCDictionaryLiteral>(E) || isa<ObjCBoxedExpr>(E)) {
11573         isa<ObjCDictionaryLiteral>(E) || isa<ObjCBoxedExpr>(E)) {
11611   if (isa<VectorType>(Source)) {
11612     if (!isa<VectorType>(Target)) {
11630   if (isa<ComplexType>(Source)) {
11631     if (!isa<ComplexType>(Target)) {
11699     if (Target->isBooleanType() && isa<CallExpr>(E)) {
11707         if (isa<ImplicitCastExpr>(LastA) &&
11981   if (isa<ConditionalOperator>(E))
12044       IsListInit || (isa<InitListExpr>(OrigE) && S.getLangOpts().CPlusPlus);
12058   if (isa<ConditionalOperator>(E)) {
12110   if (isa<StmtExpr>(E)) return;
12113   if (isa<UnaryExprOrTypeTraitExpr>(E)) return;
12125         isa<StringLiteral>(ChildExpr->IgnoreParenImpCasts()))
12134     if (!IsLogicalAndOperator || !isa<StringLiteral>(SubExpr))
12138     if (!IsLogicalAndOperator || !isa<StringLiteral>(SubExpr))
12239   if (isa<CXXThisExpr>(E)) {
12267     bool IsParam = isa<NonNullAttr>(NonnullAttr);
12448     if (isa<BinaryOperator>(E)) {
12455     else if (isa<ObjCBoxedExpr>(OriginalE))
12665       if (isa<CXXThisExpr>(ME->getBase()->IgnoreParenCasts()))
12813     if (isa<CompoundAssignOperator>(BO))
12818     if (isa<CompoundAssignOperator>(BO))
12995       isConstantEvaluatedOverride, IsConstexpr || isa<ConstantExpr>(E));
13226     if (isa<FieldDecl>(D))
14102   bool ProbableTypo = isa<CompoundStmt>(PossibleBody);
14207   if (isa<CXXThisExpr>(LHSBase) && isa<CXXThisExpr>(RHSBase))
14207   if (isa<CXXThisExpr>(LHSBase) && isa<CXXThisExpr>(RHSBase))
14651   if (isa<UnaryOperator>(E) &&
14654     if (isa<MemberExpr>(Op)) {
14715   if (!DRE && !isa<CXXThisExpr>(TopBase))
tools/clang/lib/Sema/SemaCodeComplete.cpp
  371   if (isa<BlockDecl>(S.CurContext)) {
  747   if (isa<ClassTemplateSpecializationDecl>(ND) ||
  748       isa<ClassTemplatePartialSpecializationDecl>(ND))
  752   if (isa<UsingDecl>(ND))
  759       (isa<NamespaceDecl>(ND) && Filter != &ResultBuilder::IsNamespace &&
  769          (isa<CXXRecordDecl>(ND) &&
  954   if (DC->isRecord() || isa<ObjCContainerDecl>(DC)) {
  956     if (isa<CXXDestructorDecl>(ND))
  968   if (isa<EnumConstantDecl>(ND))
  974   if ((isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND)) &&
  974   if ((isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND)) &&
 1031     if (isa<ClassTemplateSpecializationDecl>(Record))
 1052   return isa<CXXConstructorDecl>(ND);
 1269              isa<CXXRecordDecl>(
 1377     if (isa<ObjCIvarDecl>(ND))
 1388   if (isa<TypeDecl>(ND))
 1402     if (isa<ObjCIvarDecl>(ND))
 1429   return (ND->getIdentifierNamespace() & IDNS) && !isa<ValueDecl>(ND) &&
 1430          !isa<FunctionTemplateDecl>(ND) && !isa<ObjCPropertyDecl>(ND);
 1430          !isa<FunctionTemplateDecl>(ND) && !isa<ObjCPropertyDecl>(ND);
 1445   return isa<EnumDecl>(ND);
 1476   return isa<NamespaceDecl>(ND);
 1482   return isa<NamespaceDecl>(ND->getUnderlyingDecl());
 1488   return isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND);
 1488   return isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND);
 1496   return isa<ValueDecl>(ND) || isa<FunctionTemplateDecl>(ND) ||
 1496   return isa<ValueDecl>(ND) || isa<FunctionTemplateDecl>(ND) ||
 1497          isa<ObjCPropertyDecl>(ND);
 1576   return isa<ObjCIvarDecl>(ND);
 2598   if (isConstructor(ND) || isa<CXXConversionDecl>(ND))
 2613   } else if (isa<UnresolvedUsingValueDecl>(ND)) {
 2748   bool ObjCMethodParam = isa<ObjCMethodDecl>(Param->getDeclContext());
 3010       assert(isa<TemplateTemplateParmDecl>(*P));
 3394           assert(isa<TemplateTemplateParmDecl>(Param));
 3954   while (isa<BlockDecl>(CurContext))
 5470       Ctx && !CodeCompleter->includeGlobals() && isa<TranslationUnitDecl>(Ctx);
 5617       if (isa<FieldDecl>(ND))
 5863   if (isa<ObjCImplDecl>(CurContext))
 6668     } else if (ND && isa<UnresolvedUsingTypenameDecl>(ND)) {
 6707         isa<ObjCMethodDecl>(R.Declaration)) {
 7179   if (CurClass && isa<ObjCInterfaceDecl>(CurClass))
 7296   if (!Container || (!isa<ObjCImplementationDecl>(Container) &&
 7297                      !isa<ObjCCategoryImplDecl>(Container)))
 7335   if (!Container || (!isa<ObjCImplementationDecl>(Container) &&
 7336                      !isa<ObjCCategoryImplDecl>(Container)))
tools/clang/lib/Sema/SemaCoroutine.cpp
  196     S.Diag(Loc, isa<ObjCMethodDecl>(S.CurContext)
  224   if (MD && isa<CXXConstructorDecl>(MD))
  227   else if (MD && isa<CXXDestructorDecl>(MD))
  264       (Functions.size() == 1 && isa<FunctionTemplateDecl>(*Functions.begin()));
  481   assert(isa<FunctionDecl>(CurContext) && "not in a function scope");
  578   assert(isa<FunctionDecl>(S.CurContext) && "not in a function scope");
  885   if (E && (isa<InitListExpr>(E) || !E->getType()->isVoidType())) {
  970   if (isa<CoroutineBodyStmt>(Body)) {
 1210       OperatorNew && !isa<CXXRecordDecl>(OperatorNew->getDeclContext());
 1525   assert(isa<FunctionDecl>(CurContext) && "not in a function scope");
tools/clang/lib/Sema/SemaDecl.cpp
   85       bool IsType = isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND);
   85       bool IsType = isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND);
  100                isa<ClassTemplateSpecializationDecl>(RD);
  212         if (!isa<TypeDecl>(ND))
  434       if (isa<TypeDecl>(*Res) || isa<ObjCInterfaceDecl>(*Res) ||
  434       if (isa<TypeDecl>(*Res) || isa<ObjCInterfaceDecl>(*Res) ||
  504       !isa<ObjCInterfaceDecl>(IIDecl)) {
  534     else if (isa<TranslationUnitDecl>(DC))
  774     if (isa<TypeDecl>(*I) || isa<ObjCInterfaceDecl>(*I))
  774     if (isa<TypeDecl>(*I) || isa<ObjCInterfaceDecl>(*I))
  777     if (CheckTemplate && isa<TemplateDecl>(*I))
  955             UnderlyingFirstDecl && isa<TemplateDecl>(UnderlyingFirstDecl)) {
  959                    (isa<TypeDecl>(UnderlyingFirstDecl) ||
  960                     isa<ObjCInterfaceDecl>(UnderlyingFirstDecl) ||
  961                     isa<ObjCCompatibleAliasDecl>(UnderlyingFirstDecl))) {
 1092       IsFunctionTemplate = isa<FunctionTemplateDecl>(TD);
 1093       IsVarTemplate = isa<VarTemplateDecl>(TD);
 1154   if (isa<TemplateDecl>(FirstDecl) && !isa<FunctionTemplateDecl>(FirstDecl) &&
 1154   if (isa<TemplateDecl>(FirstDecl) && !isa<FunctionTemplateDecl>(FirstDecl) &&
 1155       !isa<VarTemplateDecl>(FirstDecl))
 1235   if (isa<ClassTemplateDecl>(TD))
 1237   if (isa<FunctionTemplateDecl>(TD))
 1239   if (isa<VarTemplateDecl>(TD))
 1241   if (isa<TypeAliasTemplateDecl>(TD))
 1243   if (isa<TemplateTemplateParmDecl>(TD))
 1245   if (isa<ConceptDecl>(TD))
 1267   if (isa<FunctionDecl>(DC) && !isLambdaCallOperator(DC)) {
 1272     if (!isa<CXXRecordDecl>(DC))
 1444   if (isa<FunctionDecl>(D) &&
 1463   if (isa<LabelDecl>(D) && !cast<LabelDecl>(D)->isGnuLocal()) {
 1569   return isa<UsingShadowDecl>(D) ||
 1570          isa<UnresolvedUsingTypenameDecl>(D) ||
 1571          isa<UnresolvedUsingValueDecl>(D);
 1743   if (isa<LabelDecl>(D))
 1756   if (isa<TypedefNameDecl>(D))
 1760   if (!isa<VarDecl>(D) || isa<ParmVarDecl>(D) || isa<ImplicitParamDecl>(D))
 1760   if (!isa<VarDecl>(D) || isa<ParmVarDecl>(D) || isa<ImplicitParamDecl>(D))
 1760   if (!isa<VarDecl>(D) || isa<ParmVarDecl>(D) || isa<ImplicitParamDecl>(D))
 1817   if (isa<LabelDecl>(D)) {
 1857   if (isa<VarDecl>(D) && cast<VarDecl>(D)->isExceptionVariable())
 1859   else if (isa<LabelDecl>(D))
 1891     assert(isa<NamedDecl>(TmpD) && "Decl isn't NamedDecl?");
 2178     int Kind = isa<TypeAliasDecl>(Old) ? 1 : 0;
 2191     int Kind = isa<TypeAliasDecl>(Old) ? 1 : 0;
 2292       if (isa<EnumDecl>(NewTag)) {
 2325     if (!isa<CXXRecordDecl>(CurContext))
 2349     if (!isa<TypedefNameDecl>(Old))
 2391       if (OA && isa<OwnershipAttr>(i))
 2556   else if (S.getLangOpts().CUDA && isa<FunctionDecl>(D) &&
 2557            (isa<CUDAHostAttr>(Attr) || isa<CUDADeviceAttr>(Attr) ||
 2557            (isa<CUDAHostAttr>(Attr) || isa<CUDADeviceAttr>(Attr) ||
 2558             isa<CUDAGlobalAttr>(Attr))) {
 2570   else if (isa<AlignedAttr>(Attr))
 2574   else if ((isa<DeprecatedAttr>(Attr) || isa<UnavailableAttr>(Attr)) &&
 2574   else if ((isa<DeprecatedAttr>(Attr) || isa<UnavailableAttr>(Attr)) &&
 2590     if (isa<MSInheritanceAttr>(NewAttr))
 2633     if (isa<AliasAttr>(NewAttribute) || isa<IFuncAttr>(NewAttribute)) {
 2633     if (isa<AliasAttr>(NewAttribute) || isa<IFuncAttr>(NewAttribute)) {
 2674     if (isa<C11NoReturnAttr>(NewAttribute)) {
 2696     } else if (isa<SelectAnyAttr>(NewAttribute) &&
 2830         << isa<FunctionDecl>(Old) << New->getAttr<AsmLabelAttr>()->getRange();
 2865       !NewCSA->isImplicit() && isa<CXXMethodDecl>(New)) {
 2883     if (isa<DeprecatedAttr>(I) ||
 2884         isa<UnavailableAttr>(I) ||
 2885         isa<AvailabilityAttr>(I)) {
 2899     if (isa<UsedAttr>(I))
 3205   if (!isa<CXXMethodDecl>(New) && !isa<CXXMethodDecl>(Old) &&
 3205   if (!isa<CXXMethodDecl>(New) && !isa<CXXMethodDecl>(Old) &&
 3499           if (isa<CXXConstructorDecl>(OldMethod))
 3501           else if (isa<CXXDestructorDecl>(NewMethod))
 3503           else if (isa<CXXConversionDecl>(NewMethod))
 3619     if (MergeTypeWithOld && isa<FunctionNoProtoType>(NewFuncType) &&
 3798     isa<ObjCProtocolDecl>(oldMethod->getDeclContext())
 3800       : isa<ObjCImplDecl>(newMethod->getDeclContext()) ? AMK_Redeclaration
 4303   if (isa<CXXRecordDecl>(Tag->getParent())) {
 4412     if (isa<TagDecl>(TagD))
 4469       !isa<ClassTemplatePartialSpecializationDecl>(Tag)) {
 4700     if ((isa<FieldDecl>(D) || isa<IndirectFieldDecl>(D)) &&
 4700     if ((isa<FieldDecl>(D) || isa<IndirectFieldDecl>(D)) &&
 4852                isa<RecordDecl>(Owner)) {
 4919       } else if (isa<TagDecl>(Mem) && Mem->getDeclContext() != Record) {
 4945       } else if (isa<AccessSpecDecl>(Mem)) {
 4947       } else if (isa<StaticAssertDecl>(Mem)) {
 4953         if (isa<TypeDecl>(Mem))
 4955         else if (isa<FunctionDecl>(Mem))
 4957         else if (isa<VarDecl>(Mem))
 5162     if (!Template || !isa<ClassTemplateDecl>(Template)) {
 5435   while (isa<LinkageSpecDecl>(Cur) || isa<CapturedDecl>(Cur))
 5435   while (isa<LinkageSpecDecl>(Cur) || isa<CapturedDecl>(Cur))
 5466     else if (isa<TranslationUnitDecl>(DC))
 5469     else if (isa<FunctionDecl>(Cur))
 5472     else if (isa<BlockDecl>(Cur))
 5548     if (!DC || isa<EnumDecl>(DC)) {
 5566     if (isa<CXXRecordDecl>(DC) && !cast<CXXRecordDecl>(DC)->hasDefinition()) {
 6087     } else if (isa<ObjCIvarDecl>(decl)) {
 6089     } else if (isa<FieldDecl>(decl)) {
 6154     if (isa<FunctionDecl>(ND) || !ND.isExternallyVisible()) {
 6213         } else if (isa<CXXConstructorDecl>(MD) || isa<CXXDestructorDecl>(MD)) {
 6213         } else if (isa<CXXConstructorDecl>(MD) || isa<CXXDestructorDecl>(MD)) {
 6215               << isa<CXXDestructorDecl>(MD) << A->getRange();
 6276       if (!isa<FunctionDecl>(OldDecl) || !NewImportAttr)
 6407   if (DC->isFunctionOrMethod() || isa<OMPDeclareReductionDecl>(DC) ||
 6408       isa<OMPDeclareMapperDecl>(DC))
 6420       isa<OMPDeclareReductionDecl>(DC) || isa<OMPDeclareMapperDecl>(DC))
 6420       isa<OMPDeclareReductionDecl>(DC) || isa<OMPDeclareMapperDecl>(DC))
 6463   while (!DC->isFileContext() && !isa<LinkageSpecDecl>(DC))
 7067           isa<FieldDecl>(Previous.getFoundDecl()) &&
 7187   if (isa<TypeAliasDecl>(ShadowedDecl))
 7189   else if (isa<TypedefDecl>(ShadowedDecl))
 7191   else if (isa<RecordDecl>(OldDC))
 7192     return isa<FieldDecl>(ShadowedDecl) ? SDK_Field : SDK_StaticMember;
 7230   return isa<VarDecl>(ShadowedDecl) || isa<FieldDecl>(ShadowedDecl)
 7230   return isa<VarDecl>(ShadowedDecl) || isa<FieldDecl>(ShadowedDecl)
 7247   return isa<TypedefNameDecl>(ShadowedDecl) ? ShadowedDecl : nullptr;
 7271     if (isa<CXXConstructorDecl>(NewDC))
 7295   if (isa<VarDecl>(D) && isa<VarDecl>(ShadowedDecl) && NewDC &&
 7295   if (isa<VarDecl>(D) && isa<VarDecl>(ShadowedDecl) && NewDC &&
 7296       isa<CXXMethodDecl>(NewDC)) {
 7324           if (!isa<BlockDecl>(ParentDC) && !isa<CapturedDecl>(ParentDC) &&
 7324           if (!isa<BlockDecl>(ParentDC) && !isa<CapturedDecl>(ParentDC) &&
 7443     if (!isa<VarDecl>(ND))
 7453         if (isa<VarDecl>(*I)) {
 7463         if (isa<VarDecl>(*I)) {
 8801         !isa<CXXDeductionGuideDecl>(NewFD)) {
 8807       } else if (!isa<CXXConstructorDecl>(NewFD) &&
 8808                  !isa<CXXConversionDecl>(NewFD)) {
 8826       if (isa<CXXDestructorDecl>(NewFD) && !getLangOpts().CPlusPlus2a) {
 8873     if (isa<CXXMethodDecl>(NewFD) && DC == CurContext &&
 8881     if (SC == SC_Static && isa<CXXMethodDecl>(NewFD) &&
 9102     if (isa<FunctionNoProtoType>(FT) && !D.isFunctionDefinition()) {
 9227     } else if (isMemberSpecialization && isa<CXXMethodDecl>(NewFD)) {
 9294       if (isa<CXXRecordDecl>(NewFD->getDeclContext()))
 9349                isa<CXXMethodDecl>(NewFD) && NewFD->isOutOfLine() &&
 9764     if (isa<CXXConstructorDecl>(NewCXXFD))
 9768     if (isa<CXXDestructorDecl>(NewCXXFD))
10320       !MD->isStatic() && !isa<CXXConstructorDecl>(MD) &&
10321       !isa<CXXDestructorDecl>(MD) && !MD->getMethodQualifiers().hasConst()) {
10657   if (isa<FunctionNoProtoType>(FT)) return;
10906       if (isa<MemberExpr>(E)) {
10916           if (!isa<FieldDecl>(ME->getMemberDecl()))
10959         if (!isa<FieldDecl>(ME->getMemberDecl()))
10978       if (isa<UnresolvedLookupExpr>(Callee))
10989           isa<MemberExpr>(E->getSubExpr()->IgnoreParens())) {
11056       } else if (isa<TranslationUnitDecl>(OrigDecl->getDeclContext()) ||
11057                  isa<NamespaceDecl>(OrigDecl->getDeclContext()) ||
11077     if (isa<ParmVarDecl>(OrigDecl))
11129     if (!isa<DeducedTemplateSpecializationType>(Deduced) ||
11147   if (isa<DeducedTemplateSpecializationType>(Deduced)) {
11183   if (DirectInit && isa<InitListExpr>(DeduceInit)) {
11187         << isa<InitListExpr>(Init) << VN << Type << Range;
11206   if (VDecl && isa<DecompositionDecl>(VDecl) &&
11216     else if (isa<InitListExpr>(Init))
11295   if (isa<ImplicitValueInitExpr>(Init)) {
11566     assert(!isa<FieldDecl>(RealDecl) && "field init shouldn't get here");
11813                isa<InitListExpr>(Init)) {
12038     if (isa<DecompositionDecl>(RealDecl)) {
12716           isa<ClassTemplatePartialSpecializationDecl>(Context) ||
12759   if (VD->isFileVarDecl() && !isa<VarTemplatePartialSpecializationDecl>(VD))
12933     if (MaybeTagDecl && isa<TagDecl>(MaybeTagDecl)) {
13292   if (isa<CXXMethodDecl>(FD))
13583       assert(!isa<ParmVarDecl>(NonParmDecl) &&
13995     if (FD && isa<CXXConstructorDecl>(FD) && isa<CXXTryStmt>(Body))
13995     if (FD && isa<CXXConstructorDecl>(FD) && isa<CXXTryStmt>(Body))
14019         !isa<FunctionTemplateDecl>(dcl)) {
14046         if (!isa<AsmStmt>(S) && !isa<NullStmt>(S)) {
14046         if (!isa<AsmStmt>(S) && !isa<NullStmt>(S)) {
14122     if (!isa<FunctionDecl>(ExternCPrev) ||
14320       (isa<LinkageSpecDecl>(FD->getDeclContext()) &&
14477   if (isa<TypedefDecl>(PrevDecl))
14479   else if (isa<TypeAliasDecl>(PrevDecl))
14481   else if (isa<ClassTemplateDecl>(PrevDecl))
14483   else if (isa<TypeAliasTemplateDecl>(PrevDecl))
14485   else if (isa<TemplateTemplateParmDecl>(PrevDecl))
14988       while (isa<RecordDecl>(SearchDC) || isa<EnumDecl>(SearchDC))
14988       while (isa<RecordDecl>(SearchDC) || isa<EnumDecl>(SearchDC))
15371         if (isa<TypeAliasDecl>(PrevDecl)) Kind = 1;
15658   assert(isa<ObjCContainerDecl>(IDecl) &&
15717   if (isa<CXXRecordDecl>(Tag)) {
16120   if (PrevDecl && !isa<TagDecl>(PrevDecl)) {
16328         && !isa<TagDecl>(PrevDecl)) {
16356       !NewID->isInvalidDecl() && isa<ObjCInterfaceDecl>(EnclosingDecl))
16409   if (!Fields.empty() && isa<ObjCContainerDecl>(EnclosingDecl)) {
16478                (Record || isa<ObjCContainerDecl>(EnclosingDecl))) {
16567       if (isa<ObjCContainerDecl>(EnclosingDecl) &&
17136     if (!TheEnumDecl->isScoped() && isa<ValueDecl>(PrevDecl)) {
17143     assert((getLangOpts().CPlusPlus || !isa<TagDecl>(PrevDecl)) &&
17145     if (!isa<TagDecl>(PrevDecl) && isDeclInScope(PrevDecl, CurContext, S)) {
17146       if (isa<EnumConstantDecl>(PrevDecl))
17611   if (PrevDecl && (isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl))) {
17611   if (PrevDecl && (isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl))) {
17616           << /*Variable*/(isa<FunctionDecl>(PrevDecl) ? 0 : 1) << PrevDecl;
17645   if (PrevDecl && (isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl))) {
17645   if (PrevDecl && (isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl))) {
tools/clang/lib/Sema/SemaDeclAttr.cpp
   59   return (D->getFunctionType() != nullptr) || isa<ObjCMethodDecl>(D);
   65   return isFunctionOrMethod(D) || isa<BlockDecl>(D);
   72   return isa<DeclaratorDecl>(D) || isa<BlockDecl>(D) || isa<TypedefNameDecl>(D) ||
   72   return isa<DeclaratorDecl>(D) || isa<BlockDecl>(D) || isa<TypedefNameDecl>(D) ||
   72   return isa<DeclaratorDecl>(D) || isa<BlockDecl>(D) || isa<TypedefNameDecl>(D) ||
   73          isa<ObjCPropertyDecl>(D);
   81     return isa<FunctionProtoType>(FnTy);
   82   return isa<ObjCMethodDecl>(D) || isa<BlockDecl>(D);
   82   return isa<ObjCMethodDecl>(D) || isa<BlockDecl>(D);
  980   if (isa<FunctionDecl>(D) && !Cond->isValueDependent() &&
 1963   if (!isa<ObjCMethodDecl>(D)) {
 2052   if (!isa<CXXRecordDecl>(R)) {
 2075   if (isa<ParmVarDecl>(D)) {
 2506   if (isa<TypedefNameDecl>(D)) {
 2513       !(isa<TagDecl>(D) ||
 2514         isa<ObjCInterfaceDecl>(D) ||
 2515         isa<NamespaceDecl>(D))) {
 2681     if (isa<FunctionNoProtoType>(FT)) {
 2727       !isa<CXXConstructorDecl>(D)) {
 2769     else if (isa<ObjCPropertyDecl>(D) || isa<ObjCMethodDecl>(D) ||
 2769     else if (isa<ObjCPropertyDecl>(D) || isa<ObjCMethodDecl>(D) ||
 2771               (isa<ObjCInterfaceDecl>(D) || isa<EnumDecl>(D)))) {
 2771               (isa<ObjCInterfaceDecl>(D) || isa<EnumDecl>(D)))) {
 3660     if (isa<ParmVarDecl>(D)) {
 3670     } else if (!isa<TagDecl>(D)) {
 3973   if ((isa<EnumDecl>(D) || OldElemTy->getAs<EnumType>()) &&
 4210       !isa<IncompleteArrayType>(VD->getType())) {
 4274   if (!isa<ObjCMethodDecl>(D)) {
 4805   if (!isa<VarDecl>(D)) {
 5048     if (isa<ParmVarDecl>(D)) {
 5058       if (isa<ObjCMethodDecl>(D))
 5060       else if (isa<ObjCPropertyDecl>(D))
 5102   if (isa<ObjCMethodDecl>(D))
 5111         << (isa<ObjCMethodDecl>(D) ? EP_ObjCMethod : EP_ObjCProperty)
 5202   if (!isa<ObjCInterfaceDecl>(Ctx) &&
 5203       !(isa<ObjCCategoryDecl>(Ctx) &&
 5919   if (!isa<FunctionDecl>(D)) {
 5976   if (isa<ClassTemplatePartialSpecializationDecl>(D) &&
 6027     if (isa<ClassTemplatePartialSpecializationDecl>(RD)) {
 6370     assert(!isa<ParmVarDecl>(VD) && "should be diagnosed automatically");
 6408   if (!isa<BlockDecl>(D)) {
 7334   assert(isa<FunctionDecl>(ND) || isa<VarDecl>(ND));
 7334   assert(isa<FunctionDecl>(ND) || isa<VarDecl>(ND));
 7458   if (!isa<FieldDecl>(D) && !isa<ObjCPropertyDecl>(D) &&
 7458   if (!isa<FieldDecl>(D) && !isa<ObjCPropertyDecl>(D) &&
 7459       !isa<FunctionDecl>(D))
 7467   if ((isa<ObjCIvarDecl>(D) || isa<ObjCPropertyDecl>(D))) {
 7467   if ((isa<ObjCIvarDecl>(D) || isa<ObjCPropertyDecl>(D))) {
 7692     if (isa<TagDecl>(Ctx) || isa<FunctionDecl>(Ctx) || isa<ObjCMethodDecl>(Ctx))
 7692     if (isa<TagDecl>(Ctx) || isa<FunctionDecl>(Ctx) || isa<ObjCMethodDecl>(Ctx))
 7692     if (isa<TagDecl>(Ctx) || isa<FunctionDecl>(Ctx) || isa<ObjCMethodDecl>(Ctx))
 7768   if (isa<ObjCPropertyDecl>(D))
 8080         if (AnyAccessFailures && isa<DecompositionDecl>(decl))
 8221     if (!D || isa<FunctionDecl>(D))
 8359     if (isa<DeclStmt>(StmtOfUse) && Scope) {
tools/clang/lib/Sema/SemaDeclCXX.cpp
  608           else if (isa<ClassTemplatePartialSpecializationDecl>(Record))
  625   if (isa<CXXConstructorDecl>(New) &&
  666   if (isa<CXXDeductionGuideDecl>(New) &&
 1150             isa<NonTypeTemplateParmDecl>(TPL->getParam(0))) {
 1645                          PD->getSourceRange(), isa<CXXConstructorDecl>(FD),
 1693         << isa<CXXConstructorDecl>(NewFD)
 1702   if (!isa<CXXConstructorDecl>(NewFD)) {
 1796             << isa<CXXConstructorDecl>(Dcl);
 1812               << isa<CXXConstructorDecl>(Dcl);
 1838               << isa<CXXConstructorDecl>(Dcl)
 1845                              isa<CXXConstructorDecl>(Dcl)))
 1855                 << isa<CXXConstructorDecl>(Dcl);
 1867           << isa<CXXConstructorDecl>(Dcl);
 1885             << isa<CXXConstructorDecl>(Dcl) << Dcl->isConsteval();
 1985     if (isa<CXXConstructorDecl>(Dcl)) {
 2087     if (!isa<Expr>(S))
 2098         << isa<CXXConstructorDecl>(Dcl) << Dcl->isConsteval();
 2113   if (isa<CXXTryStmt>(Body)) {
 2137           << isa<CXXConstructorDecl>(Dcl);
 2166       << isa<CXXConstructorDecl>(Dcl);
 2172       << isa<CXXConstructorDecl>(Dcl);
 2302         << isa<CXXConstructorDecl>(Dcl);
 3045     unsigned DiagID = isa<CXXDestructorDecl>(MD)
 3107       if ((isa<FieldDecl>(Field) || isa<IndirectFieldDecl>(Field)) &&
 3107       if ((isa<FieldDecl>(Field) || isa<IndirectFieldDecl>(Field)) &&
 3162   assert(isa<CXXRecordDecl>(CurContext));
 3356       } else if (isa<VarDecl>(Member) || isa<VarTemplateDecl>(Member)) {
 3356       } else if (isa<VarDecl>(Member) || isa<VarTemplateDecl>(Member)) {
 3361       } else if (isa<TypedefDecl>(Member)) {
 3525       if (isa<EnumConstantDecl>(ME->getMemberDecl()))
 3538         if (isa<VarDecl>(SubME->getMemberDecl()))
 3551       if (!isa<CXXThisExpr>(Base->IgnoreParenImpCasts()))
 3560         while (isa<ImplicitCastExpr>(BaseCast->getSubExpr())) {
 3719       if (isa<MemberExpr>(Callee)) {
 3742       if (isa<UnresolvedLookupExpr>(Callee))
 3874   assert((isa<MSPropertyDecl>(D) || FD->getInClassInitStyle() != ICIS_NoInit) &&
 4013       return isa<TypeDecl>(ND);
 4249     if (isa<InitListExpr>(Init)) {
 5724     if (isa<CXXMethodDecl>(D)) {
 5726     } else if (isa<FunctionTemplateDecl>(D)) {
 5731     } else if (isa<FieldDecl>(D)) {
 5735     } else if (isa<VarDecl>(D)) {
 5741     } else if (isa<CXXRecordDecl>(D)) {
 5743     } else if (isa<ClassTemplateDecl>(D)) {
 5892       if (!isa<VarDecl>(Member) && !isa<CXXMethodDecl>(Member))
 5892       if (!isa<VarDecl>(Member) && !isa<CXXMethodDecl>(Member))
 5971             (Ctor || isa<CXXDestructorDecl>(MD)) && MD->isTrivial())
 6114     if (isa<CXXDestructorDecl>(FD))
 6279     else if (!isa<CXXDestructorDecl>(MD))
 6340       if (((isa<FieldDecl>(D) || isa<UnresolvedUsingValueDecl>(D)) &&
 6340       if (((isa<FieldDecl>(D) || isa<UnresolvedUsingValueDecl>(D)) &&
 6342           isa<IndirectFieldDecl>(D)) {
 6464       if (!isa<CXXDestructorDecl>(M))
 6986        (getLangOpts().CPlusPlus14 ? !isa<CXXDestructorDecl>(MD)
 6987                                   : isa<CXXConstructorDecl>(MD))) &&
 8792       << DeclaratorType << isa<TypeAliasDecl>(TT->getDecl());
 9235         MightInstantiateToSpecialization = !(TD && isa<ClassTemplateDecl>(TD) &&
 9689     if (!isa<TemplateTypeParmDecl>(Params->getParam(0)))
 9731       !isa<TemplateTypeParmDecl>(Params->getParam(0))) {
 9791       return isa<NamespaceDecl>(ND) || isa<NamespaceAliasDecl>(ND);
 9791       return isa<NamespaceDecl>(ND) || isa<NamespaceAliasDecl>(ND);
10054     if (isa<EnumDecl>(OrigDC)) OrigDC = OrigDC->getParent();
10083   if (isa<UsingShadowDecl>(Target))
10099     if (isa<UsingDecl>(D) || isa<UsingPackDecl>(D))
10099     if (isa<UsingDecl>(D) || isa<UsingPackDecl>(D))
10106       if (RD->isInjectedClassName() && !isa<FieldDecl>(Target) &&
10107           !isa<IndirectFieldDecl>(Target) &&
10108           !isa<UnresolvedUsingValueDecl>(Target) &&
10126       (isa<TagDecl>(D) ? Tag : NonTag) = D;
10164   if (isa<TagDecl>(Target)) {
10202   if (isa<UsingShadowDecl>(Target)) {
10204     assert(!isa<UsingShadowDecl>(Target) && "nested shadow declaration");
10212   if (NonTemplateTarget && isa<CXXConstructorDecl>(NonTemplateTarget)) {
10317     if (!ND || isa<NamespaceDecl>(ND))
10369     if (isa<TypeDecl>(ND))
10532         isa<TranslationUnitDecl>(LookupContext) &&
10652   assert(isa<UnresolvedUsingValueDecl>(InstantiatedFrom) ||
10653          isa<UnresolvedUsingTypenameDecl>(InstantiatedFrom) ||
10654          isa<UsingPackDecl>(InstantiatedFrom));
10716         if (!isa<TypeDecl>(D) && !isa<UsingDecl>(D) && !isa<UsingPackDecl>(D)) {
10716         if (!isa<TypeDecl>(D) && !isa<UsingDecl>(D) && !isa<UsingPackDecl>(D)) {
10716         if (!isa<TypeDecl>(D) && !isa<UsingDecl>(D) && !isa<UsingPackDecl>(D)) {
10718               isa<UnresolvedUsingValueDecl>(D) || isa<EnumConstantDecl>(D);
10718               isa<UnresolvedUsingValueDecl>(D) || isa<EnumConstantDecl>(D);
11170       unsigned DiagID = isa<NamespaceDecl>(PrevDecl->getUnderlyingDecl())
12411   } else if (!isa<CXXConstructorDecl>(CopyOp) &&
12422   } else if (isa<CXXConstructorDecl>(CopyOp) &&
12438       << RD << /*copy assignment*/!isa<CXXConstructorDecl>(CopyOp)
12439       << /*destructor*/isa<CXXDestructorDecl>(UserDeclaredOperation);
13283   return FD->isDeleted() && FD->isDefaulted() && isa<CXXMethodDecl>(FD);
13535       assert(isa<CXXRecordDecl>(Lookup[0]) &&
13538         if (isa<FieldDecl>(L)) {
13680   if (isa<NamespaceDecl>(DC)) {
13686   if (isa<TranslationUnitDecl>(DC) &&
13916                      + (isa<CXXMethodDecl>(FnDecl)? 1 : 0);
13945   if (MustBeMemberOperator && !isa<CXXMethodDecl>(FnDecl)) {
14022   if (isa<CXXMethodDecl>(FnDecl)) {
14489       if (InnerCond && !isa<CXXBoolLiteralExpr>(InnerCond)
14490                     && !isa<IntegerLiteral>(InnerCond)) {
14665     if (isa<DependentNameType>(T)) {
14962         if (isa<TranslationUnitDecl>(LookupDC)) break;
15024     assert(isa<CXXRecordDecl>(DC) && "friend declaration not in class?");
15228        (!isa<CXXConstructorDecl>(FD) &&
15236       !isa<CXXRecordDecl>(FD->getLexicalDeclContext())) {
15292     if (isa<ReturnStmt>(SubStmt))
15295     if (!isa<Expr>(SubStmt))
15555   if (isa<FunctionDecl>(Dcl)) { // The declarator shall not specify a function.
tools/clang/lib/Sema/SemaDeclObjC.cpp
   66           !isa<ObjCImplementationDecl>(method->getDeclContext()))
   74       if (isa<ObjCProtocolDecl>(method->getDeclContext())) {
  291     if (isa<ObjCMethodDecl>(ND)) {
  314       << (isa<ObjCMethodDecl>(ND)
  316               : isa<ObjCCategoryDecl>(ND) || IsCategory ? /*Category*/ 2
  318   if (isa<ObjCMethodDecl>(ND))
  323         << (isa<ObjCCategoryDecl>(ND) ? "category" : "class");
  863                  !(isa<ObjCInterfaceDecl>(prevTypeParam->getDeclContext()) &&
  990   if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
 1363         if (isa<RecordDecl>(typeDecl) && !Context.getLangOpts().CPlusPlus)
 1477           if (isa<ObjCInterfaceDecl>(decl)) {
 1480           } else if (!isa<TypeDecl>(decl)) {
 1970   if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
 2003     if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
 2331       !isa<ObjCImplementationDecl>(MethodImpl->getDeclContext()) &&
 2423       !isa<ObjCImplementationDecl>(MethodImpl->getDeclContext()) &&
 2833                                       isa<ObjCProtocolDecl>(CDecl));
 2835           WarnExactTypedMethods(ImpMethodDecl, I, isa<ObjCProtocolDecl>(CDecl));
 2859                                       isa<ObjCProtocolDecl>(CDecl));
 2861           WarnExactTypedMethods(ImpMethodDecl, I, isa<ObjCProtocolDecl>(CDecl));
 3041     if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
 3058         if (isa<ObjCObjectType>(TDD->getUnderlyingType())) {
 3159   if (isa<VectorType>(left)) return isa<VectorType>(right);
 3159   if (isa<VectorType>(left)) return isa<VectorType>(right);
 3160   if (isa<VectorType>(right)) return false;
 3191   if (!isa<RecordType>(lt) || !isa<RecordType>(rt)) return false;
 3191   if (!isa<RecordType>(lt) || !isa<RecordType>(rt)) return false;
 3199   if ((isa<CXXRecordDecl>(left) && !cast<CXXRecordDecl>(left)->isPOD()) ||
 3200       (isa<CXXRecordDecl>(right) && !cast<CXXRecordDecl>(right)->isPOD()))
 3824   if (!isa<ObjCInterfaceDecl>(OCD)) {
 3902         isa<ObjCInterfaceDecl>(ClassDecl) || isa<ObjCCategoryDecl>(ClassDecl)
 3902         isa<ObjCInterfaceDecl>(ClassDecl) || isa<ObjCCategoryDecl>(ClassDecl)
 3903          || isa<ObjCProtocolDecl>(ClassDecl);
 3904   bool checkIdenticalMethods = isa<ObjCImplementationDecl>(ClassDecl);
 3964   if (isa<ObjCInterfaceDecl>(ClassDecl)) {
 4332       if (isa<ObjCProtocolDecl>(overridden->getDeclContext()) ||
 4337       } else if (isa<ObjCImplDecl>(ObjCMethod->getDeclContext())) {
 4355                 !isa<ObjCCategoryImplDecl>(overridden->getDeclContext())) {
 4358                 if (isa<ObjCProtocolDecl>(SuperOverridden->getDeclContext()) ||
 4382     if (isa<ObjCInterfaceDecl>(ObjCMethod->getDeclContext()) ||
 4383         isa<ObjCImplementationDecl>(ObjCMethod->getDeclContext()))
 4385               isa<ObjCProtocolDecl>(overridden->getDeclContext()));
 4388         isa<ObjCInterfaceDecl>(overridden->getDeclContext()) &&
 4677         if (isa<ObjCCategoryImplDecl>(ImpDecl) && IMD->isOverriding() &&
 4794   if (isa<ObjCContainerDecl>(CurContext->getRedeclContext()))
 4799   if (isa<TranslationUnitDecl>(getCurLexicalContext()->getRedeclContext()))
tools/clang/lib/Sema/SemaExceptionSpec.cpp
  253   if (!isa<CXXDestructorDecl>(Decl) &&
  264     return isa<CXXDestructorDecl>(Decl);
  948   if (isa<CXXDestructorDecl>(New) && New->getParent()->isDependentType())
  986   if (D && isa<FunctionDecl>(D) && D->hasAttr<NoThrowAttr>())
  992   if (S.getLangOpts().CPlusPlus17 && isa<CallExpr>(E)) {
 1107     else if (isa<CXXPseudoDestructorExpr>(CE->getCallee()->IgnoreParens()))
tools/clang/lib/Sema/SemaExpr.cpp
  217   if (getLangOpts().CPlusPlus && isa<FunctionDecl>(D)) {
  242     if (isa<BindingDecl>(D)) {
  279         ((isa<CXXConstructorDecl>(MD) &&
  283         << !isa<CXXConstructorDecl>(MD);
  306       isa<VarDecl>(D)) {
  319       isa<VarDecl>(D)) {
  359   } else if (isa<VarDecl>(D)) {
  880           << isa<InitListExpr>(E) << Ty << CT;
 1820       isa<VarDecl>(D) &&
 1828   if (getLangOpts().ObjCWeak && isa<VarDecl>(D) &&
 1941     if (isa<CXXRecordDecl>(DC)) {
 2063       AcceptableWithRecovery = isa<ValueDecl>(UnderlyingND) ||
 2064                                isa<FunctionTemplateDecl>(UnderlyingND);
 2070       AcceptableWithoutRecovery = isa<TypeDecl>(UnderlyingND) ||
 2072                                   isa<ObjCInterfaceDecl>(UnderlyingND);
 2381       MightBeImplicitMember = isa<FieldDecl>(R.getFoundDecl()) ||
 2382                               isa<IndirectFieldDecl>(R.getFoundDecl()) ||
 2383                               isa<MSPropertyDecl>(R.getFoundDecl());
 2677   if (isa<FieldDecl>(Member)) {
 2780     assert(isa<UsingShadowDecl>(FoundDecl));
 2848     if (isa<UsingShadowDecl>(D))
 2857     if (isa<FunctionDecl>(D)) {
 2863     } else if (!isa<FunctionTemplateDecl>(D))
 2879   if (isa<TypedefNameDecl>(D)) {
 2884   if (isa<ObjCInterfaceDecl>(D)) {
 2889   if (isa<NamespaceDecl>(D)) {
 2950   assert(!isa<FunctionTemplateDecl>(D) &&
 3138           isa<FunctionProtoType>(fty))
 4103           (isa<CapturedRegionScopeInfo>(CSI) || isa<LambdaScopeInfo>(CSI)))
 4103           (isa<CapturedRegionScopeInfo>(CSI) || isa<LambdaScopeInfo>(CSI)))
 4326   return isa<MSPropertySubscriptExpr>(BaseNoParens);
 4338   if (isa<ParenListExpr>(base)) {
 4346       ((isa<BinaryOperator>(idx) && cast<BinaryOperator>(idx)->isCommaOp()) ||
 4347        (isa<CXXOperatorCallExpr>(idx) &&
 4413   if (!Res.isInvalid() && isa<ArraySubscriptExpr>(Res.get()))
 4437   if (isa<ArrayType>(ResultTy))
 4449   if (!(isa<ArrayType>(BaseTy) || isa<PointerType>(BaseTy)))
 4449   if (!(isa<ArrayType>(BaseTy) || isa<PointerType>(BaseTy)))
 5012       if (isa<ValueDecl>(ND) || isa<FunctionTemplateDecl>(ND))
 5012       if (isa<ValueDecl>(ND) || isa<FunctionTemplateDecl>(ND))
 5491            isa<CXXMethodDecl>(Callee)
 5622     if (isa<CXXPseudoDestructorExpr>(Fn)) {
 5729   } else if (isa<MemberExpr>(NakedFn))
 5954     assert(isa<FunctionNoProtoType>(FuncT) && "Unknown FunctionType!");
 6180           !isa<DesignatedInitExpr>(InitArgList[0])) {
 6188                isa<DesignatedInitExpr>(InitArgList[0])) {
 6704   if (isa<ParenListExpr>(CastExpr)) {
 6726   assert((isa<ParenListExpr>(E) || isa<ParenExpr>(E)) &&
 6726   assert((isa<ParenListExpr>(E) || isa<ParenExpr>(E)) &&
 7997     if (isa<PointerType>(lhptee) && isa<PointerType>(rhptee)) {
 7997     if (isa<PointerType>(lhptee) && isa<PointerType>(rhptee)) {
 8015       } while (isa<PointerType>(lhptee) && isa<PointerType>(rhptee));
 8015       } while (isa<PointerType>(lhptee) && isa<PointerType>(rhptee));
 8276     if (isa<PointerType>(RHSType)) {
 8296     if (isa<ObjCObjectPointerType>(RHSType)) {
 8332   if (isa<BlockPointerType>(LHSType)) {
 8368   if (isa<ObjCObjectPointerType>(LHSType)) {
 8389     if (isa<PointerType>(RHSType)) {
 8420   if (isa<PointerType>(RHSType)) {
 8437   if (isa<ObjCObjectPointerType>(RHSType)) {
 8454   if (isa<TagType>(LHSType) && isa<TagType>(RHSType)) {
 8454   if (isa<TagType>(LHSType) && isa<TagType>(RHSType)) {
 8931   assert(!isa<ExtVectorType>(VT) &&
 9036     if (isa<ExtVectorType>(LHSVecType)) {
 9072     if (isa<ExtVectorType>(LHSVecType)) {
 9083     if (isa<ExtVectorType>(RHSVecType)) {
 9138       RHSVecType && isa<ExtVectorType>(RHSVecType) &&
 9139       LHSVecType && isa<ExtVectorType>(LHSVecType)) {
 9149   if ((RHSVecType && !isa<ExtVectorType>(RHSVecType)) ||
 9150       (LHSVecType && !isa<ExtVectorType>(LHSVecType))) {
 9176   bool LHSNull = isa<GNUNullExpr>(LHS.get()->IgnoreParenImpCasts());
 9177   bool RHSNull = isa<GNUNullExpr>(RHS.get()->IgnoreParenImpCasts());
 9559   if (isa<CharacterLiteral>(RHSExpr->IgnoreImpCasts())) {
10389   if (isa<CastExpr>(LHSStripped))
10391   if (isa<CastExpr>(RHSStripped))
10398   if ((isa<StringLiteral>(LHSStripped) || isa<ObjCEncodeExpr>(LHSStripped)) &&
10398   if ((isa<StringLiteral>(LHSStripped) || isa<ObjCEncodeExpr>(LHSStripped)) &&
10403   } else if ((isa<StringLiteral>(RHSStripped) ||
10404               isa<ObjCEncodeExpr>(RHSStripped)) &&
10414                               << isa<ObjCEncodeExpr>(LiteralStringStripped)
10881       if (isa<FunctionDecl>(DC))
11093   if (isa<ExtVectorType>(VTy)) {
11294       !(isa<ExtVectorType>(vType->getAs<VectorType>())))
11444   if (!isa<FieldDecl>(ME->getMemberDecl())) return false;
11488   return (isa<BlockDecl>(DC) ? NCCK_Block : NCCK_Lambda);
11609   } else if (isa<CXXThisExpr>(E)) {
11733       if (declRef && isa<VarDecl>(declRef->getDecl())) {
11751                      isa<ParmVarDecl>(var)) {
11846     if (!(isa<CXXThisExpr>(ML->getBase()) && isa<CXXThisExpr>(MR->getBase())))
11846     if (!(isa<CXXThisExpr>(ML->getBase()) && isa<CXXThisExpr>(MR->getBase())))
12289       if (!isa<OverloadExpr>(E)) {
12297       if (isa<UnresolvedMemberExpr>(Ovl))
12372   } else if (isa<ObjCSelectorExpr>(op)) {
12379     if (!isa<DeclRefExpr>(op)) {
12407     if (isa<CXXDestructorDecl>(MD))
12421       if (isa<PseudoObjectExpr>(op)) {
12445     } else if (isa<MSPropertyDecl>(dcl)) {
12447     } else if (isa<FunctionTemplateDecl>(dcl)) {
12449     } else if (isa<FieldDecl>(dcl) || isa<IndirectFieldDecl>(dcl)) {
12449     } else if (isa<FieldDecl>(dcl) || isa<IndirectFieldDecl>(dcl)) {
12453       if (isa<DeclRefExpr>(op) && cast<DeclRefExpr>(op)->getQualifier()) {
12475     } else if (!isa<FunctionDecl>(dcl) && !isa<NonTypeTemplateParmDecl>(dcl) &&
12475     } else if (!isa<FunctionDecl>(dcl) && !isa<NonTypeTemplateParmDecl>(dcl) &&
12476                !isa<BindingDecl>(dcl))
12532   if (isa<CXXReinterpretCastExpr>(Op)) {
12702   if (ObjCPointerExpr && isa<IntegerLiteral>(OtherExpr->IgnoreParenCasts())) {
12803   if (getLangOpts().CPlusPlus11 && isa<InitListExpr>(RHSExpr)) {
13032     if (ObjectSetClass && isa<ObjCIsaExpr>(LHS.get())) {
13385             return isa<FunctionTemplateDecl>(ND);
13662       !isa<ArrayType>(UO->getType().getDesugaredType(Context)))
13683     if (isa<FieldDecl>(VD) || isa<IndirectFieldDecl>(VD))
13683     if (isa<FieldDecl>(VD) || isa<IndirectFieldDecl>(VD))
13788   assert(SubStmt && isa<CompoundStmt>(SubStmt) && "Invalid action invocation!");
14004         assert(isa<FieldDecl>(FI));
14165     (isa<FunctionProtoType>(Fn) && cast<FunctionProtoType>(Fn)->isVariadic());
14273     if (isa<FunctionNoProtoType>(FTy)) {
14347         if (isa<ParmVarDecl>(Var))
14956     if (!isa<ConstantExpr>(E))
14971   if (!isa<ConstantExpr>(E))
15032       if (isa<FieldDecl>(E->getDecl()) &&
15424     if (isa<CXXDestructorDecl>(Func))
15526         } else if (isa<CXXConversionDecl>(MethodDecl) &&
15557           if (isa<CXXRecordDecl>(Func->getDeclContext()) &&
15663   if (isa<ParmVarDecl>(var) &&
15664       isa<TranslationUnitDecl>(VarDC))
15677   unsigned ValueKind = isa<BindingDecl>(var) ? 1 : 0;
15679   if (isa<CXXMethodDecl>(VarDC) &&
15682   } else if (isa<FunctionDecl>(VarDC)) {
15684   } else if (isa<BlockDecl>(VarDC)) {
15718         !(isa<LambdaScopeInfo>(CSI) && cast<LambdaScopeInfo>(CSI)->Mutable) &&
15719         !(isa<CapturedRegionScopeInfo>(CSI) &&
15732   if (isa<BlockDecl>(DC) || isa<CapturedDecl>(DC) || isLambdaCallOperator(DC))
15732   if (isa<BlockDecl>(DC) || isa<CapturedDecl>(DC) || isLambdaCallOperator(DC))
15748   bool IsBlock = isa<BlockScopeInfo>(CSI);
15749   bool IsLambda = isa<LambdaScopeInfo>(CSI);
15791   if (HasBlocksAttr && (IsLambda || isa<CapturedRegionScopeInfo>(CSI))) {
16434     if (isa<FieldDecl>(ME->getMemberDecl())) {
16687   assert((!E || isa<DeclRefExpr>(E) || isa<MemberExpr>(E) ||
16687   assert((!E || isa<DeclRefExpr>(E) || isa<MemberExpr>(E) ||
16688           isa<FunctionParmPackExpr>(E)) &&
16716   assert(!isa<VarTemplatePartialSpecializationDecl>(Var) &&
16723       !isa<VarTemplateSpecializationDecl>(Var))
16765                    isa<VarTemplateSpecializationDecl>(Var)) {
16806     assert((!E || isa<FunctionParmPackExpr>(E)) &&
17386       if (!isa<FunctionDecl>(VD)) return VisitExpr(E);
17392           !(isa<CXXMethodDecl>(VD) &&
17475       if (isa<CallExpr>(E->getSubExpr())) {
17520     assert(isa<CXXMemberCallExpr>(E) || isa<CXXOperatorCallExpr>(E));
17520     assert(isa<CXXMemberCallExpr>(E) || isa<CXXOperatorCallExpr>(E));
17658     assert(isa<BlockPointerType>(E->getType()));
17739   } else if (isa<VarDecl>(VD)) {
17898     if (isa<CXXPseudoDestructorExpr>(BME)) {
tools/clang/lib/Sema/SemaExprCXX.cpp
  195     } else if (DC && isa<CXXRecordDecl>(DC)) {
 1015        I-- && isa<LambdaScopeInfo>(FunctionScopes[I]) &&
 1093     assert(isa<CXXRecordDecl>(DC) &&
 1340           (Exprs.size() == 1 && isa<InitListExpr>(Exprs[0]))) &&
 1359   if (Deduced && isa<DeducedTemplateSpecializationType>(Deduced)) {
 1372       !isa<InitListExpr>(Exprs[0])) {
 1412   if (!isa<CXXTemporaryObjectExpr>(Inner) &&
 1413       !isa<CXXScalarValueInitExpr>(Inner)) {
 1726   if (isa<ImplicitValueInitExpr>(Init))
 1732     assert(isa<InitListExpr>(Init) &&
 1787   } else if (Initializer && isa<InitListExpr>(Initializer))
 1790     assert((!Initializer || isa<ImplicitValueInitExpr>(Initializer) ||
 1791             isa<CXXConstructExpr>(Initializer)) &&
 1826   if (Deduced && isa<DeducedTemplateSpecializationType>(Deduced)) {
 3362         else if (OperatorDelete && isa<CXXMethodDecl>(OperatorDelete))
 4484       if (isa<FunctionTemplateDecl>(*Op))
 4821         if (isa<FunctionTemplateDecl>(ND->getUnderlyingDecl()))
 4824         if (isa<UsingDecl>(ND))
 4860         if (isa<FunctionTemplateDecl>(ND->getUnderlyingDecl()))
 4863         if (isa<UsingDecl>(ND))
 5493   if (isa<CXXScalarValueInitExpr>(RHS.get()->IgnoreParens())) {
 5781     bool LThrow = isa<CXXThrowExpr>(LHS.get()->IgnoreParenImpCasts());
 5782     bool RThrow = isa<CXXThrowExpr>(RHS.get()->IgnoreParenImpCasts());
 6361   assert(!isa<CXXBindTemporaryExpr>(E) && "Double-bound temporary?");
 6401     } else if (isa<StmtExpr>(E)) {
 6406     } else if (isa<CastExpr>(E) &&
 6407                isa<BlockExpr>(cast<CastExpr>(E)->getSubExpr())) {
 7204     if (isa<LambdaExpr>(SubE)) {
 7284   if (isa<DeclRefExpr>(E))
 7288   if (isa<ArraySubscriptExpr>(E))
 7292   if (isa<MemberExpr>(E))
 7324   if (isa<PseudoObjectExpr>(E) || isa<ObjCIvarRefExpr>(E))
 7324   if (isa<PseudoObjectExpr>(E) || isa<ObjCIvarRefExpr>(E))
 7427   if (isa<ParmVarDecl>(Var)) return true;
 7462   while (DC && isa<CapturedDecl>(DC))
 7580         MightBeImplicitMember = isa<FieldDecl>(ND) ||
 7581                                 isa<IndirectFieldDecl>(ND) ||
 7582                                 isa<MSPropertyDecl>(ND);
 8029   while (DC && isa<CapturedDecl>(DC))
tools/clang/lib/Sema/SemaExprMember.cpp
   95     (!isa<CXXMethodDecl>(DC) || cast<CXXMethodDecl>(DC)->isStatic());
  109       isField |= isa<FieldDecl>(D) || isa<MSPropertyDecl>(D) ||
  109       isField |= isa<FieldDecl>(D) || isa<MSPropertyDecl>(D) ||
  110                  isa<IndirectFieldDecl>(D);
  213   bool IsField = isa<FieldDecl>(Rep) || isa<IndirectFieldDecl>(Rep);
  213   bool IsField = isa<FieldDecl>(Rep) || isa<IndirectFieldDecl>(Rep);
  610     if (!ND || !(isa<ValueDecl>(ND) || isa<FunctionTemplateDecl>(ND)))
  610     if (!ND || !(isa<ValueDecl>(ND) || isa<FunctionTemplateDecl>(ND)))
  679     if (!isa<TypeDecl>(DC)) {
  999       (isa<CXXDestructorDecl>(FD) || isa<CXXConstructorDecl>(FD)) &&
  999       (isa<CXXDestructorDecl>(FD) || isa<CXXConstructorDecl>(FD)) &&
 1000       isa<CXXThisExpr>(BaseExpr->IgnoreImpCasts()) &&
 1003         << isa<CXXDestructorDecl>(FD);
 1050        (isa<CXXThisExpr>(BaseExpr) &&
 1094       assert((!TemplateArgs || isa<VarTemplateDecl>(MemberDecl)) &&
 1096       if (isa<VarTemplateDecl>(MemberDecl)) {
 1153   assert(!isa<FunctionDecl>(MemberDecl) && "member function not C++ method?");
 1172   if (isa<TypeDecl>(MemberDecl))
 1732   if (!Res.isInvalid() && isa<MemberExpr>(Res.get()))
 1743   if (isa<ArrayType>(ResultTy))
 1816       isa<CXXThisExpr>(Base.get()->IgnoreParenImpCasts())) {
tools/clang/lib/Sema/SemaExprObjC.cpp
  423     if (isa<IntegerLiteral>(OrigElement) ||
  424         isa<CharacterLiteral>(OrigElement) ||
  425         isa<FloatingLiteral>(OrigElement) ||
  426         isa<ObjCBoolLiteralExpr>(OrigElement) ||
  427         isa<CXXBoolLiteralExpr>(OrigElement)) {
  429         int Which = isa<CharacterLiteral>(OrigElement) ? 1
  430                   : (isa<CXXBoolLiteralExpr>(OrigElement) ||
  431                      isa<ObjCBoolLiteralExpr>(OrigElement)) ? 2
 1132         isa<ObjCImplDecl>(MatchingMethodDecl->getDeclContext()) ||
 1954       if (ChosenDecl && isa<ObjCPropertyDecl>(ChosenDecl))
 3222   if (isa<ParenListExpr>(Receiver)) {
 3597     if (isa<ParenExpr>(castedE)) {
 3630     if (isa<ParenExpr>(castedE)) {
 3820           if (Target && isa<ObjCInterfaceDecl>(Target)) {
 3886           if (Target && isa<ObjCInterfaceDecl>(Target)) {
 4054   if (Target && isa<ObjCInterfaceDecl>(Target))
 4374     assert(isa<ImplicitCastExpr>(e) && "bad form of unbridged cast!");
 4385   if (isa<ObjCObjectPointerType>(canCastType) &&
tools/clang/lib/Sema/SemaFixItUtils.cpp
   34   if (isa<PointerType>(From) && isa<PointerType>(To)) {
   34   if (isa<PointerType>(From) && isa<PointerType>(To)) {
   68   if (isa<ArraySubscriptExpr>(Expr) ||
   69       isa<CallExpr>(Expr) ||
   70       isa<DeclRefExpr>(Expr) ||
   71       isa<CastExpr>(Expr) ||
   72       isa<CXXNewExpr>(Expr) ||
   73       isa<CXXConstructExpr>(Expr) ||
   74       isa<CXXDeleteExpr>(Expr) ||
   75       isa<CXXNoexceptExpr>(Expr) ||
   76       isa<CXXPseudoDestructorExpr>(Expr) ||
   77       isa<CXXScalarValueInitExpr>(Expr) ||
   78       isa<CXXThisExpr>(Expr) ||
   79       isa<CXXTypeidExpr>(Expr) ||
   80       isa<CXXUnresolvedConstructExpr>(Expr) ||
   81       isa<ObjCMessageExpr>(Expr) ||
   82       isa<ObjCPropertyRefExpr>(Expr) ||
   83       isa<ObjCProtocolExpr>(Expr) ||
   84       isa<MemberExpr>(Expr) ||
   85       isa<ParenExpr>(FullExpr) ||
   86       isa<ParenListExpr>(Expr) ||
   87       isa<SizeOfPackExpr>(Expr) ||
   88       isa<UnaryOperator>(Expr))
  127   if (isa<PointerType>(ToQTy)) {
tools/clang/lib/Sema/SemaInit.cpp
   64   if (!isa<ConstantArrayType>(AT) && !isa<IncompleteArrayType>(AT))
   64   if (!isa<ConstantArrayType>(AT) && !isa<IncompleteArrayType>(AT))
   71   if (isa<ObjCEncodeExpr>(Init) && AT->getElementType()->isCharType())
  149     if (isa<StringLiteral>(E) || isa<ObjCEncodeExpr>(E)) {
  149     if (isa<StringLiteral>(E) || isa<ObjCEncodeExpr>(E)) {
  171     if (isa<CompoundLiteralExpr>(E)) {
  710     } else if (!isa<ImplicitValueInitExpr>(MemberInit.get())) {
  774     else if (RDecl->isUnion() && isa<CXXRecordDecl>(RDecl) &&
  907         if (!isa<ImplicitValueInitExpr>(Filler) && !isa<NoInitExpr>(Filler)) {
  907         if (!isa<ImplicitValueInitExpr>(Filler) && !isa<NoInitExpr>(Filler)) {
  931     if (Init && isa<DesignatedInitExpr>(Init))
 1221         !isa<InitListExpr>(IList->getInit(0)))
 1330   } else if (isa<ImplicitValueInitExpr>(expr)) {
 1340   if (SemaRef.getLangOpts().CPlusPlus || isa<InitListExpr>(expr)) {
 1366     if (Seq || isa<InitListExpr>(expr)) {
 1534   } else if (isa<DesignatedInitExpr>(expr)) {
 1597   if (isa<InitListExpr>(expr) && !SemaRef.getLangOpts().CPlusPlus11) {
 1656     if (!isa<InitListExpr>(Init) && Init->getType()->isVectorType()) {
 1960   if (isa<InitListExpr>(InitExpr) &&
 2022     if (isa<CXXRecordDecl>(RD) &&
 2060     if (Init && isa<DesignatedInitExpr>(Init))
 2243   if (isa<InitListExpr>(IList->getInit(Index)))
 2272     assert(isa<FieldDecl>(*PI));
 2376       assert(isa<InitListExpr>(Init) &&
 2683       if (!hadError && !isa<InitListExpr>(DIE->getInit()) &&
 2684           !isa<StringLiteral>(DIE->getInit())) {
 2821   if (isa<ConstantArrayType>(AT)) {
 3899         (IsListInit && Args.size() == 1 && isa<InitListExpr>(Args[0]) &&
 3993           (Args.size() == 1 && isa<InitListExpr>(Args[0]))) &&
 4319       if (!isa<VariableArrayType>(DestAT) &&
 4539       if (isa<UsingShadowDecl>(D))
 4588   if (isa<CXXConversionDecl>(Function))
 4618     assert(!isa<CXXConstructorDecl>(Function) &&
 5194         if (isa<UsingShadowDecl>(D))
 5232   if (isa<CXXConstructorDecl>(Function)) {
 5312          isa<CXXBoolLiteralExpr>(Init) &&
 5352   } else if (isa<DeclRefExpr>(e)) {
 5374   } else if (isa<ArraySubscriptExpr>(e)) {
 5544   if (!DRE || !isa<FunctionDecl>(DRE->getDecl()))
 5565     return isa<DecompositionDecl>(Entity.getDecl());
 5638     if (!isa<InitListExpr>(Initializer))
 5665     else if (isa<InitListExpr>(Args[0]))
 5691     if (Initializer && isa<VariableArrayType>(DestAT)) {
 5723     if (Initializer && isa<ConstantArrayType>(DestAT) &&
 5753         isa<CompoundLiteralExpr>(Initializer->IgnoreParens()) &&
 5769              Initializer && isa<InitListExpr>(Initializer)) {
 5841   } else if (isa<InitListExpr>(Args[0])) {
 5945         isa<ObjCMethodDecl>(Entity.getDecl()->getDeclContext()))
 5952       isa<ObjCMethodDecl>(Entity.getDecl()->getDeclContext()))
 6789     if (isa<MemberExpr>(Arg->IgnoreImpCasts()))
 6862   if (isa<CXXOperatorCallExpr>(Call) && Callee->isCXXInstanceMember()) {
 6953   if (isa<CallExpr>(Init)) {
 6969       } else if (isa<ParmVarDecl>(DRE->getDecl())) {
 7200   if (isa<CallExpr>(Init) || isa<CXXConstructExpr>(Init)) {
 7200   if (isa<CallExpr>(Init) || isa<CXXConstructExpr>(Init)) {
 7215       if (isa<MaterializeTemporaryExpr>(UO->getSubExpr()))
 7339       if (isa<DeclRefExpr>(L)) {
 7413       if (isa<MaterializeTemporaryExpr>(L)) {
 7475               << Member << VD << isa<ParmVarDecl>(VD) << DiagRange;
 7485       if (isa<MaterializeTemporaryExpr>(L)) {
 7508             << isa<ParmVarDecl>(DRE->getDecl()) << DiagRange;
 7509       } else if (isa<BlockExpr>(L)) {
 7511       } else if (isa<AddrLabelExpr>(L)) {
 7635     if (isa<ParmVarDecl>(VD))
 7785         if (isa<InitListExpr>((Expr *)Args[0])) {
 7826       Args.size() == 1 && isa<InitListExpr>(Args[0]) &&
 7916       CurInit.get() && isa<InitListExpr>(CurInit.get()));
 8509           if (!Var->getInit() || !isa<ImplicitCastExpr>(Var->getInit()))
 8847     if (isa<InitListExpr>(Args[0])) {
 9010             isa<CXXConstructorDecl>(S.CurContext)) {
 9094         isa<CXXConstructorDecl>(S.CurContext)) {
 9838       if (!isa<InitListExpr>(E) && RD &&
tools/clang/lib/Sema/SemaLambda.cpp
   71   while (CurScopeIndex > 0 && isa<clang::sema::CapturedRegionScopeInfo>(
   75       isa<clang::sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex]) &&
  310     } else if (isa<FieldDecl>(ManglingContextDecl)) {
  325          !(ManglingContextDecl && isa<ParmVarDecl>(ManglingContextDecl))) ||
  696   assert((!isa<LambdaScopeInfo>(CSI) || !getLangOpts().CPlusPlus14) &&
  740     assert(isa<BlockScopeInfo>(CSI));
  780         << ReturnType << CSI.ReturnType << isa<LambdaScopeInfo>(CSI);
 1813       !isa<CoroutineBodyStmt>(CallOperator->getBody()) &&
tools/clang/lib/Sema/SemaLookup.cpp
  332           isa<FunctionTemplateDecl>((*begin())->getUnderlyingDecl())));
  369   if (Kind == Sema::LookupUsingDeclName && isa<UsingShadowDecl>(D) &&
  370       !isa<UsingShadowDecl>(Existing))
  383     assert(isa<TypeDecl>(DUnderlying) && isa<TypeDecl>(EUnderlying));
  383     assert(isa<TypeDecl>(DUnderlying) && isa<TypeDecl>(EUnderlying));
  384     bool HaveTag = isa<TagDecl>(EUnderlying);
  440   if (!isa<FunctionDecl>(DUnderlying) && !isa<VarDecl>(DUnderlying)) {
  440   if (!isa<FunctionDecl>(DUnderlying) && !isa<VarDecl>(DUnderlying)) {
  469   return isa<VarDecl>(D) || isa<EnumConstantDecl>(D) || isa<FunctionDecl>(D) ||
  469   return isa<VarDecl>(D) || isa<EnumConstantDecl>(D) || isa<FunctionDecl>(D) ||
  469   return isa<VarDecl>(D) || isa<EnumConstantDecl>(D) || isa<FunctionDecl>(D) ||
  470          isa<FunctionTemplateDecl>(D) || isa<FieldDecl>(D) ||
  470          isa<FunctionTemplateDecl>(D) || isa<FieldDecl>(D) ||
  471          isa<UnresolvedUsingValueDecl>(D);
  489     if (isa<FunctionTemplateDecl>(D))
  491     else if (isa<UnresolvedUsingValueDecl>(D))
  560     if (isa<UnresolvedUsingValueDecl>(D)) {
  562     } else if (isa<TagDecl>(D)) {
  567     } else if (isa<FunctionTemplateDecl>(D)) {
  570     } else if (isa<FunctionDecl>(D)) {
  604     if (isa<TagDecl>(Decls[UniqueTagIndex]->getUnderlyingDecl()) &&
 1022       !isa<CXXRecordDecl>(DC))
 1658   assert(isa<CXXRecordDecl>(D->getDeclContext()) &&
 1694     return DC->isFileContext() || isa<LinkageSpecDecl>(DC) ||
 1695            isa<ExportDecl>(DC);
 1723     } else if (isa<ParmVarDecl>(D) ||
 1724                (isa<FunctionDecl>(DC) && !SemaRef.getLangOpts().CPlusPlus))
 1957                  !isa<ImplicitParamDecl>(*I))
 2144   if (isa<VarDecl>(D) || isa<TypeDecl>(D) || isa<EnumConstantDecl>(D))
 2144   if (isa<VarDecl>(D) || isa<TypeDecl>(D) || isa<EnumConstantDecl>(D))
 2144   if (isa<VarDecl>(D) || isa<TypeDecl>(D) || isa<EnumConstantDecl>(D))
 2147   if (isa<CXXMethodDecl>(D)) {
 2153       if (!isa<CXXMethodDecl>(D)) {
 2154         assert(isa<TagDecl>(D) && "Non-function must be a tag decl");
 2201   assert((!isa<TagDecl>(LookupCtx) ||
 2221     if (isa<CXXRecordDecl>(LookupCtx))
 2552     while (isa<CXXMethodDecl>(*Found) &&
 2588       if (!isa<TagDecl>(D))
 3245       assert(isa<UsingDecl>(Cand.getDecl()) &&
 3563       if (!isa<FunctionDecl>(Underlying) &&
 3564           !isa<FunctionTemplateDecl>(Underlying))
 3699       if (isa<UsingShadowDecl>(ND) && isa<UsingDecl>(D) &&
 3699       if (isa<UsingShadowDecl>(ND) && isa<UsingDecl>(D) &&
 3768     if (isa<TranslationUnitDecl>(Ctx) &&
 3805                 !(isa<TranslationUnitDecl>(Ctx) || isa<NamespaceDecl>(Ctx));
 3805                 !(isa<TranslationUnitDecl>(Ctx) || isa<NamespaceDecl>(Ctx));
 4310           (SSIsTemplate || !isa<ClassTemplateSpecializationDecl>(CD)) &&
 4729       if (isa<CXXMethodDecl>(SemaRef.CurContext) &&
 4811       isa<CXXMethodDecl>(CurContext))
 5186     if (!isa<TypeDecl>(D))
 5219       if (!(FD = dyn_cast<FunctionDecl>(ND)) && isa<ValueDecl>(ND)) {
 5236                                  : isa<TypeDecl>(ND)) &&
 5239       return NumArgs <= 1 || HasExplicitTemplateArgs || isa<CXXRecordDecl>(ND);
tools/clang/lib/Sema/SemaModule.cpp
   41   while (isa<LinkageSpecDecl>(DC) || isa<ExportDecl>(DC))
   41   while (isa<LinkageSpecDecl>(DC) || isa<ExportDecl>(DC))
   44   if (!isa<TranslationUnitDecl>(DC)) {
  599   if (isa<EmptyDecl>(D))
  601   if (isa<StaticAssertDecl>(D))
  603   if (isa<FileScopeAsmDecl>(D))
  605   if (isa<UsingDirectiveDecl>(D))
  676     if (DC->getRedeclContext()->isFileContext() && !isa<EnumDecl>(D))
tools/clang/lib/Sema/SemaObjCProperty.cpp
  225                               (isa<ObjCInterfaceDecl>(ClassDecl) ||
  226                                isa<ObjCProtocolDecl>(ClassDecl)));
  448   if (PIDecl && isa<ObjCCategoryDecl>(PIDecl->getDeclContext())) {
  543     if (!isa<ObjCObjectPointerType>(PrimaryClassPropertyT) ||
  544         !isa<ObjCObjectPointerType>(ClassExtPropertyT) ||
  836   assert(isa<ObjCProtocolDecl>(Property->getDeclContext()) &&
 1139     if (Synthesize && isa<ObjCProtocolDecl>(property->getDeclContext()))
 1335       if (isa<ObjCObjectPointerType>(PropertyIvarType)
 1336           && isa<ObjCObjectPointerType>(IvarType))
 1623         isa<ObjCProtocolDecl>(SuperProperty->getDeclContext()))) {
 1958         isa<ObjCCategoryDecl>(CDecl)
 2311     if (isa<DeprecatedAttr>(A) ||
 2312         isa<UnavailableAttr>(A) ||
 2313         isa<AvailabilityAttr>(A))
tools/clang/lib/Sema/SemaOpenMP.cpp
  385     assert(!isa<CapturingScopeInfo>(CurFnScope));
  398       if (!isa<CapturingScopeInfo>(FSI)) {
  548         return isa<ClauseType>(C);
  913     if (VD && !VD->isFunctionOrMethodVarDecl() && !isa<ParmVarDecl>(VD))
 1811           if (isa<DeclRefExpr>(EI->getAssociatedExpression()))
 1818           if (isa<ArraySubscriptExpr>(EI->getAssociatedExpression()) ||
 1819               isa<OMPArraySectionExpr>(EI->getAssociatedExpression()) ||
 1820               isa<MemberExpr>(EI->getAssociatedExpression())) {
 1858         !(isa<OMPCapturedExprDecl>(D) && !D->hasAttr<OMPCaptureNoInitAttr>() &&
 1935       if(!isa<CapturingScopeInfo>(FSI))
 2240     if (ND && ((isa<VarDecl>(ND) && ND->getKind() == Decl::Var) ||
 2241                isa<FunctionDecl>(ND))) {
 2690       if (isa<OMPUnifiedSharedMemoryClause>(CNew) ||
 2691           isa<OMPUnifiedAddressClause>(CNew) ||
 2692           isa<OMPReverseOffloadClause>(CNew) ||
 2693           isa<OMPDynamicAllocatorsClause>(CNew)) {
 2797       } else if (VD->isImplicit() || isa<OMPCapturedExprDecl>(VD))
 2849                                       (isa<OMPArraySectionExpr>(
 2851                                        isa<ArraySubscriptExpr>(
 2929                 return isa<CXXThisExpr>(
 3001                     if (!(isa<OMPArraySectionExpr>(
 3003                           isa<ArraySubscriptExpr>(
 3031       if (C && !((isa<OMPFirstprivateClause>(C) || isa<OMPMapClause>(C)) &&
 3031       if (C && !((isa<OMPFirstprivateClause>(C) || isa<OMPMapClause>(C)) &&
 4111   if ((!DE || !isa<VarDecl>(DE->getDecl())) &&
 4113        !isa<CXXThisExpr>(ME->getBase()->IgnoreParenImpCasts()) ||
 4114        !isa<FieldDecl>(ME->getMemberDecl()))) {
 4250     assert(isa<CapturedStmt>(AStmt) && "Captured statement expected");
 4675     if (P.getFirst()->isImplicit() || isa<OMPCapturedExprDecl>(P.getFirst()))
 4760     if (isa<CXXThisExpr>(E)) {
 4765         << FD->getDeclName() << (isa<CXXMethodDecl>(ADecl) ? 1 : 0);
 4809     if (isa<CXXThisExpr>(E)) {
 4820         << FD->getDeclName() << (isa<CXXMethodDecl>(ADecl) ? 1 : 0);
 4886     if (isa<CXXThisExpr>(E)) {
 4906         << FD->getDeclName() << (isa<CXXMethodDecl>(ADecl) ? 1 : 0);
 5122     if (isa<CXXConstructorDecl>(FD)) {
 5128     if (isa<CXXDestructorDecl>(FD)) {
 5593     if (isa<VarDecl>(VD))
 5598     if (isa<CXXThisExpr>(E->getBase()->IgnoreParens())) {
 5600       if (isa<VarDecl>(VD) || isa<FieldDecl>(VD))
 5600       if (isa<VarDecl>(VD) || isa<FieldDecl>(VD))
 5674             isa<CXXThisExpr>(ME->getBase()->IgnoreParenImpCasts()))
 5709             isa<CXXThisExpr>(ME->getBase()->IgnoreParenImpCasts()))
 5742     if (ME->isArrow() && isa<CXXThisExpr>(ME->getBase()->IgnoreParenImpCasts()))
 6389         isa<VarDecl>(LCDecl)
 6956       assert(isa<CXXForRangeStmt>(CurStmt) &&
 6971       if (isa<OMPCapturedExprDecl>(DRE->getDecl())) {
 6983       assert(isa<CXXForRangeStmt>(CurStmt) &&
 7651   assert(isa<CapturedStmt>(AStmt) && "Captured statement expected");
 7690   assert(isa<CapturedStmt>(AStmt) && "Captured statement expected");
 7725   assert(isa<CapturedStmt>(AStmt) && "Captured statement expected");
 7765   assert(isa<CapturedStmt>(AStmt) && "Captured statement expected");
 7776       if (!SectionStmt || !isa<OMPSectionDirective>(SectionStmt)) {
 7802   assert(isa<CapturedStmt>(AStmt) && "Captured statement expected");
 7818   assert(isa<CapturedStmt>(AStmt) && "Captured statement expected");
 7848   assert(isa<CapturedStmt>(AStmt) && "Captured statement expected");
 7861   assert(isa<CapturedStmt>(AStmt) && "Captured statement expected");
 8008   assert(isa<CapturedStmt>(AStmt) && "Captured statement expected");
 8019       if (!SectionStmt || !isa<OMPSectionDirective>(SectionStmt)) {
 8082   assert(isa<CapturedStmt>(AStmt) && "Captured statement expected");
 8167     assert(isa<CapturedStmt>(AStmt) && "Captured statement expected");
 8905           << isa<OMPExecutableDirective>(S);
 9020   assert(isa<CapturedStmt>(AStmt) && "Captured statement expected");
 9255   assert(isa<CapturedStmt>(AStmt) && "Captured statement expected");
 9291   assert(isa<CapturedStmt>(AStmt) && "Captured statement expected");
 9340   assert(isa<CapturedStmt>(AStmt) && "Captured statement expected");
 9376   assert(isa<CapturedStmt>(AStmt) && "Captured statement expected");
 9425   assert(isa<CapturedStmt>(AStmt) && "Captured statement expected");
 9480   assert(isa<CapturedStmt>(AStmt) && "Captured statement expected");
12704     if (isa<CXXThisExpr>(E->getBase()->IgnoreParenImpCasts()) &&
12784       if (!isa<OMPDeclareReductionDecl>(Underlying) &&
12785           !isa<OMPDeclareMapperDecl>(Underlying))
13176            isa<UnresolvedLookupExpr>(DeclareReductionRef.get())))
13290          isa<UnresolvedLookupExpr>(DeclareReductionRef.get()))) {
14116     if (isa<DependentScopeDeclRefExpr>(RefExpr)) {
14131     if (!DE || !isa<VarDecl>(DE->getDecl())) {
14357     if (isa<DependentScopeDeclRefExpr>(RefExpr)) {
14460       if (!Res.isUsable() && !isa<OMPArraySectionExpr>(SimpleExpr)) {
14540   if (isa<ArraySubscriptExpr>(E) || (OASE && OASE->getColonLoc().isInvalid())) {
14596   if (isa<ArraySubscriptExpr>(E) || (OASE && OASE->getColonLoc().isInvalid()))
14677       if (!isa<VarDecl>(CurE->getDecl()))
14692       if (isa<CXXThisExpr>(BaseE))
14698       if (!isa<FieldDecl>(CurE->getMemberDecl())) {
14926               (isa<ArraySubscriptExpr>(CI->getAssociatedExpression()) ||
14927                isa<OMPArraySectionExpr>(CI->getAssociatedExpression())) &&
14928               (isa<ArraySubscriptExpr>(SI->getAssociatedExpression()) ||
14929                isa<OMPArraySectionExpr>(SI->getAssociatedExpression()))) {
15500     MVLI.VarBaseDeclarations.push_back(isa<MemberExpr>(BE) ? nullptr
16157       !isa<CXXRecordDecl>(CurLexicalContext) &&
16158       !isa<ClassTemplateDecl>(CurLexicalContext) &&
16159       !isa<ClassTemplatePartialSpecializationDecl>(CurLexicalContext) &&
16160       !isa<ClassTemplateSpecializationDecl>(CurLexicalContext)) {
16201   if (!isa<VarDecl>(ND) && !isa<FunctionDecl>(ND) &&
16201   if (!isa<VarDecl>(ND) && !isa<FunctionDecl>(ND) &&
16202       !isa<FunctionTemplateDecl>(ND)) {
16214   assert((isa<VarDecl>(ND) || isa<FunctionDecl>(ND) ||
16214   assert((isa<VarDecl>(ND) || isa<FunctionDecl>(ND) ||
16215           isa<FunctionTemplateDecl>(ND)) &&
16248   if (!D || !isa<VarDecl>(D))
16333       if (isa<VarDecl>(D) || isa<FunctionDecl>(D) ||
16333       if (isa<VarDecl>(D) || isa<FunctionDecl>(D) ||
16334           isa<FunctionTemplateDecl>(D)) {
16534     assert((isa<DeclRefExpr>(SimpleRefExpr) ||
16535             isa<CXXThisExpr>(cast<MemberExpr>(SimpleRefExpr)->getBase())) &&
16538         isa<DeclRefExpr>(SimpleRefExpr) ? D : nullptr);
tools/clang/lib/Sema/SemaOverload.cpp
 1001     if (isa<UsingShadowDecl>(OldD)) {
 1032         if (!isa<FunctionTemplateDecl>(OldD) &&
 1046     } else if (isa<UsingDecl>(OldD) || isa<UsingPackDecl>(OldD)) {
 1046     } else if (isa<UsingDecl>(OldD) || isa<UsingPackDecl>(OldD)) {
 1050     } else if (isa<TagDecl>(OldD)) {
 1135   if (isa<FunctionNoProtoType>(OldQType.getTypePtr()) ||
 1136       isa<FunctionNoProtoType>(NewQType.getTypePtr()))
 1207         !isa<CXXConstructorDecl>(NewMethod))
 1243     if (isa<CXXDestructorDecl>(New))
 1681         assert(isa<UnaryOperator>(From->IgnoreParens()) &&
 1689       } else if (isa<UnaryOperator>(From->IgnoreParens())) {
 2243     if (isa<ObjCObjectPointerType>(ToType))
 2252   if (isa<ObjCObjectPointerType>(ToType))
 3426   if (ConstructorsOnly || isa<InitListExpr>(From)) {
 3439         if (isa<UsingShadowDecl>(D))
 3480       if (isa<InitListExpr>(From)) {
 3973       if (isa<ArrayType>(T1) && T1Quals)
 3975       if (isa<ArrayType>(T2) && T2Quals)
 4064   if (isa<ArrayType>(T1) && T1Quals)
 4066   if (isa<ArrayType>(T2) && T2Quals)
 4426   if (isa<ArrayType>(T1) && T1Quals)
 4428   if (isa<ArrayType>(T2) && T2Quals)
 4479     if (isa<UsingShadowDecl>(D))
 5098     if (NumInits == 1 && !isa<InitListExpr>(From->getInit(0)))
 5174   if (isa<CXXDestructorDecl>(Method)) {
 5812     if (isa<UsingShadowDecl>(D))
 6095     if (!isa<CXXConstructorDecl>(Method)) {
 6397     assert(!isa<CXXConstructorDecl>(Method) &&
 6409               isa<CXXConstructorDecl>(MD)) &&
 6577     if (isa<CXXMethodDecl>(FD) && !cast<CXXMethodDecl>(FD)->isStatic()) {
 6612           (!Args[0] || (FirstArgumentIsBase && isa<CXXMethodDecl>(FD) &&
 6613                         !isa<CXXConstructorDecl>(FD)))) {
 6641   if (isa<UsingShadowDecl>(Decl))
 6645     assert(isa<CXXMethodDecl>(TD->getTemplatedDecl()) &&
 6678   assert(!isa<CXXConstructorDecl>(Method) &&
 6864   assert(isa<CXXMethodDecl>(Specialization) &&
 6915         isa<CXXMethodDecl>(Candidate.Function) &&
 6916         !isa<CXXConstructorDecl>(Candidate.Function);
 6953   bool HasThisConversion = Method && !isa<CXXConstructorDecl>(Method);
 7236   assert(isa<CXXConversionDecl>(FunctionTemplate->getTemplatedDecl()) &&
 7396     assert(!isa<CXXMethodDecl>(FD) &&
 7803       if (isa<UsingShadowDecl>(D))
 7808       if (isa<FunctionTemplateDecl>(D))
 7875       if (isa<UsingShadowDecl>(D))
 8836       if (!isa<RecordType>(C1))
 9388       isa<CXXConversionDecl>(Cand1.Function) &&
 9389       isa<CXXConversionDecl>(Cand2.Function)) {
 9417       isa<CXXConstructorDecl>(Cand1.Function) !=
 9418           isa<CXXConstructorDecl>(Cand2.Function))
 9419     return isa<CXXConstructorDecl>(Cand1.Function);
 9439                        isa<CXXConversionDecl>(Cand1.Function)? TPOC_Conversion
 9725         if (isa<ConstructorUsingShadowDecl>(Found))
 9754       assert(isa<CXXConversionDecl>(Meth) && "expected conversion");
 9926   if (isa<CXXMethodDecl>(Fn) && !isa<CXXConstructorDecl>(Fn)) {
 9926   if (isa<CXXMethodDecl>(Fn) && !isa<CXXConstructorDecl>(Fn)) {
 9945     if (isa<UnaryOperator>(E))
10035   if (FromExpr && isa<InitListExpr>(FromExpr)) {
10111   if (isa<ObjCObjectPointerType>(CFromTy) &&
10112       isa<PointerType>(CToTy)) {
10178   assert(isa<FunctionDecl>(D) &&
10298     if (isa<TemplateTypeParmDecl>(ParamD))
10300     else if (isa<NonTypeTemplateParmDecl>(ParamD)) {
10456     if (TakingCandidateAddress && isa<FunctionDecl>(Templated) &&
11000     if (isa<CXXMethodDecl>(Cand->Function) &&
11001         !isa<CXXConstructorDecl>(Cand->Function)) {
11924         isa<CXXMethodDecl>(fn) &&
11985   if (isa<UsingShadowDecl>(Callee))
12044       assert(isa<UsingShadowDecl>(*I) ||
12109       if (isa<CXXRecordDecl>(DC)) {
12344       (isa<FunctionDecl>(CurContext) || isa<CXXRecordDecl>(CurContext))) {
12344       (isa<FunctionDecl>(CurContext) || isa<CXXRecordDecl>(CurContext))) {
12513     (Functions.size() == 1 && isa<FunctionTemplateDecl>(*Functions.begin()));
12970         if (isa<CXXMethodDecl>(FnDecl)) {
12980                   isa<CXXMethodDecl>(FnDecl), OpLoc, TheCall->getSourceRange(),
13364   if (isa<CXXPseudoDestructorExpr>(NakedMemExpr))
13376   if (isa<MemberExpr>(NakedMemExpr)) {
13407       if (isa<UsingShadowDecl>(Func))
13412       if (getLangOpts().MicrosoftExt && isa<CXXConstructorDecl>(Func)) {
13550   if ((isa<CXXConstructorDecl>(CurContext) ||
13551        isa<CXXDestructorDecl>(CurContext)) &&
13555     if (isa<CXXThisExpr>(MemExpr->getBase()->IgnoreParenCasts()) &&
13559           << MD->getDeclName() << isa<CXXDestructorDecl>(CurContext)
13650     if (isa<UsingShadowDecl>(D))
13655     if (isa<FunctionTemplateDecl>(D))
14202         assert(isa<DeclRefExpr>(SubExpr)
tools/clang/lib/Sema/SemaPseudoObject.cpp
  391   if (!isa<OpaqueValueExpr>(e)) {
  446   if (RHS->hasPlaceholderType() || isa<InitListExpr>(RHS)) {
 1071     if (isa<StringLiteral>(IndexExpr))
 1573   } else if (isa<ObjCSubscriptRefExpr>(opaqueRef)) {
tools/clang/lib/Sema/SemaStmt.cpp
  251   if (isa<StmtExpr>(E) && Loc.isMacroID())
  257   if (isa<ParenExpr>(E->IgnoreImpCasts()) && Loc.isMacroID()) {
  337     if (isa<ObjCSubscriptRefExpr>(Source))
  346     if (isa<CXXTemporaryObjectExpr>(E))
  398     for (; i != NumElts && isa<DeclStmt>(Elts[i]); ++i)
  402     for (; i != NumElts && !isa<DeclStmt>(Elts[i]); ++i)
  596   if (IsConstexpr || isa<ObjCAvailabilityCheckExpr>(Cond.get().second))
 1328   if (isa<NullStmt>(Body))
 1487       if (isa<DeclRefExpr>(E)) {
 1801   if (isa<NullStmt>(Body))
 1999   if ((!isa<InitListExpr>(Init) && Init->getType()->isVoidType()) ||
 2731   while (!isa<CXXOperatorCallExpr>(E) && !isa<UnaryOperator>(E)) {
 2731   while (!isa<CXXOperatorCallExpr>(E) && !isa<UnaryOperator>(E)) {
 2745   if (isa<UnaryOperator>(E)) {
 2862   if (isa<ObjCForCollectionStmt>(S))
 3069       if (isa<CXXConstructorDecl>(FD)) {
 3087       if (isa<CXXConstructorDecl>(FD)) {
 3091         if (!isa<RValueReferenceType>(FD->getParamDecl(0)->getType()))
 3093       } else if (isa<CXXMethodDecl>(FD)) {
 3280     if (RetValExp && !isa<InitListExpr>(RetValExp)) {
 3339     if (RetValExp && !isa<InitListExpr>(RetValExp) &&
 3456   if (RetExpr && isa<InitListExpr>(RetExpr)) {
 3583   if (isa<CapturingScopeInfo>(getCurFunction()))
 3599       if (isa<CXXBoolLiteralExpr>(RetValExp))
 3652       if (isa<InitListExpr>(RetValExp)) {
 3658         if (isa<ObjCMethodDecl>(CurDecl))
 3660         else if (isa<CXXConstructorDecl>(CurDecl))
 3662         else if (isa<CXXDestructorDecl>(CurDecl))
 3676           if (isa<CXXConstructorDecl>(CurDecl) ||
 3677               isa<CXXDestructorDecl>(CurDecl))
 3695             << CurDecl->getDeclName() << isa<CXXDestructorDecl>(CurDecl)
 3704           if (isa<ObjCMethodDecl>(CurDecl))
 3706           else if (isa<CXXConstructorDecl>(CurDecl))
 3708           else if (isa<CXXDestructorDecl>(CurDecl))
tools/clang/lib/Sema/SemaStmtAsm.cpp
  138     if (isa<CXXThisExpr>(E)) {
  144       if (isa<ParmVarDecl>(DRE->getDecl())) {
  705     if (isa<clang::EnumType>(T) && Res->EvaluateAsRValue(Eval, Context))
tools/clang/lib/Sema/SemaStmtAttr.cpp
   27   if (!isa<NullStmt>(St)) {
   30     if (isa<SwitchCase>(St)) {
tools/clang/lib/Sema/SemaTemplate.cpp
   60   if (isa<TemplateDecl>(D)) {
   61     if (!AllowFunctionTemplates && isa<FunctionTemplateDecl>(D))
   95   if (AllowDependent && isa<UnresolvedUsingValueDecl>(D))
  121         isa<FunctionDecl>((*I)->getUnderlyingDecl()))
  188         if (isa<FunctionTemplateDecl>(FoundTemplate))
  232     if (isa<UnresolvedUsingValueDecl>(D)) {
  248     if (isa<FunctionTemplateDecl>(TD)) {
  254       assert(isa<ClassTemplateDecl>(TD) || isa<TemplateTemplateParmDecl>(TD) ||
  254       assert(isa<ClassTemplateDecl>(TD) || isa<TemplateTemplateParmDecl>(TD) ||
  255              isa<TypeAliasTemplateDecl>(TD) || isa<VarTemplateDecl>(TD) ||
  255              isa<TypeAliasTemplateDecl>(TD) || isa<VarTemplateDecl>(TD) ||
  256              isa<BuiltinTemplateDecl>(TD) || isa<ConceptDecl>(TD));
  256              isa<BuiltinTemplateDecl>(TD) || isa<ConceptDecl>(TD));
  258           isa<VarTemplateDecl>(TD) ? TNK_Var_template :
  259           isa<ConceptDecl>(TD) ? TNK_Concept_template :
  441           return isa<FunctionDecl>(ND->getUnderlyingDecl());
  698       isa<CXXMethodDecl>(DC) && cast<CXXMethodDecl>(DC)->isInstance()) {
  738   assert(isa<TagDecl>(Instantiation) || isa<FunctionDecl>(Instantiation) ||
  738   assert(isa<TagDecl>(Instantiation) || isa<FunctionDecl>(Instantiation) ||
  739          isa<VarDecl>(Instantiation));
  775     if (isa<FunctionDecl>(Instantiation)) {
  782       assert(isa<TagDecl>(Instantiation) && "Must be a TagDecl!");
  789     if (isa<FunctionDecl>(Instantiation)) {
  794     } else if (isa<TagDecl>(Instantiation)) {
  800       assert(isa<VarDecl>(Instantiation) && "Must be a VarDecl!");
  801       if (isa<VarTemplateSpecializationDecl>(Instantiation)) {
 1448   if (!PrevClassTemplate && PrevDecl && isa<CXXRecordDecl>(PrevDecl) &&
 1453     if (!PrevClassTemplate && isa<ClassTemplateSpecializationDecl>(PrevDecl)) {
 2027     if (isa<CXXRecordDecl>(DC)) {
 2643         if (!isa<ClassTemplatePartialSpecializationDecl>(Spec) &&
 2967         << (isa<FunctionTemplateDecl>(Template)
 2969                 : isa<ClassTemplateDecl>(Template)
 2971                       : isa<VarTemplateDecl>(Template)
 2973                             : isa<TypeAliasTemplateDecl>(Template) ? 3 : 4)
 3102       !isa<IntegerLiteral>(InnerBinOp->getRHS()))
 3166     if (isa<CXXBoolLiteralExpr>(TermAsWritten) ||
 3167         isa<IntegerLiteral>(TermAsWritten))
 3212   if (!Template || isa<FunctionTemplateDecl>(Template) ||
 3213       isa<VarTemplateDecl>(Template) ||
 3214       isa<ConceptDecl>(Template)) {
 3314     if (isa<ClassTemplateDecl>(Template)) {
 3325         if (!isa<ClassTemplatePartialSpecializationDecl>(Record) &&
 3377     assert(isa<RecordType>(CanonType) &&
 3735       << isa<VarTemplateDecl>(Template);
 3791       << isa<VarTemplatePartialSpecializationDecl>(Partial)
 4286     if (!TemplateArgs && !isa<FunctionTemplateDecl>(TD)) {
 4915         !isa<TemplateTemplateParmDecl>(Template) &&
 5229   bool isTemplateTemplateParameter = isa<TemplateTemplateParmDecl>(Template);
 5271       if (PackExpansionIntoNonPack && isa<TypeAliasTemplateDecl>(Template)) {
 6041   if (isa<CXXUuidofExpr>(Arg)) {
 6058   if (isa<FieldDecl>(Entity) || isa<IndirectFieldDecl>(Entity)) {
 6058   if (isa<FieldDecl>(Entity) || isa<IndirectFieldDecl>(Entity)) {
 6253       if (isa<NonTypeTemplateParmDecl>(VD)) {
 6303   if (isa<FieldDecl>(DRE->getDecl()) ||
 6304       isa<IndirectFieldDecl>(DRE->getDecl()) ||
 6305       isa<CXXMethodDecl>(DRE->getDecl())) {
 6306     assert((isa<FieldDecl>(DRE->getDecl()) ||
 6307             isa<IndirectFieldDecl>(DRE->getDecl()) ||
 6508         if (E && isa<CXXUuidofExpr>(E)) {
 6898   if (!isa<ClassTemplateDecl>(Template) &&
 6899       !isa<TemplateTemplateParmDecl>(Template) &&
 6900       !isa<TypeAliasTemplateDecl>(Template) &&
 6901       !isa<BuiltinTemplateDecl>(Template)) {
 6902     assert(isa<FunctionTemplateDecl>(Template) &&
 6969       (isa<CXXMethodDecl>(VD) || isa<FieldDecl>(VD) ||
 6969       (isa<CXXMethodDecl>(VD) || isa<FieldDecl>(VD) ||
 6970        isa<IndirectFieldDecl>(VD))) {
 6989       if (isa<CXXMethodDecl>(VD) && cast<CXXMethodDecl>(VD)->isInstance())
 7050   } else if (isa<FunctionDecl>(VD)) {
 7155       unsigned ParamKind = isa<TemplateTypeParmDecl>(New)? 0
 7156                       : isa<NonTypeTemplateParmDecl>(New)? 1
 7465   if (isa<ClassTemplateDecl>(Specialized))
 7467   else if (isa<VarTemplateDecl>(Specialized))
 7469   else if (isa<FunctionTemplateDecl>(Specialized))
 7471   else if (isa<CXXMethodDecl>(Specialized))
 7473   else if (isa<VarDecl>(Specialized))
 7475   else if (isa<RecordDecl>(Specialized))
 7477   else if (isa<EnumDecl>(Specialized) && S.getLangOpts().CPlusPlus11)
 7506     if (isa<TranslationUnitDecl>(SpecializedContext))
 7515                         << ND << isa<CXXRecordDecl>(ND);
 7586       if (isa<NonTypeTemplateParmDecl>(DRE->getDecl()))
 7698           isa<TemplateTemplateParmDecl>(Name.getAsTemplateDecl()));
 8091     Diag(NameLoc, isa<ConceptDecl>(Old) ? diag::err_redefinition :
 8341     if (!isa<FunctionTemplateDecl>(D)) {
 8629   assert(!isa<TemplateDecl>(Member) && "Only for non-template members");
 8658   } else if (isa<VarDecl>(Member)) {
 8668   } else if (isa<RecordDecl>(Member)) {
 8677   } else if (isa<EnumDecl>(Member)) {
 8702     if (InstantiatedFrom && isa<CXXMethodDecl>(Member)) {
 8706     } else if (InstantiatedFrom && isa<CXXRecordDecl>(Member)) {
 8917       if (isa<TemplateSpecializationType>(T))
 9816   if (isa<DependentNameType>(T)) {
 9958   if (isa<CXXBoolLiteralExpr>(Cond->IgnoreParenCasts()))
10235     if (isa<TemplateTypeParmDecl>(Param))
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
 1027       if (isa<PackExpansionType>(Args[ArgIdx])) {
 1343     if (isa<ArrayType>(Arg)) {
 1433   if (isa<SubstTemplateTypeParmPackType>(Param))
 1741       assert(isa<TemplateSpecializationType>(Param) &&
 2657       assert(isa<ClassTemplatePartialSpecializationDecl>(Template) ||
 2658              isa<VarTemplatePartialSpecializationDecl>(Template));
 3664       (isa<PointerType>(ParamType) &&
 3715     if (isa<DesignatedInitExpr>(E))
 4314       assert(isa<TemplateTypeParmType>(Replacement) &&
 4446       if (isa<InitListExpr>(Init)) {
 4465       if (isa<InitListExpr>(Init)) {
 4524       if (isa<DesignatedInitExpr>(E))
 4617   if (isa<InitListExpr>(Init))
tools/clang/lib/Sema/SemaTemplateInstantiate.cpp
   78           !isa<VarTemplatePartialSpecializationDecl>(Spec))
  123           !isa<ClassTemplatePartialSpecializationDecl>(Spec))
  495         if (isa<ClassTemplateSpecializationDecl>(Record))
  570         bool IsVar = isa<VarTemplateDecl>(Active->Entity) ||
  571                      isa<VarTemplateSpecializationDecl>(Active->Entity);
  628         << isa<TemplateTemplateParmDecl>(Parm)
  735       if (isa<TypeAliasTemplateDecl>(Active->Entity))
 1355                isa<PackExpansionType>(parm->getType())) {
 2172     if (isa<BlockDecl>(Member))
 2444   assert((!Init || !isa<ParenListExpr>(Init)) && "call-style init in class");
 2714       if (isa<VarTemplateSpecializationDecl>(Var))
 3022   if (isa<NonTypeTemplateParmDecl>(D) || isa<TemplateTypeParmDecl>(D) ||
 3022   if (isa<NonTypeTemplateParmDecl>(D) || isa<TemplateTypeParmDecl>(D) ||
 3023       isa<TemplateTemplateParmDecl>(D))
 3033   if (isa<EnumDecl>(D))
 3039   assert(isa<LabelDecl>(D) && "declaration not instantiated in this scope");
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
  599     if (isa<NSConsumedAttr>(TmplAttr) || isa<OSConsumedAttr>(TmplAttr) ||
  599     if (isa<NSConsumedAttr>(TmplAttr) || isa<OSConsumedAttr>(TmplAttr) ||
  600         isa<CFConsumedAttr>(TmplAttr)) {
  653   if (Result && isa<CXXRecordDecl>(D->getDeclContext()) &&
  729   if (DT && RD && isa<ConditionalOperator>(DT->getUnderlyingExpr()) &&
 1789     !(isa<Decl>(Owner) &&
 2094     !(isa<Decl>(Owner) &&
 2985     assert(isa<DeclRefExpr>(Var) && "threadprivate arg is not a DeclRefExpr");
 3002     assert(isa<DeclRefExpr>(Var) && "allocate arg is not a DeclRefExpr");
 4112   if (isa<CXXDestructorDecl>(New) && SemaRef.getLangOpts().CPlusPlus11)
 4191       isa<CXXDeductionGuideDecl>(Function))
 4492       isa<VarTemplatePartialSpecializationDecl>(OldVar) &&
 4493       isa<VarTemplatePartialSpecializationDecl>(NewVar);
 4497       isa<VarTemplateSpecializationDecl>(NewVar) &&
 4499        isa<VarTemplatePartialSpecializationDecl>(OldVar));
 4544   } else if (!isa<VarTemplateSpecializationDecl>(NewVar) &&
 4579         !isa<VarTemplatePartialSpecializationDecl>(OldVTSD))
 5325   if (isa<ParmVarDecl>(D) && !ParentDC->isDependentContext() &&
 5328   if (isa<ParmVarDecl>(D) || isa<NonTypeTemplateParmDecl>(D) ||
 5328   if (isa<ParmVarDecl>(D) || isa<NonTypeTemplateParmDecl>(D) ||
 5329       isa<TemplateTypeParmDecl>(D) || isa<TemplateTemplateParmDecl>(D) ||
 5329       isa<TemplateTypeParmDecl>(D) || isa<TemplateTemplateParmDecl>(D) ||
 5331         isa<OMPDeclareReductionDecl>(ParentDC) ||
 5332         isa<OMPDeclareMapperDecl>(ParentDC)) &&
 5334       (isa<CXXRecordDecl>(D) && cast<CXXRecordDecl>(D)->isLambda())) {
 5353     if (isa<NonTypeTemplateParmDecl>(D) || isa<TemplateTypeParmDecl>(D) ||
 5353     if (isa<NonTypeTemplateParmDecl>(D) || isa<TemplateTypeParmDecl>(D) ||
 5354         isa<TemplateTemplateParmDecl>(D))
 5377       NeedInstantiate = isa<EnumDecl>(D);
 5386     assert(isa<LabelDecl>(D));
 5551       if (isa<UsingShadowDecl>(D)) {
 5633             isa<VarTemplateSpecializationDecl>(Var)) &&
tools/clang/lib/Sema/SemaTemplateVariadic.cpp
  282     if (isa<sema::LambdaScopeInfo>(SI))
  672       if (isa<VarDecl>(ND))
  800       if (isa<VarDecl>(ND)) {
 1147   if ((OCE && OCE->isInfixBinaryOp()) || isa<BinaryOperator>(E) ||
 1148       isa<AbstractConditionalOperator>(E)) {
tools/clang/lib/Sema/SemaType.cpp
 1963     << QFK << isa<FunctionType>(T.IgnoreParens()) << T
 3029       if (isa<DeducedTemplateSpecializationType>(Deduced))
 3040       if (isa<DeducedTemplateSpecializationType>(Deduced) &&
 3064       if (isa<DeducedTemplateSpecializationType>(Deduced))
 3082       if (!IsCXXAutoType && !isa<DeducedTemplateSpecializationType>(Deduced))
 3126         assert(isa<DeducedTemplateSpecializationType>(Deduced) &&
 4045     bool IsClassTemplateDeduction = isa<DeducedTemplateSpecializationType>(DT);
 4571           if (isa<ParenType>(T)) {
 4584                      (T.hasQualifiers() || !isa<AutoType>(T) ||
 4993           if (NNSPrefix && isa<TemplateSpecializationType>(NNS->getAsType()))
 5638         assert(isa<DependentNameType>(ClsTy) && "Unexpected TypeLoc");
 5649         if (isa<ElaboratedType>(ClsTy)) {
 5779   if (isa<PackExpansionType>(T)) {
 6338         if (isa<FunctionType>(Ty)) {
 6341         } else if (isa<ParenType>(Ty)) {
 6344         } else if (isa<PointerType>(Ty)) {
 6347         } else if (isa<BlockPointerType>(Ty)) {
 6350         } else if (isa<MemberPointerType>(Ty)) {
 6353         } else if (isa<ReferenceType>(Ty)) {
 6356         } else if (isa<AttributedType>(Ty)) {
 6434         if (isa<LValueReferenceType>(OldRef))
 6505   if (!isa<PointerType>(Desugared)) {
 6655   if (isa<ObjCTypeParamType>(type)) {
 7090   bool IsVariadic = (isa<FunctionProtoType>(FT) &&
 7710     if (isa<AttributedType>(type) && attr.hasMacroIdentifier() &&
 7873   if (isa<TagDecl>(D) && cast<TagDecl>(D)->isBeingDefined()) {
 8011   if (Def && !isa<EnumDecl>(Def))
 8332       if (isa<FieldDecl>(VD) || isa<VarDecl>(VD))
 8332       if (isa<FieldDecl>(VD) || isa<VarDecl>(VD))
 8352     if (isa<ParenExpr>(E)) {
tools/clang/lib/Sema/TreeTransform.h
 3485   if (isa<ImplicitValueInitExpr>(Init))
 3491   if (!Construct || isa<CXXTemporaryObjectExpr>(Construct))
 4293   if (!isa<DependentNameType>(T))
 4307   if (!isa<DependentNameType>(DI->getType()))
 4479   if (isa<TemplateSpecializationType>(T)) {
 4491   } else if (isa<DependentTemplateSpecializationType>(T)) {
 4676   if (isa<LValueReferenceType>(Result))
 4740     assert(isa<AdjustedType>(MPT->getPointeeType()));
 4946   if (isa<DependentVectorType>(Result)) {
 4990   if (isa<DependentSizedExtVectorType>(Result)) {
 5031   if (isa<DependentAddressSpaceType>(Result)) {
 5102   if (NumExpansions && isa<PackExpansionType>(OldDI->getType())) {
 6069     if (isa<DependentTemplateSpecializationType>(Result)) {
 6401   } else if (isa<DependentTemplateSpecializationType>(Result)) {
 6669       if (isa<DeclStmt>(B))
 7213   assert(isa<Expr>(InitSuspend.get()) && isa<Expr>(FinalSuspend.get()));
 7213   assert(isa<Expr>(InitSuspend.get()) && isa<Expr>(FinalSuspend.get()));
 7855   if (isa<SEHFinallyStmt>(Handler))
 9811     if (!Callee || isa<CXXMethodDecl>(Callee->getDecl()))
10856       if (isa<UsingShadowDecl>(OldD))
10891         << isa<UnresolvedMemberExpr>(Old) << Old->getName();
13083     assert(isa<UnresolvedUsingTypenameDecl>(D) &&
13266     if (!isa<CXXMethodDecl>(ND))
tools/clang/lib/Serialization/ASTCommon.cpp
  425       D->getLexicalDeclContext()->isDependentContext() && !isa<TagDecl>(D)) {
  443     return isa<TagDecl>(D) || isa<BlockDecl>(D);
  443     return isa<TagDecl>(D) || isa<BlockDecl>(D);
  449   if (D->getDeclName() || !isa<CXXRecordDecl>(D->getLexicalDeclContext()))
  451   return isa<TagDecl>(D) || isa<FieldDecl>(D);
  451   return isa<TagDecl>(D) || isa<FieldDecl>(D);
tools/clang/lib/Serialization/ASTCommon.h
  117   if (isa<ImportDecl>(D))
tools/clang/lib/Serialization/ASTReader.cpp
 1176   assert(!isa<TranslationUnitDecl>(DC) &&
 6384     if (!isa<DecayedType>(DT))
 7619   if (isa<TranslationUnitDecl>(DC) || isa<NamespaceDecl>(DC) ||
 7619   if (isa<TranslationUnitDecl>(DC) || isa<NamespaceDecl>(DC) ||
 7620       isa<CXXRecordDecl>(DC) || isa<EnumDecl>(DC)) {
 7620       isa<CXXRecordDecl>(DC) || isa<EnumDecl>(DC)) {
 7623           isa<TranslationUnitDecl>(DC)) {
 7963   if (isa<TranslationUnitDecl>(DC)) {
10036           if (!isa<CXXMethodDecl>(FD)) {
10166       if (!isa<TagDecl>(D))
10955           if (isa<CXXConstructorDecl>(D)) return DiagConstructor;
10956           if (isa<CXXDestructorDecl>(D)) return DiagDestructor;
11537           if (isa<TemplateTypeParmDecl>(FirstParam) &&
11538               isa<TemplateTypeParmDecl>(SecondParam)) {
11595           if (isa<TemplateTemplateParmDecl>(FirstParam) &&
11596               isa<TemplateTemplateParmDecl>(SecondParam)) {
11675           if (isa<NonTypeTemplateParmDecl>(FirstParam) &&
11676               isa<NonTypeTemplateParmDecl>(SecondParam)) {
11972         assert(isa<EnumConstantDecl>(D) && "Unexpected Decl kind");
tools/clang/lib/Serialization/ASTReaderDecl.cpp
  558       isa<ParmVarDecl>(D)) {
  707   if (!isa<CXXRecordDecl>(TD))
  731   if (!isa<CXXRecordDecl>(TD))
  810   if (isa<FunctionDecl>(VD))
 1368   if (!isa<ParmVarDecl>(VD)) {
 1417     if (!isa<ParmVarDecl>(VD) && !isa<ImplicitParamDecl>(VD) &&
 1417     if (!isa<ParmVarDecl>(VD) && !isa<ImplicitParamDecl>(VD) &&
 1418         !isa<VarTemplateSpecializationDecl>(VD))
 1847     if (!isa<ClassTemplateSpecializationDecl>(D))
 2539   if (isa<EnumConstantDecl>(ND))
 2766   if (isa<FileScopeAsmDecl>(D) ||
 2767       isa<ObjCProtocolDecl>(D) ||
 2768       isa<ObjCImplDecl>(D) ||
 2769       isa<ImportDecl>(D) ||
 2770       isa<PragmaCommentDecl>(D) ||
 2771       isa<PragmaDetectMismatchDecl>(D))
 2773   if (isa<OMPThreadPrivateDecl>(D) || isa<OMPDeclareReductionDecl>(D) ||
 2773   if (isa<OMPThreadPrivateDecl>(D) || isa<OMPDeclareReductionDecl>(D) ||
 2774       isa<OMPDeclareMapperDecl>(D) || isa<OMPAllocateDecl>(D))
 2774       isa<OMPDeclareMapperDecl>(D) || isa<OMPAllocateDecl>(D))
 2963   if (isa<ObjCInterfaceDecl>(X) || isa<ObjCProtocolDecl>(X))
 2963   if (isa<ObjCInterfaceDecl>(X) || isa<ObjCProtocolDecl>(X))
 2966   if (isa<ClassTemplateSpecializationDecl>(X)) {
 3091   if (isa<EnumConstantDecl>(X))
 4021   assert((PendingLazySpecializationIDs.empty() || isa<ClassTemplateDecl>(D) ||
 4022           isa<FunctionTemplateDecl>(D) || isa<VarTemplateDecl>(D)) &&
 4022           isa<FunctionTemplateDecl>(D) || isa<VarTemplateDecl>(D)) &&
tools/clang/lib/Serialization/ASTWriter.cpp
 4075       assert(isa<CXXRecordDecl>(DC) &&
 4081       assert(isa<CXXRecordDecl>(DC) &&
 4202   if (isa<NamespaceDecl>(DC) && Chain &&
 4299   if (isa<NamespaceDecl>(DC))
 5734   if (isa<ParmVarDecl>(D) || isa<TemplateTemplateParmDecl>(D))
 5734   if (isa<ParmVarDecl>(D) || isa<TemplateTemplateParmDecl>(D))
 6359   if (isa<TranslationUnitDecl>(DC))
 6366   if (isa<NamespaceDecl>(DC) && D->getFriendObjectKind() == Decl::FOK_None &&
 6367       !isa<FunctionTemplateDecl>(D))
 6397   if (!isa<CXXMethodDecl>(D))
tools/clang/lib/Serialization/ASTWriterDecl.cpp
  408   if (!isa<CXXRecordDecl>(D))
  951   if (!isa<ParmVarDecl>(D)) {
  995         !isa<VarTemplateSpecializationDecl>(D)) {
 1214     if (Parent->isFromASTFile() || isa<TranslationUnitDecl>(Parent)) {
 2334   if (isa<FileScopeAsmDecl>(D) || isa<ObjCImplDecl>(D))
 2334   if (isa<FileScopeAsmDecl>(D) || isa<ObjCImplDecl>(D))
tools/clang/lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp
   96   if (isa<FunctionDecl>(D) || isa<ObjCMethodDecl>(D)) {
   96   if (isa<FunctionDecl>(D) || isa<ObjCMethodDecl>(D)) {
  100   else if (isa<BlockDecl>(D)) {
tools/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp
  672   if (!MD || !MD->isVariadic() || isa<ObjCProtocolDecl>(MD->getDeclContext()))
 1063   if (isa<ObjCProtocolDecl>(MD->getDeclContext())) {
tools/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
 2291     if (!isa<StringLiteral>(Init))
tools/clang/lib/StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp
  171       assert(isa<EnumConstantDecl>(LenArgDRE->getDecl()));
tools/clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp
  400   if (D && (isa<FunctionDecl>(D) || isa<BlockDecl>(D))) {
  400   if (D && (isa<FunctionDecl>(D) || isa<BlockDecl>(D))) {
  413       if (isa<FunctionDecl>(D)) {
  416         assert(isa<BlockDecl>(D));
  436   if (isa<ObjCMethodCall>(Call))
tools/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp
  291     if (!Symbol || !isa<SymbolRegionValue>(Symbol))
tools/clang/lib/StaticAnalyzer/Checkers/CheckSizeofPointer.cpp
   61     if (!isa<DeclRefExpr>(ArgEx->IgnoreParens()))
tools/clang/lib/StaticAnalyzer/Checkers/ConversionChecker.cpp
   60   if (!isa<DeclRefExpr>(Cast->IgnoreParenImpCasts()))
  100   } else if (isa<DeclStmt>(Parent)) {
tools/clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp
  366       if (!parent || !isa<ReturnStmt>(parent))
  399             if (isa<CXXConstructExpr>(E))
  435                   if (isa<ParmVarDecl>(VD) && VD->getType()->isScalarType())
tools/clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp
  282   if (isa<ExplicitCastExpr>(CE))
  558   if (isa<ExplicitCastExpr>(CE)) {
  628       if (isa<ObjCTypeParamDecl>(Type->getDecl())) {
tools/clang/lib/StaticAnalyzer/Checkers/InnerPointerChecker.cpp
  124   return (isa<CXXDestructorCall>(Call) || Call.isCalled(AppendFn) ||
  166       bool isaMemberOpCall = isa<CXXMemberOperatorCall>(FC);
tools/clang/lib/StaticAnalyzer/Checkers/IteratorChecker.cpp
  478   } else if (isa<CXXConstructorCall>(&Call)) {
  721     if (isa<CXXConstructorCall>(&Call) && Call.getNumArgs() == 1) {
  785       if (isa<SymbolData>(*i))
  793       if (isa<SymbolData>(*i))
 1070     if (isa<SymbolConjured>(ContSym->getSymbol()))
 1086     if (isa<SymbolConjured>(ContSym->getSymbol()))
 1115     if (isa<SymbolConjured>(ContSym->getSymbol()))
 1125     if (isa<SymbolConjured>(ContSym->getSymbol()))
 2057     assert(isa<SymIntExpr>(CompSym) &&
tools/clang/lib/StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp
  244   assert(!isa<ObjCImplementationDecl>(D));
tools/clang/lib/StaticAnalyzer/Checkers/LLVMConventionsChecker.cpp
   46   return isa<TranslationUnitDecl>(ND->getDeclContext());
tools/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp
 1287           if (isa<ObjCStringLiteral>(Arg))
tools/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIChecker.cpp
   36   if (!isa<TypedRegion>(MR) || (ER && !isa<TypedRegion>(ER->getSuperRegion())))
   36   if (!isa<TypedRegion>(MR) || (ER && !isa<TypedRegion>(ER->getSuperRegion())))
   66   if (!isa<TypedRegion>(MR) || (ER && !isa<TypedRegion>(ER->getSuperRegion())))
   66   if (!isa<TypedRegion>(MR) || (ER && !isa<TypedRegion>(ER->getSuperRegion())))
tools/clang/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp
  163     if (isa<ImplicitParamDecl>(VD) || isa<ParmVarDecl>(VD))
  163     if (isa<ImplicitParamDecl>(VD) || isa<ParmVarDecl>(VD))
  202   return isa<AllocaRegion>(Arg) || isa<BlockDataRegion>(Arg) ||
  202   return isa<AllocaRegion>(Arg) || isa<BlockDataRegion>(Arg) ||
  203          isa<TypedRegion>(Arg);
tools/clang/lib/StaticAnalyzer/Checkers/MacOSXAPIChecker.cpp
   78   if (isa<GlobalsSpaceRegion>(RS))
  117   } else if (isa<HeapSpaceRegion>(RS)) {
  119   } else if (isa<UnknownSpaceRegion>(RS)) {
tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
  709     return (Stmt && (isa<CallExpr>(Stmt) || isa<CXXNewExpr>(Stmt)) &&
  709     return (Stmt && (isa<CallExpr>(Stmt) || isa<CXXNewExpr>(Stmt)) &&
  723            (Stmt && (isa<CallExpr>(Stmt) || isa<CXXDeleteExpr>(Stmt))) ||
  723            (Stmt && (isa<CallExpr>(Stmt) || isa<CXXDeleteExpr>(Stmt))) ||
  732             (isa<CallExpr>(Stmt) || isa<ObjCMessageExpr>(Stmt) ||
  732             (isa<CallExpr>(Stmt) || isa<ObjCMessageExpr>(Stmt) ||
  733              isa<ObjCPropertyRefExpr>(Stmt)) &&
  745     return ((!Stmt || !isa<CallExpr>(Stmt)) &&
 1673   if (isa<ObjCMessageExpr>(S))
 1789   if (isa<BlockDataRegion>(R)) {
 1798   if (!(isa<UnknownSpaceRegion>(MS) || isa<HeapSpaceRegion>(MS))) {
 1798   if (!(isa<UnknownSpaceRegion>(MS) || isa<HeapSpaceRegion>(MS))) {
 1807     if (isa<AllocaRegion>(R))
 1992     if (isa<StackLocalsSpaceRegion>(MS)) {
 2007     if (isa<StackArgumentsSpaceRegion>(MS)) {
 2022     if (isa<GlobalsSpaceRegion>(MS)) {
 2753       if (isa<FieldRegion>(MR) || isa<ElementRegion>(MR))
 2753       if (isa<FieldRegion>(MR) || isa<ElementRegion>(MR))
 2936   if (!(isa<SimpleFunctionCall>(Call) || isa<ObjCMethodCall>(Call)))
 2936   if (!(isa<SimpleFunctionCall>(Call) || isa<ObjCMethodCall>(Call)))
tools/clang/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp
  105     else if (isa<DeclRefExpr>(e) || isa<MemberExpr>(e))
  105     else if (isa<DeclRefExpr>(e) || isa<MemberExpr>(e))
tools/clang/lib/StaticAnalyzer/Checkers/MoveChecker.cpp
  561       MR && isa<VarRegion>(MR) && isa<StackSpaceRegion>(MR->getMemorySpace());
  561       MR && isa<VarRegion>(MR) && isa<StackSpaceRegion>(MR->getMemorySpace());
  627   if (isa<CXXDestructorCall>(IC))
tools/clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp
  347   if (!StoredVal || !isa<SymbolicRegion>(StoredVal->getRegion()))
 1045   if (!isa<ImplicitValueInitExpr>(Init))
tools/clang/lib/StaticAnalyzer/Checkers/PointerArithChecker.cpp
   94   if (isa<CXXMethodDecl>(FD))
  140   if (isa<SymbolicRegion>(Region))
tools/clang/lib/StaticAnalyzer/Checkers/PointerSubChecker.cpp
   57   if (isa<SymbolicRegion>(BaseLR) || isa<SymbolicRegion>(BaseRR))
   57   if (isa<SymbolicRegion>(BaseLR) || isa<SymbolicRegion>(BaseRR))
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp
 1057     if (!isa<CXXMethodDecl>(FD)) {
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
   73   return isa<IntegerLiteral>(E) ||
   74          isa<CharacterLiteral>(E) ||
   75          isa<FloatingLiteral>(E) ||
   76          isa<ObjCBoolLiteralExpr>(E) ||
   77          isa<CXXBoolLiteralExpr>(E);
  233   } else if (isa<CXXNewExpr>(S)) {
  236     assert(isa<ObjCMessageExpr>(S));
  275     if (!isa<ObjCObjectPointerType>(T)) {
  505     if (isa<ObjCIvarRefExpr>(S) &&
  510     if (isa<ObjCArrayLiteral>(S)) {
  512     } else if (isa<ObjCDictionaryLiteral>(S)) {
  532     } else if (isa<ObjCIvarRefExpr>(S)) {
  766     os << (isa<ObjCMethodDecl>(D) ? " is returned from a method "
  836     if (PDecl && isa<ParmVarDecl>(PDecl)) {
tools/clang/lib/StaticAnalyzer/Checkers/ReturnUndefChecker.cpp
   63     if (RT.isNull() && isa<BlockDecl>(SFC->getDecl()) &&
tools/clang/lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp
  116          isa<BlockDataRegion>(R);
  145     if (Region && isa<StackSpaceRegion>(Region->getMemorySpace()))
  191     if (isa<BlockDataRegion>(Region))
  266   if (!isa<StackSpaceRegion>(R->getMemorySpace()) ||
  275   if (isa<CXXConstructExpr>(RetE) && RetE->getType()->isRecordType())
  281     if (isa<BlockDataRegion>(R) &&
  312       if (!isa<GlobalsSpaceRegion>(Region->getMemorySpace()))
  315       if (VR && isa<StackSpaceRegion>(VR->getMemorySpace()) &&
  347     if (isa<StaticGlobalSpaceRegion>(P.first->getMemorySpace()))
tools/clang/lib/StaticAnalyzer/Checkers/Taint.cpp
  161     if (!isa<SymbolData>(*SI))
tools/clang/lib/StaticAnalyzer/Checkers/TrustNonnullChecker.cpp
  167     if (!isa<ObjCMethodCall>(&Call))
  174     if (isa<ObjCProtocolDecl>(MD->getDeclContext()))
tools/clang/lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp
   40   if (!isa<ArraySubscriptExpr>(Ex))
tools/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObjectChecker.cpp
  516   if (isa<CXXConstructorDecl>(M))
tools/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedPointee.cpp
  263   while (isa<CXXBaseObjectRegion>(R)) {
tools/clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp
  112   if (NamespaceCtx && isa<NamespaceDecl>(NamespaceCtx))
  286   if (!R || !isa<StackSpaceRegion>(R->getMemorySpace()))
  302   if (isa<VarRegion>(R) && isa<StackLocalsSpaceRegion>(R->getMemorySpace()))
  302   if (isa<VarRegion>(R) && isa<StackLocalsSpaceRegion>(R->getMemorySpace()))
  468   if (NamespaceCtx && isa<NamespaceDecl>(NamespaceCtx))
tools/clang/lib/StaticAnalyzer/Checkers/UnreachableCodeChecker.cpp
  156               if (isa<DoStmt>(Parent))
  203       if (!isa<DeclStmt>(S->getStmt()))
tools/clang/lib/StaticAnalyzer/Checkers/ValistChecker.cpp
  177     if (isa<ParmVarDecl>(DeclReg->getDecl()))
tools/clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp
  175   if (isa<CXXConstructorDecl>(MD)) {
  189   if (isa<CXXDestructorDecl>(MD)) {
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
  475     if (!isa<PathDiagnosticPopUpPiece>(*Piece))
  534       if (Start && isa<CXXDefaultInitExpr>(Start)) {
  537       } else if (End && isa<CXXDefaultInitExpr>(End)) {
  599     if (isa<ObjCMethodDecl>(D))
  601     else if (isa<FunctionDecl>(D))
  604       assert(isa<BlockDecl>(D));
  614   if (isa<Expr>(S) && PM.isConsumedExpr(cast<Expr>(S)))
 1224     if (!isa<ObjCForCollectionStmt>(PS->getStmt())) {
 1282             if (isa<ObjCForCollectionStmt>(Term)) {
 1284             } else if (isa<CXXForRangeStmt>(Term)) {
 1302       } else if (isa<BreakStmt>(Term) || isa<ContinueStmt>(Term) ||
 1302       } else if (isa<BreakStmt>(Term) || isa<ContinueStmt>(Term) ||
 1303           isa<GotoStmt>(Term)) {
 1342     if (isa<FullExpr>(S) ||
 1343         isa<CXXBindTemporaryExpr>(S) ||
 1344         isa<SubstNonTypeTemplateParmExpr>(S))
 1540     if (!(isa<ForStmt>(s1Start) || isa<WhileStmt>(s1Start) ||
 1540     if (!(isa<ForStmt>(s1Start) || isa<WhileStmt>(s1Start) ||
 1541           isa<IfStmt>(s1Start) || isa<ObjCForCollectionStmt>(s1Start) ||
 1541           isa<IfStmt>(s1Start) || isa<ObjCForCollectionStmt>(s1Start) ||
 1542           isa<CXXForRangeStmt>(s1Start)))
 1633       if (isa<PathDiagnosticEventPiece>(NextI->get())) {
 1845         if (isa<Expr>(s1End) && PM.isConsumedExpr(cast<Expr>(s1End))) {
 3109       if (P && (isa<SwitchCase>(P) || isa<LabelStmt>(P)))
 3109       if (P && (isa<SwitchCase>(P) || isa<LabelStmt>(P)))
 3200   if (isa<BasicBugReport>(exampleReport))
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
  735     if (isa<CXXBaseObjectRegion>(R) || isa<CXXTempObjectRegion>(R))
  735     if (isa<CXXBaseObjectRegion>(R) || isa<CXXTempObjectRegion>(R))
  746     if (!isa<DeclRegion>(R))
  935     const bool BypassCXXNewExprEval = isa<CXXNewExpr>(S);
 1268       if (isa<VarRegion>(R)) {
 1430           assert(isa<ImplicitParamDecl>(VR->getDecl()));
 1476     } else if (isa<BlockExpr>(S)) {
 1869       assert(isa<ObjCMessageExpr>(GetterMessageSend->IgnoreParenCasts()));
 2067     if (RegionRVal && isa<SymbolicRegion>(RegionRVal)) {
 2328   if (isa<GNUNullExpr>(Ex) || isa<ObjCBoolLiteralExpr>(Ex) ||
 2328   if (isa<GNUNullExpr>(Ex) || isa<ObjCBoolLiteralExpr>(Ex) ||
 2329       isa<CXXBoolLiteralExpr>(Ex) || isa<IntegerLiteral>(Ex) ||
 2329       isa<CXXBoolLiteralExpr>(Ex) || isa<IntegerLiteral>(Ex) ||
 2330       isa<FloatingLiteral>(Ex)) {
 2348     const bool quotes = isa<VarDecl>(DR->getDecl());
tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp
  390     for (; Ctx && isa<NamedDecl>(Ctx); Ctx = Ctx->getParent()) {
  457   return isa<CallExpr>(S) || isa<ObjCMessageExpr>(S)
  457   return isa<CallExpr>(S) || isa<ObjCMessageExpr>(S)
  458                           || isa<CXXConstructExpr>(S)
  459                           || isa<CXXNewExpr>(S);
 1213         assert(isa<AllocaRegion>(Receiver) &&
 1287                     isa<ObjCCategoryDecl>(CompileTimeMD->getDeclContext())) {
 1393     assert(isa<CXXConstructExpr>(CallSite) &&
tools/clang/lib/StaticAnalyzer/Core/CheckerContext.cpp
   37   if (isa<ObjCMethodDecl>(D) || isa<CXXMethodDecl>(D))
   37   if (isa<ObjCMethodDecl>(D) || isa<CXXMethodDecl>(D))
   39   if (isa<BlockDecl>(D))
tools/clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp
   40   if (DR && isa<EnumConstantDecl>(DR->getDecl()))
   68   if (isa<OffsetOfExpr>(S))
tools/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp
   53   return isa<DeclRefExpr>(Ex) ||
   54          isa<MemberExpr>(Ex) ||
   55          isa<ObjCIvarRefExpr>(Ex);
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
  676   if (!isa<Expr>(S))
  695           ReferenceStmt == nullptr || isa<ReturnStmt>(ReferenceStmt))
 1203   assert(!isa<Expr>(S) || S == cast<Expr>(S)->IgnoreParens());
 1478         if (!(isa<ObjCBoxedExpr>(Ex) &&
 1940           (isa<ForStmt>(Term) || isa<WhileStmt>(Term) || isa<DoStmt>(Term))))
 1940           (isa<ForStmt>(Term) || isa<WhileStmt>(Term) || isa<DoStmt>(Term))))
 1940           (isa<ForStmt>(Term) || isa<WhileStmt>(Term) || isa<DoStmt>(Term))))
 2093   assert((!Condition || !isa<CXXBindTemporaryExpr>(Condition)) &&
 2487   if (isa<FieldDecl>(D) || isa<IndirectFieldDecl>(D)) {
 2487   if (isa<FieldDecl>(D) || isa<IndirectFieldDecl>(D)) {
 2500   if (isa<BindingDecl>(D)) {
 2572   if (isa<VarDecl>(Member) || isa<EnumConstantDecl>(Member)) {
 2572   if (isa<VarDecl>(Member) || isa<EnumConstantDecl>(Member)) {
tools/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
  560   if (isa<CXXConstructExpr>(Init) || isa<CXXStdInitializerListExpr>(Init)) {
  560   if (isa<CXXConstructExpr>(Init) || isa<CXXStdInitializerListExpr>(Init)) {
  563     assert(isa<InitListExpr>(Init));
  982         if (isa<CXXMethodDecl>(VD) || isa<FieldDecl>(VD)) {
  982         if (isa<CXXMethodDecl>(VD) || isa<FieldDecl>(VD)) {
tools/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
  199         if (isa<BlockInvocationContext>(CallerLCtx)) {
  203           assert(!isa<BlockInvocationContext>(CallerLCtx));
  564     if (Target && isa<CXXTempObjectRegion>(Target) &&
  838     if (!isa<CXXConstructExpr>(Init)) {
tools/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
  350                !(isa<CXXNewExpr>(CE) && // Called when visiting CXXNewExpr.
  529   if (!E || isa<CXXNewExpr>(E))
  709     if (CC && isa<NewAllocatedObjectConstructionContext>(CC) &&
tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
  663         return isa<PathDiagnosticNotePiece>(*p);
  667         return isa<PathDiagnosticPopUpPiece>(*p);
  681     if (isa<PathDiagnosticPopUpPiece>(Piece)) {
  683     } else if (isa<PathDiagnosticNotePiece>(Piece)) {
  716     } else if (!isa<PathDiagnosticNotePiece>(Piece)) {
  811   if (!isa<PathDiagnosticMacroPiece>(P)) {
tools/clang/lib/StaticAnalyzer/Core/IssueHash.cpp
   42   if (!isa<CXXConstructorDecl>(Target) && !isa<CXXDestructorDecl>(Target) &&
   42   if (!isa<CXXConstructorDecl>(Target) && !isa<CXXDestructorDecl>(Target) &&
   43       !isa<CXXConversionDecl>(Target))
   60   if (!TargetT || !isa<CXXMethodDecl>(Target))
tools/clang/lib/StaticAnalyzer/Core/LoopUnrolling.cpp
   72   return S && (isa<ForStmt>(S) || isa<WhileStmt>(S) || isa<DoStmt>(S));
   72   return S && (isa<ForStmt>(S) || isa<WhileStmt>(S) || isa<DoStmt>(S));
   72   return S && (isa<ForStmt>(S) || isa<WhileStmt>(S) || isa<DoStmt>(S));
tools/clang/lib/StaticAnalyzer/Core/LoopWidening.cpp
   48   assert(isa<ForStmt>(LoopStmt) || isa<WhileStmt>(LoopStmt) ||
   48   assert(isa<ForStmt>(LoopStmt) || isa<WhileStmt>(LoopStmt) ||
   49          isa<DoStmt>(LoopStmt));
tools/clang/lib/StaticAnalyzer/Core/MemRegion.cpp
  170   if (isa<VariableArrayType>(T))
  192     if (isa<ConstantArrayType>(T))
  527   if (isa<HeapSpaceRegion>(getSuperRegion()))
  892         sReg = isa<ParmVarDecl>(D) || isa<ImplicitParamDecl>(D)
  892         sReg = isa<ParmVarDecl>(D) || isa<ImplicitParamDecl>(D)
  899         if (isa<FunctionDecl>(STCD) || isa<ObjCMethodDecl>(STCD))
  899         if (isa<FunctionDecl>(STCD) || isa<ObjCMethodDecl>(STCD))
 1077   if (isa<TypedValueRegion>(Super)) {
 1086       assert(Super && !isa<MemSpaceRegion>(Super));
 1141   return isa<StackSpaceRegion>(getMemorySpace());
 1145   return isa<StackLocalsSpaceRegion>(getMemorySpace());
 1149   return isa<StackArgumentsSpaceRegion>(getMemorySpace());
 1154   return isa<StackArgumentsSpaceRegion>(MS) ||
 1155          isa<GlobalsSpaceRegion>(MS);
tools/clang/lib/StaticAnalyzer/Core/ProgramState.cpp
  590   if (isa<MemSpaceRegion>(R))
  612     if (isa<MemSpaceRegion>(Super)) {
tools/clang/lib/StaticAnalyzer/Core/RangedConstraintManager.cpp
   27   if (isa<SymbolData>(Sym)) {
tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp
   65     assert((r == r->getBaseRegion() || isa<ObjCIvarRegion>(r) ||
   66             isa <CXXDerivedObjectRegion>(r)) &&
 1147   if (isa<AllocaRegion>(baseR) || isa<SymbolicRegion>(baseR)) {
 1147   if (isa<AllocaRegion>(baseR) || isa<SymbolicRegion>(baseR)) {
 1236           if (R && isa<SymbolicRegion>(R))
 1262     return isa<GlobalSystemSpaceRegion>(R->getMemorySpace());
 1264     return isa<NonStaticGlobalSpaceRegion>(R->getMemorySpace());
 1466   if (isa<BlockDataRegion>(MR)) {
 1470   if (!isa<TypedValueRegion>(MR)) {
 1671   if (isa<CompoundLiteralRegion>(R->getBaseRegion()))
 1739   if (isa<CodeTextRegion>(superR))
 1937     if (isa<ElementRegion>(R)) {
 1997   if (isa<StackArgumentsSpaceRegion>(MS))
 2015   if (isa<UnknownSpaceRegion>(MS))
 2018   if (isa<GlobalsSpaceRegion>(MS)) {
 2031     if (isa<StaticGlobalSpaceRegion>(MS))
 2196   assert((!isa<CXXThisRegion>(R) || !B.lookup(R)) &&
 2555   if (isa<NonStaticGlobalSpaceRegion>(baseR)) {
tools/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp
  240   assert(!DD || isa<CXXMethodDecl>(DD) || isa<FieldDecl>(DD));
  240   assert(!DD || isa<CXXMethodDecl>(DD) || isa<FieldDecl>(DD));
tools/clang/lib/StaticAnalyzer/Core/SVals.cpp
   47     if (isa<SymbolConjured>(sym))
   55       if (isa<SymbolConjured>(sym))
tools/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp
  981          (isa<StackSpaceRegion>(LeftMS) || isa<StackSpaceRegion>(RightMS)))) {
  981          (isa<StackSpaceRegion>(LeftMS) || isa<StackSpaceRegion>(RightMS)))) {
 1003         ((!isa<SymbolicRegion>(LeftBase) && !isa<SymbolicRegion>(RightBase)) ||
 1003         ((!isa<SymbolicRegion>(LeftBase) && !isa<SymbolicRegion>(RightBase)) ||
 1004          (isa<HeapSpaceRegion>(LeftMS) || isa<HeapSpaceRegion>(RightMS))) ){
 1004          (isa<HeapSpaceRegion>(LeftMS) || isa<HeapSpaceRegion>(RightMS))) ){
 1184     else if (isa<SubRegion>(region)) {
tools/clang/lib/StaticAnalyzer/Core/Store.cpp
   86     if (isa<CodeTextRegion>(R) || isa<SymbolicRegion>(R))
   86     if (isa<CodeTextRegion>(R) || isa<SymbolicRegion>(R))
  392   Failed = isa<TypedValueRegion>(MR);
  522     if (isa<ElementRegion>(BaseRegion->StripCasts()))
tools/clang/lib/StaticAnalyzer/Core/SymbolManager.cpp
  423   if (isa<SymbolMetadata>(sym))
  447   if (isa<AllocaRegion>(MR))
  450   if (isa<CXXThisRegion>(MR))
  453   if (isa<MemSpaceRegion>(MR))
  456   if (isa<CodeTextRegion>(MR))
tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
  147         if (!isa<PathDiagnosticNotePiece>(Piece.get()))
  160         if (isa<PathDiagnosticNotePiece>(Piece.get()))
  493     if (isa<ObjCMethodDecl>(*I))
  513   if (isa<ObjCMethodDecl>(D))
  533   if (Visited.count(D) && isa<ObjCMethodDecl>(D)) {
  587       Visited.insert(isa<ObjCMethodDecl>(Callee) ? Callee
  698   } else if (isa<BlockDecl>(D)) {
  725     } else if (isa<ObjCProtocolDecl>(DC)) {
tools/clang/lib/Tooling/Core/Lookup.cpp
   32     while (Context && (!isa<NamespaceDecl>(Context) ||
   87     while (DeclA && !isa<NamespaceDecl>(DeclA))
  201       isa<TranslationUnitDecl>(FromDecl->getDeclContext());
  203       isa<CXXRecordDecl>(FromDecl) &&
tools/clang/lib/Tooling/Refactoring/ASTSelection.cpp
   22   if (!isa<ObjCImplDecl>(D))
   79     if (isa<TranslationUnitDecl>(D))
  270   if (isa<StringLiteral>(S) && isa<ObjCStringLiteral>(Parent))
  270   if (isa<StringLiteral>(S) && isa<ObjCStringLiteral>(Parent))
  280     if ((isa<MemberExpr>(S) || isa<DeclRefExpr>(S)) &&
  280     if ((isa<MemberExpr>(S) || isa<DeclRefExpr>(S)) &&
  299   for (; (ParentIndex + 1) <= Parents.size() && isa<ImplicitCastExpr>(Parent);
  396   if (!isa<CompoundStmt>(CodeRangeStmt)) {
  416   return isa<FunctionDecl>(D) || isa<ObjCMethodDecl>(D);
  416   return isa<FunctionDecl>(D) || isa<ObjCMethodDecl>(D);
  433       if (isa<TypeDecl>(D))
tools/clang/lib/Tooling/Refactoring/Extract/Extract.cpp
   48   if (isa<CXXMethodDecl>(D)) {
  119   bool IsExpr = Code.size() == 1 && isa<Expr>(Code[0]);
tools/clang/lib/Tooling/Refactoring/Extract/SourceExtraction.cpp
   30   if (isa<CompoundStmt>(S))
   85   if (isa<Expr>(S))
tools/clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp
  183     if (llvm::isa<UsingDecl>(Decl))
  187     if (llvm::isa<CXXDestructorDecl>(Decl))
  407         if (llvm::isa<ElaboratedType>(ParentTypeLoc.getType()))
  419             llvm::isa<ElaboratedType>(ParentTypeLoc.getType()))
  542         if (!llvm::isa<clang::TranslationUnitDecl>(
tools/clang/lib/Tooling/Syntax/BuildTree.cpp
  205     if (!D || isa<TranslationUnitDecl>(D))
  207     if (!llvm::isa<TranslationUnitDecl>(D->getDeclContext()))
  213     assert(llvm::isa<TranslationUnitDecl>(D->getDeclContext()) &&
tools/clang/lib/Tooling/Tooling.cpp
   99       if (isa<driver::BindArchAction>(A))
  101       if (isa<driver::OffloadAction>(A)) {
  110             isa<driver::CompileJobAction>(Actions.front()) ||
  113             (isa<driver::BindArchAction>(Actions.front()) &&
  114              isa<driver::CompileJobAction>(*Actions.front()->input_begin())));
  120   if (Jobs.size() == 0 || !isa<driver::Command>(*Jobs.begin()) ||
tools/clang/lib/Tooling/Transformer/SourceCodeBuilders.cpp
   34   if (isa<UnaryOperator>(Expr) || isa<BinaryOperator>(Expr) ||
   34   if (isa<UnaryOperator>(Expr) || isa<BinaryOperator>(Expr) ||
   35       isa<AbstractConditionalOperator>(Expr))
   52   if (isa<BinaryOperator>(Expr) || isa<AbstractConditionalOperator>(Expr))
   52   if (isa<BinaryOperator>(Expr) || isa<AbstractConditionalOperator>(Expr))
tools/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
  625   if (errorToBool(BinaryOrErr.takeError()) || !isa<ObjectFile>(*BinaryOrErr))
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
   83     while (CurrentContext && !llvm::isa<NamespaceDecl>(CurrentContext))
  776   if (llvm::isa<TranslationUnitDecl>(NsDeclContext)) {
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp
   39         llvm::isa<VarTemplatePartialSpecializationDecl>(Node) ||
   40         llvm::isa<ClassTemplatePartialSpecializationDecl>(Node);
   50     if (llvm::isa<TranslationUnitDecl>(Context) ||
   51         llvm::isa<LinkageSpecDecl>(Context))
   54     assert(llvm::isa<NamedDecl>(Context) &&
   76   if (llvm::isa<VarDecl>(ND)) {
   78   } else if (llvm::isa<FunctionDecl>(ND)) {
   80   } else if (llvm::isa<TypedefNameDecl>(ND)) {
   82   } else if (llvm::isa<EnumConstantDecl>(ND)) {
   84   } else if (llvm::isa<EnumDecl>(ND)) {
   90     assert(llvm::isa<RecordDecl>(ND) &&
tools/clang/tools/extra/clang-move/Move.cpp
   41     if (isa<NamespaceDecl>(NextContext) ||
   42         isa<TranslationUnitDecl>(NextContext))
  356     if (llvm::isa<TranslationUnitDecl>(Context) ||
  357         llvm::isa<LinkageSpecDecl>(Context))
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp
  231   if (isa<UnaryOperator>(Arg))
  235   return (CommentBoolLiterals && isa<CXXBoolLiteralExpr>(Arg)) ||
  236          (CommentIntegerLiterals && isa<IntegerLiteral>(Arg)) ||
  237          (CommentFloatLiterals && isa<FloatingLiteral>(Arg)) ||
  238          (CommentUserDefinedLiterals && isa<UserDefinedLiteral>(Arg)) ||
  239          (CommentCharacterLiterals && isa<CharacterLiteral>(Arg)) ||
  240          (CommentStringLiterals && isa<StringLiteral>(Arg)) ||
  241          (CommentNullPtrs && isa<CXXNullPtrLiteralExpr>(Arg));
tools/clang/tools/extra/clang-tidy/bugprone/AssertSideEffectCheck.cpp
   66   return isa<CXXNewExpr>(E) || isa<CXXDeleteExpr>(E) || isa<CXXThrowExpr>(E);
   66   return isa<CXXNewExpr>(E) || isa<CXXDeleteExpr>(E) || isa<CXXThrowExpr>(E);
   66   return isa<CXXNewExpr>(E) || isa<CXXDeleteExpr>(E) || isa<CXXThrowExpr>(E);
tools/clang/tools/extra/clang-tidy/bugprone/BranchCloneCheck.cpp
   80     if (!isa<IfStmt>(Else)) {
  178       if (isa<SwitchCase>(S))
tools/clang/tools/extra/clang-tidy/bugprone/CopyConstructorInitCheck.cpp
   58     ShouldNotDoFixit = ShouldNotDoFixit || isa<TypedefType>(BaseType);
tools/clang/tools/extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp
  110   } else if (isa<MemberExpr>(Cond) || isa<CallExpr>(Cond)) {
  110   } else if (isa<MemberExpr>(Cond) || isa<CallExpr>(Cond)) {
tools/clang/tools/extra/clang-tidy/bugprone/MisplacedWideningCastCheck.cpp
  185   if (!CheckImplicitCasts && isa<ImplicitCastExpr>(Cast))
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp
   72       if (!isa<ParmVarDecl>(LengthVD))
tools/clang/tools/extra/clang-tidy/bugprone/ParentVirtualCallCheck.cpp
  145       !isa<ClassTemplateSpecializationDecl>(Parents.front()))
tools/clang/tools/extra/clang-tidy/bugprone/SizeofExpressionCheck.cpp
   53       isa<DependentSizedArrayType>(Ty) || !Ty->isConstantSizeType())
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousEnumUsageCheck.cpp
   71   return isa<IntegerLiteral>(InitExpr->IgnoreImpCasts());
   84            isa<IntegerLiteral>(InitExpr->IgnoreImpCasts());
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousSemicolonCheck.cpp
   48   const bool IsIfStmt = isa<IfStmt>(Statement);
tools/clang/tools/extra/clang-tidy/bugprone/TooSmallLoopVariableCheck.cpp
  127                                isa<IntegerLiteral>(RHSE);
  130                                isa<IntegerLiteral>(LHSE);
tools/clang/tools/extra/clang-tidy/bugprone/VirtualNearMissCheck.cpp
  188   bool IsPossible = !BaseMD->isImplicit() && !isa<CXXConstructorDecl>(BaseMD) &&
  189                     !isa<CXXDestructorDecl>(BaseMD) && BaseMD->isVirtual() &&
  191                     !isa<CXXConversionDecl>(BaseMD);
tools/clang/tools/extra/clang-tidy/cert/StaticObjectExceptionCheck.cpp
   54         << (isa<CXXConstructorDecl>(Func) ? 0 : 1);
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsArrayToPointerDecayCheck.cpp
   45   } while (isa<ImplicitCastExpr>(E));
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProTypeCstyleCastCheck.cpp
   80       if (!isa<ParenExpr>(SubExpr)) {
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/SlicingCheck.cpp
   81     if (isa<CXXConstructorDecl>(Method) || isa<CXXDestructorDecl>(Method))
   81     if (isa<CXXConstructorDecl>(Method) || isa<CXXDestructorDecl>(Method))
tools/clang/tools/extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp
  138     if (!isa<ParenExpr>(SubExpr)) {
tools/clang/tools/extra/clang-tidy/hicpp/MultiwayPathsCoveredCheck.cpp
   58     if (isa<DefaultStmt>(CurrentCase))
tools/clang/tools/extra/clang-tidy/llvm/PreferRegisterOverUnsignedCheck.cpp
   43       if (isa<TranslationUnitDecl>(Namespace->getDeclContext()) &&
   48       if (isa<TranslationUnitDecl>(Namespace->getDeclContext()) &&
tools/clang/tools/extra/clang-tidy/llvm/TwineLocalCheck.cpp
   37     while (isa<CXXConstructExpr>(C)) {
tools/clang/tools/extra/clang-tidy/misc/DefinitionsInHeadersCheck.cpp
  118           if (isa<ClassTemplatePartialSpecializationDecl>(RD))
tools/clang/tools/extra/clang-tidy/misc/ThrowByValueCatchByReferenceCheck.cpp
   51   return isa<ParmVarDecl>(declRefExpr->getDecl());
   79     if (isa<StringLiteral>(inner))
  124         else if (isa<CallExpr>(currentSubExpr))
tools/clang/tools/extra/clang-tidy/misc/UnusedParametersCheck.cpp
  188         (isa<CXXConstructorDecl>(Function) &&
tools/clang/tools/extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp
   47   return isa<RecordDecl>(TargetDecl) || isa<ClassTemplateDecl>(TargetDecl) ||
   47   return isa<RecordDecl>(TargetDecl) || isa<ClassTemplateDecl>(TargetDecl) ||
   48          isa<FunctionDecl>(TargetDecl) || isa<VarDecl>(TargetDecl) ||
   48          isa<FunctionDecl>(TargetDecl) || isa<VarDecl>(TargetDecl) ||
   49          isa<FunctionTemplateDecl>(TargetDecl) || isa<EnumDecl>(TargetDecl) ||
   49          isa<FunctionTemplateDecl>(TargetDecl) || isa<EnumDecl>(TargetDecl) ||
   50          isa<EnumConstantDecl>(TargetDecl);
   81     if (isa<CXXRecordDecl>(Using->getDeclContext()))
   87     if (isa<FunctionDecl>(Using->getDeclContext()))
tools/clang/tools/extra/clang-tidy/modernize/AvoidBindCheck.cpp
   57       B.Kind = isa<CallExpr>(TE) ? BK_CallExpr : BK_Temporary;
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp
  385     return isa<CXXThisExpr>(Member->getBase()->IgnoreParenImpCasts());
  658   if (isa<CXXThisExpr>(ContainerExpr->IgnoreParenImpCasts())) {
  735       assert(isa<PointerType>(CanonicalInitVarType) &&
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.cpp
  359   if (Init && isa<CXXConstructExpr>(Init)) {
  406     if (MDecl && !isa<CXXConversionDecl>(MDecl) &&
  804       if (isa<IfStmt>(CurrStmtParent) || isa<WhileStmt>(CurrStmtParent) ||
  804       if (isa<IfStmt>(CurrStmtParent) || isa<WhileStmt>(CurrStmtParent) ||
  805           isa<SwitchStmt>(CurrStmtParent))
  807       else if (isa<ForStmt>(CurrStmtParent)) {
tools/clang/tools/extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp
  297       if (isa<CXXStdInitializerListExpr>(Arg) || isa<InitListExpr>(Arg))
  297       if (isa<CXXStdInitializerListExpr>(Arg) || isa<InitListExpr>(Arg))
tools/clang/tools/extra/clang-tidy/modernize/RedundantVoidArgCheck.cpp
  189                              isa<TypedefDecl>(TypedefName) ? "typedef"
tools/clang/tools/extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp
  258   bool ValueInit = isa<ImplicitValueInitExpr>(Init->getInit());
tools/clang/tools/extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp
  288   } else if (isa<CXXDestructorDecl>(SpecialFunctionDecl)) {
tools/clang/tools/extra/clang-tidy/modernize/UseNodiscardCheck.cpp
   40   return isa<CXXConversionDecl>(Node);
tools/clang/tools/extra/clang-tidy/modernize/UseNullptrCheck.cpp
  204     if (isa<CXXNullPtrLiteralExpr>(CastSubExpr)) {
tools/clang/tools/extra/clang-tidy/performance/ForRangeCopyCheck.cpp
   66     if (!isa<AutoType>(LoopVar.getType()))
tools/clang/tools/extra/clang-tidy/performance/MoveConstArgCheck.cpp
   95     bool IsVariable = isa<DeclRefExpr>(Arg);
tools/clang/tools/extra/clang-tidy/performance/NoexceptMoveConstructorCheck.cpp
   73       if (!isa<CXXBoolLiteralExpr>(E)) {
tools/clang/tools/extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp
  160     if (Else && !isa<IfStmt>(Else)) {
  213   if (!S || isa<CompoundStmt>(S)) {
tools/clang/tools/extra/clang-tidy/readability/ContainerSizeEmptyCheck.cpp
  135         !llvm::isa<IntegerLiteral>(BinaryOp->getLHS()->IgnoreImpCasts());
tools/clang/tools/extra/clang-tidy/readability/FunctionSizeCheck.cpp
   28         !(isa<ParmVarDecl>(VD) || isa<DecompositionDecl>(VD)))
   28         !(isa<ParmVarDecl>(VD) || isa<DecompositionDecl>(VD)))
   43     if (TrackedParent.back() && !isa<CompoundStmt>(Node))
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp
  401   if (isa<ObjCIvarDecl>(D) && NamingStyles[SK_ObjcIvar])
  404   if (isa<TypedefDecl>(D) && NamingStyles[SK_Typedef])
  407   if (isa<TypeAliasDecl>(D) && NamingStyles[SK_TypeAlias])
  421   if (isa<EnumDecl>(D) && NamingStyles[SK_Enum])
  424   if (isa<EnumConstantDecl>(D)) {
  638   if (isa<TemplateTypeParmDecl>(D)) {
  648   if (isa<NonTypeTemplateParmDecl>(D)) {
  658   if (isa<TemplateTemplateParmDecl>(D)) {
  843     if (isa<ClassTemplateSpecializationDecl>(Decl))
tools/clang/tools/extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp
   88   return isa<BinaryOperator>(Statement) || isa<UnaryOperator>(Statement);
   88   return isa<BinaryOperator>(Statement) || isa<UnaryOperator>(Statement);
  171   if (isa<StringLiteral>(Expression->IgnoreCasts())) {
  182   bool NeedParens = !isa<ParenExpr>(SubExpr);
  229       if (isa<IfStmt>(S) || isa<ConditionalOperator>(S) || isa<ForStmt>(S) ||
  229       if (isa<IfStmt>(S) || isa<ConditionalOperator>(S) || isa<ForStmt>(S) ||
  229       if (isa<IfStmt>(S) || isa<ConditionalOperator>(S) || isa<ForStmt>(S) ||
  230           isa<WhileStmt>(S) || isa<BinaryConditionalOperator>(S))
  230           isa<WhileStmt>(S) || isa<BinaryConditionalOperator>(S))
  232       if (isa<ParenExpr>(S) || isa<ImplicitCastExpr>(S) ||
  232       if (isa<ParenExpr>(S) || isa<ImplicitCastExpr>(S) ||
  234           (isa<BinaryOperator>(S) && cast<BinaryOperator>(S)->isLogicalOp())) {
tools/clang/tools/extra/clang-tidy/readability/IsolateDeclarationCheck.cpp
   23   return llvm::all_of(Node.decls(), [](Decl *D) { return isa<VarDecl>(D); });
   74   if (isa<PointerType>(T) || isa<ReferenceType>(T))
   74   if (isa<PointerType>(T) || isa<ReferenceType>(T))
   82   if (isa<ArrayType>(T))
   85   if ((isa<PointerType>(T) || isa<ReferenceType>(T)) &&
   85   if ((isa<PointerType>(T) || isa<ReferenceType>(T)) &&
   86       isa<PointerType>(T->getPointeeType()))
   89   return isa<MemberPointerType>(T);
tools/clang/tools/extra/clang-tidy/readability/MisleadingIndentationCheck.cpp
   78     if (isa<CompoundStmt>(Inner))
tools/clang/tools/extra/clang-tidy/readability/MisplacedArrayIndexCheck.cpp
   39   if (!isa<StringLiteral>(RHSE) && !isa<DeclRefExpr>(RHSE) &&
   39   if (!isa<StringLiteral>(RHSE) && !isa<DeclRefExpr>(RHSE) &&
   40       !isa<MemberExpr>(RHSE))
tools/clang/tools/extra/clang-tidy/readability/NamedParameterCheck.cpp
   38       (!isa<CXXMethodDecl>(Function) ||
tools/clang/tools/extra/clang-tidy/readability/RedundantStringCStrCheck.cpp
   29   if (isa<clang::BinaryOperator>(&ExprNode) ||
   30       isa<clang::ConditionalOperator>(&ExprNode)) {
tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp
   77   if (isa<BinaryOperator>(E) || isa<ConditionalOperator>(E))
   77   if (isa<BinaryOperator>(E) || isa<ConditionalOperator>(E))
  176       (isa<BinaryOperator>(E) ? ("(" + getText(Result, *E) + ")")
  348   if (isa<CXXBoolLiteralExpr>(E))
  376   if (!isa<CXXBoolLiteralExpr>(Other) && containsBoolLiteral(Other))
  603   StringRef Terminator = isa<CompoundStmt>(If->getElse()) ? ";" : "";
  658   StringRef Terminator = isa<CompoundStmt>(IfAssign->getElse()) ? ";" : "";
tools/clang/tools/extra/clang-tidy/readability/StaticAccessedThroughInstanceCheck.cpp
   59   if (isa<CXXOperatorCallExpr>(BaseExpr))
tools/clang/tools/extra/clang-tidy/utils/ASTUtils.cpp
   29   if (clang::isa<clang::BinaryOperator>(E_base) ||
   30       clang::isa<clang::ConditionalOperator>(E_base)) {
   46   if (isa<IntegerLiteral>(Flags)) {
tools/clang/tools/extra/clangd/AST.cpp
  142     if (isa<NamespaceDecl>(ND))
  146     if (isa<EnumDecl>(ND))
tools/clang/tools/extra/clangd/CodeComplete.cpp
  550     if (isa<TranslationUnitDecl>(Context))
  552     else if (isa<NamespaceDecl>(Context))
tools/clang/tools/extra/clangd/CodeCompletionStrings.cpp
   74   if (isa<NamespaceDecl>(Decl)) {
tools/clang/tools/extra/clangd/FindTarget.cpp
  102     } else if (isa<FieldDecl>(D) || isa<TypedefNameDecl>(D)) {
  102     } else if (isa<FieldDecl>(D) || isa<TypedefNameDecl>(D)) {
  449       if (llvm::isa<CXXDestructorDecl>(ND))
tools/clang/tools/extra/clangd/HeaderSourceSwitch.cpp
  135     if (!llvm::isa<FunctionDecl>(ND)) {
  143     if (llvm::isa<NamespaceDecl>(D))
tools/clang/tools/extra/clangd/IncludeFixer.cpp
  316     if (isa<NamespaceDecl>(Ctx))
tools/clang/tools/extra/clangd/ParsedAST.cpp
   80       if (isa<ObjCMethodDecl>(D))
tools/clang/tools/extra/clangd/Quality.cpp
  166   return isa<FieldDecl>(ND); // Note that static fields are VarDecl.
  268   if (isa<CXXConstructorDecl>(D))
tools/clang/tools/extra/clangd/Selection.cpp
  193     if (X && isa<TranslationUnitDecl>(X))
tools/clang/tools/extra/clangd/SemanticHighlighting.cpp
   60   if (isa<ClassTemplateDecl>(D) || isa<RecordDecl>(D) ||
   60   if (isa<ClassTemplateDecl>(D) || isa<RecordDecl>(D) ||
   61       isa<CXXConstructorDecl>(D))
   66   if (isa<FieldDecl>(D))
   68   if (isa<EnumDecl>(D))
   70   if (isa<EnumConstantDecl>(D))
   72   if (isa<ParmVarDecl>(D))
   79   if (isa<BindingDecl>(D))
   81   if (isa<FunctionDecl>(D))
   83   if (isa<NamespaceDecl>(D) || isa<NamespaceAliasDecl>(D) ||
   83   if (isa<NamespaceDecl>(D) || isa<NamespaceAliasDecl>(D) ||
   84       isa<UsingDirectiveDecl>(D))
   86   if (isa<TemplateTemplateParmDecl>(D) || isa<TemplateTypeParmDecl>(D) ||
   86   if (isa<TemplateTemplateParmDecl>(D) || isa<TemplateTypeParmDecl>(D) ||
   87       isa<NonTypeTemplateParmDecl>(D))
tools/clang/tools/extra/clangd/SemanticSelection.cpp
   46       if (llvm::isa<TranslationUnitDecl>(D)) {
tools/clang/tools/extra/clangd/XRefs.cpp
   70   if (isa<ValueDecl>(D) || isa<TemplateTypeParmDecl>(D) ||
   70   if (isa<ValueDecl>(D) || isa<TemplateTypeParmDecl>(D) ||
   71       isa<TemplateTemplateParmDecl>(D)) // except cases above
  177           if (isa<CXXConversionDecl>(ME->getMemberDecl()))
  180         return isa<ImplicitCastExpr>(E);
  590   if (!Index || !llvm::isa<NamedDecl>(D))
tools/clang/tools/extra/clangd/index/SymbolCollector.cpp
  178          isa<TagDecl>(&ND) && !isInsideMainFile(ND.getLocation(), SM);
  236     if (!isa<RecordDecl>(DeclCtx))
  313   if (CollectRef && !IsMainFileOnly && !isa<NamespaceDecl>(ND) &&
tools/clang/tools/extra/clangd/refactor/Rename.cpp
   75   if (llvm::isa<NamespaceDecl>(&RenameDecl))
  103   bool IsIndexable = isa<NamedDecl>(RenameDecl) &&
tools/clang/tools/extra/clangd/refactor/tweaks/ExpandAutoType.cpp
   85   if (isa<RecordType>(*DeducedType) &&
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractFunction.cpp
  187       if (isa<CXXMethodDecl>(Func))
  417   return isa<ForStmt>(S) || isa<DoStmt>(S) || isa<WhileStmt>(S) ||
  417   return isa<ForStmt>(S) || isa<DoStmt>(S) || isa<WhileStmt>(S) ||
  417   return isa<ForStmt>(S) || isa<DoStmt>(S) || isa<WhileStmt>(S) ||
  418          isa<CXXForRangeStmt>(S);
  459       else if (isa<SwitchStmt>(S))
  470       else if (isa<SwitchStmt>(S))
  548     if (!VD || isa<FunctionDecl>(DeclInfo.TheDecl))
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractVariable.cpp
  126       if (isa<clang::Expr>(Stmt))
  127         return !isa<LambdaExpr>(Stmt);
  133       return isa<AttributedStmt>(Stmt) || isa<CompoundStmt>(Stmt) ||
  133       return isa<AttributedStmt>(Stmt) || isa<CompoundStmt>(Stmt) ||
  134              isa<CXXForRangeStmt>(Stmt) || isa<DeclStmt>(Stmt) ||
  134              isa<CXXForRangeStmt>(Stmt) || isa<DeclStmt>(Stmt) ||
  135              isa<DoStmt>(Stmt) || isa<ForStmt>(Stmt) || isa<IfStmt>(Stmt) ||
  135              isa<DoStmt>(Stmt) || isa<ForStmt>(Stmt) || isa<IfStmt>(Stmt) ||
  135              isa<DoStmt>(Stmt) || isa<ForStmt>(Stmt) || isa<IfStmt>(Stmt) ||
  136              isa<ReturnStmt>(Stmt) || isa<WhileStmt>(Stmt);
  136              isa<ReturnStmt>(Stmt) || isa<WhileStmt>(Stmt);
  150       if (isa<CompoundStmt>(CurParent)) {
  343   if (llvm::isa<CompoundStmt>(Outer))
  345   if (llvm::isa<SwitchCase>(Outer))
  376   if (llvm::isa<DeclRefExpr>(E) || llvm::isa<MemberExpr>(E))
  376   if (llvm::isa<DeclRefExpr>(E) || llvm::isa<MemberExpr>(E))
  411   if (llvm::isa<DeclRefExpr>(SelectedExpr) ||
  412       llvm::isa<MemberExpr>(SelectedExpr))
tools/clang/tools/extra/clangd/unittests/QualityTests.cpp
  365            isa<CXXConstructorDecl>(&ND);
  428            isa<CXXConstructorDecl>(&ND);
  432            isa<CXXDestructorDecl>(&ND);
tools/clang/tools/extra/clangd/unittests/XRefsTests.cpp
 2277           return ND.getLocation() == SL && llvm::isa<FunctionDecl>(ND);
tools/clang/tools/extra/modularize/Modularize.cpp
  618     if (isa<NamespaceDecl>(ND) || isa<UsingDirectiveDecl>(ND) ||
  618     if (isa<NamespaceDecl>(ND) || isa<UsingDirectiveDecl>(ND) ||
  619         isa<NamespaceAliasDecl>(ND) ||
  620         isa<ClassTemplateSpecializationDecl>(ND) || isa<UsingDecl>(ND) ||
  620         isa<ClassTemplateSpecializationDecl>(ND) || isa<UsingDecl>(ND) ||
  621         isa<ClassTemplateDecl>(ND) || isa<TemplateTypeParmDecl>(ND) ||
  621         isa<ClassTemplateDecl>(ND) || isa<TemplateTypeParmDecl>(ND) ||
  622         isa<TypeAliasTemplateDecl>(ND) || isa<UsingShadowDecl>(ND) ||
  622         isa<TypeAliasTemplateDecl>(ND) || isa<UsingShadowDecl>(ND) ||
  623         isa<FunctionDecl>(ND) || isa<FunctionTemplateDecl>(ND) ||
  623         isa<FunctionDecl>(ND) || isa<FunctionTemplateDecl>(ND) ||
  624         (isa<TagDecl>(ND) &&
  644     Entities.add(Name, isa<TagDecl>(ND) ? Entry::EK_Tag : Entry::EK_Value, Loc);
tools/clang/tools/extra/unittests/clang-query/QueryParserTest.cpp
   28   EXPECT_TRUE(isa<NoOpQuery>(Q));
   31   EXPECT_TRUE(isa<NoOpQuery>(Q));
   36   ASSERT_TRUE(isa<InvalidQuery>(Q));
   42   ASSERT_TRUE(isa<HelpQuery>(Q));
   45   ASSERT_TRUE(isa<InvalidQuery>(Q));
   51   ASSERT_TRUE(isa<QuitQuery>(Q));
   54   ASSERT_TRUE(isa<QuitQuery>(Q));
   57   ASSERT_TRUE(isa<InvalidQuery>(Q));
   63   ASSERT_TRUE(isa<InvalidQuery>(Q));
   67   ASSERT_TRUE(isa<InvalidQuery>(Q));
   71   ASSERT_TRUE(isa<InvalidQuery>(Q));
   76   ASSERT_TRUE(isa<InvalidQuery>(Q));
   80   ASSERT_TRUE(isa<InvalidQuery>(Q));
   85   ASSERT_TRUE(isa<SetExclusiveOutputQuery >(Q));
   89   ASSERT_TRUE(isa<SetExclusiveOutputQuery>(Q));
   93   ASSERT_TRUE(isa<EnableOutputQuery>(Q));
   97   ASSERT_TRUE(isa<InvalidQuery>(Q));
  101   ASSERT_TRUE(isa<DisableOutputQuery>(Q));
  105   ASSERT_TRUE(isa<InvalidQuery>(Q));
  110   ASSERT_TRUE(isa<SetQuery<bool> >(Q));
  117   ASSERT_TRUE(isa<MatchQuery>(Q));
  121   ASSERT_TRUE(isa<MatchQuery>(Q));
  127   ASSERT_TRUE(isa<LetQuery>(Q));
  133   ASSERT_TRUE(isa<LetQuery>(Q));
  139   ASSERT_TRUE(isa<LetQuery>(Q));
  145   ASSERT_TRUE(isa<InvalidQuery>(Q));
  149   ASSERT_TRUE(isa<LetQuery>(Q));
  154   ASSERT_TRUE(isa<InvalidQuery>(Q));
  158   ASSERT_TRUE(isa<InvalidQuery>(Q));
  165   ASSERT_TRUE(isa<NoOpQuery>(Q));
  168   ASSERT_TRUE(isa<LetQuery>(Q));
  171   ASSERT_TRUE(isa<SetQuery<bool>>(Q));
tools/clang/tools/libclang/CIndex.cpp
  202     if (D->isImplicit() && !isa<ObjCMethodDecl>(D))
  361     if (isa<ObjCContainerDecl>(D)) {
  824     if ((FTL && !isa<CXXConversionDecl>(ND) && !HasTrailingRT &&
  835     if (!isa<CXXDestructorDecl>(ND))
 3139         if (isa<TemplateTypeParmDecl>(Pack)) {
 3147         if (isa<TemplateTemplateParmDecl>(Pack)) {
 4376     if (isa<NonTypeTemplateParmDecl>(SizeOfPack->getPack()) || 
 4377         isa<ParmVarDecl>(SizeOfPack->getPack()))
 4477   if (isa<UsingDirectiveDecl>(D))
 4749   if (!D || !(isa<FunctionDecl>(D) || isa<VarDecl>(D)))
 4749   if (!D || !(isa<FunctionDecl>(D) || isa<VarDecl>(D)))
 4762   if (!(isa<CXXRecordDecl>(D) || isa<CXXMethodDecl>(D)))
 4762   if (!(isa<CXXRecordDecl>(D) || isa<CXXMethodDecl>(D)))
 4776   if (!(isa<ObjCInterfaceDecl>(D) || isa<ObjCImplementationDecl>(D)))
 4776   if (!(isa<ObjCInterfaceDecl>(D) || isa<ObjCImplementationDecl>(D)))
 5642       isa<CXXTemporaryObjectExpr>(getCursorExpr(*BestCursor)) &&
 7784   if (isa<FunctionDecl>(D) && cast<FunctionDecl>(D)->isDeleted())
tools/clang/tools/libclang/CIndexHigh.cpp
   27   if (!isa<ObjCMethodDecl>(D) && !isa<CXXMethodDecl>(D))
   27   if (!isa<ObjCMethodDecl>(D) && !isa<CXXMethodDecl>(D))
  104     if (isa<ObjCMethodDecl>(D) || isa<CXXMethodDecl>(D))
  104     if (isa<ObjCMethodDecl>(D) || isa<CXXMethodDecl>(D))
tools/clang/tools/libclang/CXCursor.cpp
  824   assert(NS && (isa<NamespaceDecl>(NS) || isa<NamespaceAliasDecl>(NS)) && TU &&
  824   assert(NS && (isa<NamespaceDecl>(NS) || isa<NamespaceAliasDecl>(NS)) && TU &&
 1583   if (isa<MemberExpr>(E))
 1614   if (isa<MemberExpr>(E))
tools/clang/tools/libclang/CXIndexDataConsumer.cpp
   94     if (isa<ObjCImplDecl>(LexicalDC) && !D->isThisDeclarationADefinition())
 1165   } else if (isa<TagDecl>(D) || isa<FieldDecl>(D) || isa<NamespaceDecl>(D)) {
 1165   } else if (isa<TagDecl>(D) || isa<FieldDecl>(D) || isa<NamespaceDecl>(D)) {
 1165   } else if (isa<TagDecl>(D) || isa<FieldDecl>(D) || isa<NamespaceDecl>(D)) {
 1217   if (isa<ObjCInterfaceDecl>(D))
 1219   if (isa<ObjCCategoryDecl>(D))
 1221   if (isa<ObjCIvarDecl>(D))
 1223   if (isa<ObjCMethodDecl>(D))
 1225   if (isa<ImportDecl>(D))
tools/clang/unittests/AST/ASTImporterTest.cpp
 1425     if (isa<FieldDecl>(D) || isa<IndirectFieldDecl>(D)) {
 1425     if (isa<FieldDecl>(D) || isa<IndirectFieldDecl>(D)) {
tools/clang/unittests/Tooling/ASTSelectionTest.cpp
  109   checkNodeImpl(isa<T>(StmtNode.Node.get<Stmt>()), StmtNode, SelectionKind,
  120   checkNodeImpl(isa<T>(DeclNode.Node.get<Decl>()), DeclNode, SelectionKind,
  724         EXPECT_TRUE(isa<DeclStmt>((*SelectedCode)[0]));
  729             isa<TranslationUnitDecl>(Parents[0].get().Node.get<Decl>()));
  731         EXPECT_TRUE(isa<FunctionDecl>(Parents[1].get().Node.get<Decl>()));
  733         EXPECT_TRUE(isa<CompoundStmt>(Parents[2].get().Node.get<Stmt>()));
  744         EXPECT_TRUE(isa<CallExpr>((*SelectedCode)[0]));
  745         EXPECT_TRUE(isa<IfStmt>((*SelectedCode)[1]));
  750             isa<TranslationUnitDecl>(Parents[0].get().Node.get<Decl>()));
  752         EXPECT_TRUE(isa<FunctionDecl>(Parents[1].get().Node.get<Decl>()));
  754         EXPECT_TRUE(isa<CompoundStmt>(Parents[2].get().Node.get<Stmt>()));
  765         EXPECT_TRUE(isa<CallExpr>((*SelectedCode)[0]));
  766         EXPECT_TRUE(isa<IfStmt>((*SelectedCode)[1]));
  767         EXPECT_TRUE(isa<BinaryOperator>((*SelectedCode)[2]));
  779         EXPECT_TRUE(isa<DeclStmt>((*SelectedCode)[0]));
  780         EXPECT_TRUE(isa<CallExpr>((*SelectedCode)[1]));
  781         EXPECT_TRUE(isa<IfStmt>((*SelectedCode)[2]));
  782         EXPECT_TRUE(isa<BinaryOperator>((*SelectedCode)[3]));
  799         EXPECT_TRUE(isa<BinaryOperator>((*SelectedCode)[0]));
  804             isa<TranslationUnitDecl>(Parents[0].get().Node.get<Decl>()));
  806         EXPECT_TRUE(isa<VarDecl>(Parents[1].get().Node.get<Decl>()));
  827         EXPECT_TRUE(isa<DeclStmt>((*SelectedCode)[0]));
  832             isa<TranslationUnitDecl>(Parents[0].get().Node.get<Decl>()));
  834         EXPECT_TRUE(isa<FunctionDecl>(Parents[1].get().Node.get<Decl>()));
  836         EXPECT_TRUE(isa<CompoundStmt>(Parents[2].get().Node.get<Stmt>()));
  838         EXPECT_TRUE(isa<CompoundStmt>(Parents[3].get().Node.get<Stmt>()));
  857         EXPECT_TRUE(isa<DeclStmt>((*SelectedCode)[0]));
  862             isa<TranslationUnitDecl>(Parents[0].get().Node.get<Decl>()));
  864         EXPECT_TRUE(isa<FunctionDecl>(Parents[1].get().Node.get<Decl>()));
  866         EXPECT_TRUE(isa<CompoundStmt>(Parents[2].get().Node.get<Stmt>()));
  885         EXPECT_TRUE(isa<DeclStmt>((*SelectedCode)[0]));
  890             isa<TranslationUnitDecl>(Parents[0].get().Node.get<Decl>()));
  892         EXPECT_TRUE(isa<FunctionDecl>(Parents[1].get().Node.get<Decl>()));
  894         EXPECT_TRUE(isa<CompoundStmt>(Parents[2].get().Node.get<Stmt>()));
  934         EXPECT_TRUE(isa<DeclStmt>((*SelectedCode)[0]));
  939             isa<TranslationUnitDecl>(Parents[0].get().Node.get<Decl>()));
  941         EXPECT_TRUE(isa<ObjCImplDecl>(Parents[1].get().Node.get<Decl>()));
  943         EXPECT_TRUE(isa<ObjCMethodDecl>(Parents[2].get().Node.get<Decl>()));
  945         EXPECT_TRUE(isa<CompoundStmt>(Parents[3].get().Node.get<Stmt>()));
  957         EXPECT_TRUE(isa<ObjCMessageExpr>((*SelectedCode)[0]));
  958         EXPECT_TRUE(isa<IfStmt>((*SelectedCode)[1]));
  963             isa<TranslationUnitDecl>(Parents[0].get().Node.get<Decl>()));
  965         EXPECT_TRUE(isa<ObjCImplDecl>(Parents[1].get().Node.get<Decl>()));
  967         EXPECT_TRUE(isa<ObjCMethodDecl>(Parents[2].get().Node.get<Decl>()));
  969         EXPECT_TRUE(isa<CompoundStmt>(Parents[3].get().Node.get<Stmt>()));
  989         EXPECT_TRUE(isa<ObjCStringLiteral>((*SelectedCode)[0]));
 1001         EXPECT_TRUE(isa<ObjCStringLiteral>((*SelectedCode)[0]));
 1032         EXPECT_TRUE(isa<CXXMemberCallExpr>((*SelectedCode)[0]));
 1043         EXPECT_TRUE(isa<CXXMemberCallExpr>((*SelectedCode)[0]));
 1054         EXPECT_FALSE(isa<CXXMemberCallExpr>((*SelectedCode)[0]));
 1076         EXPECT_TRUE(isa<CallExpr>((*SelectedCode)[0]));
 1077         EXPECT_TRUE(isa<CompoundStmt>(
tools/clang/unittests/Tooling/CastExprTest.cpp
   29       EXPECT_TRUE(isa<DeclRefExpr>(Sub))
tools/clang/unittests/Tooling/LexicallyOrderedRecursiveASTVisitorTest.cpp
   77     if (isa<TranslationUnitDecl>(D)) {
   85     if (isa<DeclContext>(D) || isa<TemplateDecl>(D))
   85     if (isa<DeclContext>(D) || isa<TemplateDecl>(D))
tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
 1237       if (!isa<DefInit>(R.getValueInit("Group"))) {
tools/clang/utils/TableGen/MveEmitter.cpp
  201     assert(!isa<PointerType>(Pointee) && "Pointer to pointer not supported");
  944     if (isa<VoidType>(Param))
 1055     if (!isa<UnsetInit>(Arg))
 1076       std::make_shared<BuiltinArgResult>(ArgNum, isa<PointerType>(ArgType));
tools/lld/COFF/Chunks.cpp
  388         (!os && !isa<DefinedAbsolute>(sym) && !isa<DefinedSynthetic>(sym))) {
  388         (!os && !isa<DefinedAbsolute>(sym) && !isa<DefinedSynthetic>(sym))) {
  460     if (!target || isa<DefinedAbsolute>(target))
tools/lld/COFF/Chunks.h
  353   if (isa<SectionChunk>(this))
  360   if (isa<SectionChunk>(this))
  368   if (isa<SectionChunk>(this))
  375   if (isa<SectionChunk>(this))
  382   if (isa<SectionChunk>(this))
  389   if (isa<SectionChunk>(this))
  665   else if (isa<ImportThunkChunk>(this))
tools/lld/COFF/Driver.cpp
  157   return s && !isa<Undefined>(s);
tools/lld/COFF/MinGW.cpp
  118   if (!isa<DefinedRegular>(sym) && !isa<DefinedCommon>(sym))
  118   if (!isa<DefinedRegular>(sym) && !isa<DefinedCommon>(sym))
tools/lld/COFF/PDB.cpp
 1258   } else if (isa<DefinedImportThunk>(def)) {
tools/lld/COFF/SymbolTable.cpp
  269   if (isa<DefinedImportData>(imp)) {
  273   } else if (isa<DefinedRegular>(imp)) {
  379       if (imp && isa<Defined>(imp))
  415       if (isa<DefinedRegular>(d))
  417       else if (isa<DefinedAbsolute>(d))
  428       if (imp && isa<Defined>(imp)) {
  471   if (!file || !isa<BitcodeFile>(file))
  571   if (d && isa<ObjFile>(d->getFile())) {
  591   if (wasInserted || isa<Undefined>(s) || s->isLazy())
  593   else if (!isa<DefinedCOFF>(s))
  603   if (wasInserted || isa<Undefined>(s) || s->isLazy())
  605   else if (!isa<DefinedCOFF>(s))
  615   if (wasInserted || isa<Undefined>(s) || s->isLazy())
  617   else if (!isa<DefinedCOFF>(s))
  628   if (wasInserted || !isa<DefinedRegular>(s))
  642   if (wasInserted || !isa<DefinedRegular>(s)) {
  658   if (wasInserted || !isa<DefinedCOFF>(s))
  671   if (wasInserted || isa<Undefined>(s) || s->isLazy()) {
  686   if (wasInserted || isa<Undefined>(s) || s->isLazy()) {
  746     if (!isa<Undefined>(sym))
tools/lld/COFF/Writer.cpp
  971     if (file->impSym && !isa<DefinedImportData>(file->impSym))
  996     if (!isa<DefinedImportThunk>(file->thunkSym))
tools/lld/ELF/AArch64ErrataFix.cpp
  520     return isa<Patch843419Section>(a) && !isa<Patch843419Section>(b);
  520     return isa<Patch843419Section>(a) && !isa<Patch843419Section>(b);
  582     if (isa<SyntheticSection>(isec))
tools/lld/ELF/ARMErrataFix.cpp
  390     return isa<Patch657417Section>(a) && !isa<Patch657417Section>(b);
  390     return isa<Patch657417Section>(a) && !isa<Patch657417Section>(b);
  477     if (isa<SyntheticSection>(isec))
tools/lld/ELF/Driver.cpp
 1522   if (!isa<Defined>(sym) || !sym->includeInDynsym())
 1955                  [](InputSectionBase *s) { return isa<MergeInputSection>(s); });
tools/lld/ELF/ICF.cpp
  179   if (isa<SyntheticSection>(s))
  274     if (isa<InputSection>(da->section)) {
tools/lld/ELF/InputFiles.cpp
  130   if (!file->isElf() && !isa<BitcodeFile>(file))
  607     if (!isa<InputSection>(linkSec))
tools/lld/ELF/LinkerScript.cpp
  425       if (isa<InputSection>(sec) &&
  588   if (!isa<SyntheticSection>(isec) &&
  691         assert(isa<MergeInputSection>(s) ||
  903     if (!isa<InputSectionDescription>(*base))
 1173     if (isa<SharedSymbol>(sym))
tools/lld/ELF/MapFile.cpp
  238       if (isa<SharedSymbol>(sym))
tools/lld/ELF/OutputSections.cpp
   98       !isa<InputSectionDescription>(sectionCommands.back()))
  377   if (isa<SyntheticSection>(first))
tools/lld/ELF/Relocations.cpp
  574       !isa<InputSectionDescription>(osec->sectionCommands.back()))
  705   if (sym.file && !isa<SharedFile>(sym.file)) {
tools/lld/ELF/Symbols.cpp
  339   else if (d && isa<OutputSection>(d->section))
tools/lld/ELF/SyntheticSections.cpp
 2102   if (!isa<Defined>(sym) || sym->needsPltAddr)
 2225     if (isa<OutputSection>(base))
 3187       if (isa<InputSection>(ex) && ex->type == SHT_ARM_EXIDX)
tools/lld/ELF/Writer.cpp
  664     if (isa<InputSectionBase>(sec) && !sec->isLive())
  725     if (isa<SyntheticSection>(isec) && !(isec->flags & SHF_MERGE))
 1021     if (isec->isLive() && isa<InputSection>(isec) && (isec->flags & SHF_ALLOC))
 1409     auto isSection = [](BaseCommand *base) { return isa<OutputSection>(base); };
 1474       isa<SymbolAssignment>(**firstSectionOrDotAssignment))
tools/lld/lib/Core/Resolver.cpp
   59       if (!isa<UndefinedAtom>(atom) || _symbolTable.isCoalescedAway(atom)) {
  417     if (isa<SharedLibraryFile>(undef->file()) && _ctx.allowShlibUndefines())
tools/lld/lib/ReaderWriter/MachO/ArchHandler_arm.cpp
  514     if (isa<DefinedAtom>(target)) {
 1047   if (isa<UndefinedAtom>(&target))
 1080   bool targetIsUndef = isa<UndefinedAtom>(ref.target());
tools/lld/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp
  568     if (isa<DefinedAtom>(target))
tools/lld/lib/ReaderWriter/MachO/ArchHandler_x86.cpp
  423     if (isa<DefinedAtom>(target))
  532   if (isa<UndefinedAtom>(&target))
tools/lld/lib/ReaderWriter/MachO/ArchHandler_x86_64.cpp
  557     if (isa<DefinedAtom>(target))
tools/lld/lib/ReaderWriter/MachO/GOTPass.cpp
  141     if (isa<SharedLibraryAtom>(target))
tools/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
 1003     return isa<SharedLibraryFile>(file) || isa<ArchiveLibraryFile>(file);
 1003     return isa<SharedLibraryFile>(file) || isa<ArchiveLibraryFile>(file);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
  824               if (isa<mach_o::DwarfDebugInfo>(atomFile->debugInfo()))
  826               else if (isa<mach_o::StabsDebugInfo>(atomFile->debugInfo()))
 1180             if (isa<const SharedLibraryAtom>(target)) {
 1323         if (si->relocsToDefinedCanBeImplicit && isa<DefinedAtom>(ref->target()))
 1440           if (isa<DefinedAtom>(targ)) {
tools/lld/lib/ReaderWriter/MachO/StubsPass.cpp
  230         if (isa<SharedLibraryAtom>(target)) {
tools/lld/wasm/InputFiles.cpp
  172     if ((isa<FunctionSymbol>(sym) || isa<DataSymbol>(sym)) && !sym->isLive())
  172     if ((isa<FunctionSymbol>(sym) || isa<DataSymbol>(sym)) && !sym->isLive())
  192     if (isa<UndefinedData>(sym) || sym->isUndefWeak())
tools/lld/wasm/LTO.cpp
   82   else if (isa<DefinedData>(s))
tools/lld/wasm/Relocations.cpp
   29   if (isa<DataSymbol>(sym))
   82       if (!isa<GlobalSymbol>(sym))
tools/lld/wasm/SymbolTable.cpp
  155   if (!isa<GlobalSymbol>(existing)) {
  172   if (!isa<EventSymbol>(existing)) {
  191   if (!isa<DataSymbol>(existing))
  650       assert(!isa<FunctionSymbol>(sym));
tools/lld/wasm/Symbols.cpp
   82   if (isa<FunctionSymbol>(this))
   84   if (isa<DataSymbol>(this))
   86   if (isa<GlobalSymbol>(this))
   88   if (isa<EventSymbol>(this))
   90   if (isa<SectionSymbol>(this) || isa<OutputSectionSymbol>(this))
   90   if (isa<SectionSymbol>(this) || isa<OutputSectionSymbol>(this))
tools/lld/wasm/SyntheticSections.cpp
  188     if (isa<DataSymbol>(sym))
  279       assert(isa<UndefinedData>(sym));
  411       } else if (isa<DataSymbol>(sym)) {
tools/lld/wasm/Writer.cpp
  492     if (isa<DataSymbol>(sym))
  559       if (sym->isLocal() && !isa<SectionSymbol>(sym) && sym->isLive())
tools/lldb/source/API/SBBreakpoint.cpp
  561   if (!llvm::isa<BreakpointResolverScripted>(bkpt_sp->GetResolver().get())) {
tools/lldb/source/API/SBTypeSummary.cpp
  283   if (!llvm::isa<StringSummaryFormat>(m_opaque_sp.get()))
  296   if (!llvm::isa<ScriptSummaryFormat>(m_opaque_sp.get()))
  309   if (!llvm::isa<ScriptSummaryFormat>(m_opaque_sp.get()))
tools/lldb/source/Expression/IRInterpreter.cpp
  299       if (isa<ConstantPointerNull>(constant)) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
  718   if (HasMerger() && !isa<TranslationUnitDecl>(context.m_decl_context)
  761   } else if (isa<ObjCInterfaceDecl>(context.m_decl_context) && !HasMerger()) {
  763   } else if (!isa<TranslationUnitDecl>(context.m_decl_context)) {
  937           if (llvm::isa<clang::TypeDecl>(decl_from_modules) ||
  938               llvm::isa<clang::ObjCContainerDecl>(decl_from_modules) ||
  939               llvm::isa<clang::EnumConstantDecl>(decl_from_modules)) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
  761   } else if (isa<TranslationUnitDecl>(context.m_decl_context)) {
 1391           if (llvm::isa<clang::FunctionDecl>(decl)) {
 1428           if (llvm::isa<clang::FunctionDecl>(decl_from_modules)) {
 1456           } else if (llvm::isa<clang::VarDecl>(decl_from_modules)) {
 1916       if (llvm::isa<ClangASTContext>(type_system)) {
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
 1647   if (!isa<GlobalValue>(old_constant)) {
tools/lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.cpp
  181   if (!m_objfile_sp || !llvm::isa<ObjectFileBreakpad>(*m_objfile_sp))
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
 1492   if (die && llvm::isa<DWARFCompileUnit>(die.GetCU())) {
tools/lldb/source/Symbol/ClangASTContext.cpp
 1403     if (isa<CXXRecordDecl>(decl_ctx) && exports_symbols)
 2958   if (!llvm::isa<clang::ObjCInterfaceDecl>(decl_ctx))
 4646               else if (llvm::isa<clang::CXXConstructorDecl>(cxx_method_decl))
 4648               else if (llvm::isa<clang::CXXDestructorDecl>(cxx_method_decl))
 9898     if (nd != nullptr && !llvm::isa<clang::ObjCMethodDecl>(nd)) {
 9903         if (llvm::isa<clang::CXXConstructorDecl>(nd)) {
 9906         } else if (llvm::isa<clang::CXXDestructorDecl>(nd)) {
10101         if (llvm::isa<clang::TranslationUnitDecl>(it->second))
tools/lldb/source/Symbol/ClangASTImporter.cpp
  236       if (llvm::isa<FunctionDecl>(redecl_context) &&
  237           llvm::isa<TranslationUnitDecl>(redecl_context->getLexicalParent())) {
  325     if (!isa<TagDecl>(to) && !isa<ObjCInterfaceDecl>(to))
  325     if (!isa<TagDecl>(to) && !isa<ObjCInterfaceDecl>(to))
 1160   if (isa<NamespaceDecl>(from)) {
 1168   if (isa<ObjCContainerDecl>(from)) {
tools/lldb/tools/lldb-instr/Instrument.cpp
  218     } else if (isa<CXXConstructorDecl>(Decl)) {
  294     if (isa<CXXDestructorDecl>(Decl))
tools/lldb/unittests/tools/lldb-server/tests/TestClient.cpp
  256   if (!isa<StopReplyStop>(m_stop_reply)) {
tools/llvm-ar/llvm-ar.cpp
  868     return isa<object::MachOObjectFile>(**OptionalObject)
tools/llvm-diff/DiffConsumer.cpp
   49     out << (isa<GlobalValue>(V) ? '@' : '%') << V->getName();
   53     if (isa<StoreInst>(V)) {
   56     } else if (isa<CallInst>(V)) {
   59     } else if (isa<InvokeInst>(V)) {
   67   if (isa<Constant>(V)) {
   98     if (isa<Function>(I->L)) {
  109     } else if (isa<BasicBlock>(I->L)) {
  121     } else if (isa<Instruction>(I->L)) {
tools/llvm-diff/DiffConsumer.h
   59         : L(L), R(R), Differences(false), IsFunction(isa<Function>(L)) {}
tools/llvm-diff/DifferenceEngine.cpp
  254     if (isa<CmpInst>(L)) {
  260     } else if (isa<CallInst>(L)) {
  262     } else if (isa<PHINode>(L)) {
  275     } else if (isa<InvokeInst>(L)) {
  287     } else if (isa<BranchInst>(L)) {
  305     } else if (isa<IndirectBrInst>(L)) {
  325     } else if (isa<SwitchInst>(L)) {
  361     } else if (isa<UnreachableInst>(L)) {
  390     if (isa<GlobalValue>(L))
  395     if (isa<ConstantExpr>(L))
  401     if (isa<ConstantPointerNull>(L) || isa<UndefValue>(L) || isa<ConstantAggregateZero>(L))
  401     if (isa<ConstantPointerNull>(L) || isa<UndefValue>(L) || isa<ConstantAggregateZero>(L))
  401     if (isa<ConstantPointerNull>(L) || isa<UndefValue>(L) || isa<ConstantAggregateZero>(L))
  406     if (isa<BlockAddress>(L))
  411     if (isa<ConstantVector>(L)) {
  466     if (isa<Constant>(L))
  469     if (isa<Instruction>(L))
  472     if (isa<Argument>(L))
  475     if (isa<BasicBlock>(L))
  633   if (isa<BranchInst>(LTerm) && isa<InvokeInst>(RTerm)) {
  633   if (isa<BranchInst>(LTerm) && isa<InvokeInst>(RTerm)) {
  638     if (!isa<CallInst>(*I)) return;
  646   } else if (isa<InvokeInst>(LTerm) && isa<BranchInst>(RTerm)) {
  646   } else if (isa<InvokeInst>(LTerm) && isa<BranchInst>(RTerm)) {
  651     if (!isa<CallInst>(*I)) return;
tools/llvm-lto/llvm-lto.cpp
  346         } else if (isa<AliasSummary>(Summary.get()))
tools/llvm-nm/llvm-nm.cpp
  335   if (isa<COFFObjectFile>(Obj) || isa<COFFImportFile>(Obj))
  335   if (isa<COFFObjectFile>(Obj) || isa<COFFImportFile>(Obj))
  337   if (isa<WasmObjectFile>(Obj))
 1073   if (isa<ELFObjectFileBase>(&Obj)) {
 1112   if ((Symflags & object::SymbolRef::SF_Weak) && !isa<MachOObjectFile>(Obj)) {
 1224       if (isa<ELFObjectFileBase>(&Obj))
 1226       if (PrintAddress && isa<ObjectFile>(Obj)) {
 1827           if (!MachOPrintSizeWarning && PrintSize &&  isa<MachOObjectFile>(O)) {
 1836             if (isa<MachOObjectFile>(O)) {
 2005           if (isa<MachOObjectFile>(Obj) && moreThanOneArch)
 2011           if (isa<MachOObjectFile>(Obj) && moreThanOneArch)
 2038               if (isa<MachOObjectFile>(F) && moreThanOneArch)
 2042               if (isa<MachOObjectFile>(F)) {
 2067     if (!MachOPrintSizeWarning && PrintSize &&  isa<MachOObjectFile>(O)) {
tools/llvm-objcopy/ELF/ELFObjcopy.cpp
  114   if (isa<ELFObjectFile<ELF32LE>>(Bin))
  116   if (isa<ELFObjectFile<ELF64LE>>(Bin))
  118   if (isa<ELFObjectFile<ELF32BE>>(Bin))
  120   if (isa<ELFObjectFile<ELF64BE>>(Bin))
  577         [](const SectionBase &S) { return isa<CompressedSection>(&S); },
tools/llvm-objcopy/ELF/Object.h
 1058     MustBeRelocatable |= isa<RelocationSection>(*Ptr);
tools/llvm-objdump/llvm-objdump.cpp
 1026   if (isa<object::ELFObjectFileBase>(Obj))
 1879     if (Common || isa<ELFObjectFileBase>(O)) {
 1885     if (isa<ELFObjectFileBase>(O)) {
 1941   if (isa<COFFObjectFile>(Obj)) {
 1969   if (isa<ELFObjectFileBase>(Obj)) {
 1971   } else if (isa<MachOObjectFile>(Obj)) {
tools/llvm-pdbutil/PrettyVariableDumper.cpp
   58     if (isa<PDBSymbolTypeEnum>(*VarType))
  186   } else if (isa<PDBSymbolTypeArray>(PointeeType)) {
  204   if (isa<PDBSymbolTypeFunctionSig>(PointeeType) ||
  205       isa<PDBSymbolTypeArray>(PointeeType)) {
tools/llvm-rc/ResourceFileWriter.cpp
 1190   if (isa<MenuSeparator>(DefPtr)) {
tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp
   39   bool IsBranch = isa<BranchInst>(Term);
tools/opt/AnalysisWrappers.cpp
   48             if (!isa<Constant>(*AI)) continue;
tools/opt/Debugify.cpp
  133         if (!isa<PHINode>(I) && !I->isEHPad())
  243       if (isa<DbgValueInst>(&I))
tools/polly/include/polly/ScopInfo.h
  783     return isa<MemIntrinsic>(getAccessInstruction());
 1492     if (isa<PHINode>(Val))
tools/polly/include/polly/Support/ScopHelper.h
   90     return llvm::isa<llvm::LoadInst>(V) || llvm::isa<llvm::StoreInst>(V) ||
   90     return llvm::isa<llvm::LoadInst>(V) || llvm::isa<llvm::StoreInst>(V) ||
   91            llvm::isa<llvm::CallInst>(V) || llvm::isa<llvm::MemIntrinsic>(V);
   91            llvm::isa<llvm::CallInst>(V) || llvm::isa<llvm::MemIntrinsic>(V);
   94     return llvm::isa<llvm::LoadInst>(V) || llvm::isa<llvm::StoreInst>(V) ||
   94     return llvm::isa<llvm::LoadInst>(V) || llvm::isa<llvm::StoreInst>(V) ||
   95            llvm::isa<llvm::CallInst>(V) || llvm::isa<llvm::MemIntrinsic>(V);
   95            llvm::isa<llvm::CallInst>(V) || llvm::isa<llvm::MemIntrinsic>(V);
  259   bool isLoad() const { return I && llvm::isa<llvm::LoadInst>(I); }
  260   bool isStore() const { return I && llvm::isa<llvm::StoreInst>(I); }
  261   bool isCallInst() const { return I && llvm::isa<llvm::CallInst>(I); }
  262   bool isMemIntrinsic() const { return I && llvm::isa<llvm::MemIntrinsic>(I); }
  263   bool isMemSetInst() const { return I && llvm::isa<llvm::MemSetInst>(I); }
  265     return I && llvm::isa<llvm::MemTransferInst>(I);
tools/polly/lib/Analysis/ScopBuilder.cpp
  569   assert(isa<BranchInst>(TI) && "Terminator was neither branch nor switch.");
  899     if (isa<UnreachableInst>(TI))
 1119   assert(!isa<PHINode>(Inst));
 1387   if (!isa<LoadInst>(Inst) && !isa<StoreInst>(Inst))
 1387   if (!isa<LoadInst>(Inst) && !isa<StoreInst>(Inst))
 1457   if (!isa<LoadInst>(Inst) && !isa<StoreInst>(Inst))
 1457   if (!isa<LoadInst>(Inst) && !isa<StoreInst>(Inst))
 1609       isa<LoadInst>(Inst) ? MemoryAccess::READ : MemoryAccess::MUST_WRITE;
 1682       isa<LoadInst>(Inst) ? MemoryAccess::READ : MemoryAccess::MUST_WRITE;
 1847       isa<LoadInst>(Inst) ? MemoryAccess::READ : MemoryAccess::MUST_WRITE;
 1972         (SplitOnStore && isa<StoreInst>(Inst))) {
 1998     if (isa<PHINode>(Inst))
 2112     if (!MainInst && (isa<StoreInst>(Inst) ||
 2113                       (isa<CallInst>(Inst) && !isa<IntrinsicInst>(Inst))))
 2113                       (isa<CallInst>(Inst) && !isa<IntrinsicInst>(Inst))))
 2254       if (isa<LoadInst>(Inst) && RIL.count(cast<LoadInst>(&Inst)))
 2809     if (!isa<LoadInst>(BasePtrInst))
 2963     if (!isa<SCEVConstant>(MA->getSubscript(u)))
 3371       if (MA->isRead() && isa<MemTransferInst>(Acc))
 3568       if (isa<StoreInst>(Inst))
 3589       if (!isa<PHINode>(Inst))
tools/polly/lib/Analysis/ScopDetection.cpp
  502     if (isa<SCEVConstant>(PtrSCEV))
  560   if (isa<ConstantInt>(Condition))
  587   if (!isa<ICmpInst>(Condition)) {
  597   if (isa<UndefValue>(ICmp->getOperand(0)) ||
  598       isa<UndefValue>(ICmp->getOperand(1)))
  643   if (AllowUnreachable && isa<UnreachableInst>(TI))
  647   if (isa<ReturnInst>(TI) && CurRegion.isTopLevelRegion())
  656   if (isa<UndefValue>(Condition))
  789   if (isa<Argument>(Val) || isa<Constant>(Val))
  789   if (isa<Argument>(Val) || isa<Constant>(Val))
 1062   if (isa<UndefValue>(BV))
 1077   if (!isa<MemIntrinsic>(Inst)) {
 1105   if (isa<MemIntrinsic>(Inst) && !IsAffine) {
 1214   if (isa<LandingPadInst>(&Inst) || isa<ResumeInst>(&Inst))
 1214   if (isa<LandingPadInst>(&Inst) || isa<ResumeInst>(&Inst))
 1226     if (!isa<AllocaInst>(Inst))
 1234     Context.hasStores |= isa<StoreInst>(MemInst);
 1235     Context.hasLoads |= isa<LoadInst>(MemInst);
 1593         MemStore |= isa<StoreInst>(&I);
 1649       isa<UnreachableInst>(CurRegion.getExit()->getTerminator())) {
tools/polly/lib/Analysis/ScopInfo.cpp
  731   if (isa<MemIntrinsic>(MAI))
  739   if (isa<SCEVCouldNotCompute>(PtrSCEV))
  743   if (BasePtrSCEV && !isa<SCEVCouldNotCompute>(BasePtrSCEV))
  773   if (Sizes.size() < 2 || isa<SCEVConstant>(Sizes[1]))
  850   if (getAccessInstruction() && isa<MemIntrinsic>(getAccessInstruction())) {
 2559     if (hasSingleExitEdge() && isa<PHINode>(Use.getUser()) &&
tools/polly/lib/CodeGen/BlockGenerators.cpp
   75   if (isa<SCEVCouldNotCompute>(Scev))
  219   if (isa<DbgInfoIntrinsic>(Inst))
  230       assert(!isa<StoreInst>(NewInst) &&
  573     assert((!isa<Instruction>(Address) ||
  710       if (isa<PHINode>(Inst)) {
  791           assert((!isa<Instruction>(Val) ||
  795           assert((!isa<Instruction>(Address) ||
  964     assert((!isa<Instruction>(OriginalValue) ||
 1166   assert(isa<CastInst>(Inst) && "Can not generate vector code for instruction");
 1561     if (isa<UnreachableInst>(TI)) {
 1724           assert((!isa<Instruction>(NewVal) ||
 1728           assert((!isa<Instruction>(Address) ||
tools/polly/lib/CodeGen/IRBuilder.cpp
  207   if (isa<CallInst>(Inst) && !isa<MemSetInst>(Inst))
  207   if (isa<CallInst>(Inst) && !isa<MemSetInst>(Inst))
tools/polly/lib/CodeGen/IslExprBuilder.cpp
  165   assert(isa<IntegerType>(T1) && isa<IntegerType>(T2));
  165   assert(isa<IntegerType>(T1) && isa<IntegerType>(T2));
tools/polly/lib/CodeGen/IslNodeBuilder.cpp
  212     if (isa<LoadInst>(Inst))
  331   Values.remove_if([](const Value *V) { return isa<GlobalValue>(V); });
 1613   if (!isa<ConstantInt>(RTC))
tools/polly/lib/CodeGen/RuntimeDebugBuilder.cpp
  111   if (isa<PointerType>(Ty))
  134     } else if (isa<PointerType>(Ty)) {
tools/polly/lib/Support/SCEVAffinator.cpp
  468   assert(isa<SCEVConstant>(Divisor) &&
  503   assert(isa<SCEVConstant>(DivisorSCEV) &&
  520   assert(isa<ConstantInt>(Divisor) &&
tools/polly/lib/Support/SCEVValidator.cpp
  125     if (!isa<ConstantInt>(&Operand))
  380     if (isa<SCEVConstant>(Divisor) && !Divisor->isZero())
  438     if (isa<UndefValue>(V)) {
  598     if (!isa<SCEVConstant>(Dividend))
  637   if (isa<SCEVCouldNotCompute>(Expr))
  662   if (isa<SCEVCouldNotCompute>(E))
  701   if (isa<SCEVCouldNotCompute>(Expr))
  764     if (isa<SCEVConstant>(Op))
tools/polly/lib/Support/ScopHelper.cpp
  205   while (isa<AllocaInst>(I))
  274            !isa<PHINode>(Inst));
  407   if (isa<UnreachableInst>(BB.getTerminator()))
  418       if (isa<ReturnInst>(I.getTerminator()) && !DT.dominates(&BB, &I))
  438       if (isa<MemSetInst>(CI) || isa<MemTransferInst>(CI))
  438       if (isa<MemSetInst>(CI) || isa<MemTransferInst>(CI))
  489     if (isa<UnreachableInst>(ExitBlock->getTerminator()))
  526     if (!L && isa<UnreachableInst>(BB->getTerminator()) && BB->getPrevNode())
  593         if (isa<ReturnInst>(I.getTerminator()) && !DT.dominates(&BB, &I))
  643     if (!isa<SCEVCouldNotCompute>(Scev))
tools/polly/lib/Support/VirtualInstruction.cpp
   54   assert(!isa<StoreInst>(Val) && "a StoreInst cannot be used");
   56   if (isa<BasicBlock>(Val))
   59   if (isa<llvm::Constant>(Val) || isa<MetadataAsValue>(Val))
   59   if (isa<llvm::Constant>(Val) || isa<MetadataAsValue>(Val))
   89   if (!UserStmt || isa<Argument>(Val))
  174   if (isa<LoadInst>(Inst) || isa<StoreInst>(Inst))
  174   if (isa<LoadInst>(Inst) || isa<StoreInst>(Inst))
tools/polly/lib/Transform/CodePreparation.cpp
   65   while (isa<AllocaInst>(I))
tools/polly/lib/Transform/DeLICM.cpp
  569         if (!isa<Instruction>(User))
 1274         if (!isa<StoreInst>(MA->getAccessInstruction())) {
tools/polly/lib/Transform/ForwardOpTree.cpp
  618     if (isa<PHINode>(UseInst))
tools/polly/lib/Transform/Simplify.cpp
  269                                   isa<StoreInst>(MA->getAccessInstruction()))) {
  439             (isa<StoreInst>(MA->getAccessInstruction()) ||
tools/polly/lib/Transform/ZoneAlgo.cpp
  888   return isa<StoreInst>(AccInst) || isa<LoadInst>(AccInst);
  888   return isa<StoreInst>(AccInst) || isa<LoadInst>(AccInst);
tools/verify-uselistorder/verify-uselistorder.cpp
  228           if ((isa<Constant>(Op) && !isa<GlobalValue>(*Op)) ||
  228           if ((isa<Constant>(Op) && !isa<GlobalValue>(*Op)) ||
  229               isa<InlineAsm>(Op))
  239     if (!isa<GlobalValue>(C))
  389     if (!isa<GlobalValue>(C))
  431     if (!isa<GlobalValue>(C))
  504           if ((isa<Constant>(Op) && !isa<GlobalValue>(*Op)) ||
  504           if ((isa<Constant>(Op) && !isa<GlobalValue>(*Op)) ||
  505               isa<InlineAsm>(Op))
unittests/Analysis/CaptureTrackingTest.cpp
   68     ASSERT_TRUE(isa<ReturnInst>(Ret));
unittests/Analysis/DomTreeUpdaterTest.cpp
  103   ASSERT_FALSE(isa<UnreachableInst>(BB3->getTerminator()));
  207   ASSERT_FALSE(isa<UnreachableInst>(BB0->getTerminator()));
  292   ASSERT_FALSE(isa<UnreachableInst>(BB3->getTerminator()));
  298   ASSERT_TRUE(isa<UnreachableInst>(BB3->getTerminator()));
  388   ASSERT_FALSE(isa<UnreachableInst>(BB2->getTerminator()));
  392   ASSERT_TRUE(isa<UnreachableInst>(BB2->getTerminator()));
  411   ASSERT_FALSE(isa<UnreachableInst>(BB1->getTerminator()));
  415   ASSERT_TRUE(isa<UnreachableInst>(BB1->getTerminator()));
  501   ASSERT_FALSE(isa<UnreachableInst>(BB3->getTerminator()));
  505   ASSERT_TRUE(isa<UnreachableInst>(BB3->getTerminator()));
  586   ASSERT_FALSE(isa<UnreachableInst>(BB0->getTerminator()));
  590   ASSERT_TRUE(isa<UnreachableInst>(BB0->getTerminator()));
  667   ASSERT_FALSE(isa<UnreachableInst>(BB3->getTerminator()));
unittests/Analysis/MemorySSATest.cpp
  105   EXPECT_TRUE(isa<MemoryPhi>(DefiningAccess));
  242   EXPECT_TRUE(isa<MemoryPhi>(DefiningAccess));
  362   EXPECT_TRUE(isa<MemoryPhi>(LoadAccess->getDefiningAccess()));
  405   EXPECT_TRUE(isa<MemoryPhi>(LoadAccess->getDefiningAccess()));
  449   EXPECT_TRUE(isa<MemoryPhi>(LoadAccess->getDefiningAccess()));
  503   EXPECT_TRUE(isa<MemoryPhi>(DefiningAccess));
  550   EXPECT_TRUE(isa<MemoryPhi>(DefiningAccess));
unittests/Analysis/ScalarEvolutionTest.cpp
  202   EXPECT_TRUE(isa<BitCastInst>(V));
  204   EXPECT_TRUE(isa<GetElementPtrInst>(Gep));
  205   EXPECT_TRUE(isa<ConstantInt>(Gep->getOperand(1)));
  207   EXPECT_TRUE(isa<BitCastInst>(Gep->getPrevNode()));
  293     EXPECT_TRUE(isa<SCEVAddRecExpr>(FirstExprForIV0));
  294     EXPECT_TRUE(isa<SCEVAddRecExpr>(FirstExprForIV0Inc));
  295     EXPECT_TRUE(isa<SCEVAddRecExpr>(SecondExprForIV0));
  862   EXPECT_FALSE(isa<SCEVCouldNotCompute>(EC));
  863   EXPECT_TRUE(isa<SCEVConstant>(EC));
  872   EXPECT_FALSE(isa<SCEVCouldNotCompute>(ARAtLoopExit));
  873   EXPECT_TRUE(isa<SCEVConstant>(ARAtLoopExit));
  886   EXPECT_FALSE(isa<SCEVCouldNotCompute>(NewEC));
  887   EXPECT_TRUE(isa<SCEVConstant>(NewEC));
  890   EXPECT_FALSE(isa<SCEVCouldNotCompute>(NewARAtLoopExit));
  891   EXPECT_TRUE(isa<SCEVConstant>(NewARAtLoopExit));
  962   EXPECT_FALSE(isa<SCEVCouldNotCompute>(EC));
  963   EXPECT_FALSE(isa<SCEVConstant>(EC));
  975   EXPECT_FALSE(isa<SCEVCouldNotCompute>(NewEC));
  976   EXPECT_TRUE(isa<SCEVConstant>(NewEC));
 1032   EXPECT_TRUE(isa<SCEVUnknown>(Expr));
 1090   EXPECT_TRUE(isa<SCEVUnknown>(Expr));
 1187   EXPECT_TRUE(isa<SCEVAddRecExpr>(S));
 1242   EXPECT_TRUE(isa<SCEVAddExpr>(S));
 1294   EXPECT_TRUE(isa<SCEVAddExpr>(S));
 1340   EXPECT_TRUE(isa<SCEVAddExpr>(SC2));
 1343   EXPECT_TRUE(isa<SCEVAddExpr>(SC1));
 1391   EXPECT_TRUE(isa<SCEVAddExpr>(SC2));
 1394   EXPECT_TRUE(isa<SCEVAddExpr>(SC1));
 1541       for (BasicBlock::iterator i = LoopHeaderBB->begin(); isa<PHINode>(i);
 1555       EXPECT_TRUE(isa<ConstantInt>(Start));
 1558       EXPECT_TRUE(isa<BinaryOperator>(Next));
 1563       EXPECT_TRUE(isa<ConstantInt>(Step));
 1621       for (BasicBlock::iterator i = LoopHeaderBB->begin(); isa<PHINode>(i);
 1664     EXPECT_TRUE(isa<SCEVMulExpr>(AndSCEV));
unittests/Analysis/ValueLatticeTest.cpp
  168   EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_SLT, I1Ty, LV2)));
  169   EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_SLE, I1Ty, LV2)));
  170   EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_NE, I1Ty, LV2)));
  171   EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_EQ, I1Ty, LV2)));
  172   EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_SGE, I1Ty, LV2)));
  173   EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_SGT, I1Ty, LV2)));
  177   EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::FCMP_OEQ, I1Ty, LV3)));
  178   EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::FCMP_OGE, I1Ty, LV3)));
  179   EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::FCMP_OLE, I1Ty, LV3)));
  180   EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::FCMP_ONE, I1Ty, LV3)));
  181   EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::FCMP_OLT, I1Ty, LV3)));
  182   EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::FCMP_OGT, I1Ty, LV3)));
unittests/AsmParser/AsmParserTest.cpp
   59   EXPECT_TRUE(isa<GlobalVariable>(Mapping.GlobalValues[0]));
   79   ASSERT_TRUE(isa<ConstantFP>(V));
   85   ASSERT_TRUE(isa<ConstantInt>(V));
   91   ASSERT_TRUE(isa<ConstantDataVector>(V));
   95   ASSERT_TRUE(isa<ConstantInt>(V));
   99   ASSERT_TRUE(isa<BlockAddress>(V));
  103   ASSERT_TRUE(isa<UndefValue>(V));
  145   ASSERT_TRUE(isa<ConstantExpr>(V));
  151   ASSERT_TRUE(isa<ConstantExpr>(V));
unittests/DebugInfo/PDB/PDBApiTest.cpp
  449       EXPECT_EQ(item->first == Tag, llvm::isa<ExpectedType>(*item->second));
  459       EXPECT_EQ(should_match, llvm::isa<PDBSymbolUnknown>(*item->second));
unittests/ExecutionEngine/Orc/IndirectionUtilsTest.cpp
   39   EXPECT_TRUE(isa<LoadInst>(*II)) << "First instruction of stub should be a load.";
unittests/FuzzMutate/RandomIRBuilderTest.cpp
  264     ASSERT_FALSE(isa<LoadInst>(V));
  294     ASSERT_FALSE(isa<AllocaInst>(V));
unittests/IR/BasicBlockTest.cpp
   72   auto isPhi = [](Instruction &I) { return isa<PHINode>(&I); };
unittests/IR/CFGBuilder.cpp
   43   if (isa<UnreachableInst>(From->getTerminator()))
  173   EXPECT_TRUE(isa<SwitchInst>(B.getOrAddBlock("entry")->getTerminator()));
  174   EXPECT_TRUE(isa<SwitchInst>(B.getOrAddBlock("a")->getTerminator()));
  175   EXPECT_TRUE(isa<UnreachableInst>(B.getOrAddBlock("b")->getTerminator()));
  176   EXPECT_TRUE(isa<SwitchInst>(B.getOrAddBlock("d")->getTerminator()));
  201   EXPECT_TRUE(isa<SwitchInst>(B.getOrAddBlock("entry")->getTerminator()));
  202   EXPECT_TRUE(isa<SwitchInst>(B.getOrAddBlock("a")->getTerminator()));
  203   EXPECT_TRUE(isa<UnreachableInst>(B.getOrAddBlock("b")->getTerminator()));
  204   EXPECT_TRUE(isa<SwitchInst>(B.getOrAddBlock("d")->getTerminator()));
  224   EXPECT_TRUE(isa<SwitchInst>(B.getOrAddBlock("entry")->getTerminator()));
  225   EXPECT_TRUE(isa<SwitchInst>(B.getOrAddBlock("a")->getTerminator()));
  226   EXPECT_TRUE(isa<SwitchInst>(B.getOrAddBlock("c")->getTerminator()));
  227   EXPECT_TRUE(isa<SwitchInst>(B.getOrAddBlock("d")->getTerminator()));
  235   EXPECT_TRUE(isa<UnreachableInst>(B.getOrAddBlock("c")->getTerminator()));
  242   EXPECT_TRUE(isa<SwitchInst>(B.getOrAddBlock("a")->getTerminator()));
  243   EXPECT_TRUE(isa<UnreachableInst>(B.getOrAddBlock("entry")->getTerminator()));
  264   EXPECT_TRUE(isa<SwitchInst>(B.getOrAddBlock("entry")->getTerminator()));
  265   EXPECT_TRUE(isa<SwitchInst>(B.getOrAddBlock("a")->getTerminator()));
  266   EXPECT_TRUE(isa<SwitchInst>(B.getOrAddBlock("c")->getTerminator()));
  267   EXPECT_TRUE(isa<SwitchInst>(B.getOrAddBlock("d")->getTerminator()));
unittests/IR/ConstantsTest.cpp
  126   EXPECT_TRUE(isa<ConstantFP>(X));
unittests/IR/IRBuilderTest.cpp
  188   ASSERT_TRUE(isa<IntrinsicInst>(V));
  193   ASSERT_TRUE(isa<IntrinsicInst>(V));
  198   ASSERT_TRUE(isa<IntrinsicInst>(V));
  203   ASSERT_TRUE(isa<IntrinsicInst>(V));
  208   ASSERT_TRUE(isa<IntrinsicInst>(V));
  213   ASSERT_TRUE(isa<IntrinsicInst>(VInt));
  218   ASSERT_TRUE(isa<IntrinsicInst>(VInt));
  223   ASSERT_TRUE(isa<IntrinsicInst>(V));
  228   ASSERT_TRUE(isa<IntrinsicInst>(VDouble));
  243   ASSERT_TRUE(isa<ConstrainedFPIntrinsic>(V));
  382   ASSERT_TRUE(isa<Instruction>(U));
  383   ASSERT_TRUE(isa<FPMathOperator>(U));
  384   ASSERT_TRUE(isa<UnaryOperator>(U));
  385   ASSERT_FALSE(isa<BinaryOperator>(U));
  407   ASSERT_TRUE(isa<Instruction>(F));
  417   ASSERT_TRUE(isa<Instruction>(F));
  444   ASSERT_TRUE(isa<Instruction>(F));
  452   ASSERT_TRUE(isa<Instruction>(F));
  459   ASSERT_TRUE(isa<Instruction>(F));
  467   ASSERT_TRUE(isa<Instruction>(F));
  479   ASSERT_TRUE(isa<Instruction>(F));
  486   ASSERT_TRUE(isa<Instruction>(FC));
  497   ASSERT_TRUE(isa<Instruction>(FC));
  505   ASSERT_TRUE(isa<Instruction>(FC));
  516   ASSERT_TRUE(isa<Instruction>(FC));
  572   ASSERT_TRUE(isa<Instruction>(F));
unittests/IR/InstructionsTest.cpp
  415   EXPECT_TRUE(isa<FPMathOperator>(V1));
  670   ASSERT_TRUE(isa<GetElementPtrInst>(V));
 1042   EXPECT_FALSE(isa<FPMathOperator>(I));
 1045   EXPECT_TRUE(isa<FPMathOperator>(FP));
 1124   EXPECT_TRUE(isa<Value>(F));
 1125   EXPECT_TRUE(isa<Instruction>(F));
 1126   EXPECT_TRUE(isa<UnaryInstruction>(F));
 1127   EXPECT_TRUE(isa<UnaryOperator>(F));
 1128   EXPECT_FALSE(isa<BinaryOperator>(F));
unittests/IR/MDBuilderTest.cpp
   77   EXPECT_TRUE(isa<MDString>(R0->getOperand(0)));
   94   EXPECT_TRUE(isa<MDString>(N0->getOperand(0)));
   95   EXPECT_TRUE(isa<MDString>(N1->getOperand(0)));
   96   EXPECT_TRUE(isa<MDString>(N2->getOperand(0)));
unittests/IR/MetadataTest.cpp
  942     EXPECT_TRUE(isa<DILocalScope>(M->getScope()));
  954     EXPECT_TRUE(isa<DILocalScope>(M->getScope()));
 1177   ASSERT_TRUE(isa<DIVariable>(N->getRawCountNode()));
unittests/IR/PatternMatch.cpp
  958   EXPECT_TRUE(isa<ConstantInt>(C));
unittests/Linker/LinkModulesTest.cpp
  116   ASSERT_TRUE(isa<BlockAddress>(Elem));
  123   ASSERT_TRUE(isa<BlockAddress>(Elem));
unittests/Support/Casting.cpp
  115   EXPECT_TRUE(isa<foo>(B1));
  116   EXPECT_TRUE(isa<foo>(B2));
  117   EXPECT_TRUE(isa<foo>(B3));
  118   EXPECT_TRUE(isa<foo>(B4));
  284   EXPECT_TRUE(isa<Base>(D));
  305   EXPECT_TRUE(isa<UseInferredUpcast>(&UIU));
  375   EXPECT_TRUE(!isa<pointer_wrappers::Derived>(MB));
  376   EXPECT_TRUE(!isa<pointer_wrappers::Derived>(CB));
  377   EXPECT_TRUE(isa<pointer_wrappers::Derived>(MD));
  378   EXPECT_TRUE(isa<pointer_wrappers::Derived>(CD));
unittests/Support/YAMLIOTest.cpp
 2833     if (isa<Scalar>(*N))
 2835     if (isa<Seq>(*N))
 2837     if (isa<Map>(*N))
 2843     if (!N || !isa<Scalar>(*N))
 2849     if (!N || !isa<Seq>(*N))
 2855     if (!N || !isa<Map>(*N))
unittests/Transforms/Utils/LocalTest.cpp
  161     if (isa<DbgDeclareInst>(I))
  619   ASSERT_TRUE(isa<ReturnInst>(&A));
  626   ASSERT_TRUE(isa<UnreachableInst>(&B));
  738     return isa<DbgAddrIntrinsic>(DII);
  741     return isa<DbgDeclareInst>(DII);
  750     return isa<DbgAddrIntrinsic>(DII);
  753     return isa<DbgDeclareInst>(DII);
unittests/Transforms/Utils/ValueMapperTest.cpp
  343   EXPECT_TRUE(isa<LocalAsMetadata>(MDA->getMetadata()));
  344   EXPECT_TRUE(isa<ConstantAsMetadata>(MDC->getMetadata()));
utils/TableGen/AsmMatcherEmitter.cpp
 1384       assert(isa<UnsetInit>(PMName) && "Unexpected PredicateMethod field!");
 1393       assert(isa<UnsetInit>(RMName) && "Unexpected RenderMethod field!");
 1423       assert(isa<UnsetInit>(DMName) && "Unexpected DefaultMethod field!");
utils/TableGen/CodeGenDAGPatterns.cpp
 1346   if (P->isLeaf() && isa<IntInit>(P->getLeafValue()))
 1373       if (isa<IntInit>(Child->getLeafValue()))
 1544         !isa<DefInit>(NodeToApply->getLeafValue()) ||
 1933       if (isa<UnsetInit>(Val) || (isa<DefInit>(Val) &&
 1933       if (isa<UnsetInit>(Val) || (isa<DefInit>(Val) &&
 2602   if (N->isLeaf() && isa<IntInit>(N->getLeafValue()))
 2725   if (isa<UnsetInit>(TheInit)) {
 2734   if (isa<IntInit>(TheInit) || isa<BitInit>(TheInit)) {
 2734   if (isa<IntInit>(TheInit) || isa<BitInit>(TheInit)) {
 2737     if (isa<BitInit>(TheInit))
 2745     if (!II || !isa<IntInit>(II))
 3140       if (!isa<DefInit>(OpsList->getArg(j)) ||
 3718     if (InVal->isLeaf() && isa<DefInit>(InVal->getLeafValue())) {
 3788     if (isa<ListInit>(Instr->getValueInit("Pattern")))
 4318     if (N->hasName() && isa<DefInit>(N->getLeafValue()))
utils/TableGen/CodeGenInstruction.cpp
   96       if (!isa<DefInit>(MIOpInfo->getOperator()) ||
utils/TableGen/DAGISelMatcher.cpp
  292   OS << (isa<MorphNodeToMatcher>(this) ? "MorphNodeTo: " : "EmitNode: ")
  417   return isa<CheckImmAllZerosVMatcher>(M);
  422   return isa<CheckImmAllOnesVMatcher>(M);
utils/TableGen/DAGISelMatcherEmitter.cpp
  488           OS << (isa<SwitchOpcodeMatcher>(N) ?
  514       OS << (isa<SwitchOpcodeMatcher>(N) ?
  719     OS << (isa<EmitNodeMatcher>(EN) ? "OPC_EmitNode" : "OPC_MorphNodeTo");
utils/TableGen/DAGISelMatcherGen.cpp
  219   if (isa<UnsetInit>(N->getLeafValue())) {
utils/TableGen/DAGISelMatcherOpt.cpp
  148   if ((isa<CheckTypeMatcher>(N) || isa<CheckChildTypeMatcher>(N) ||
  148   if ((isa<CheckTypeMatcher>(N) || isa<CheckChildTypeMatcher>(N) ||
  149        isa<RecordMatcher>(N)) &&
  150       isa<CheckOpcodeMatcher>(N->getNext())) {
  356         !isa<CheckOpcodeMatcher>(NewOptionsToMatch[i])) {
  413       assert(M && isa<CheckTypeMatcher>(M) && "Unknown Matcher type");
utils/TableGen/DFAEmitter.cpp
  343     } else if (isa<IntRecTy>(SymbolV->getType())) {
  346     } else if (isa<StringRecTy>(SymbolV->getType()) ||
  347                isa<CodeRecTy>(SymbolV->getType())) {
utils/TableGen/GlobalISelEmitter.cpp
 1582       if (isa<SameOperandMatcher>(Predicate))
 2283         if (isa<IntrinsicIDOperandMatcher>(OP)) {
 2298       if (isa<LLTOperandMatcher>(OP))
 3476     if (isa<IntInit>(SrcInit)) {
 5340         if (isa<ComplexPatternOperandMatcher>(OP))
 5361       if (!isa<InstructionOperandMatcher>(OP))
 5377       if (!isa<InstructionOperandMatcher>(OP))
 5395       if (!isa<InstructionOperandMatcher>(OP)) {
 5482   return isa<InstructionOpcodeMatcher>(P) || isa<LLTOperandMatcher>(P);
 5482   return isa<InstructionOpcodeMatcher>(P) || isa<LLTOperandMatcher>(P);
utils/TableGen/OptParserEmitter.cpp
   92   if (isa<UnsetInit>(R.getValueInit("EnumName")))
  190     if (!isa<UnsetInit>(R.getValueInit("HelpText"))) {
  276     if (!isa<UnsetInit>(R.getValueInit("HelpText"))) {
  285     if (!isa<UnsetInit>(R.getValueInit("MetaVarName")))
  292     if (!isa<UnsetInit>(R.getValueInit("Values")))
  307     if (isa<UnsetInit>(R.getValueInit("ValuesCode")))
utils/TableGen/SearchableTableEmitter.cpp
  144     return isa<BitsInit>(I) || isa<CodeInit>(I) || isIntrinsic(I);
  144     return isa<BitsInit>(I) || isa<CodeInit>(I) || isIntrinsic(I);
  148     if (isa<StringRecTy>(Field.RecType)) {
  214     if (isa<BitsRecTy>(Field.RecType) || isa<IntRecTy>(Field.RecType)) {
  214     if (isa<BitsRecTy>(Field.RecType) || isa<IntRecTy>(Field.RecType)) {
  260       if (isa<StringRecTy>(Field.RecType)) {
  345         if (isa<StringRecTy>(Field.RecType))
  362       (Index.Fields[0].Enum || isa<BitsRecTy>(Index.Fields[0].RecType))) {
  410     if (isa<StringRecTy>(Field.RecType)) {
  425     if (isa<StringRecTy>(Field.RecType)) {
  557   if (EarlyOut && isa<StringRecTy>(Index->Fields[0].RecType)) {
utils/yaml-bench/YAMLBench.cpp
  126   } else if (isa<yaml::NullNode>(n)) {