/external/llvm/lib/IR/ |
H A D | IntrinsicInst.cpp | 57 if (MDNode* MD = cast_or_null<MDNode>(getArgOperand(0)))
|
H A D | DebugInfo.cpp | 362 const Value *V = cast_or_null<Value>(DN); 376 const Value *V = cast_or_null<Value>(DN); 654 return cast_or_null<MDString>(getField(DbgNode, 14)); 681 if (const MDNode *El = cast_or_null<MDNode>(N->getOperand(10)))
|
H A D | LLVMContextImpl.h | 229 return cast_or_null<MDNode>(getValPtr());
|
H A D | Module.cpp | 71 return cast_or_null<GlobalValue>(getValueSymbolTable().lookup(Name));
|
/external/clang/include/clang/AST/ |
H A D | StmtCXX.h | 152 return cast_or_null<DeclStmt>(SubExprs[BEGINEND]); 154 Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); } 155 Expr *getInc() { return cast_or_null<Expr>(SubExprs[INC]); } 163 return cast_or_null<DeclStmt>(SubExprs[BEGINEND]); 166 return cast_or_null<Expr>(SubExprs[COND]); 169 return cast_or_null<Expr>(SubExprs[INC]);
|
H A D | StmtObjC.h | 207 return cast_or_null<ObjCAtCatchStmt>(getStmts()[I + 1]); 213 return cast_or_null<ObjCAtCatchStmt>(getStmts()[I + 1]); 227 return cast_or_null<ObjCAtFinallyStmt>(getStmts()[1 + NumCatchStmts]); 233 return cast_or_null<ObjCAtFinallyStmt>(getStmts()[1 + NumCatchStmts]);
|
H A D | DeclTemplate.h | 835 return cast_or_null<FunctionTemplateDecl>( 842 return cast_or_null<FunctionTemplateDecl>( 847 return cast_or_null<FunctionTemplateDecl>( 1897 return cast_or_null<ClassTemplateDecl>( 1904 return cast_or_null<ClassTemplateDecl>( 1918 return cast_or_null<ClassTemplateDecl>( 2135 return cast_or_null<TypeAliasTemplateDecl>( 2142 return cast_or_null<TypeAliasTemplateDecl>( 2148 return cast_or_null<TypeAliasTemplateDecl>( 2730 return cast_or_null<VarTemplateDec [all...] |
H A D | DeclFriend.h | 95 return cast_or_null<FriendDecl>(NextFriend.get(nullptr));
|
H A D | OpenMPClause.h | 190 Expr *getCondition() const { return cast_or_null<Expr>(Condition); } 244 Expr *getNumThreads() const { return cast_or_null<Expr>(NumThreads); } 300 Expr *getSafelen() const { return cast_or_null<Expr>(Safelen); } 356 Expr *getNumForLoops() const { return cast_or_null<Expr>(NumForLoops); }
|
/external/llvm/unittests/Support/ |
H A D | Casting.cpp | 55 return cast_or_null<foo>(this); 128 TEST(CastingTest, cast_or_null) { 129 const foo *F11 = cast_or_null<foo>(B2); 131 const foo *F12 = cast_or_null<foo>(B2); 133 const foo *F13 = cast_or_null<foo>(B4); 135 const foo *F14 = cast_or_null<foo>(fub()); // Shouldn't print. 172 //foo &F23 = cast_or_null<foo>(B1); 173 //const foo &F24 = cast_or_null<foo>(B3);
|
/external/clang/include/clang/Basic/ |
H A D | LLVM.h | 58 using llvm::cast_or_null;
|
/external/clang/lib/AST/ |
H A D | DeclFriend.cpp | 23 return cast_or_null<FriendDecl>(
|
H A D | ASTImporter.cpp | 1630 ToEPI.ExceptionSpecDecl = cast_or_null<FunctionDecl>( 1632 ToEPI.ExceptionSpecTemplate = cast_or_null<FunctionDecl>( 1845 if (RecordDecl *ToRecord = cast_or_null<RecordDecl>(ToD)) { 1854 if (EnumDecl *ToEnum = cast_or_null<EnumDecl>(ToD)) { 2097 if (ValueDecl *To = cast_or_null<ValueDecl>(Importer.Import(FromD))) 2732 ParmVarDecl *ToP = cast_or_null<ParmVarDecl>(Importer.Import(P)); 3286 ParmVarDecl *ToP = cast_or_null<ParmVarDecl>(Importer.Import(FromP)); 3317 = cast_or_null<ObjCInterfaceDecl>(Importer.Import(D->getClassInterface())); 3348 = cast_or_null<ObjCProtocolDecl>(Importer.Import(*FromProto)); 3369 = cast_or_null<ObjCCategoryImplDec [all...] |
/external/llvm/lib/Analysis/ |
H A D | TypeBasedAliasAnalysis.cpp | 552 MDNode *Tag = cast_or_null<MDNode>(getOperand(1)); 570 A = cast_or_null<MDNode>(A->getOperand(1)); 572 B = cast_or_null<MDNode>(B->getOperand(1)); 580 T = T->getNumOperands() >= 2 ? cast_or_null<MDNode>(T->getOperand(1)) 588 T = T->getNumOperands() >= 2 ? cast_or_null<MDNode>(T->getOperand(1))
|
/external/llvm/include/llvm/IR/ |
H A D | OperandTraits.h | 139 return cast_or_null<VALUECLASS>( \
|
H A D | ValueMap.h | 213 KeyT Unwrap() const { return cast_or_null<KeySansPointerT>(getValPtr()); }
|
/external/clang/lib/Analysis/ |
H A D | AnalysisDeclContext.cpp | 342 LOC *L = cast_or_null<LOC>(Contexts.FindNodeOrInsertPos(ID, InsertPos)); 360 cast_or_null<StackFrameContext>(Contexts.FindNodeOrInsertPos(ID, InsertPos)); 384 cast_or_null<BlockInvocationContext>(Contexts.FindNodeOrInsertPos(ID,
|
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | MemRegion.cpp | 45 RegionTy* R = cast_or_null<RegionTy>(Regions.FindNodeOrInsertPos(ID, 63 RegionTy* R = cast_or_null<RegionTy>(Regions.FindNodeOrInsertPos(ID, 84 RegionTy* R = cast_or_null<RegionTy>(Regions.FindNodeOrInsertPos(ID, 103 RegionTy* R = cast_or_null<RegionTy>(Regions.FindNodeOrInsertPos(ID, 122 RegionTy* R = cast_or_null<RegionTy>(Regions.FindNodeOrInsertPos(ID, 914 ElementRegion* R = cast_or_null<ElementRegion>(data);
|
/external/llvm/utils/TableGen/ |
H A D | DAGISelMatcherOpt.cpp | 429 cast_or_null<CheckTypeMatcher>(FindNodeWithKind(NewOptionsToMatch[i], 472 cast_or_null<CheckTypeMatcher>(FindNodeWithKind(NewOptionsToMatch[i],
|
/external/llvm/lib/Transforms/Utils/ |
H A D | ValueMapper.cpp | 121 BasicBlock *BB = cast_or_null<BasicBlock>(MapValue(BA->getBasicBlock(), VM,
|
H A D | CloneFunction.cpp | 456 BasicBlock *NewBB = cast_or_null<BasicBlock>(V); 492 if (BasicBlock *MappedBlock = cast_or_null<BasicBlock>(V)) {
|
/external/clang/lib/Sema/ |
H A D | SemaTemplateInstantiateDecl.cpp | 350 TypeAliasDecl *AliasInst = cast_or_null<TypeAliasDecl>( 1027 cast_or_null<VarDecl>(VisitVarDecl(Pattern, 1100 Instantiated = cast_or_null<FunctionDecl>(VisitCXXMethodDecl(DMethod, 1103 Instantiated = cast_or_null<FunctionDecl>(VisitFunctionDecl( 1609 Inh = cast_or_null<CXXConstructorDecl>( 2195 cast_or_null<NamedDecl>(SemaRef.FindInstantiatedDecl( 2205 PrevDecl = cast_or_null<UsingShadowDecl>(SemaRef.FindInstantiatedDecl( 2605 NamedDecl *D = cast_or_null<NamedDecl>(Visit(*PI)); 2949 cast_or_null<ParmVarDecl>(VisitParmVarDecl(OldParam)); 3526 return cast_or_null<VarTemplateSpecializationDec [all...] |
H A D | SemaTemplateInstantiate.cpp | 955 return cast_or_null<NamedDecl>(TransformDecl(Loc, D)); 966 return cast_or_null<NamedDecl>(TransformDecl(Loc, D)); 1152 VD = cast_or_null<ValueDecl>( 1220 ValueDecl *VD = cast_or_null<ValueDecl>(TransformDecl(E->getExprLoc(), D)); 1237 cast_or_null<ParmVarDecl>(TransformDecl(E->getExprLoc(), *I)); 1396 NewTTPDecl = cast_or_null<TemplateTypeParmDecl>( 1897 = cast_or_null<CXXRecordDecl>(Pattern->getDefinition()); 2510 Pattern = cast_or_null<CXXRecordDecl>(Record->getDefinition());
|
H A D | TreeTransform.h | 427 return cast_or_null<NamedDecl>(getDerived().TransformDecl(Loc, D)); 3043 = cast_or_null<NamespaceDecl>( 3053 = cast_or_null<NamespaceAliasDecl>( 3181 = cast_or_null<TemplateDecl>(getDerived().TransformDecl(NameLoc, 3221 = cast_or_null<TemplateDecl>(getDerived().TransformDecl(NameLoc, 3236 = cast_or_null<TemplateTemplateParmDecl>( 4606 = cast_or_null<TypedefNameDecl>(getDerived().TransformDecl(TL.getNameLoc(), 4767 = cast_or_null<RecordDecl>(getDerived().TransformDecl(TL.getNameLoc(), 4791 = cast_or_null<EnumDecl>(getDerived().TransformDecl(TL.getNameLoc(), 5517 = cast_or_null<VarDec [all...] |
/external/llvm/include/llvm/Support/ |
H A D | Casting.h | 10 // This file defines the isa<X>(), cast<X>(), dyn_cast<X>(), cast_or_null<X>(), 214 // on failure. It does not allow a null argument (use cast_or_null for that). 242 // cast_or_null<X> - Functionally identical to cast, except that a null value is 247 cast_or_null(Y *Val) { function in namespace:llvm 249 assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
|