/external/clang/lib/StaticAnalyzer/Checkers/ |
CStringChecker.cpp | 168 DefinedSVal *val = dyn_cast<DefinedSVal>(&V); 230 const ElementRegion *ER = dyn_cast<ElementRegion>(R); 318 NonLoc *Length = dyn_cast<NonLoc>(&LengthVal); 329 if (Loc *BufLoc = dyn_cast<Loc>(&BufStart)) { 349 if (Loc *BufLoc = dyn_cast<Loc>(&BufStart)) { 381 Loc *firstLoc = dyn_cast<Loc>(&firstVal); 385 Loc *secondLoc = dyn_cast<Loc>(&secondVal); 408 DefinedOrUnknownSVal *reverseTest = dyn_cast<DefinedOrUnknownSVal>(&reverse); 432 NonLoc *Length = dyn_cast<NonLoc>(&LengthVal); 442 Loc *FirstStartLoc = dyn_cast<Loc>(&FirstStart) [all...] |
AdjustedReturnValueChecker.cpp | 59 if (const FunctionTextRegion *FT = dyn_cast<FunctionTextRegion>(callee)) { 63 else if (const BlockDataRegion *BD = dyn_cast<BlockDataRegion>(callee)) {
|
CastSizeChecker.cpp | 36 const PointerType *ToPTy = dyn_cast<PointerType>(ToTy.getTypePtr()); 52 const SymbolicRegion *SR = dyn_cast<SymbolicRegion>(R);
|
CastToStructChecker.cpp | 41 const PointerType *OrigPTy = dyn_cast<PointerType>(OrigTy.getTypePtr()); 42 const PointerType *ToPTy = dyn_cast<PointerType>(ToTy.getTypePtr());
|
LLVMConventionsChecker.cpp | 42 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext()); 143 if (VarDecl *VD = dyn_cast<VarDecl>(*I)) 156 ExprWithCleanups *Ex1 = dyn_cast<ExprWithCleanups>(Init); 159 CXXConstructExpr *Ex2 = dyn_cast<CXXConstructExpr>(Ex1->getSubExpr()); 162 ImplicitCastExpr *Ex3 = dyn_cast<ImplicitCastExpr>(Ex2->getArg(0)); 165 CXXConstructExpr *Ex4 = dyn_cast<CXXConstructExpr>(Ex3->getSubExpr()); 168 ImplicitCastExpr *Ex5 = dyn_cast<ImplicitCastExpr>(Ex4->getArg(0)); 171 CXXBindTemporaryExpr *Ex6 = dyn_cast<CXXBindTemporaryExpr>(Ex5->getSubExpr());
|
/external/llvm/lib/CodeGen/ |
Analysis.cpp | 43 if (StructType *STy = dyn_cast<StructType>(Ty)) { 55 else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { 80 if (StructType *STy = dyn_cast<StructType>(Ty)) { 91 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { 111 GlobalVariable *GV = dyn_cast<GlobalVariable>(V); 117 GV = dyn_cast<GlobalVariable>(Init); 213 const ReturnInst *Ret = dyn_cast<ReturnInst>(Term); 262 for (const Instruction *U = dyn_cast<Instruction>(Ret->getOperand(0)); ; 263 U = dyn_cast<Instruction>(U->getOperand(0))) {
|
DwarfEHPrepare.cpp | 136 GlobalVariable *GV = dyn_cast<GlobalVariable>(II->getArgOperand(ArgIdx)); 165 if (InvokeInst *II = dyn_cast<InvokeInst>(*I)) 189 GlobalVariable *GV = dyn_cast<GlobalVariable>(Sel->getArgOperand(OpIdx)); 210 Instruction *II = dyn_cast<Instruction>(*I); 213 if (IntrinsicInst *Sel = dyn_cast<IntrinsicInst>(II)) { 216 } else if (InvokeInst *Invoke = dyn_cast<InvokeInst>(II)) { 219 } else if (CastInst *CI = dyn_cast<CastInst>(II)) { 221 } else if (PHINode *PN = dyn_cast<PHINode>(II)) { 291 IntrinsicInst *EHPtr = dyn_cast<IntrinsicInst>(*I); 487 else if (CallInst *call = dyn_cast<CallInst>(bi) [all...] |
/external/llvm/include/llvm/Analysis/ |
ScalarEvolutionExpressions.h | 47 /// Methods for support type inquiry through isa, cast, and dyn_cast: 69 /// Methods for support type inquiry through isa, cast, and dyn_cast: 89 /// Methods for support type inquiry through isa, cast, and dyn_cast: 107 /// Methods for support type inquiry through isa, cast, and dyn_cast: 125 /// Methods for support type inquiry through isa, cast, and dyn_cast: 167 /// Methods for support type inquiry through isa, cast, and dyn_cast: 189 /// Methods for support type inquiry through isa, cast, and dyn_cast: 224 /// Methods for support type inquiry through isa, cast, and dyn_cast: 243 /// Methods for support type inquiry through isa, cast, and dyn_cast: 275 /// Methods for support type inquiry through isa, cast, and dyn_cast [all...] |
CFGPrinter.h | 86 if (const BranchInst *BI = dyn_cast<BranchInst>(Node->getTerminator())) 91 if (const SwitchInst *SI = dyn_cast<SwitchInst>(Node->getTerminator())) {
|
/external/llvm/lib/Transforms/Utils/ |
BuildLibCalls.cpp | 46 if (const Function *F = dyn_cast<Function>(StrLen->stripPointerCasts())) 67 if (const Function *F = dyn_cast<Function>(StrChr->stripPointerCasts())) 91 if (const Function *F = dyn_cast<Function>(StrNCmp->stripPointerCasts())) 110 if (const Function *F = dyn_cast<Function>(StrCpy->stripPointerCasts())) 129 if (const Function *F = dyn_cast<Function>(StrNCpy->stripPointerCasts())) 153 if (const Function *F = dyn_cast<Function>(MemCpy->stripPointerCasts())) 174 if (const Function *F = dyn_cast<Function>(MemChr->stripPointerCasts())) 199 if (const Function *F = dyn_cast<Function>(MemCmp->stripPointerCasts())) 230 if (const Function *F = dyn_cast<Function>(Callee->stripPointerCasts())) 249 if (const Function *F = dyn_cast<Function>(PutChar->stripPointerCasts()) [all...] |
SimplifyCFG.cpp | 116 (PN = dyn_cast<PHINode>(I)); ++I) 140 BranchInst *Pred1Br = dyn_cast<BranchInst>(Pred1->getTerminator()); 141 BranchInst *Pred2Br = dyn_cast<BranchInst>(Pred2->getTerminator()); 193 BranchInst *BI = dyn_cast<BranchInst>(CommonPred->getTerminator()); 227 Instruction *I = dyn_cast<Instruction>(V); 231 if (ConstantExpr *C = dyn_cast<ConstantExpr>(V)) 245 BranchInst *BI = dyn_cast<BranchInst>(PBB->getTerminator()); 319 ConstantInt *CI = dyn_cast<ConstantInt>(V); 332 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V)) 334 if (ConstantInt *CI = dyn_cast<ConstantInt>(CE->getOperand(0))) [all...] |
ValueMapper.cpp | 38 if (const InlineAsm *IA = dyn_cast<InlineAsm>(V)) { 53 if (const MDNode *MD = dyn_cast<MDNode>(V)) { 91 Constant *C = const_cast<Constant*>(dyn_cast<Constant>(V)); 95 if (BlockAddress *BA = dyn_cast<BlockAddress>(C)) { 140 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) 174 if (PHINode *PN = dyn_cast<PHINode>(I)) {
|
/external/clang/lib/Rewrite/ |
RewriteObjC.cpp | 477 = dyn_cast<FunctionProtoType>(funcType.IgnoreParens())) { 699 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { 701 } else if (VarDecl *FVD = dyn_cast<VarDecl>(D)) { 707 } else if (ObjCInterfaceDecl *MD = dyn_cast<ObjCInterfaceDecl>(D)) { 709 } else if (ObjCCategoryDecl *CD = dyn_cast<ObjCCategoryDecl>(D)) { 711 } else if (ObjCProtocolDecl *PD = dyn_cast<ObjCProtocolDecl>(D)) { 714 dyn_cast<ObjCForwardProtocolDecl>(D)){ 716 } else if (LinkageSpecDecl *LSD = dyn_cast<LinkageSpecDecl>(D)) { [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineCompares.cpp | 59 if (VectorType *VTy = dyn_cast<VectorType>(In1->getType())) { 94 if (VectorType *VTy = dyn_cast<VectorType>(In1->getType())) { 205 ConstantArray *Init = dyn_cast<ConstantArray>(GV->getInitializer()); 225 ConstantInt *Idx = dyn_cast<ConstantInt>(GEP->getOperand(i)); 231 if (StructType *STy = dyn_cast<StructType>(EltTy)) 233 else if (ArrayType *ATy = dyn_cast<ArrayType>(EltTy)) { 481 if (ConstantInt *CI = dyn_cast<ConstantInt>(GEP->getOperand(i))) { 486 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 509 ConstantInt *CI = dyn_cast<ConstantInt>(GEP->getOperand(i)); 516 if (StructType *STy = dyn_cast<StructType>(*GTI)) [all...] |
InstCombinePHI.cpp | 36 dyn_cast<OverflowingBinaryOperator>(FirstInst)) { 40 dyn_cast<PossiblyExactOperator>(FirstInst)) 45 Instruction *I = dyn_cast<Instruction>(PN.getIncomingValue(i)); 54 if (CmpInst *CI = dyn_cast<CmpInst>(I)) 113 if (CmpInst *CIOp = dyn_cast<CmpInst>(FirstInst)) { 148 GetElementPtrInst *GEP= dyn_cast<GetElementPtrInst>(PN.getIncomingValue(i)); 257 if (AllocaInst *AI = dyn_cast<AllocaInst>(L->getOperand(0))) { 263 if (StoreInst *SI = dyn_cast<StoreInst>(U)) { 280 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(L->getOperand(0))) 281 if (AllocaInst *AI = dyn_cast<AllocaInst>(GEP->getOperand(0)) [all...] |
InstCombineCasts.cpp | 26 if (ConstantInt *CI = dyn_cast<ConstantInt>(Val)) { 32 if (BinaryOperator *I = dyn_cast<BinaryOperator>(Val)) { 34 OverflowingBinaryOperator *OBI = dyn_cast<OverflowingBinaryOperator>(Val); 41 if (ConstantInt *RHS = dyn_cast<ConstantInt>(I->getOperand(1))) { 156 if (Constant *C = dyn_cast<Constant>(V)) { 159 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) 269 if (const CastInst *CI = dyn_cast<CastInst>(V)) 288 if (CastInst *CSrc = dyn_cast<CastInst>(Src)) { // A->B->C cast 298 if (SelectInst *SI = dyn_cast<SelectInst>(Src)) 332 Instruction *I = dyn_cast<Instruction>(V) [all...] |
/external/clang/lib/AST/ |
Decl.cpp | 121 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*P)) { 138 = dyn_cast<TemplateTemplateParmDecl>(*P)) { 171 if (NamedDecl *ND = dyn_cast<NamedDecl>(D)) 221 if (const VarDecl *Var = dyn_cast<VarDecl>(D)) { 258 = dyn_cast<FunctionTemplateDecl>(D)) 266 } else if (const FieldDecl *Field = dyn_cast<FieldDecl>(D)) { 273 const VarDecl *Var = dyn_cast<VarDecl>(D); 274 const FunctionDecl *Func = dyn_cast<FunctionDecl>(D); 314 if (const VarDecl *Var = dyn_cast<VarDecl>(D)) { 368 } else if (const FunctionDecl *Function = dyn_cast<FunctionDecl>(D)) [all...] |
DeclBase.cpp | 111 if (const TemplateTypeParmDecl *TTP = dyn_cast<TemplateTypeParmDecl>(this)) 114 = dyn_cast<NonTypeTemplateParmDecl>(this)) 117 = dyn_cast<TemplateTemplateParmDecl>(this)) 123 if (const ParmVarDecl *Parm = dyn_cast<ParmVarDecl>(this)) 130 if (const UsingShadowDecl *UD = dyn_cast<UsingShadowDecl>(this)) 196 if (const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(DC)) 205 if (TranslationUnitDecl *TUD = dyn_cast<TranslationUnitDecl>(this)) 338 if (DeprecatedAttr *Deprecated = dyn_cast<DeprecatedAttr>(*A)) { 349 if (UnavailableAttr *Unavailable = dyn_cast<UnavailableAttr>(*A)) { 355 if (AvailabilityAttr *Availability = dyn_cast<AvailabilityAttr>(*A)) [all...] |
DeclPrinter.cpp | 101 else if (const ArrayType* ATy = dyn_cast<ArrayType>(BaseType)) 114 if (TypedefNameDecl* TDD = dyn_cast<TypedefNameDecl>(D)) 116 if (ValueDecl* VD = dyn_cast<ValueDecl>(D)) 130 TagDecl* TD = dyn_cast<TagDecl>(*Begin); 216 if (NamedDecl *ND = dyn_cast<NamedDecl>(*D)) { 379 while (const ParenType *PT = dyn_cast<ParenType>(Ty)) { 388 FT = dyn_cast<FunctionProtoType>(AFT); 452 if (CXXConstructorDecl *CDecl = dyn_cast<CXXConstructorDecl>(D)) { 482 if (ExprWithCleanups *Tmp = dyn_cast<ExprWithCleanups>(Init)) 490 if (ParenListExpr *ParenList = dyn_cast<ParenListExpr>(Init)) [all...] |
StmtDumper.cpp | 56 if (DeclStmt* DS = dyn_cast<DeclStmt>(S)) 236 if (TypedefDecl *localType = dyn_cast<TypedefDecl>(D)) { 239 } else if (TypeAliasDecl *localType = dyn_cast<TypeAliasDecl>(D)) { 242 } else if (ValueDecl *VD = dyn_cast<ValueDecl>(D)) { 245 if (VarDecl *V = dyn_cast<VarDecl>(VD)) { 257 if (VarDecl *V = dyn_cast<VarDecl>(VD)) { 264 } else if (TagDecl *TD = dyn_cast<TagDecl>(D)) { 273 } else if (UsingDirectiveDecl *UD = dyn_cast<UsingDirectiveDecl>(D)) { 281 } else if (UsingDecl *UD = dyn_cast<UsingDecl>(D)) { 288 } else if (LabelDecl *LD = dyn_cast<LabelDecl>(D)) [all...] |
/external/llvm/lib/Transforms/IPO/ |
GlobalDCE.cpp | 165 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(G)) { 170 } else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(G)) { 183 if (GlobalValue *GV = dyn_cast<GlobalValue>(*U)) 185 else if (Constant *C = dyn_cast<Constant>(*U)) 191 if (GlobalValue *GV = dyn_cast<GlobalValue>(C)) 197 if (Constant *OpC = dyn_cast<Constant>(*I))
|
IPConstantPropagation.cpp | 114 Constant *C = dyn_cast<Constant>(*AI); 170 StructType *STy = dyn_cast<StructType>(F.getReturnType()); 179 if (ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { 240 if (Argument *A = dyn_cast<Argument>(New)) 257 if (ExtractValueInst *EV = dyn_cast<ExtractValueInst>(Ins)) 266 if (Argument *A = dyn_cast<Argument>(New))
|
/external/llvm/lib/Transforms/Scalar/ |
LoopIdiomRecognize.cpp | 155 if (Instruction *OpI = dyn_cast<Instruction>(Op)) 168 if (Instruction *I = dyn_cast<Instruction>(V)) 190 if (const SCEVConstant *BECst = dyn_cast<SCEVConstant>(BECount)) 238 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) { 251 if (MemSetInst *MSI = dyn_cast<MemSetInst>(Inst)) { 284 dyn_cast<SCEVAddRecExpr>(SE->getSCEV(StorePtr)); 291 const SCEVConstant *Stride = dyn_cast<SCEVConstant>(StoreEv->getOperand(1)); 313 if (LoadInst *LI = dyn_cast<LoadInst>(StoredVal)) { 315 dyn_cast<SCEVAddRecExpr>(SE->getSCEV(LI->getOperand(0))); 341 const SCEVAddRecExpr *Ev = dyn_cast<SCEVAddRecExpr>(SE->getSCEV(Pointer)) [all...] |
/external/llvm/include/llvm/ |
DerivedTypes.h | 86 // Methods for support type inquiry through isa, cast, and dyn_cast. 135 // Methods for support type inquiry through isa, cast, and dyn_cast. 158 // Methods for support type inquiry through isa, cast, and dyn_cast. 272 // Methods for support type inquiry through isa, cast, and dyn_cast. 302 // Methods for support type inquiry through isa, cast, and dyn_cast. 332 // Methods for support type inquiry through isa, cast, and dyn_cast. 397 // Methods for support type inquiry through isa, cast, and dyn_cast. 429 // Implement support type inquiry through isa, cast, and dyn_cast.
|
/external/llvm/lib/Analysis/ |
BasicAliasAnalysis.cpp | 51 if (const Argument *A = dyn_cast<Argument>(V)) 55 if (const GlobalValue *GV = dyn_cast<GlobalValue>(V)) 75 if (const Argument *A = dyn_cast<Argument>(V)) 104 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(V)) { 108 } else if (const AllocaInst *AI = dyn_cast<AllocaInst>(V)) { 116 if (const ConstantInt* C = dyn_cast<ConstantInt>(CI->getArgOperand(0))) 119 } else if (const Argument *A = dyn_cast<Argument>(V)) { 188 if (BinaryOperator *BOp = dyn_cast<BinaryOperator>(V)) { 189 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(BOp->getOperand(1))) { 267 const Operator *Op = dyn_cast<Operator>(V) [all...] |