Home
last modified time | relevance | path

Searched refs:cast_or_null (Results 1 – 25 of 83) 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/
DExprOpenMP.h91 Expr *getLowerBound() { return cast_or_null<Expr>(SubExprs[LOWER_BOUND]); } in getLowerBound()
93 return cast_or_null<Expr>(SubExprs[LOWER_BOUND]); in getLowerBound()
99 Expr *getLength() { return cast_or_null<Expr>(SubExprs[LENGTH]); } in getLength()
100 const Expr *getLength() const { return cast_or_null<Expr>(SubExprs[LENGTH]); } in getLength()
DStmtCXX.h156 return cast_or_null<DeclStmt>(SubExprs[BEGINEND]); in getBeginEndStmt()
158 Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); } in getCond()
159 Expr *getInc() { return cast_or_null<Expr>(SubExprs[INC]); } in getInc()
167 return cast_or_null<DeclStmt>(SubExprs[BEGINEND]); in getBeginEndStmt()
170 return cast_or_null<Expr>(SubExprs[COND]); in getCond()
173 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()
DDeclTemplate.h921 return cast_or_null<FunctionTemplateDecl>(
928 return cast_or_null<FunctionTemplateDecl>(
942 return cast_or_null<FunctionTemplateDecl>(
2029 return cast_or_null<ClassTemplateDecl>(
2036 return cast_or_null<ClassTemplateDecl>(
2050 return cast_or_null<ClassTemplateDecl>(
2267 return cast_or_null<TypeAliasTemplateDecl>(
2274 return cast_or_null<TypeAliasTemplateDecl>(
2280 return cast_or_null<TypeAliasTemplateDecl>(
2853 return cast_or_null<VarTemplateDecl>(
[all …]
DStmtOpenMP.h1891 Expr *getX() { return cast_or_null<Expr>(*std::next(child_begin())); } in getX()
1893 return cast_or_null<Expr>(*std::next(child_begin())); in getX()
1899 return cast_or_null<Expr>(*std::next(child_begin(), 2)); in getUpdateExpr()
1902 return cast_or_null<Expr>(*std::next(child_begin(), 2)); in getUpdateExpr()
1912 Expr *getV() { return cast_or_null<Expr>(*std::next(child_begin(), 3)); } in getV()
1914 return cast_or_null<Expr>(*std::next(child_begin(), 3)); in getV()
1917 Expr *getExpr() { return cast_or_null<Expr>(*std::next(child_begin(), 4)); } in getExpr()
1919 return cast_or_null<Expr>(*std::next(child_begin(), 4)); in getExpr()
DOpenMPClause.h221 Expr *getCondition() const { return cast_or_null<Expr>(Condition); } in getCondition()
279 Expr *getCondition() const { return cast_or_null<Expr>(Condition); } in getCondition()
333 Expr *getNumThreads() const { return cast_or_null<Expr>(NumThreads); } in getNumThreads()
389 Expr *getSafelen() const { return cast_or_null<Expr>(Safelen); } in getSafelen()
444 Expr *getSimdlen() const { return cast_or_null<Expr>(Simdlen); } in getSimdlen()
500 Expr *getNumForLoops() const { return cast_or_null<Expr>(NumForLoops); } in getNumForLoops()
822 Expr *getNumForLoops() const { return cast_or_null<Expr>(NumForLoops); } in getNumForLoops()
2939 Expr *getGrainsize() const { return cast_or_null<Expr>(Grainsize); } in getGrainsize()
3022 Expr *getNumTasks() const { return cast_or_null<Expr>(NumTasks); } in getNumTasks()
3075 Expr *getHint() const { return cast_or_null<Expr>(Hint); } in getHint()
DDeclFriend.h95 return cast_or_null<FriendDecl>(NextFriend.get(nullptr)); in getNextFriend()
/external/llvm/include/llvm/IR/
DDebugInfoMetadata.h161 return cast_or_null<Ty>(getOperand(I)); in getOperandAs()
415 DIFile *getFile() const { return cast_or_null<DIFile>(getRawFile()); }
740 if (auto *C = cast_or_null<ConstantAsMetadata>(getExtraData()))
827 return cast_or_null<MDTuple>(getRawElements());
831 return cast_or_null<MDTuple>(getRawTemplateParams());
914 return cast_or_null<MDTuple>(getRawTypeArray());
1018 return cast_or_null<MDTuple>(getRawEnumTypes());
1021 return cast_or_null<MDTuple>(getRawRetainedTypes());
1024 return cast_or_null<MDTuple>(getRawSubprograms());
1027 return cast_or_null<MDTuple>(getRawGlobalVariables());
[all …]
DMetadata.h281 return cast_or_null<ConstantAsMetadata>(getIfExists(C)); in getConstantIfExists()
284 return cast_or_null<LocalAsMetadata>(getIfExists(Local)); in getLocalIfExists()
470 if (auto *V = cast_or_null<ConstantAsMetadata>(MD)) in extract_or_null()
1066 T *operator*() const { return cast_or_null<T>(*I); }
1114 T *operator[](unsigned I) const { return cast_or_null<T>(N->getOperand(I)); }
DOperandTraits.h139 return cast_or_null<VALUECLASS>( \
/external/llvm/lib/IR/
DModule.cpp89 return cast_or_null<GlobalValue>(getValueSymbolTable().lookup(Name)); in getNamedValue()
444 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Dwarf Version")); in getDwarfVersion()
451 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("CodeView")); in getCodeViewFlag()
464 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIC Level")); in getPICLevel()
483 cast_or_null<ConstantAsMetadata>(getModuleFlag("MaxFunctionCount")); in getMaximumFunctionCount()
DDebugLoc.cpp23 return cast_or_null<DILocation>(Loc.get()); in get()
DDIBuilder.cpp396 cast_or_null<MDTuple>(TemplateParams), UniqueIdentifier); in createClassType()
585 auto *N = DIGlobalVariable::get(VMContext, cast_or_null<DIScope>(Context), in createGlobalVariable()
588 cast_or_null<DIDerivedType>(Decl)); in createGlobalVariable()
600 VMContext, cast_or_null<DIScope>(Context), Name, LinkageName, F, in createTempGlobalVariableFwdDecl()
602 cast_or_null<DIDerivedType>(Decl)) in createTempGlobalVariableFwdDecl()
618 DILocalVariable::get(VMContext, cast_or_null<DILocalScope>(Context), Name, in createLocalVariable()
/external/llvm/lib/Analysis/
DTypeBasedAliasAnalysis.cpp387 MDNode *Tag = cast_or_null<MDNode>(getOperand(1)); in isTBAAVtableAccess()
407 A = cast_or_null<MDNode>(A->getOperand(1)); in getMostGenericTBAA()
410 B = cast_or_null<MDNode>(B->getOperand(1)); in getMostGenericTBAA()
421 T = T->getNumOperands() >= 2 ? cast_or_null<MDNode>(T->getOperand(1)) in getMostGenericTBAA()
431 T = T->getNumOperands() >= 2 ? cast_or_null<MDNode>(T->getOperand(1)) in getMostGenericTBAA()
/external/llvm/lib/CodeGen/AsmPrinter/
DDebugLocEntry.h98 auto *Expr = cast_or_null<DIExpression>(Values[0].Expression); in MergeValues()
99 auto *NextExpr = cast_or_null<DIExpression>(Next.Values[0].Expression); in MergeValues()
/external/clang/lib/AST/
DASTImporter.cpp1674 ToEPI.ExceptionSpec.SourceDecl = cast_or_null<FunctionDecl>( in VisitFunctionProtoType()
1676 ToEPI.ExceptionSpec.SourceTemplate = cast_or_null<FunctionDecl>( in VisitFunctionProtoType()
1906 ToD = cast_or_null<NamedDecl>(Importer.GetAlreadyImportedOrNull(D)); in ImportDeclParts()
1921 if (RecordDecl *ToRecord = cast_or_null<RecordDecl>(ToD)) { in ImportDefinitionIfNeeded()
1930 if (EnumDecl *ToEnum = cast_or_null<EnumDecl>(ToD)) { in ImportDefinitionIfNeeded()
2172 ValueDecl *To = cast_or_null<ValueDecl>(Importer.Import(From.getAsDecl())); in ImportTemplateArgument()
2826 ParmVarDecl *ToP = cast_or_null<ParmVarDecl>(Importer.Import(P)); in VisitFunctionDecl()
3414 ParmVarDecl *ToP = cast_or_null<ParmVarDecl>(Importer.Import(FromP)); in VisitObjCMethodDecl()
3477 = cast_or_null<ObjCInterfaceDecl>(Importer.Import(D->getClassInterface())); in VisitObjCCategoryDecl()
3513 = cast_or_null<ObjCProtocolDecl>(Importer.Import(*FromProto)); 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/clang/include/clang/Basic/
DLLVM.h59 using llvm::cast_or_null;
/external/llvm/tools/opt/
DBreakpointPrinter.cpp56 auto *SP = cast_or_null<DISubprogram>(NMD->getOperand(i)); in runOnModule()
/external/clang/lib/Analysis/
DAnalysisDeclContext.cpp366 LOC *L = cast_or_null<LOC>(Contexts.FindNodeOrInsertPos(ID, InsertPos)); in getLocationContext()
384 cast_or_null<StackFrameContext>(Contexts.FindNodeOrInsertPos(ID, InsertPos)); in getStackFrame()
408 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()
917 ElementRegion* R = cast_or_null<ElementRegion>(data); in getElementRegion()
/external/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp465 TypeAliasDecl *AliasInst = cast_or_null<TypeAliasDecl>( in VisitTypeAliasTemplateDecl()
1158 cast_or_null<VarDecl>(VisitVarDecl(Pattern, in VisitVarTemplateDecl()
1232 Instantiated = cast_or_null<FunctionDecl>(VisitCXXMethodDecl(DMethod, in VisitFunctionTemplateDecl()
1235 Instantiated = cast_or_null<FunctionDecl>(VisitFunctionDecl( in VisitFunctionTemplateDecl()
1762 Inh = cast_or_null<CXXConstructorDecl>( in VisitCXXMethodDecl()
2347 cast_or_null<NamedDecl>(SemaRef.FindInstantiatedDecl( in VisitUsingDecl()
2358 PrevDecl = cast_or_null<UsingShadowDecl>(SemaRef.FindInstantiatedDecl( in VisitUsingDecl()
2433 cast_or_null<CXXMethodDecl>(VisitCXXMethodDecl(OldFD, nullptr, true)); in VisitClassScopeFunctionSpecializationDecl()
2759 NamedDecl *D = cast_or_null<NamedDecl>(Visit(P)); in SubstTemplateParams()
3103 cast_or_null<ParmVarDecl>(VisitParmVarDecl(OldParam)); in SubstFunctionType()
[all …]
/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