/external/llvm/unittests/Support/ |
D | Casting.cpp | 55 return cast_or_null<foo>(this); in caz() 128 TEST(CastingTest, cast_or_null) { in TEST() argument 129 const foo *F11 = cast_or_null<foo>(B2); in TEST() 131 const foo *F12 = cast_or_null<foo>(B2); in TEST() 133 const foo *F13 = cast_or_null<foo>(B4); in TEST() 135 const foo *F14 = cast_or_null<foo>(fub()); // Shouldn't print. in TEST() 307 EXPECT_TRUE(cast_or_null<pointer_wrappers::Derived>(MN) == nullptr); in TEST() 308 EXPECT_TRUE(cast_or_null<pointer_wrappers::Derived>(CN) == nullptr); in TEST() 309 EXPECT_TRUE(cast_or_null<pointer_wrappers::Derived>(MD) == &D); in TEST() 310 EXPECT_TRUE(cast_or_null<pointer_wrappers::Derived>(CD) == &D); in TEST()
|
/external/clang/include/clang/AST/ |
D | StmtCXX.h | 152 return cast_or_null<DeclStmt>(SubExprs[BEGINEND]); in getBeginEndStmt() 154 Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); } in getCond() 155 Expr *getInc() { return cast_or_null<Expr>(SubExprs[INC]); } in getInc() 163 return cast_or_null<DeclStmt>(SubExprs[BEGINEND]); in getBeginEndStmt() 166 return cast_or_null<Expr>(SubExprs[COND]); in getCond() 169 return cast_or_null<Expr>(SubExprs[INC]); in getInc()
|
D | StmtObjC.h | 208 return cast_or_null<ObjCAtCatchStmt>(getStmts()[I + 1]); in getCatchStmt() 214 return cast_or_null<ObjCAtCatchStmt>(getStmts()[I + 1]); in getCatchStmt() 228 return cast_or_null<ObjCAtFinallyStmt>(getStmts()[1 + NumCatchStmts]); in getFinallyStmt() 234 return cast_or_null<ObjCAtFinallyStmt>(getStmts()[1 + NumCatchStmts]); in getFinallyStmt()
|
D | StmtOpenMP.h | 1673 Expr *getX() { return cast_or_null<Expr>(*std::next(child_begin())); } in getX() 1675 return cast_or_null<Expr>(*std::next(child_begin())); in getX() 1681 return cast_or_null<Expr>(*std::next(child_begin(), 2)); in getUpdateExpr() 1684 return cast_or_null<Expr>(*std::next(child_begin(), 2)); in getUpdateExpr() 1694 Expr *getV() { return cast_or_null<Expr>(*std::next(child_begin(), 3)); } in getV() 1696 return cast_or_null<Expr>(*std::next(child_begin(), 3)); in getV() 1699 Expr *getExpr() { return cast_or_null<Expr>(*std::next(child_begin(), 4)); } in getExpr() 1701 return cast_or_null<Expr>(*std::next(child_begin(), 4)); in getExpr()
|
D | DeclTemplate.h | 827 return cast_or_null<FunctionTemplateDecl>( 834 return cast_or_null<FunctionTemplateDecl>( 848 return cast_or_null<FunctionTemplateDecl>( 1898 return cast_or_null<ClassTemplateDecl>( 1905 return cast_or_null<ClassTemplateDecl>( 1919 return cast_or_null<ClassTemplateDecl>( 2136 return cast_or_null<TypeAliasTemplateDecl>( 2143 return cast_or_null<TypeAliasTemplateDecl>( 2149 return cast_or_null<TypeAliasTemplateDecl>( 2731 return cast_or_null<VarTemplateDecl>( [all …]
|
D | DeclFriend.h | 95 return cast_or_null<FriendDecl>(NextFriend.get(nullptr)); in getNextFriend()
|
D | OpenMPClause.h | 190 Expr *getCondition() const { return cast_or_null<Expr>(Condition); } in getCondition() 243 Expr *getCondition() const { return cast_or_null<Expr>(Condition); } in getCondition() 297 Expr *getNumThreads() const { return cast_or_null<Expr>(NumThreads); } in getNumThreads() 353 Expr *getSafelen() const { return cast_or_null<Expr>(Safelen); } in getSafelen() 409 Expr *getNumForLoops() const { return cast_or_null<Expr>(NumForLoops); } in getNumForLoops()
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
D | DebugLocEntry.h | 80 return cast_or_null<MDExpression>(Expression); in getExpression() 105 DIExpression Expr = cast_or_null<MDExpression>(Values[0].Expression); in MergeValues() 106 DIVariable Var = cast_or_null<MDLocalVariable>(Values[0].Variable); in MergeValues() 108 cast_or_null<MDExpression>(Next.Values[0].Expression); in MergeValues() 109 DIVariable NextVar = cast_or_null<MDLocalVariable>(Next.Values[0].Variable); in MergeValues()
|
/external/llvm/include/llvm/IR/ |
D | DebugInfoMetadata.h | 158 return cast_or_null<Ty>(getOperand(I)); in getOperandAs() 417 MDFile *getFile() const { return cast_or_null<MDFile>(getRawFile()); } 760 if (auto *C = cast_or_null<ConstantAsMetadata>(getExtraData())) 796 return cast_or_null<MDTuple>(getRawElements()); 800 return cast_or_null<MDTuple>(getRawTemplateParams()); 962 return cast_or_null<MDTuple>(getRawTypeArray()); 1057 return cast_or_null<MDTuple>(getRawEnumTypes()); 1060 return cast_or_null<MDTuple>(getRawRetainedTypes()); 1063 return cast_or_null<MDTuple>(getRawSubprograms()); 1066 return cast_or_null<MDTuple>(getRawGlobalVariables()); [all …]
|
D | Metadata.h | 269 return cast_or_null<ConstantAsMetadata>(getIfExists(C)); in getConstantIfExists() 272 return cast_or_null<LocalAsMetadata>(getIfExists(Local)); in getLocalIfExists() 458 if (auto *V = cast_or_null<ConstantAsMetadata>(MD)) in extract_or_null() 1048 T *operator*() const { return cast_or_null<T>(*I); } 1096 T *operator[](unsigned I) const { return cast_or_null<T>(N->getOperand(I)); }
|
D | OperandTraits.h | 139 return cast_or_null<VALUECLASS>( \
|
/external/llvm/lib/Analysis/ |
D | TypeBasedAliasAnalysis.cpp | 558 MDNode *Tag = cast_or_null<MDNode>(getOperand(1)); in isTBAAVtableAccess() 576 A = cast_or_null<MDNode>(A->getOperand(1)); in getMostGenericTBAA() 578 B = cast_or_null<MDNode>(B->getOperand(1)); in getMostGenericTBAA() 588 T = T->getNumOperands() >= 2 ? cast_or_null<MDNode>(T->getOperand(1)) in getMostGenericTBAA() 598 T = T->getNumOperands() >= 2 ? cast_or_null<MDNode>(T->getOperand(1)) in getMostGenericTBAA()
|
/external/llvm/lib/IR/ |
D | DIBuilder.cpp | 386 cast_or_null<MDTuple>(TemplateParams), UniqueIdentifier); in createClassType() 565 auto *N = MDGlobalVariable::get(VMContext, cast_or_null<MDScope>(Context), in createGlobalVariable() 568 cast_or_null<MDDerivedType>(Decl)); in createGlobalVariable() 580 VMContext, cast_or_null<MDScope>(Context), Name, LinkageName, F, in createTempGlobalVariableFwdDecl() 582 cast_or_null<MDDerivedType>(Decl)) in createTempGlobalVariableFwdDecl() 596 VMContext, Tag, cast_or_null<MDLocalScope>(Context), Name, File, LineNo, in createLocalVariable() 653 Fn, cast_or_null<MDTuple>(TParams), cast_or_null<MDSubprogram>(Decl), in createFunction() 674 isOptimized, Fn, cast_or_null<MDTuple>(TParams), in createTempFunctionFwdDecl() 675 cast_or_null<MDSubprogram>(Decl), nullptr).release(); in createTempFunctionFwdDecl() 694 cast_or_null<MDTuple>(TParam), nullptr, nullptr); in createMethod()
|
D | Module.cpp | 89 return cast_or_null<GlobalValue>(getValueSymbolTable().lookup(Name)); in getNamedValue() 459 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Dwarf Version")); in getDwarfVersion() 472 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIC Level")); in getPICLevel()
|
D | DebugLoc.cpp | 23 return cast_or_null<MDLocation>(Loc.get()); in get()
|
/external/clang/lib/AST/ |
D | ASTImporter.cpp | 1631 ToEPI.ExceptionSpec.SourceDecl = cast_or_null<FunctionDecl>( in VisitFunctionProtoType() 1633 ToEPI.ExceptionSpec.SourceTemplate = cast_or_null<FunctionDecl>( in VisitFunctionProtoType() 1867 if (RecordDecl *ToRecord = cast_or_null<RecordDecl>(ToD)) { in ImportDefinitionIfNeeded() 1876 if (EnumDecl *ToEnum = cast_or_null<EnumDecl>(ToD)) { in ImportDefinitionIfNeeded() 2118 ValueDecl *To = cast_or_null<ValueDecl>(Importer.Import(From.getAsDecl())); in ImportTemplateArgument() 2756 ParmVarDecl *ToP = cast_or_null<ParmVarDecl>(Importer.Import(P)); in VisitFunctionDecl() 3313 ParmVarDecl *ToP = cast_or_null<ParmVarDecl>(Importer.Import(FromP)); in VisitObjCMethodDecl() 3344 = cast_or_null<ObjCInterfaceDecl>(Importer.Import(D->getClassInterface())); in VisitObjCCategoryDecl() 3375 = cast_or_null<ObjCProtocolDecl>(Importer.Import(*FromProto)); in VisitObjCCategoryDecl() 3396 = cast_or_null<ObjCCategoryImplDecl>( in VisitObjCCategoryDecl() [all …]
|
D | DeclFriend.cpp | 23 return cast_or_null<FriendDecl>( in getNextFriendSlowCase()
|
/external/llvm/include/llvm/Support/ |
D | Casting.h | 248 cast_or_null(const Y &Val) { 258 cast_or_null(Y &Val) { 267 cast_or_null(Y *Val) {
|
/external/llvm/tools/opt/ |
D | BreakpointPrinter.cpp | 56 auto *SP = cast_or_null<MDSubprogram>(NMD->getOperand(i)); in runOnModule()
|
/external/clang/include/clang/Basic/ |
D | LLVM.h | 59 using llvm::cast_or_null;
|
/external/clang/lib/Analysis/ |
D | AnalysisDeclContext.cpp | 349 LOC *L = cast_or_null<LOC>(Contexts.FindNodeOrInsertPos(ID, InsertPos)); in getLocationContext() 367 cast_or_null<StackFrameContext>(Contexts.FindNodeOrInsertPos(ID, InsertPos)); in getStackFrame() 391 cast_or_null<BlockInvocationContext>(Contexts.FindNodeOrInsertPos(ID, in getBlockInvocationContext()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | MemRegion.cpp | 45 RegionTy* R = cast_or_null<RegionTy>(Regions.FindNodeOrInsertPos(ID, in getRegion() 63 RegionTy* R = cast_or_null<RegionTy>(Regions.FindNodeOrInsertPos(ID, in getSubRegion() 84 RegionTy* R = cast_or_null<RegionTy>(Regions.FindNodeOrInsertPos(ID, in getRegion() 103 RegionTy* R = cast_or_null<RegionTy>(Regions.FindNodeOrInsertPos(ID, in getSubRegion() 122 RegionTy* R = cast_or_null<RegionTy>(Regions.FindNodeOrInsertPos(ID, in getSubRegion() 914 ElementRegion* R = cast_or_null<ElementRegion>(data); in getElementRegion()
|
/external/clang/lib/Sema/ |
D | SemaTemplateInstantiateDecl.cpp | 433 TypeAliasDecl *AliasInst = cast_or_null<TypeAliasDecl>( in VisitTypeAliasTemplateDecl() 1112 cast_or_null<VarDecl>(VisitVarDecl(Pattern, in VisitVarTemplateDecl() 1185 Instantiated = cast_or_null<FunctionDecl>(VisitCXXMethodDecl(DMethod, in VisitFunctionTemplateDecl() 1188 Instantiated = cast_or_null<FunctionDecl>(VisitFunctionDecl( in VisitFunctionTemplateDecl() 1697 Inh = cast_or_null<CXXConstructorDecl>( in VisitCXXMethodDecl() 2283 cast_or_null<NamedDecl>(SemaRef.FindInstantiatedDecl( in VisitUsingDecl() 2294 PrevDecl = cast_or_null<UsingShadowDecl>(SemaRef.FindInstantiatedDecl( in VisitUsingDecl() 2369 cast_or_null<CXXMethodDecl>(VisitCXXMethodDecl(OldFD, nullptr, true)); in VisitClassScopeFunctionSpecializationDecl() 2696 NamedDecl *D = cast_or_null<NamedDecl>(Visit(*PI)); in SubstTemplateParams() 3040 cast_or_null<ParmVarDecl>(VisitParmVarDecl(OldParam)); in SubstFunctionType() [all …]
|
D | SemaTemplateInstantiate.cpp | 947 return cast_or_null<NamedDecl>(TransformDecl(Loc, D)); in TransformFirstQualifierInScope() 958 return cast_or_null<NamedDecl>(TransformDecl(Loc, D)); in TransformFirstQualifierInScope() 1162 VD = cast_or_null<ValueDecl>( in transformNonTypeTemplateParmRef() 1230 ValueDecl *VD = cast_or_null<ValueDecl>(TransformDecl(E->getExprLoc(), D)); in TransformFunctionParmPackExpr() 1247 cast_or_null<ParmVarDecl>(TransformDecl(E->getExprLoc(), *I)); in TransformFunctionParmPackExpr() 1401 NewTTPDecl = cast_or_null<TemplateTypeParmDecl>( in TransformTemplateTypeParmType() 1931 = cast_or_null<CXXRecordDecl>(Pattern->getDefinition()); in InstantiateClass() 2594 Pattern = cast_or_null<CXXRecordDecl>(Record->getDefinition()); in InstantiateClassMembers()
|
/external/llvm/utils/TableGen/ |
D | DAGISelMatcherOpt.cpp | 429 cast_or_null<CheckTypeMatcher>(FindNodeWithKind(NewOptionsToMatch[i], in FactorNodes() 472 cast_or_null<CheckTypeMatcher>(FindNodeWithKind(NewOptionsToMatch[i], in FactorNodes()
|