Home
last modified time | relevance | path

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

123456

/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/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DCasting.cpp67 return cast_or_null<foo>(this); in caz()
147 TEST(CastingTest, cast_or_null) { in TEST() argument
148 const foo *F11 = cast_or_null<foo>(B2); in TEST()
150 const foo *F12 = cast_or_null<foo>(B2); in TEST()
152 const foo *F13 = cast_or_null<foo>(B4); in TEST()
154 const foo *F14 = cast_or_null<foo>(fub()); // Shouldn't print. in TEST()
160 auto FP = cast_or_null<foo>(std::move(BP)); in TEST()
382 EXPECT_TRUE(cast_or_null<pointer_wrappers::Derived>(MN) == nullptr); in TEST()
383 EXPECT_TRUE(cast_or_null<pointer_wrappers::Derived>(CN) == nullptr); in TEST()
384 EXPECT_TRUE(cast_or_null<pointer_wrappers::Derived>(MD) == &D); in TEST()
[all …]
/external/swiftshader/third_party/LLVM/unittests/Support/
DCasting.cpp51 return cast_or_null<foo>(this); in caz()
102 TEST(CastingTest, cast_or_null) { in TEST() argument
103 const foo *F11 = cast_or_null<foo>(B2); in TEST()
105 const foo *F12 = cast_or_null<foo>(B2); in TEST()
107 const foo *F13 = cast_or_null<foo>(B4); in TEST()
109 const foo *F14 = cast_or_null<foo>(fub()); // Shouldn't print. 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[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()
DDeclTemplate.h926 return cast_or_null<FunctionTemplateDecl>(
933 return cast_or_null<FunctionTemplateDecl>(
947 return cast_or_null<FunctionTemplateDecl>(
2031 return cast_or_null<ClassTemplateDecl>(
2038 return cast_or_null<ClassTemplateDecl>(
2052 return cast_or_null<ClassTemplateDecl>(
2260 return cast_or_null<TypeAliasTemplateDecl>(
2267 return cast_or_null<TypeAliasTemplateDecl>(
2273 return cast_or_null<TypeAliasTemplateDecl>(
2840 return cast_or_null<VarTemplateDecl>(
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DModule.cpp113 return cast_or_null<GlobalValue>(getValueSymbolTable().lookup(Name)); in getNamedValue()
447 cast_or_null<ConstantAsMetadata>(getModuleFlag("NumRegisterParameters")); in getNumberRegisterParameters()
454 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Dwarf Version")); in getDwarfVersion()
461 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("CodeView")); in getCodeViewFlag()
481 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIC Level")); in getPICLevel()
495 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIE Level")); in getPIELevel()
521 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("RtLibUseGOT")); in getRtLibUseGOT()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DDebugInfoMetadata.h92 T *resolve() const { return const_cast<T *>(cast_or_null<T>(MD)); } in resolve()
169 return cast_or_null<Ty>(getOperand(I)); in getOperandAs()
455 DIFile *getFile() const { return cast_or_null<DIFile>(getRawFile()); }
898 if (auto *CM = cast_or_null<ConstantAsMetadata>(getExtraData()))
906 if (auto *C = cast_or_null<ConstantAsMetadata>(getExtraData()))
913 if (auto *C = cast_or_null<ConstantAsMetadata>(getExtraData()))
919 if (auto *C = cast_or_null<ConstantAsMetadata>(getExtraData()))
1053 return cast_or_null<MDTuple>(getRawElements());
1057 return cast_or_null<MDTuple>(getRawTemplateParams());
1145 return cast_or_null<MDTuple>(getRawTypeArray());
[all …]
/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/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()
DDIBuilder.cpp371 cast_or_null<MDTuple>(TemplateParams), UniqueIdentifier); in createClassType()
543 VMContext, cast_or_null<DIScope>(Context), Name, LinkageName, F, in createGlobalVariable()
545 cast_or_null<DIDerivedType>(Decl)); in createGlobalVariable()
557 VMContext, cast_or_null<DIScope>(Context), Name, LinkageName, F, in createTempGlobalVariableFwdDecl()
559 cast_or_null<DIDerivedType>(Decl)) in createTempGlobalVariableFwdDecl()
575 DILocalVariable::get(VMContext, cast_or_null<DILocalScope>(Context), Name, in createLocalVariable()
/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 …]
DDeclFriend.cpp23 return cast_or_null<FriendDecl>( in getNextFriendSlowCase()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DCasting.h277 cast_or_null(const Y &Val) {
288 cast_or_null(Y &Val) {
297 cast_or_null(Y *Val) {
305 cast_or_null(std::unique_ptr<Y> &&Val) {
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DValueMapper.cpp150 return cast_or_null<Constant>(mapValue(C)); in mapConstant()
502 BB = cast_or_null<BasicBlock>(mapValue(BA.getBasicBlock())); in mapBlockAddress()
865 BasicBlock *BB = cast_or_null<BasicBlock>(mapValue(DBB.OldBB)); in flush()
900 MDNode *New = cast_or_null<MDNode>(mapMetadata(Old)); in remapInstruction()
989 NewV = cast_or_null<Constant>(mapValue(V)); in mapAppendingVariable()
1102 return cast_or_null<Constant>(mapValue(C)); in mapConstant()
1110 return cast_or_null<MDNode>(mapMetadata(N)); in mapMDNode()
/external/llvm/lib/Transforms/Utils/
DValueMapper.cpp138 return cast_or_null<Constant>(mapValue(C)); in mapConstant()
501 BB = cast_or_null<BasicBlock>(mapValue(BA.getBasicBlock())); in mapBlockAddress()
849 BasicBlock *BB = cast_or_null<BasicBlock>(mapValue(DBB.OldBB)); in flush()
884 MDNode *New = cast_or_null<MDNode>(mapMetadata(Old)); in remapInstruction()
970 NewV = cast_or_null<Constant>(mapValue(V)); in mapAppendingVariable()
1081 return cast_or_null<Constant>(mapValue(C)); in mapConstant()
1089 return cast_or_null<MDNode>(mapMetadata(N)); in mapMDNode()
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DCasting.h248 cast_or_null(const Y &Val) {
259 cast_or_null(Y &Val) {
268 cast_or_null(Y *Val) {
/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/swiftshader/third_party/LLVM/lib/VMCore/
DIntrinsicInst.cpp57 if (MDNode* MD = cast_or_null<MDNode>(getArgOperand(0))) in getAddress()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/opt/
DBreakpointPrinter.cpp50 auto *SP = cast_or_null<DISubprogram>(NMD->getOperand(i)); in runOnModule()
/external/llvm/tools/opt/
DBreakpointPrinter.cpp50 auto *SP = cast_or_null<DISubprogram>(NMD->getOperand(i)); in runOnModule()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DLoopSimplifyCFG.cpp51 BasicBlock *Succ = cast_or_null<BasicBlock>(Block); in simplifyLoopCFG()

123456