Searched refs:dyn_cast (Results 1 - 25 of 680) sorted by relevance

1234567891011>>

/external/clang/test/SemaCXX/
H A Dmissing-header.cpp7 if (const GCCAsmStmt *AS = dyn_cast<GCCAsmStmt>(S)) {}
/external/llvm/lib/IR/
H A DIntrinsicInst.cpp35 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C))
44 } else if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) {
49 return dyn_cast<GlobalVariable>(C);
H A DBasicBlock.cpp126 return dyn_cast<TerminatorInst>(&InstList.back());
131 return dyn_cast<TerminatorInst>(&InstList.back());
164 const IntrinsicInst *II = dyn_cast<IntrinsicInst>(i);
227 PHINode *APN = dyn_cast<PHINode>(&front());
254 while (PHINode *PN = dyn_cast<PHINode>(&front())) {
275 for (iterator II = begin(); (PN = dyn_cast<PHINode>(II)); ) {
330 (PN = dyn_cast<PHINode>(II)); ++II) {
352 PHINode *PN = dyn_cast<PHINode>(II);
371 return dyn_cast<LandingPadInst>(getFirstNonPHI());
374 return dyn_cast<LandingPadIns
[all...]
/external/clang/lib/AST/
H A DStmtIterator.cpp22 while (const ArrayType *vt = dyn_cast<ArrayType>(t)) {
23 if (const VariableArrayType *vat = dyn_cast<VariableArrayType>(vt))
44 if (VarDecl* VD = dyn_cast<VarDecl>(*DGI))
71 if (VarDecl* VD = dyn_cast<VarDecl>(D)) {
80 else if (TypedefNameDecl* TD = dyn_cast<TypedefNameDecl>(D)) {
87 else if (EnumConstantDecl* ECD = dyn_cast<EnumConstantDecl>(D)) {
/external/llvm/lib/Transforms/Utils/
H A DGlobalStatus.cpp39 if (const Constant *CU = dyn_cast<Constant>(U)) {
51 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(UR)) {
61 } else if (const Instruction *I = dyn_cast<Instruction>(UR)) {
69 if (const LoadInst *LI = dyn_cast<LoadInst>(I)) {
75 } else if (const StoreInst *SI = dyn_cast<StoreInst>(I)) {
91 dyn_cast<GlobalVariable>(SI->getOperand(1))) {
94 if (Constant *C = dyn_cast<Constant>(StoredVal)) {
130 } else if (const PHINode *PN = dyn_cast<PHINode>(I)) {
138 } else if (const MemTransferInst *MTI = dyn_cast<MemTransferInst>(I)) {
145 } else if (const MemSetInst *MSI = dyn_cast<MemSetIns
[all...]
H A DLowerExpectIntrinsic.cpp62 CallInst *CI = dyn_cast<CallInst>(SI->getCondition());
71 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1));
108 ICmpInst *CmpI = dyn_cast<ICmpInst>(BI->getCondition());
110 CI = dyn_cast<CallInst>(BI->getCondition());
114 CI = dyn_cast<CallInst>(CmpI->getOperand(0));
125 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1));
154 if (BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator())) {
157 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(BB->getTerminator())) {
165 CallInst *CI = dyn_cast<CallInst>(BI++);
/external/clang/lib/StaticAnalyzer/Checkers/
H A DStackAddrEscapeChecker.cpp54 if (const CompoundLiteralRegion* CR = dyn_cast<CompoundLiteralRegion>(R)) {
62 else if (const AllocaRegion* AR = dyn_cast<AllocaRegion>(R)) {
69 else if (const BlockDataRegion *BR = dyn_cast<BlockDataRegion>(R)) {
76 else if (const VarRegion *VR = dyn_cast<VarRegion>(R)) {
81 else if (const CXXTempObjectRegion *TOR = dyn_cast<CXXTempObjectRegion>(R)) {
154 if (const ExprWithCleanups *Cleanup = dyn_cast<ExprWithCleanups>(RetE))
196 dyn_cast<StackSpaceRegion>(vR->getMemorySpace())) {
H A DUndefinedAssignmentChecker.cpp45 dyn_cast<FunctionDecl>(C.getStackFrame()->getDecl()))
63 if (const BinaryOperator *B = dyn_cast<BinaryOperator>(StoreE)) {
78 if (const DeclStmt *DS = dyn_cast<DeclStmt>(StoreE)) {
79 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl());
H A DDeadStoresChecker.cpp56 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl()))
106 dyn_cast<BinaryOperator>(Ex->IgnoreParenCasts());
231 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
240 const BinaryOperator* BRHS = dyn_cast<BinaryOperator>(RHS);
247 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts())))
251 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts())))
269 if (const BinaryOperator* B = dyn_cast<BinaryOperator>(S)) {
272 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS()))
273 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
288 if (const DeclRefExpr *RhsDR = dyn_cast<DeclRefExp
[all...]
H A DCStringSyntaxChecker.cpp40 if (const DeclRefExpr *D1 = dyn_cast<DeclRefExpr>(A1->IgnoreParenCasts()))
41 if (const DeclRefExpr *D2 = dyn_cast<DeclRefExpr>(A2->IgnoreParenCasts()))
49 dyn_cast<UnaryExprOrTypeTraitExpr>(E))
57 if (const CallExpr *CE = dyn_cast<CallExpr>(E)) {
69 if (const IntegerLiteral *IL = dyn_cast<IntegerLiteral>(E))
75 if (const DeclRefExpr *D = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()))
112 dyn_cast<BinaryOperator>(LenArg->IgnoreParenCasts())) {
/external/clang/test/CodeCompletion/
H A Dfunction-templates.cpp6 X* dyn_cast(Y *Val);
18 // CHECK-CC1: dyn_cast<<#class X#>>(<#Y *Val#>)
/external/llvm/lib/Target/XCore/InstPrinter/
H A DXCoreInstPrinter.cpp52 if (const MCBinaryExpr *BE = dyn_cast<MCBinaryExpr>(Expr)) {
53 SRE = dyn_cast<MCSymbolRefExpr>(BE->getLHS());
54 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(BE->getRHS());
58 SRE = dyn_cast<MCSymbolRefExpr>(Expr);
/external/llvm/lib/Target/X86/
H A DX86TargetObjectFile.cpp63 const SubOperator *Sub = dyn_cast<SubOperator>(CE);
70 dyn_cast<PtrToIntOperator>(Sub->getOperand(0));
72 dyn_cast<PtrToIntOperator>(Sub->getOperand(1));
86 dyn_cast<GlobalVariable>(SubLHS->getPointerOperand());
88 dyn_cast<GlobalVariable>(SubRHS->getPointerOperand());
/external/clang/tools/libclang/
H A DCIndexCXX.cpp94 if (const CXXRecordDecl *CXXRecord = dyn_cast<CXXRecordDecl>(D)) {
96 = dyn_cast<ClassTemplatePartialSpecializationDecl>(CXXRecord))
99 = dyn_cast<ClassTemplateSpecializationDecl>(CXXRecord)) {
110 } else if (const FunctionDecl *Function = dyn_cast<FunctionDecl>(D)) {
114 } else if (const VarDecl *Var = dyn_cast<VarDecl>(D)) {
118 = dyn_cast<RedeclarableTemplateDecl>(D))
/external/clang/lib/Sema/
H A DScopeInfo.cpp77 dyn_cast<ObjCPropertyRefExpr>(POE->getSyntacticForm());
82 if (const OpaqueValueExpr *OVE = dyn_cast<OpaqueValueExpr>(DoubleBase))
141 if (const PseudoObjectExpr *POE = dyn_cast<PseudoObjectExpr>(E)) {
146 if (const ConditionalOperator *Cond = dyn_cast<ConditionalOperator>(E)) {
153 dyn_cast<BinaryConditionalOperator>(E)) {
161 if (const ObjCPropertyRefExpr *RefExpr = dyn_cast<ObjCPropertyRefExpr>(E)) {
169 else if (const ObjCIvarRefExpr *IvarE = dyn_cast<ObjCIvarRefExpr>(E))
171 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
173 else if (const ObjCMessageExpr *MsgE = dyn_cast<ObjCMessageExpr>(E)) {
204 if (DeclRefExpr *DRE = dyn_cast<DeclRefExp
[all...]
/external/llvm/tools/llvm-objdump/
H A DELFDump.cpp80 if (const ELF32LEObjectFile *ELFObj = dyn_cast<ELF32LEObjectFile>(Obj))
84 if (const ELF32BEObjectFile *ELFObj = dyn_cast<ELF32BEObjectFile>(Obj))
88 if (const ELF64LEObjectFile *ELFObj = dyn_cast<ELF64LEObjectFile>(Obj))
92 if (const ELF64BEObjectFile *ELFObj = dyn_cast<ELF64BEObjectFile>(Obj))
/external/clang/include/clang/AST/
H A DASTLambda.h54 if (CXXConversionDecl *Conv = dyn_cast<CXXConversionDecl>(D))
56 if (FunctionTemplateDecl *F = dyn_cast<FunctionTemplateDecl>(D))
65 dyn_cast<CXXMethodDecl>(DC));
/external/clang/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp36 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S);
52 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S);
55 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
/external/llvm/lib/Analysis/
H A DCodeMetrics.cpp59 if (const AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
67 if (const CallInst *CI = dyn_cast<CallInst>(II))
71 if (const InvokeInst *InvI = dyn_cast<InvokeInst>(II))
H A DLoads.cpp44 if (const Instruction *BI = dyn_cast<Instruction>(B))
67 if (const AllocaInst *AI = dyn_cast<AllocaInst>(Base)) {
71 } else if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(Base)) {
113 if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) {
115 } else if (StoreInst *SI = dyn_cast<StoreInst>(BBI)) {
170 if (LoadInst *LI = dyn_cast<LoadInst>(Inst))
176 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
/external/clang/lib/Analysis/
H A DThreadSafetyTIL.cpp56 if (Phi* Ph = dyn_cast<Phi>(V->definition())) {
67 if (Phi* Ph = dyn_cast<Phi>(V->definition())) {
95 while (auto *V = dyn_cast<Variable>(E)) {
101 auto *V2 = dyn_cast<Variable>(D);
111 if (Phi *Ph = dyn_cast<Phi>(D)) {
H A DPseudoConstantAnalysis.cpp70 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E))
88 if (const Expr *Ex = dyn_cast<Expr>(Head))
124 const VarDecl *VD = dyn_cast<VarDecl>(LHSDecl);
158 const VarDecl *VD = dyn_cast<VarDecl>(D);
176 const VarDecl *VD = dyn_cast<VarDecl>(I);
191 if (const VarDecl *RefVD = dyn_cast<VarDecl>(D)) {
202 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/
H A DR600KernelParameters.cpp159 getElementPtrInst* GEP = dyn_cast<getElementPtrInst>(Val);
170 Value* V2 = dyn_cast<Value>(*I);
186 P.Val = dyn_cast<Value>(Arg);
201 if (Arg->hasByValAttr() && dyn_cast<PointerType>(T)) {
202 T = dyn_cast<PointerType>(T)->getElementType();
246 LoadInst* Load = dyn_cast<LoadInst>(V);
247 GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(V);
260 if (dyn_cast<PointerType>(Op->getType())->getAddressSpace() != Addrspace) {
261 Op = new BitCastInst(Op, PointerType::get(dyn_cast<PointerType>(
263 Name, dyn_cast<Instructio
[all...]
/external/mesa3d/src/gallium/drivers/radeon/
H A DR600KernelParameters.cpp159 getElementPtrInst* GEP = dyn_cast<getElementPtrInst>(Val);
170 Value* V2 = dyn_cast<Value>(*I);
186 P.Val = dyn_cast<Value>(Arg);
201 if (Arg->hasByValAttr() && dyn_cast<PointerType>(T)) {
202 T = dyn_cast<PointerType>(T)->getElementType();
246 LoadInst* Load = dyn_cast<LoadInst>(V);
247 GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(V);
260 if (dyn_cast<PointerType>(Op->getType())->getAddressSpace() != Addrspace) {
261 Op = new BitCastInst(Op, PointerType::get(dyn_cast<PointerType>(
263 Name, dyn_cast<Instructio
[all...]
/external/llvm/lib/Target/NVPTX/
H A DNVPTXLowerAggrCopies.cpp48 unsigned srcAS = dyn_cast<PointerType>(srcAddr->getType())->getAddressSpace();
49 unsigned dstAS = dyn_cast<PointerType>(dstAddr->getType())->getAddressSpace();
84 unsigned dstAS = dyn_cast<PointerType>(dstAddr->getType())->getAddressSpace();
118 if (LoadInst *load = dyn_cast<LoadInst>(II)) {
127 if (StoreInst *store = dyn_cast<StoreInst>(use)) {
132 } else if (MemTransferInst *intr = dyn_cast<MemTransferInst>(II)) {
136 if (ConstantInt *len_int = dyn_cast<ConstantInt>(len)) {
144 } else if (MemSetInst *memsetintr = dyn_cast<MemSetInst>(II)) {
146 if (ConstantInt *len_int = dyn_cast<ConstantInt>(len)) {
166 StoreInst *store = dyn_cast<StoreIns
[all...]

Completed in 522 milliseconds

1234567891011>>