HomeSort by relevance Sort by last modified time
    Searched full:dyn_cast (Results 51 - 75 of 502) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/llvm/lib/Transforms/InstCombine/
InstCombineAndOrXor.cpp 44 if (CmpInst *CI = dyn_cast<CmpInst>(V))
60 if (ConstantInt *C = dyn_cast<ConstantInt>(V))
221 ConstantInt *TogetherCI = dyn_cast<ConstantInt>(Together);
410 Instruction *LHSI = dyn_cast<Instruction>(LHS);
494 ConstantInt *ACst = dyn_cast<ConstantInt>(A);
495 ConstantInt *BCst = dyn_cast<ConstantInt>(B);
496 ConstantInt *CCst = dyn_cast<ConstantInt>(C);
686 ConstantInt *BCst = dyn_cast<ConstantInt>(B);
688 ConstantInt *DCst = dyn_cast<ConstantInt>(D);
694 ConstantInt *CCst = dyn_cast<ConstantInt>(C)
    [all...]
InstCombineShifts.cpp 31 if (SelectInst *SI = dyn_cast<SelectInst>(Op1))
35 if (ConstantInt *CUI = dyn_cast<ConstantInt>(Op1))
73 Instruction *I = dyn_cast<Instruction>(V);
116 CI = dyn_cast<ConstantInt>(I->getOperand(1));
140 CI = dyn_cast<ConstantInt>(I->getOperand(1));
185 if (Constant *C = dyn_cast<Constant>(V)) {
191 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V))
232 if (Instruction *VI = dyn_cast<Instruction>(V)) {
268 if (Instruction *VI = dyn_cast<Instruction>(V)) {
335 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0)
    [all...]
  /external/clang/lib/AST/
ASTDiagnostic.cpp 31 if (const ElaboratedType *ET = dyn_cast<ElaboratedType>(Ty)) {
36 if (const ParenType *PT = dyn_cast<ParenType>(Ty)) {
42 dyn_cast<SubstTemplateTypeParmType>(Ty)) {
47 if (const AttributedType *AT = dyn_cast<AttributedType>(Ty)) {
52 if (const AutoType *AT = dyn_cast<AutoType>(Ty)) {
61 = dyn_cast<TemplateSpecializationType>(Ty))
104 if (const TypedefType *QTT = dyn_cast<TypedefType>(QT))
293 } else if (TypeDecl *Type = dyn_cast<TypeDecl>(DC)) {
  /external/llvm/lib/Analysis/
MemoryBuiltins.cpp 61 const CallInst *CI = dyn_cast<CallInst>(I);
66 CallInst *CI = dyn_cast<CallInst>(I);
74 return isMallocCall(dyn_cast<CallInst>(BCI->getOperand(0)));
80 BitCastInst *BCI = dyn_cast<BitCastInst>(I);
86 const BitCastInst *BCI = dyn_cast<BitCastInst>(I);
102 if (StructType *ST = dyn_cast<StructType>(T))
145 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(*UI++)) {
189 const CallInst *CI = dyn_cast<CallInst>(I);
ScalarEvolutionExpander.cpp 37 if (CastInst *CI = dyn_cast<CastInst>(U))
81 if (CastInst *CI = dyn_cast<CastInst>(V))
87 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V))
96 if (Constant *C = dyn_cast<Constant>(V))
101 if (Argument *A = dyn_cast<Argument>(V)) {
114 if (InvokeInst *II = dyn_cast<InvokeInst>(I))
125 if (Constant *CLHS = dyn_cast<Constant>(LHS))
126 if (Constant *CRHS = dyn_cast<Constant>(RHS))
197 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(S)) {
202 if (const SCEVConstant *FC = dyn_cast<SCEVConstant>(Factor))
    [all...]
Lint.cpp 199 if (Function *F = dyn_cast<Function>(findValue(Callee, /*OffsetOk=*/false))) {
263 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(&I))
284 dyn_cast<ConstantInt>(findValue(MCI->getLength(),
386 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(UnderlyingObject))
450 dyn_cast<ConstantInt>(findValue(I.getOperand(1), /*OffsetOk=*/false)))
457 dyn_cast<ConstantInt>(findValue(I.getOperand(1), /*OffsetOk=*/false)))
464 dyn_cast<ConstantInt>(findValue(I.getOperand(1), /*OffsetOk=*/false)))
524 dyn_cast<ConstantInt>(findValue(I.getIndexOperand(),
532 dyn_cast<ConstantInt>(findValue(I.getOperand(2),
571 if (LoadInst *L = dyn_cast<LoadInst>(V))
    [all...]
ScalarEvolutionNormalization.cpp 47 PHINode *PN = dyn_cast<PHINode>(User);
73 if (const SCEVCastExpr *X = dyn_cast<SCEVCastExpr>(S)) {
87 if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(S)) {
146 if (const SCEVNAryExpr *X = dyn_cast<SCEVNAryExpr>(S)) {
170 if (const SCEVUDivExpr *X = dyn_cast<SCEVUDivExpr>(S)) {
  /external/llvm/lib/Transforms/Utils/
CloneFunction.cpp 53 if (const AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
94 if (Argument* Anew = dyn_cast<Argument>(VMap[I]))
118 if (ReturnInst *RI = dyn_cast<ReturnInst>(CBB->getTerminator()))
247 if (const AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
258 if (const BranchInst *BI = dyn_cast<BranchInst>(OldTI)) {
261 ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition());
276 } else if (const SwitchInst *SI = dyn_cast<SwitchInst>(OldTI)) {
278 ConstantInt *Cond = dyn_cast<ConstantInt>(SI->getCondition());
312 if (ReturnInst *RI = dyn_cast<ReturnInst>(NewBB->getTerminator()))
329 if (const CmpInst *CI = dyn_cast<CmpInst>(I)
    [all...]
Local.cpp 60 if (BranchInst *BI = dyn_cast<BranchInst>(T)) {
65 if (ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition())) {
105 if (SwitchInst *SI = dyn_cast<SwitchInst>(T)) {
108 ConstantInt *CI = dyn_cast<ConstantInt>(SI->getCondition());
185 if (IndirectBrInst *IBI = dyn_cast<IndirectBrInst>(T)) {
188 dyn_cast<BlockAddress>(IBI->getAddress()->stripPointerCasts())) {
232 if (DbgDeclareInst *DDI = dyn_cast<DbgDeclareInst>(I)) {
237 if (DbgValueInst *DVI = dyn_cast<DbgValueInst>(I)) {
247 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(I))
259 Instruction *I = dyn_cast<Instruction>(V)
    [all...]
  /external/llvm/unittests/Support/
IRBuilderTest.cpp 64 IntrinsicInst *II_Start1 = dyn_cast<IntrinsicInst>(Start1);
65 IntrinsicInst *II_End1 = dyn_cast<IntrinsicInst>(End1);
  /external/llvm/lib/VMCore/
AsmWriter.cpp 51 if (const Argument *MA = dyn_cast<Argument>(V))
54 if (const BasicBlock *BB = dyn_cast<BasicBlock>(V))
57 if (const Instruction *I = dyn_cast<Instruction>(V)) {
62 if (const GlobalValue *GV = dyn_cast<GlobalValue>(V))
385 if (const Argument *FA = dyn_cast<Argument>(V))
388 if (const Instruction *I = dyn_cast<Instruction>(V))
391 if (const BasicBlock *BB = dyn_cast<BasicBlock>(V))
394 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(V))
397 if (const GlobalAlias *GA = dyn_cast<GlobalAlias>(V))
400 if (const Function *Func = dyn_cast<Function>(V)
    [all...]
Value.cpp 112 const Instruction *User = dyn_cast<Instruction>(*I);
129 if (Instruction *I = dyn_cast<Instruction>(V)) {
133 } else if (BasicBlock *BB = dyn_cast<BasicBlock>(V)) {
136 } else if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) {
139 } else if (Argument *A = dyn_cast<Argument>(V)) {
297 if (Constant *C = dyn_cast<Constant>(U.getUser())) {
307 if (BasicBlock *BB = dyn_cast<BasicBlock>(this))
322 if (GEPOperator *GEP = dyn_cast<GEPOperator>(V)) {
328 } else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V)) {
355 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(this)
    [all...]
  /external/llvm/lib/Transforms/Scalar/
CodeGenPrepare.cpp 175 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator());
216 while (const PHINode *PN = dyn_cast<PHINode>(BBI++)) {
226 if (const PHINode *UPN = dyn_cast<PHINode>(User))
228 Instruction *Insn = dyn_cast<Instruction>(UPN->getIncomingValue(I));
240 const PHINode *DestBBPN = dyn_cast<PHINode>(DestBB->begin());
245 if (const PHINode *BBPN = dyn_cast<PHINode>(BB->begin())) {
258 while (const PHINode *PN = dyn_cast<PHINode>(BBI++)) {
263 if (const PHINode *V2PN = dyn_cast<PHINode>(V2))
306 (PN = dyn_cast<PHINode>(BBI)); ++BBI) {
312 PHINode *InValPhi = dyn_cast<PHINode>(InVal)
    [all...]
DeadStoreElimination.cpp 129 if (Instruction *OpI = dyn_cast<Instruction>(Op))
146 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(I)) {
164 if (StoreInst *SI = dyn_cast<StoreInst>(Inst))
167 if (MemIntrinsic *MI = dyn_cast<MemIntrinsic>(Inst)) {
178 IntrinsicInst *II = dyn_cast<IntrinsicInst>(Inst);
207 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(Inst))
217 if (StoreInst *SI = dyn_cast<StoreInst>(I))
241 if (StoreInst *SI = dyn_cast<StoreInst>(I))
243 if (MemIntrinsic *MI = dyn_cast<MemIntrinsic>(I))
259 if (AllocaInst *A = dyn_cast<AllocaInst>(V))
    [all...]
MemCpyOptimizer.cpp 51 ConstantInt *OpC = dyn_cast<ConstantInt>(GEP->getOperand(i));
57 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
78 GetElementPtrInst *GEP1 = dyn_cast<GetElementPtrInst>(Ptr1);
79 GetElementPtrInst *GEP2 = dyn_cast<GetElementPtrInst>(Ptr2);
205 if (StoreInst *SI = dyn_cast<StoreInst>(Inst))
385 if (StoreInst *NextStore = dyn_cast<StoreInst>(BI)) {
489 if (LoadInst *LI = dyn_cast<LoadInst>(SI->getOperand(0))) {
495 C = dyn_cast<CallInst>(ldep.getInst());
582 AllocaInst *srcAlloca = dyn_cast<AllocaInst>(cpySrc);
589 ConstantInt *srcArraySize = dyn_cast<ConstantInt>(srcAlloca->getArraySize())
    [all...]
JumpThreading.cpp 175 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator());
241 if (const CallInst *CI = dyn_cast<CallInst>(I)) {
294 if (UndefValue *U = dyn_cast<UndefValue>(Val))
298 return dyn_cast<BlockAddress>(Val->stripPointerCasts());
300 return dyn_cast<ConstantInt>(Val);
334 Instruction *I = dyn_cast<Instruction>(V);
363 if (PHINode *PN = dyn_cast<PHINode>(I)) {
444 } else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) {
447 if (ConstantInt *CI = dyn_cast<ConstantInt>(BO->getOperand(1))) {
466 if (CmpInst *Cmp = dyn_cast<CmpInst>(I))
    [all...]
  /external/clang/lib/StaticAnalyzer/Checkers/
CheckSecuritySyntaxOnly.cpp 141 if (CallExpr *CE = dyn_cast<CallExpr>(child))
164 if (const BinaryOperator *B = dyn_cast<BinaryOperator>(expr)) {
178 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(expr)) {
183 if (const UnaryOperator *U = dyn_cast<UnaryOperator>(expr))
212 const BinaryOperator *B = dyn_cast<BinaryOperator>(condition);
223 dyn_cast<DeclRefExpr>(B->getLHS()->IgnoreParenLValueCasts());
225 dyn_cast<DeclRefExpr>(B->getRHS()->IgnoreParenLValueCasts());
234 const VarDecl *vdLHS = drLHS ? dyn_cast<VarDecl>(drLHS->getDecl()) : NULL;
235 const VarDecl *vdRHS = drRHS ? dyn_cast<VarDecl>(drRHS->getDecl()) : NULL;
275 = dyn_cast<FunctionProtoType>(FD->getType().IgnoreParens())
    [all...]
DereferenceChecker.cpp 50 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
114 if (const Expr *expr = dyn_cast<Expr>(S))
146 dyn_cast<DeclRefExpr>(IV->getBase()->IgnoreParenCasts())) {
147 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
IdempotentOperationChecker.cpp 464 const DeclRefExpr *LHS_DR = dyn_cast<DeclRefExpr>(LHS);
468 const VarDecl *VD = dyn_cast<VarDecl>(LHS_DR->getDecl());
472 const DeclRefExpr *RHS_DR = dyn_cast<DeclRefExpr>(RHS);
489 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts());
493 const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl());
508 const DeclRefExpr *LHS_DR = dyn_cast<DeclRefExpr>(LHS->IgnoreParenCasts());
512 const VarDecl *VD = dyn_cast<VarDecl>(LHS_DR->getDecl());
516 const DeclRefExpr *RHS_DR = dyn_cast<DeclRefExpr>(RHS->IgnoreParenCasts());
523 return dyn_cast<DeclRefExpr>(RHS->IgnoreParenLValueCasts()) == NULL;
575 if (StmtPoint *SP = dyn_cast<StmtPoint>(&P))
    [all...]
CheckObjCDealloc.cpp 32 if (ObjCMessageExpr* ME = dyn_cast<ObjCMessageExpr>(S))
58 if (ObjCMessageExpr* ME = dyn_cast<ObjCMessageExpr>(S))
62 if (ObjCIvarRefExpr* E = dyn_cast<ObjCIvarRefExpr>(Receiver))
67 if (ObjCMessageExpr* ME = dyn_cast<ObjCMessageExpr>(S))
70 if (DeclRefExpr* E = dyn_cast<DeclRefExpr>(Receiver))
79 if (BinaryOperator* BO = dyn_cast<BinaryOperator>(S))
82 dyn_cast<ObjCPropertyRefExpr>(BO->getLHS()->IgnoreParenCasts()))
StackAddrEscapeChecker.cpp 52 if (const CompoundLiteralRegion* CR = dyn_cast<CompoundLiteralRegion>(R)) {
60 else if (const AllocaRegion* AR = dyn_cast<AllocaRegion>(R)) {
67 else if (const BlockDataRegion *BR = dyn_cast<BlockDataRegion>(R)) {
74 else if (const VarRegion *VR = dyn_cast<VarRegion>(R)) {
168 dyn_cast<StackSpaceRegion>(vR->getMemorySpace())) {
  /external/clang/lib/ARCMigrate/
TransZeroOutPropsInDealloc.cpp 49 DeclRefExpr *refE = dyn_cast<DeclRefExpr>(receiver->IgnoreParenCasts());
93 ObjCImplDecl *IMD = dyn_cast<ObjCImplDecl>(D->getDeclContext());
154 if (ObjCIvarRefExpr *IV = dyn_cast<ObjCIvarRefExpr>(LHS)) {
171 else if (ObjCPropertyRefExpr *PropRefExp = dyn_cast<ObjCPropertyRefExpr>(LHS)) {
  /external/clang/lib/Sema/
JumpDiagnostics.cpp 123 if (const VarDecl *VD = dyn_cast<VarDecl>(D)) {
175 if (const CXXConstructExpr *cce = dyn_cast<CXXConstructExpr>(init)) {
205 if (const TypedefDecl *TD = dyn_cast<TypedefDecl>(D)) {
210 if (const TypeAliasDecl *TD = dyn_cast<TypeAliasDecl>(D)) {
230 if (VarDecl *VD = dyn_cast<VarDecl>(D))
342 if (CaseStmt *CS = dyn_cast<CaseStmt>(SubStmt))
344 else if (DefaultStmt *DS = dyn_cast<DefaultStmt>(SubStmt))
346 else if (LabelStmt *LS = dyn_cast<LabelStmt>(SubStmt))
357 if (DeclStmt *DS = dyn_cast<DeclStmt>(SubStmt)) {
367 if (ObjCAtTryStmt *AT = dyn_cast<ObjCAtTryStmt>(SubStmt))
    [all...]
  /external/llvm/lib/Transforms/Instrumentation/
MaximumSpanningTree.h 37 if (const BasicBlock *BBX = dyn_cast<BasicBlock>(X.first.first)) {
38 if (const BasicBlock *BBY = dyn_cast<BasicBlock>(Y.first.first)) {
43 if (const BasicBlock *BBX = dyn_cast<BasicBlock>(X.first.second)) {
44 if (const BasicBlock *BBY = dyn_cast<BasicBlock>(Y.first.second)) {
  /external/clang/lib/Analysis/
AnalysisContext.cpp 57 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D))
59 else if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D))
61 else if (const BlockDecl *BD = dyn_cast<BlockDecl>(D))
71 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D))
81 if (const Expr *e = dyn_cast<Expr>(stmt))
89 if (const Expr *e = dyn_cast<Expr>(stmt))
276 if (const StackFrameContext *SFC = dyn_cast<StackFrameContext>(LC))
287 if (const StackFrameContext *SFC = dyn_cast<StackFrameContext>(LC)) {
336 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
347 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
    [all...]

Completed in 475 milliseconds

1 23 4 5 6 7 8 91011>>