Home
last modified time | relevance | path

Searched refs:cast_or_null (Results 1 – 25 of 80) sorted by relevance

1234

/external/llvm/unittests/Support/
DCasting.cpp55 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/
DStmtCXX.h152 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()
DStmtObjC.h208 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()
DStmtOpenMP.h1673 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()
DDeclTemplate.h827 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 …]
DDeclFriend.h95 return cast_or_null<FriendDecl>(NextFriend.get(nullptr)); in getNextFriend()
DOpenMPClause.h190 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/
DDebugLocEntry.h80 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/
DDebugInfoMetadata.h158 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 …]
DMetadata.h269 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)); }
DOperandTraits.h139 return cast_or_null<VALUECLASS>( \
/external/llvm/lib/Analysis/
DTypeBasedAliasAnalysis.cpp558 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/
DDIBuilder.cpp386 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()
DModule.cpp89 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()
DDebugLoc.cpp23 return cast_or_null<MDLocation>(Loc.get()); in get()
/external/clang/lib/AST/
DASTImporter.cpp1631 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 …]
DDeclFriend.cpp23 return cast_or_null<FriendDecl>( in getNextFriendSlowCase()
/external/llvm/include/llvm/Support/
DCasting.h248 cast_or_null(const Y &Val) {
258 cast_or_null(Y &Val) {
267 cast_or_null(Y *Val) {
/external/llvm/tools/opt/
DBreakpointPrinter.cpp56 auto *SP = cast_or_null<MDSubprogram>(NMD->getOperand(i)); in runOnModule()
/external/clang/include/clang/Basic/
DLLVM.h59 using llvm::cast_or_null;
/external/clang/lib/Analysis/
DAnalysisDeclContext.cpp349 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/
DMemRegion.cpp45 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/
DSemaTemplateInstantiateDecl.cpp433 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 …]
DSemaTemplateInstantiate.cpp947 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/
DDAGISelMatcherOpt.cpp429 cast_or_null<CheckTypeMatcher>(FindNodeWithKind(NewOptionsToMatch[i], in FactorNodes()
472 cast_or_null<CheckTypeMatcher>(FindNodeWithKind(NewOptionsToMatch[i], in FactorNodes()

1234