/external/swiftshader/third_party/LLVM/unittests/Support/ |
H A D | Casting.cpp | 51 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 D | ExprOpenMP.h | 91 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 D | StmtCXX.h | 156 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 D | StmtObjC.h | 208 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 D | DeclTemplate.h | 926 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 D | Casting.cpp | 55 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 D | IntrinsicInst.cpp | 57 if (MDNode* MD = cast_or_null<MDNode>(getArgOperand(0)))
|
/external/clang/lib/AST/ |
H A D | DeclOpenMP.cpp | 77 return cast_or_null<OMPDeclareReductionDecl>( 82 return cast_or_null<OMPDeclareReductionDecl>(
|
H A D | DeclFriend.cpp | 23 return cast_or_null<FriendDecl>(
|
H A D | ASTImporter.cpp | 1757 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 D | LLVM.h | 59 using llvm::cast_or_null;
|
/external/llvm/tools/opt/ |
H A D | BreakpointPrinter.cpp | 50 auto *SP = cast_or_null<DISubprogram>(NMD->getOperand(i));
|
/external/llvm/lib/IR/ |
H A D | DebugLoc.cpp | 22 return cast_or_null<DILocation>(Loc.get());
|
H A D | Module.cpp | 92 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 D | LoopSimplifyCFG.cpp | 48 BasicBlock *Succ = cast_or_null<BasicBlock>(Block);
|
/external/llvm/include/llvm/IR/ |
H A D | DebugInfoMetadata.h | 76 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 D | OperandTraits.h | 139 return cast_or_null<VALUECLASS>( \
|
H A D | Metadata.h | 341 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 D | TypeBasedAliasAnalysis.cpp | 386 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 D | OperandTraits.h | 139 return cast_or_null<VALUECLASS>( \
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
H A D | OperandTraits.h | 139 return cast_or_null<VALUECLASS>( \
|
H A D | Metadata.h | 355 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 D | Casting.h | 10 // 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 D | Casting.h | 10 // 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 D | ValueMapper.cpp | 138 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));
|