HomeSort by relevance Sort by last modified time
    Searched full:dyn_cast (Results 1 - 25 of 800) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/clang/test/SemaCXX/
missing-header.cpp 7 if (const GCCAsmStmt *AS = dyn_cast<GCCAsmStmt>(S)) {}
  /external/clang/test/CodeCompletion/
function-templates.cpp 6 X* dyn_cast(Y *Val);
18 // CHECK-CC1: dyn_cast<<#class X#>>(<#Y *Val#>)
  /external/clang/lib/Sema/
ScopeInfo.cpp 81 dyn_cast<ObjCPropertyRefExpr>(POE->getSyntacticForm());
86 if (const OpaqueValueExpr *OVE = dyn_cast<OpaqueValueExpr>(DoubleBase))
102 if (auto *LSI = dyn_cast<LambdaScopeInfo>(this))
104 else if (auto CRSI = dyn_cast<CapturedRegionScopeInfo>(this))
160 if (const PseudoObjectExpr *POE = dyn_cast<PseudoObjectExpr>(E)) {
165 if (const ConditionalOperator *Cond = dyn_cast<ConditionalOperator>(E)) {
172 dyn_cast<BinaryConditionalOperator>(E)) {
180 if (const ObjCPropertyRefExpr *RefExpr = dyn_cast<ObjCPropertyRefExpr>(E)) {
190 else if (const ObjCIvarRefExpr *IvarE = dyn_cast<ObjCIvarRefExpr>(E))
192 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)
    [all...]
  /external/clang/lib/AST/
StmtIterator.cpp 22 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)) {
Mangle.cpp 60 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND))
78 const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND);
143 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D))
158 else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D))
165 const FunctionProtoType *Proto = dyn_cast<FunctionProtoType>(FT);
175 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD))
229 if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(DC)) {
239 if (const auto *CD = dyn_cast<CXXConstructorDecl>(DC))
241 else if (const auto *DD = dyn_cast<CXXDestructorDecl>(DC))
243 else if (auto ND = dyn_cast<NamedDecl>(DC))
    [all...]
  /external/clang/tools/libclang/
CIndexCXX.cpp 94 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/StaticAnalyzer/Checkers/
DeadStoresChecker.cpp 56 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<DeclRefExpr>(RHS)
    [all...]
CStringSyntaxChecker.cpp 40 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())) {
UndefinedAssignmentChecker.cpp 45 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());
  /external/llvm/lib/Transforms/Utils/
