Searched refs:cast_or_null (Results 1 - 25 of 105) sorted by relevance

12345

/external/swiftshader/third_party/LLVM/unittests/Support/
H A DCasting.cpp51 return cast_or_null<foo>(this);
102 TEST(CastingTest, cast_or_null) {
103 const foo *F11 = cast_or_null<foo>(B2);
105 const foo *F12 = cast_or_null<foo>(B2);
107 const foo *F13 = cast_or_null<foo>(B4);
109 const foo *F14 = cast_or_null<foo>(fub()); // Shouldn't print.
145 //foo &F23 = cast_or_null<foo>(B1);
146 //const foo &F24 = cast_or_null<foo>(B3);
/external/clang/include/clang/AST/
H A DExprOpenMP.h91 Expr *getLowerBound() { return cast_or_null<Expr>(SubExprs[LOWER_BOUND]); }
93 return cast_or_null<Expr>(SubExprs[LOWER_BOUND]);
99 Expr *getLength() { return cast_or_null<Expr>(SubExprs[LENGTH]); }
100 const Expr *getLength() const { return cast_or_null<Expr>(SubExprs[LENGTH]); }
H A DStmtCXX.h156 return cast_or_null<DeclStmt>(SubExprs[BEGINSTMT]);
158 DeclStmt *getEndStmt() { return cast_or_null<DeclStmt>(SubExprs[ENDSTMT]); }
159 Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); }
160 Expr *getInc() { return cast_or_null<Expr>(SubExprs[INC]); }
168 return cast_or_null<DeclStmt>(SubExprs[BEGINSTMT]);
171 return cast_or_null<DeclStmt>(SubExprs[ENDSTMT]);
174 return cast_or_null<Expr>(SubExprs[COND]);
177 return cast_or_null<Expr>(SubExprs[INC]);
H A DStmtObjC.h208 return cast_or_null<ObjCAtCatchStmt>(getStmts()[I + 1]);
214 return cast_or_null<ObjCAtCatchStmt>(getStmts()[I + 1]);
228 return cast_or_null<ObjCAtFinallyStmt>(getStmts()[1 + NumCatchStmts]);
234 return cast_or_null<ObjCAtFinallyStmt>(getStmts()[1 + NumCatchStmts]);
H A 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<VarTemplateDec
[all...]
/external/llvm/unittests/Support/
H A DCasting.cpp55 return cast_or_null<foo>(this);
128 TEST(CastingTest, cast_or_null) {
129 const foo *F11 = cast_or_null<foo>(B2);
131 const foo *F12 = cast_or_null<foo>(B2);
133 const foo *F13 = cast_or_null<foo>(B4);
135 const foo *F14 = cast_or_null<foo>(fub()); // Shouldn't print.
172 //foo &F23 = cast_or_null<foo>(B1);
173 //const foo &F24 = cast_or_null<foo>(B3);
307 EXPECT_TRUE(cast_or_null<pointer_wrappers::Derived>(MN) == nullptr);
308 EXPECT_TRUE(cast_or_null<pointer_wrapper
[all...]
/external/swiftshader/third_party/LLVM/lib/VMCore/
H A DIntrinsicInst.cpp57 if (MDNode* MD = cast_or_null<MDNode>(getArgOperand(0)))
/external/clang/lib/AST/
H A DDeclOpenMP.cpp77 return cast_or_null<OMPDeclareReductionDecl>(
82 return cast_or_null<OMPDeclareReductionDecl>(
H A DDeclFriend.cpp23 return cast_or_null<FriendDecl>(
H A DASTImporter.cpp1757 ToEPI.ExceptionSpec.SourceDecl = cast_or_null<FunctionDecl>(
1759 ToEPI.ExceptionSpec.SourceTemplate = cast_or_null<FunctionDecl>(
1838 CXXRecordDecl *D = cast_or_null<CXXRecordDecl>(Importer.Import(T->getDecl()));
1901 cast_or_null<TemplateTypeParmDecl>(Importer.Import(T->getDecl()));
2022 ToD = cast_or_null<NamedDecl>(Importer.GetAlreadyImportedOrNull(D));
2037 if (RecordDecl *ToRecord = cast_or_null<RecordDecl>(ToD)) {
2046 if (EnumDecl *ToEnum = cast_or_null<EnumDecl>(ToD)) {
2293 ValueDecl *To = cast_or_null<ValueDecl>(Importer.Import(From.getAsDecl()));
2628 LabelStmt *Label = cast_or_null<LabelStmt>(Importer.Import(D->getStmt()));
3029 ParmVarDecl *ToP = cast_or_null<ParmVarDec
[all...]
/external/clang/include/clang/Basic/
H A DLLVM.h59 using llvm::cast_or_null;
/external/llvm/tools/opt/
H A DBreakpointPrinter.cpp50 auto *SP = cast_or_null<DISubprogram>(NMD->getOperand(i));
/external/llvm/lib/IR/
H A DDebugLoc.cpp22 return cast_or_null<DILocation>(Loc.get());
H A DModule.cpp92 return cast_or_null<GlobalValue>(getValueSymbolTable().lookup(Name));
467 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Dwarf Version"));
474 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("CodeView"));
487 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIC Level"));
501 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIE Level"));
/external/llvm/lib/Transforms/Scalar/
H A DLoopSimplifyCFG.cpp48 BasicBlock *Succ = cast_or_null<BasicBlock>(Block);
/external/llvm/include/llvm/IR/
H A DDebugInfoMetadata.h76 T *resolve() const { return const_cast<T *>(cast_or_null<T>(MD)); }
149 return cast_or_null<Ty>(getOperand(I));
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<MDTupl
[all...]
H A DOperandTraits.h139 return cast_or_null<VALUECLASS>( \
H A DMetadata.h341 return cast_or_null<ConstantAsMetadata>(getIfExists(C));
344 return cast_or_null<LocalAsMetadata>(getIfExists(Local));
458 /// mdconst::extract_or_null <=> cast_or_null
525 /// As an analogue to \a cast_or_null(), extract the \a Value subclass \c X
530 if (auto *V = cast_or_null<ConstantAsMetadata>(MD))
1136 T *operator*() const { return cast_or_null<T>(*I); }
1184 T *operator[](unsigned I) const { return cast_or_null<T>(N->getOperand(I)); }
/external/llvm/lib/Analysis/
H A DTypeBasedAliasAnalysis.cpp386 MDNode *Tag = cast_or_null<MDNode>(getOperand(1));
406 A = cast_or_null<MDNode>(A->getOperand(1));
409 B = cast_or_null<MDNode>(B->getOperand(1));
420 T = T->getNumOperands() >= 2 ? cast_or_null<MDNode>(T->getOperand(1))
430 T = T->getNumOperands() >= 2 ? cast_or_null<MDNode>(T->getOperand(1))
/external/swiftshader/third_party/LLVM/include/llvm/
H A DOperandTraits.h139 return cast_or_null<VALUECLASS>( \
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
H A DOperandTraits.h139 return cast_or_null<VALUECLASS>( \
H A DMetadata.h355 return cast_or_null<ConstantAsMetadata>(getIfExists(C));
358 return cast_or_null<LocalAsMetadata>(getIfExists(Local));
474 /// mdconst::extract_or_null <=> cast_or_null
543 /// As an analogue to \a cast_or_null(), extract the \a Value subclass \c X
548 if (auto *V = cast_or_null<ConstantAsMetadata>(MD))
1166 T *operator*() const { return cast_or_null<T>(*I); }
1217 T *operator[](unsigned I) const { return cast_or_null<T>(N->getOperand(I)); }
/external/llvm/include/llvm/Support/
H A DCasting.h10 // This file defines the isa<X>(), cast<X>(), dyn_cast<X>(), cast_or_null<X>(),
214 // on failure. It does not allow a null argument (use cast_or_null for that).
242 // cast_or_null<X> - Functionally identical to cast, except that a null value is
248 cast_or_null(const Y &Val) { function in namespace:llvm
251 assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
258 cast_or_null(Y &Val) { function in namespace:llvm
261 assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
267 cast_or_null(Y *Val) { function in namespace:llvm
269 assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
H A DCasting.h10 // This file defines the isa<X>(), cast<X>(), dyn_cast<X>(), cast_or_null<X>(),
213 // on failure. It does not allow a null argument (use cast_or_null for that).
241 // cast_or_null<X> - Functionally identical to cast, except that a null value is
248 cast_or_null(const Y &Val) { function in namespace:llvm
251 assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
259 cast_or_null(Y &Val) { function in namespace:llvm
262 assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
268 cast_or_null(Y *Val) { function in namespace:llvm
270 assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
/external/llvm/lib/Transforms/Utils/
H A DValueMapper.cpp138 return cast_or_null<Constant>(mapValue(C));
501 BB = cast_or_null<BasicBlock>(mapValue(BA.getBasicBlock()));
849 BasicBlock *BB = cast_or_null<BasicBlock>(mapValue(DBB.OldBB));
884 MDNode *New = cast_or_null<MDNode>(mapMetadata(Old));
970 NewV = cast_or_null<Constant>(mapValue(V));
1081 return cast_or_null<Constant>(mapValue(C));
1089 return cast_or_null<MDNode>(mapMetadata(N));

Completed in 455 milliseconds

12345