HomeSort by: relevance | last modified time | path
    Searched refs:dyn_cast (Results 1 - 25 of 1577) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /src/external/apache2/llvm/dist/clang/include/clang/AST/
IgnoreExpr.h 48 if (auto *ICE = dyn_cast<ImplicitCastExpr>(E))
51 if (auto *FE = dyn_cast<FullExpr>(E))
65 if (auto *MTE = dyn_cast<MaterializeTemporaryExpr>(E))
68 if (auto *NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E))
75 if (auto *CE = dyn_cast<CastExpr>(E))
78 if (auto *FE = dyn_cast<FullExpr>(E))
81 if (auto *MTE = dyn_cast<MaterializeTemporaryExpr>(E))
84 if (auto *NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E))
93 if (auto *CE = dyn_cast<CastExpr>(E))
101 if (auto *CE = dyn_cast<CastExpr>(E)
    [all...]
ASTLambda.h 53 if (CXXConversionDecl *Conv = dyn_cast<CXXConversionDecl>(D))
55 if (FunctionTemplateDecl *F = dyn_cast<FunctionTemplateDecl>(D))
64 dyn_cast<CXXMethodDecl>(DC));
69 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(DC);
ASTImporterSharedState.h 57 if (auto *ND = dyn_cast<NamedDecl>(D))
63 if (auto *ND = dyn_cast<NamedDecl>(D))
  /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/WebKit/