GlobalStatus.cpp 42 if (const Constant *CU = dyn_cast<Constant>(U)) {
54 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(UR)) {
64 } else if (const Instruction *I = dyn_cast<Instruction>(UR)) {
72 if (const LoadInst *LI = dyn_cast<LoadInst>(I)) {
78 } else if (const StoreInst *SI = dyn_cast<StoreInst>(I)) {
94 dyn_cast<GlobalVariable>(SI->getOperand(1))) {
97 if (Constant *C = dyn_cast<Constant>(StoredVal)) {
133 } else if (const PHINode *PN = dyn_cast<PHINode>(I)) {
141 } else if (const MemTransferInst *MTI = dyn_cast<MemTransferInst>(I)) {
148 } else if (const MemSetInst *MSI = dyn_cast<MemSetInst>(I))
    [all...]
  /external/lldb/source/Symbol/
ClangASTImporter.cpp 94 if (NamedDecl *named_decl = dyn_cast<NamedDecl>(decl))
191 if (ObjCInterfaceDecl *interface_decl = dyn_cast<ObjCInterfaceDecl>(decl))
199 else if (ObjCProtocolDecl *protocol_decl = dyn_cast<ObjCProtocolDecl>(decl))
204 else if (TagDecl *tag_decl = dyn_cast<TagDecl>(decl))
391 const NamespaceDecl *parent_namespace = dyn_cast<NamespaceDecl>(parent_context);
488 if (TagDecl *tag_decl = dyn_cast<TagDecl>(decl))
490 if (TagDecl *original_tag_decl = dyn_cast<TagDecl>(original_decl))
497 else if (ObjCInterfaceDecl *interface_decl = dyn_cast<ObjCInterfaceDecl>(decl))
515 ObjCInterfaceDecl *to_objc_interface = dyn_cast<ObjCInterfaceDecl>(to);
521 CXXRecordDecl *to_cxx_record = dyn_cast<CXXRecordDecl>(to)
    [all...]
  /external/llvm/lib/IR/
DebugInfo.cpp 142 if (auto *T = dyn_cast<MDType>(Entity))
144 else if (auto *SP = dyn_cast<MDSubprogram>(Entity))
146 else if (auto *NS = dyn_cast<MDNamespace>(Entity))
165 if (auto *DCT = dyn_cast<MDCompositeTypeBase>(DT)) {
167 if (auto *ST = dyn_cast<MDSubroutineType>(DCT)) {
173 if (auto *T = dyn_cast<MDType>(D))
175 else if (DISubprogram SP = dyn_cast<MDSubprogram>(D))
178 } else if (auto *DDT = dyn_cast<MDDerivedTypeBase>(DT)) {
186 if (DIType Ty = dyn_cast<MDType>(Scope)) {
190 if (DICompileUnit CU = dyn_cast<MDCompileUnit>(Scope))
    [all...]
  /external/llvm/include/llvm/ADT/
TinyPtrVector.h 38 if (VecTy *V = Val.template dyn_cast<VecTy*>())
43 if (VecTy *V = Val.template dyn_cast<VecTy*>())
88 if (VecTy *V = Val.template dyn_cast<VecTy*>()) {
132 if (VecTy *Vec = Val.template dyn_cast<VecTy*>())
172 if (EltTy V = Val.template dyn_cast<EltTy>()) {
184 if (EltTy V = Val.template dyn_cast<EltTy>())
191 if (EltTy V = Val.template dyn_cast<EltTy>())
206 if (EltTy V = Val.template dyn_cast<EltTy>()) {
227 } else if (VecTy *Vec = Val.template dyn_cast<VecTy*>()) {
242 } else if (VecTy *Vec = Val.template dyn_cast<VecTy*>())
    [all...]
  /external/mesa3d/src/gallium/drivers/radeon/
AMDILPeepholeOptimizer.cpp 190 const StructType *ST = dyn_cast<StructType>(Ty);
202 return containsPointerType(dyn_cast<SequentialType>(Ty)->getElementType());
216 const PointerType *PT = dyn_cast<PointerType>(arg->getType());
221 if (!dyn_cast<StructType>(DereferencedType)
243 Constant *CV = dyn_cast<Constant>(CI->getOperand(0));
301 CallInst *CI = dyn_cast<CallInst>(inst);
337 Constant *CV = dyn_cast<Constant>(CI->getOperand(0));
349 ConstantInt *CV = dyn_cast<ConstantInt>(CI->getOperand(0));
363 Function *F = dyn_cast<Function>(CI->getOperand(CI->getNumOperands()-1));
370 F = dyn_cast<Function>
    [all...]
R600KernelParameters.cpp 159 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<Instruction>(V))
    [all...]
AMDILISelDAGToDAG.cpp 104 if (FrameIndexSDNode *FIN = dyn_cast<FrameIndexSDNode>(Addr)) {
137 if (FrameIndexSDNode *FIN = dyn_cast<FrameIndexSDNode>(Addr)) {
163 if (FrameIndexSDNode *FIN = dyn_cast<FrameIndexSDNode>(N)) {
181 return dyn_cast<PointerType>(ptrType)->getAddressSpace() == addrspace;
197 if (dyn_cast<Argument>(V) && dyn_cast<PointerType>(V->getType())) {
200 } else if (dyn_cast<GlobalVariable>(V)) {
203 } else if (dyn_cast<Constant>(V)) {
204 const ConstantExpr *CE = dyn_cast<ConstantExpr>(V);
208 } else if (const AllocaInst *AI = dyn_cast<AllocaInst>(V))
    [all...]
  /external/clang/lib/ARCMigrate/
TransZeroOutPropsInDealloc.cpp 53 DeclRefExpr *refE = dyn_cast<DeclRefExpr>(receiver->IgnoreParenCasts());
107 ObjCImplDecl *IMD = dyn_cast<ObjCImplDecl>(D->getDeclContext());
154 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(E))
156 if (PseudoObjectExpr *PO = dyn_cast<PseudoObjectExpr>(E))
170 if (ObjCIvarRefExpr *IV = dyn_cast<ObjCIvarRefExpr>(LHS)) {
194 BinaryOperator *BO = dyn_cast<BinaryOperator>(PO->getSyntacticForm());
199 dyn_cast<ObjCPropertyRefExpr>(BO->getLHS()->IgnoreParens());
  /external/llvm/lib/Transforms/Scalar/
LowerExpectIntrinsic.cpp 45 CallInst *CI = dyn_cast<CallInst>(SI.getCondition());
54 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1));
89 ICmpInst *CmpI = dyn_cast<ICmpInst>(BI.getCondition());
91 CI = dyn_cast<CallInst>(BI.getCondition());
95 CI = dyn_cast<CallInst>(CmpI->getOperand(0));
106 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1));
134 if (BranchInst *BI = dyn_cast<BranchInst>(BB.getTerminator())) {
137 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(BB.getTerminator())) {
144 CallInst *CI = dyn_cast<CallInst>(BI++);
  /external/clang/include/clang/AST/
ASTLambda.h 54 if (CXXConversionDecl *Conv = dyn_cast<CXXConversionDecl>(D))
56 if (FunctionTemplateDecl *F = dyn_cast<FunctionTemplateDecl>(D))
65 dyn_cast<CXXMethodDecl>(DC));
  /external/lldb/source/Expression/
ASTResultSynthesizer.cpp 44 m_passthrough_sema = dyn_cast<SemaConsumer>(passthrough);
65 if (NamedDecl *named_decl = dyn_cast<NamedDecl>(D))
71 else if (ObjCMethodDecl *method_decl = dyn_cast<ObjCMethodDecl>(D))
79 if (LinkageSpecDecl *linkage_spec_decl = dyn_cast<LinkageSpecDecl>(D))
90 else if (ObjCMethodDecl *method_decl = dyn_cast<ObjCMethodDecl>(D))
99 else if (FunctionDecl *function_decl = dyn_cast<FunctionDecl>(D))
155 CompoundStmt *compound_stmt = dyn_cast<CompoundStmt>(function_body);
203 CompoundStmt *compound_stmt = dyn_cast<CompoundStmt>(method_body);
240 while (dyn_cast<NullStmt>(last_stmt))
253 Expr *last_expr = dyn_cast<Expr>(last_stmt)
    [all...]
  /external/llvm/unittests/Support/
Casting.cpp 59 return dyn_cast<foo>(this);
141 TEST(CastingTest, dyn_cast) {
142 const foo *F1 = dyn_cast<foo>(B2);
144 const foo *F2 = dyn_cast<foo>(B2);
146 const foo *F3 = dyn_cast<foo>(B4);
148 // Can't pass null pointer to dyn_cast<>.
149 // foo *F4 = dyn_cast<foo>(fub());
205 Base *BP = dyn_cast<Base>(&D);
314 EXPECT_TRUE(dyn_cast<pointer_wrappers::Derived>(MB) == nullptr);
315 EXPECT_TRUE(dyn_cast<pointer_wrappers::Derived>(CB) == nullptr)
    [all...]
  /external/llvm/lib/Analysis/
PHITransAddr.cpp 60 Instruction *I = dyn_cast<Instruction>(Expr);
118 Instruction *Inst = dyn_cast<Instruction>(Addr);
125 Instruction *I = dyn_cast<Instruction>(V);
140 if (Instruction *Op = dyn_cast<Instruction>(I->getOperand(i)))
149 Instruction *Inst = dyn_cast<Instruction>(V);
170 if (PHINode *PN = dyn_cast<PHINode>(Inst))
181 if (Instruction *Op = dyn_cast<Instruction>(Inst->getOperand(i)))
189 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) {
199 if (Constant *C = dyn_cast<Constant>(PHIIn))
206 if (CastInst *CastI = dyn_cast<CastInst>(U)
    [all...]
  /external/llvm/lib/Target/XCore/InstPrinter/
XCoreInstPrinter.cpp 52 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/tools/llvm-objdump/
ELFDump.cpp 80 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/llvm/lib/Target/R600/
AMDGPUInstructions.td 173 return isGlobalStore(dyn_cast<StoreSDNode>(N));
178 return isGlobalLoad(dyn_cast<LoadSDNode>(N));
183 return isConstantLoad(dyn_cast<LoadSDNode>(N), -1);
197 return isGlobalLoad(dyn_cast<LoadSDNode>(N));
201 return isGlobalLoad(dyn_cast<LoadSDNode>(N));
205 return isFlatLoad(dyn_cast<LoadSDNode>(N));
209 return isFlatLoad(dyn_cast<LoadSDNode>(N));
213 return isConstantLoad(dyn_cast<LoadSDNode>(N), -1);
217 return isConstantLoad(dyn_cast<LoadSDNode>(N), -1);
221 return isLocalLoad(dyn_cast<LoadSDNode>(N))
    [all...]

Completed in 1046 milliseconds

1 2 3 4 5 6 7 8 91011>>