Home
last modified time | relevance | path

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

1234567891011

/external/llvm-project/clang/lib/Tooling/Syntax/
DNodes.cpp200 return cast_or_null<syntax::Expression>( in getLhs()
205 return cast_or_null<syntax::Leaf>(findChild(syntax::NodeRole::OperatorToken)); in getOperatorToken()
209 return cast_or_null<syntax::Expression>(findChild(syntax::NodeRole::Operand)); in getOperand()
213 return cast_or_null<syntax::Leaf>(findChild(syntax::NodeRole::OperatorToken)); in getOperatorToken()
217 return cast_or_null<syntax::Expression>( in getRhs()
222 return cast_or_null<syntax::Leaf>( in getSwitchKeyword()
227 return cast_or_null<syntax::Statement>( in getBody()
232 return cast_or_null<syntax::Leaf>( in getCaseKeyword()
237 return cast_or_null<syntax::Expression>( in getCaseValue()
242 return cast_or_null<syntax::Statement>( in getBody()
[all …]
/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/llvm-project/llvm/unittests/Support/
DCasting.cpp66 return cast_or_null<foo>(this); in caz()
152 TEST(CastingTest, cast_or_null) { in TEST() argument
153 const foo *F11 = cast_or_null<foo>(B2); in TEST()
155 const foo *F12 = cast_or_null<foo>(B2); in TEST()
157 const foo *F13 = cast_or_null<foo>(B4); in TEST()
159 const foo *F14 = cast_or_null<foo>(fub()); // Shouldn't print. in TEST()
165 auto FP = cast_or_null<foo>(std::move(BP)); in TEST()
387 EXPECT_TRUE(cast_or_null<pointer_wrappers::Derived>(MN) == nullptr); in TEST()
388 EXPECT_TRUE(cast_or_null<pointer_wrappers::Derived>(CN) == nullptr); in TEST()
389 EXPECT_TRUE(cast_or_null<pointer_wrappers::Derived>(MD) == &D); in TEST()
[all …]
/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[BEGINSTMT]); in getBeginStmt()
158 DeclStmt *getEndStmt() { return cast_or_null<DeclStmt>(SubExprs[ENDSTMT]); } in getEndStmt()
159 Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); } in getCond()
160 Expr *getInc() { return cast_or_null<Expr>(SubExprs[INC]); } in getInc()
168 return cast_or_null<DeclStmt>(SubExprs[BEGINSTMT]); in getBeginStmt()
171 return cast_or_null<DeclStmt>(SubExprs[ENDSTMT]); in getEndStmt()
174 return cast_or_null<Expr>(SubExprs[COND]); in getCond()
177 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()
/external/llvm-project/clang/include/clang/AST/
DStmtCXX.h163 return cast_or_null<DeclStmt>(SubExprs[BEGINSTMT]); in getBeginStmt()
165 DeclStmt *getEndStmt() { return cast_or_null<DeclStmt>(SubExprs[ENDSTMT]); } in getEndStmt()
166 Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); } in getCond()
167 Expr *getInc() { return cast_or_null<Expr>(SubExprs[INC]); } in getInc()
175 return cast_or_null<DeclStmt>(SubExprs[BEGINSTMT]); in getBeginStmt()
178 return cast_or_null<DeclStmt>(SubExprs[ENDSTMT]); in getEndStmt()
181 return cast_or_null<Expr>(SubExprs[COND]); in getCond()
184 return cast_or_null<Expr>(SubExprs[INC]); in getInc()
404 return cast_or_null<Expr>(getStoredStmts()[SubStmt::Allocate]); in getAllocate()
407 return cast_or_null<Expr>(getStoredStmts()[SubStmt::Deallocate]); in getDeallocate()
DExprOpenMP.h94 Expr *getLowerBound() { return cast_or_null<Expr>(SubExprs[LOWER_BOUND]); } in getLowerBound()
96 return cast_or_null<Expr>(SubExprs[LOWER_BOUND]); in getLowerBound()
102 Expr *getLength() { return cast_or_null<Expr>(SubExprs[LENGTH]); } in getLength()
103 const Expr *getLength() const { return cast_or_null<Expr>(SubExprs[LENGTH]); } in getLength()
108 Expr *getStride() { return cast_or_null<Expr>(SubExprs[STRIDE]); } in getStride()
109 const Expr *getStride() const { return cast_or_null<Expr>(SubExprs[STRIDE]); } in getStride()
DStmtObjC.h219 return cast_or_null<ObjCAtCatchStmt>(getStmts()[I + 1]); in getCatchStmt()
225 return cast_or_null<ObjCAtCatchStmt>(getStmts()[I + 1]); in getCatchStmt()
239 return cast_or_null<ObjCAtFinallyStmt>(getStmts()[1 + NumCatchStmts]); in getFinallyStmt()
245 return cast_or_null<ObjCAtFinallyStmt>(getStmts()[1 + NumCatchStmts]); in getFinallyStmt()
DStmtOpenMP.h429 return cast_or_null<Expr>(Data->getChildren()[0]); in getTaskReductionRefExpr()
1305 return cast_or_null<Expr>(Data->getChildren()[numLoopChildren( in getTaskReductionRefExpr()
1449 return cast_or_null<Expr>(Data->getChildren()[0]); in getTaskReductionRefExpr()
1772 return cast_or_null<Expr>(Data->getChildren()[numLoopChildren( in getTaskReductionRefExpr()
1906 return cast_or_null<Expr>(Data->getChildren()[0]); in getTaskReductionRefExpr()
1985 return cast_or_null<Expr>(Data->getChildren()[0]); in getTaskReductionRefExpr()
2258 Expr *getReductionRef() { return cast_or_null<Expr>(Data->getChildren()[0]); } in getReductionRef()
2517 Expr *getX() { return cast_or_null<Expr>(Data->getChildren()[0]); } in getX()
2519 return cast_or_null<Expr>(Data->getChildren()[0]); in getX()
2524 Expr *getUpdateExpr() { return cast_or_null<Expr>(Data->getChildren()[1]); } in getUpdateExpr()
[all …]
/external/llvm-project/llvm/lib/IR/
DModule.cpp114 return cast_or_null<GlobalValue>(getValueSymbolTable().lookup(Name)); in getNamedValue()
499 cast_or_null<ConstantAsMetadata>(getModuleFlag("NumRegisterParameters")); in getNumberRegisterParameters()
506 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Dwarf Version")); in getDwarfVersion()
513 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("CodeView")); in getCodeViewFlag()
533 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIC Level")); in getPICLevel()
547 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIE Level")); in getPIELevel()
561 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Code Model")); in getCodeModel()
593 auto *Val = cast_or_null<ConstantAsMetadata>(MF); in getSemanticInterposition()
607 auto *Val = cast_or_null<ConstantAsMetadata>(MF); in noSemanticInterposition()
616 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("RtLibUseGOT")); in getRtLibUseGOT()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DDebugInfoMetadata.h80 return cast_or_null<DIType>(N->getOperand(I));
91 DIType *operator*() const { return cast_or_null<DIType>(*I); }
132 return cast_or_null<Ty>(getOperand(I)); in getOperandAs()
407 DIFile *getFile() const { return cast_or_null<DIFile>(getRawFile()); } in getFile()
628 DIScope *getScope() const { return cast_or_null<DIScope>(getRawScope()); } in getScope()
823 DIType *getBaseType() const { return cast_or_null<DIType>(getRawBaseType()); } in getBaseType()
845 return cast_or_null<DIType>(getExtraData()); in getClassType()
854 if (auto *CM = cast_or_null<ConstantAsMetadata>(getExtraData())) in getVBPtrOffset()
862 if (auto *C = cast_or_null<ConstantAsMetadata>(getExtraData())) in getStorageOffsetInBits()
869 if (auto *C = cast_or_null<ConstantAsMetadata>(getExtraData())) in getConstant()
[all …]
/external/llvm-project/llvm/include/llvm/IR/
DDebugInfoMetadata.h80 return cast_or_null<DIType>(N->getOperand(I));
91 DIType *operator*() const { return cast_or_null<DIType>(*I); }
132 return cast_or_null<Ty>(getOperand(I)); in getOperandAs()
477 DIFile *getFile() const { return cast_or_null<DIFile>(getRawFile()); } in getFile()
700 DIScope *getScope() const { return cast_or_null<DIScope>(getRawScope()); } in getScope()
890 return cast_or_null<DIVariable>(getRawStringLength()); in getStringLength()
894 return cast_or_null<DIExpression>(getRawStringLengthExp()); in getStringLengthExp()
977 DIType *getBaseType() const { return cast_or_null<DIType>(getRawBaseType()); } in getBaseType()
999 return cast_or_null<DIType>(getExtraData()); in getClassType()
1008 if (auto *CM = cast_or_null<ConstantAsMetadata>(getExtraData())) in getVBPtrOffset()
[all …]
/external/llvm-project/clang/lib/AST/
DDeclOpenMP.cpp127 return cast_or_null<OMPDeclareReductionDecl>( in getPrevDeclInScope()
132 return cast_or_null<OMPDeclareReductionDecl>( in getPrevDeclInScope()
159 return cast_or_null<OMPDeclareMapperDecl>( in getPrevDeclInScope()
164 return cast_or_null<OMPDeclareMapperDecl>( in getPrevDeclInScope()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DModule.cpp114 return cast_or_null<GlobalValue>(getValueSymbolTable().lookup(Name)); in getNamedValue()
471 cast_or_null<ConstantAsMetadata>(getModuleFlag("NumRegisterParameters")); in getNumberRegisterParameters()
478 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Dwarf Version")); in getDwarfVersion()
485 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("CodeView")); in getCodeViewFlag()
505 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIC Level")); in getPICLevel()
519 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIE Level")); in getPIELevel()
533 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Code Model")); in getCodeModel()
567 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("RtLibUseGOT")); in getRtLibUseGOT()
/external/llvm/include/llvm/IR/
DDebugInfoMetadata.h76 T *resolve() const { return const_cast<T *>(cast_or_null<T>(MD)); } in resolve()
149 return cast_or_null<Ty>(getOperand(I)); in getOperandAs()
407 DIFile *getFile() const { return cast_or_null<DIFile>(getRawFile()); }
746 if (auto *C = cast_or_null<ConstantAsMetadata>(getExtraData()))
752 if (auto *C = cast_or_null<ConstantAsMetadata>(getExtraData()))
883 return cast_or_null<MDTuple>(getRawElements());
887 return cast_or_null<MDTuple>(getRawTemplateParams());
971 return cast_or_null<MDTuple>(getRawTypeArray());
1083 return cast_or_null<MDTuple>(getRawEnumTypes());
1086 return cast_or_null<MDTuple>(getRawRetainedTypes());
[all …]
/external/clang/lib/AST/
DDeclOpenMP.cpp77 return cast_or_null<OMPDeclareReductionDecl>( in getPrevDeclInScope()
82 return cast_or_null<OMPDeclareReductionDecl>( in getPrevDeclInScope()
DASTImporter.cpp1757 ToEPI.ExceptionSpec.SourceDecl = cast_or_null<FunctionDecl>( in VisitFunctionProtoType()
1759 ToEPI.ExceptionSpec.SourceTemplate = cast_or_null<FunctionDecl>( in VisitFunctionProtoType()
1838 CXXRecordDecl *D = cast_or_null<CXXRecordDecl>(Importer.Import(T->getDecl())); in VisitInjectedClassNameType()
1901 cast_or_null<TemplateTypeParmDecl>(Importer.Import(T->getDecl())); in VisitTemplateTypeParmType()
2022 ToD = cast_or_null<NamedDecl>(Importer.GetAlreadyImportedOrNull(D)); in ImportDeclParts()
2037 if (RecordDecl *ToRecord = cast_or_null<RecordDecl>(ToD)) { in ImportDefinitionIfNeeded()
2046 if (EnumDecl *ToEnum = cast_or_null<EnumDecl>(ToD)) { in ImportDefinitionIfNeeded()
2293 ValueDecl *To = cast_or_null<ValueDecl>(Importer.Import(From.getAsDecl())); in ImportTemplateArgument()
2628 LabelStmt *Label = cast_or_null<LabelStmt>(Importer.Import(D->getStmt())); in VisitLabelDecl()
3029 ParmVarDecl *ToP = cast_or_null<ParmVarDecl>(Importer.Import(P)); in VisitFunctionDecl()
[all …]
/external/llvm/lib/Analysis/
DTypeBasedAliasAnalysis.cpp386 MDNode *Tag = cast_or_null<MDNode>(getOperand(1)); in isTBAAVtableAccess()
406 A = cast_or_null<MDNode>(A->getOperand(1)); in getMostGenericTBAA()
409 B = cast_or_null<MDNode>(B->getOperand(1)); in getMostGenericTBAA()
420 T = T->getNumOperands() >= 2 ? cast_or_null<MDNode>(T->getOperand(1)) in getMostGenericTBAA()
430 T = T->getNumOperands() >= 2 ? cast_or_null<MDNode>(T->getOperand(1)) in getMostGenericTBAA()
/external/llvm/lib/IR/
DModule.cpp92 return cast_or_null<GlobalValue>(getValueSymbolTable().lookup(Name)); in getNamedValue()
467 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Dwarf Version")); in getDwarfVersion()
474 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("CodeView")); in getCodeViewFlag()
487 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIC Level")); in getPICLevel()
501 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIE Level")); in getPIELevel()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DMemorySSAUpdater.cpp283 if (MemoryPhi *Phi = cast_or_null<MemoryPhi>(MP)) in insertUse()
372 if (const auto *RealPHI = cast_or_null<MemoryPhi>(VH)) in insertDef()
556 cast_or_null<Instruction>(VMap.lookup(DefMUDI))) { in getNewDefiningAccessForClone()
668 if (BasicBlock *NewIncBB = cast_or_null<BasicBlock>(VMap.lookup(IncBB))) in updateForClonedLoop()
686 cast_or_null<Instruction>(VMap.lookup(IncI))) { in updateForClonedLoop()
704 BasicBlock *NewBlock = cast_or_null<BasicBlock>(VMap.lookup(BB)); in updateForClonedLoop()
753 if (BasicBlock *NewExit = cast_or_null<BasicBlock>(VMap->lookup(Exit))) { in privateUpdateExitBlocksForClonedLoop()
1049 if (auto *MPhi = cast_or_null<MemoryPhi>(VH)) in applyInsertUpdates()
1340 cast_or_null<MemoryPhi>(PhisToOptimize.pop_back_val())) in removeMemoryAccess()
1379 if (auto *MPhi = cast_or_null<MemoryPhi>(VH)) in tryRemoveTrivialPhis()
/external/llvm-project/llvm/lib/Analysis/
DMemorySSAUpdater.cpp285 if (MemoryPhi *Phi = cast_or_null<MemoryPhi>(MP)) in insertUse()
375 if (const auto *RealPHI = cast_or_null<MemoryPhi>(VH)) in insertDef()
582 cast_or_null<Instruction>(VMap.lookup(DefMUDI))) { in getNewDefiningAccessForClone()
694 if (BasicBlock *NewIncBB = cast_or_null<BasicBlock>(VMap.lookup(IncBB))) in updateForClonedLoop()
712 cast_or_null<Instruction>(VMap.lookup(IncI))) { in updateForClonedLoop()
734 BasicBlock *NewBlock = cast_or_null<BasicBlock>(VMap.lookup(BB)); in updateForClonedLoop()
783 if (BasicBlock *NewExit = cast_or_null<BasicBlock>(VMap->lookup(Exit))) { in privateUpdateExitBlocksForClonedLoop()
1086 if (auto *MPhi = cast_or_null<MemoryPhi>(VH)) in applyInsertUpdates()
1362 cast_or_null<MemoryPhi>(PhisToOptimize.pop_back_val())) in removeMemoryAccess()
1401 if (auto *MPhi = cast_or_null<MemoryPhi>(VH)) in tryRemoveTrivialPhis()
/external/llvm-project/clang-tools-extra/clangd/
DSemanticSelection.cpp60 const auto *LBrace = cast_or_null<syntax::Leaf>( in extractFoldingRange()
65 const auto *RBrace = cast_or_null<syntax::Leaf>( in extractFoldingRange()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DCasting.h286 cast_or_null(const Y &Val) {
297 cast_or_null(Y &Val) {
306 cast_or_null(Y *Val) {
314 cast_or_null(std::unique_ptr<Y> &&Val) {
/external/llvm-project/llvm/include/llvm/Support/
DCasting.h290 cast_or_null(const Y &Val) {
300 cast_or_null(Y &Val) {
309 cast_or_null(Y *Val) {
317 cast_or_null(std::unique_ptr<Y> &&Val) {

1234567891011