ASTUtils.cpp 22 if (auto *cast = dyn_cast<CastExpr>(E)) {
35 if (auto *call = dyn_cast<CallExpr>(E)) {
36 if (auto *memberCall = dyn_cast<CXXMemberCallExpr>(call)) {
48 if (auto *operatorCall = dyn_cast<CXXOperatorCallExpr>(E)) {
70 if (auto *unaryOp = dyn_cast<UnaryOperator>(E)) {
84 if (auto *Ref = dyn_cast<DeclRefExpr>(E)) {
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
Annotation2Metadata.cpp 47 auto *OpC = dyn_cast<ConstantStruct>(&Op);
50 auto *StrGEP = dyn_cast<ConstantExpr>(OpC->getOperand(1));
53 auto *StrC = dyn_cast<GlobalValue>(StrGEP->getOperand(0));
56 auto *StrData = dyn_cast<ConstantDataSequential>(StrC->getOperand(0));
60 auto *Bitcast = dyn_cast<ConstantExpr>(OpC->getOperand(0));
63 auto *Fn = dyn_cast<Function>(Bitcast->getOperand(0));
  /src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/Extract/
SourceExtraction.cpp 32 if (const auto *If = dyn_cast<IfStmt>(S))
35 if (const auto *While = dyn_cast<WhileStmt>(S))
37 if (const auto *For = dyn_cast<ForStmt>(S))
39 if (const auto *CXXFor = dyn_cast<CXXForRangeStmt>(S))
41 if (const auto *ObjCFor = dyn_cast<ObjCForCollectionStmt>(S))
43 if(const auto *Switch = dyn_cast<SwitchStmt>(S))
45 if(const auto *Case = dyn_cast<SwitchCase>(S))
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
GlobalStatus.cpp 52 if (const Constant *CU = dyn_cast<Constant>(U)) {
62 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(V))
68 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(UR)) {
79 } else if (const Instruction *I = dyn_cast<Instruction>(UR)) {
87 if (const LoadInst *LI = dyn_cast<LoadInst>(I)) {
93 } else if (const StoreInst *SI = dyn_cast<StoreInst>(I)) {
109 dyn_cast<GlobalVariable>(SI->getOperand(1))) {
112 if (Constant *C = dyn_cast<Constant>(StoredVal)) {
155 } else if (const MemTransferInst *MTI = dyn_cast<MemTransferInst>(I)) {
162 } else if (const MemSetInst *MSI = dyn_cast<MemSetInst>(I))
    [all...]
Evaluator.cpp 65 if (auto *GV = dyn_cast<GlobalValue>(C))
136 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C))
140 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) {
152 ConstantInt *CI = dyn_cast<ConstantInt>(*std::next(CE->op_begin()));
205 auto *GV = dyn_cast<GlobalVariable>(C);
220 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(P)) {
226 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(P)) {
254 if (auto *Fn = dyn_cast<Function>(C))
257 if (auto *Alias = dyn_cast<GlobalAlias>(C))
258 if (auto *Fn = dyn_cast<Function>(Alias->getAliasee())
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/AST/
StmtIterator.cpp 26 while (const ArrayType *vt = dyn_cast<ArrayType>(t)) {
27 if (const VariableArrayType *vat = dyn_cast<VariableArrayType>(vt))
48 if (VarDecl* VD = dyn_cast<VarDecl>(*DGI))
75 if (VarDecl* VD = dyn_cast<VarDecl>(D)) {
84 else if (TypedefNameDecl* TD = dyn_cast<TypedefNameDecl>(D)) {
91 else if (EnumConstantDecl* ECD = dyn_cast<EnumConstantDecl>(D)) {
  /src/external/apache2/llvm/dist/llvm/lib/Analysis/
ValueLatticeUtils.cpp 34 if (auto *Store = dyn_cast<StoreInst>(U))
36 if (auto *Load = dyn_cast<LoadInst>(U))
  /src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
AMDGPUInstrInfo.cpp 44 if (const Argument *Arg = dyn_cast<Argument>(Ptr))
47 const Instruction *I = dyn_cast<Instruction>(Ptr);
  /src/external/apache2/llvm/dist/clang/include/clang/Analysis/
AnyCall.h 113 if (const auto *ME = dyn_cast<ObjCMessageExpr>(E)) {
115 } else if (const auto *CE = dyn_cast<CallExpr>(E)) {
117 } else if (const auto *CXNE = dyn_cast<CXXNewExpr>(E)) {
119 } else if (const auto *CXDE = dyn_cast<CXXDeleteExpr>(E)) {
121 } else if (const auto *CXCE = dyn_cast<CXXConstructExpr>(E)) {
123 } else if (const auto *CXCIE = dyn_cast<CXXInheritedCtorInitExpr>(E)) {
134 if (const auto *FD = dyn_cast<FunctionDecl>(D)) {
136 } else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
147 if (const auto *FD = dyn_cast<FunctionDecl>(D)) {
149 } else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D))
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/Lanai/
LanaiSelectionDAGInfo.cpp 27 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size);
  /src/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/
NVPTXLowerAggrCopies.cpp 72 if (LoadInst *LI = dyn_cast<LoadInst>(II)) {
79 if (StoreInst *SI = dyn_cast<StoreInst>(LI->user_back())) {
84 } else if (MemIntrinsic *IntrCall = dyn_cast<MemIntrinsic>(II)) {
87 if (ConstantInt *LenCI = dyn_cast<ConstantInt>(IntrCall->getLength())) {
127 if (MemCpyInst *Memcpy = dyn_cast<MemCpyInst>(MemCall)) {
129 } else if (MemMoveInst *Memmove = dyn_cast<MemMoveInst>(MemCall)) {
131 } else if (MemSetInst *Memset = dyn_cast<MemSetInst>(MemCall)) {
NVPTXLowerAlloca.cpp 71 if (auto allocaInst = dyn_cast<AllocaInst>(&I)) {
90 auto LI = dyn_cast<LoadInst>(AllocaUse.getUser());
96 auto SI = dyn_cast<StoreInst>(AllocaUse.getUser());
102 auto GI = dyn_cast<GetElementPtrInst>(AllocaUse.getUser());
107 auto BI = dyn_cast<BitCastInst>(AllocaUse.getUser());
  /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
UndefinedAssignmentChecker.cpp 44 dyn_cast<FunctionDecl>(C.getStackFrame()->getDecl()))
65 if (const UnaryOperator *U = dyn_cast<UnaryOperator>(StoreE)) {
73 if (const BinaryOperator *B = dyn_cast<BinaryOperator>(StoreE)) {
87 if (const DeclStmt *DS = dyn_cast<DeclStmt>(StoreE)) {
93 dyn_cast<CXXConstructorDecl>(C.getStackFrame()->getDecl())) {
CStringSyntaxChecker.cpp 39 if (const auto *D1 = dyn_cast<DeclRefExpr>(A1->IgnoreParenCasts()))
40 if (const auto *D2 = dyn_cast<DeclRefExpr>(A2->IgnoreParenCasts()))
47 if (const auto *UE = dyn_cast<UnaryExprOrTypeTraitExpr>(E))
55 if (const auto *CE = dyn_cast<CallExpr>(E)) {
67 if (const auto *IL = dyn_cast<IntegerLiteral>(E))
73 if (const auto *D = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()))
130 if (const auto *BE = dyn_cast<BinaryOperator>(LenArg->IgnoreParenCasts())) {
159 const auto *DstArgDRE = dyn_cast<DeclRefExpr>(DstArg->IgnoreParenImpCasts());
161 dyn_cast<DeclRefExpr>(LenArg->IgnoreParenLValueCasts());
168 const auto *LenArgVal = dyn_cast<VarDecl>(LenArgDRE->getDecl())
    [all...]
DeadStoresChecker.cpp 57 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl()))
107 dyn_cast<BinaryOperator>(Ex->IgnoreParenCasts());
291 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
300 const BinaryOperator* BRHS = dyn_cast<BinaryOperator>(RHS);
307 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts())))
311 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts())))
329 if (const BinaryOperator* B = dyn_cast<BinaryOperator>(S)) {
332 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS()))
333 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
350 if (const DeclRefExpr *RhsDR = dyn_cast<DeclRefExpr>(RHS)
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
LowerExpectIntrinsic.cpp 67 ConstantFP *Confidence = dyn_cast<ConstantFP>(CI->getArgOperand(2));
79 CallInst *CI = dyn_cast<CallInst>(SI.getCondition());
89 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1));
121 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(Expect->getArgOperand(1));
139 if (ZExtInst *ZExt = dyn_cast<ZExtInst>(V)) {
145 if (SExtInst *SExt = dyn_cast<SExtInst>(V)) {
151 BinaryOperator *BinOp = dyn_cast<BinaryOperator>(V);
155 ConstantInt *CInt = dyn_cast<ConstantInt>(BinOp->getOperand(1));
190 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator());
196 BI = dyn_cast<BranchInst>(BB->getTerminator())
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/IR/
ProfileSummary.cpp 110 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0));
111 ConstantAsMetadata *ValMD = dyn_cast<ConstantAsMetadata>(MD->getOperand(1));
140 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0));
141 MDString *ValMD = dyn_cast<MDString>(MD->getOperand(1));
153 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0));
156 MDTuple *EntriesMD = dyn_cast<MDTuple>(MD->getOperand(1));
160 MDTuple *EntryMD = dyn_cast<MDTuple>(MDOp);
164 dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(0));
166 dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(1));
168 dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(2))
    [all...]
TypeFinder.cpp 103 if (StructType *STy = dyn_cast<StructType>(Ty))
121 if (const auto *M = dyn_cast<MetadataAsValue>(V)) {
122 if (const auto *N = dyn_cast<MDNode>(M->getMetadata()))
124 if (const auto *MDV = dyn_cast<ValueAsMetadata>(M->getMetadata()))
159 if (auto *N = dyn_cast<MDNode>(Op)) {
163 if (auto *C = dyn_cast<ConstantAsMetadata>(Op)) {
  /src/external/apache2/llvm/dist/clang/tools/libclang/
CIndexCXX.cpp 91 if (const CXXRecordDecl *CXXRecord = dyn_cast<CXXRecordDecl>(D)) {
93 = dyn_cast<ClassTemplatePartialSpecializationDecl>(CXXRecord))
96 = dyn_cast<ClassTemplateSpecializationDecl>(CXXRecord)) {
107 } else if (const FunctionDecl *Function = dyn_cast<FunctionDecl>(D)) {
111 } else if (const VarDecl *Var = dyn_cast<VarDecl>(D)) {
115 = dyn_cast<RedeclarableTemplateDecl>(D))
  /src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
HexagonOptimizeSZextends.cpp 106 BinaryOperator *Ashr = dyn_cast<BinaryOperator>(&I);
110 ConstantInt *C = dyn_cast<ConstantInt>(AshrOp1);
116 Instruction *Shl = dyn_cast<Instruction>(Ashr->getOperand(0));
121 C = dyn_cast<ConstantInt>(ShlOp1);
127 if (IntrinsicInst *I = dyn_cast<IntrinsicInst>(Intr)) {
134 if (Instruction *J = dyn_cast<Instruction>(TheUse.getUser())) {
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/
VPlanTransforms.cpp 46 if (auto *VPPhi = dyn_cast<VPWidenPHIRecipe>(Ingredient)) {
62 if (LoadInst *Load = dyn_cast<LoadInst>(Inst)) {
66 } else if (StoreInst *Store = dyn_cast<StoreInst>(Inst)) {
71 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Inst)) {
74 } else if (CallInst *CI = dyn_cast<CallInst>(Inst)) {
77 } else if (SelectInst *SI = dyn_cast<SelectInst>(Inst)) {
  /src/external/apache2/llvm/dist/clang/lib/AST/Interp/
Source.cpp 26 if (auto *S = Source.dyn_cast<const Stmt *>())
27 return dyn_cast<Expr>(S);

Completed in 36 milliseconds

1 2 3 4 5 6 7 8 91011>>