/external/llvm/unittests/Support/ |
D | Casting.cpp | 63 return dyn_cast_or_null<foo>(this); in naz() 155 TEST(CastingTest, dyn_cast_or_null) { in TEST() argument 156 const foo *F1 = dyn_cast_or_null<foo>(B2); in TEST() 158 const foo *F2 = dyn_cast_or_null<foo>(B2); in TEST() 160 const foo *F3 = dyn_cast_or_null<foo>(B4); in TEST() 162 foo *F4 = dyn_cast_or_null<foo>(fub()); in TEST() 321 EXPECT_TRUE(dyn_cast_or_null<pointer_wrappers::Derived>(MN) == nullptr); in TEST() 322 EXPECT_TRUE(dyn_cast_or_null<pointer_wrappers::Derived>(CN) == nullptr); in TEST() 323 EXPECT_TRUE(dyn_cast_or_null<pointer_wrappers::Derived>(MB) == nullptr); in TEST() 324 EXPECT_TRUE(dyn_cast_or_null<pointer_wrappers::Derived>(CB) == nullptr); in TEST() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/ |
D | Casting.cpp | 75 return dyn_cast_or_null<foo>(this); in naz() 178 TEST(CastingTest, dyn_cast_or_null) { in TEST() argument 179 const foo *F1 = dyn_cast_or_null<foo>(B2); in TEST() 181 const foo *F2 = dyn_cast_or_null<foo>(B2); in TEST() 183 const foo *F3 = dyn_cast_or_null<foo>(B4); in TEST() 185 foo *F4 = dyn_cast_or_null<foo>(fub()); in TEST() 396 EXPECT_TRUE(dyn_cast_or_null<pointer_wrappers::Derived>(MN) == nullptr); in TEST() 397 EXPECT_TRUE(dyn_cast_or_null<pointer_wrappers::Derived>(CN) == nullptr); in TEST() 398 EXPECT_TRUE(dyn_cast_or_null<pointer_wrappers::Derived>(MB) == nullptr); in TEST() 399 EXPECT_TRUE(dyn_cast_or_null<pointer_wrappers::Derived>(CB) == nullptr); in TEST() [all …]
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | CheckerHelpers.cpp | 81 if (auto Assign = dyn_cast_or_null<BinaryOperator>(S)) { in parseAssignment() 85 if (auto DE = dyn_cast_or_null<DeclRefExpr>(Assign->getLHS())) in parseAssignment() 86 VD = dyn_cast_or_null<VarDecl>(DE->getDecl()); in parseAssignment() 88 } else if (auto PD = dyn_cast_or_null<DeclStmt>(S)) { in parseAssignment() 91 VD = dyn_cast_or_null<VarDecl>(PD->getSingleDecl()); in parseAssignment()
|
D | IssueHash.cpp | 53 llvm::dyn_cast_or_null<FunctionType>(Target->getType().getTypePtr()); in GetSignature() 66 dyn_cast_or_null<FunctionProtoType>(Target->getType().getTypePtr())) { in GetSignature() 101 DeclName = GetSignature(dyn_cast_or_null<FunctionDecl>(ND)); in GetEnclosingDeclContextSignature()
|
/external/swiftshader/third_party/LLVM/unittests/Support/ |
D | Casting.cpp | 59 return dyn_cast_or_null<foo>(this); in naz() 128 TEST(CastingTest, dyn_cast_or_null) { in TEST() argument 129 const foo *F1 = dyn_cast_or_null<foo>(B2); in TEST() 131 const foo *F2 = dyn_cast_or_null<foo>(B2); in TEST() 133 const foo *F3 = dyn_cast_or_null<foo>(B4); in TEST() 135 foo *F4 = dyn_cast_or_null<foo>(fub()); in TEST()
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | DebugInfo.cpp | 60 if (MDString *MDS = dyn_cast_or_null<MDString>(DbgNode->getOperand(Elt))) in getStringField() 83 DIDescriptor(dyn_cast_or_null<const MDNode>(DbgNode->getOperand(Elt))); in getDescriptorField() 92 return dyn_cast_or_null<GlobalVariable>(DbgNode->getOperand(Elt)); in getGlobalVariableField() 101 return dyn_cast_or_null<Constant>(DbgNode->getOperand(Elt)); in getConstantField() 110 return dyn_cast_or_null<Function>(DbgNode->getOperand(Elt)); in getFunctionField() 126 return dyn_cast_or_null<MDNode>(DbgNode->getOperand(7)); in getInlinedAt() 537 if (MDNode *Temp = dyn_cast_or_null<MDNode>(DbgNode->getOperand(19))) in getVariablesNodes() 538 return dyn_cast_or_null<MDNode>(Temp->getOperand(0)); in getVariablesNodes() 545 if (MDNode *T = dyn_cast_or_null<MDNode>(DbgNode->getOperand(19))) in getVariables() 546 if (MDNode *A = dyn_cast_or_null<MDNode>(T->getOperand(0))) in getVariables() [all …]
|
/external/llvm/lib/ExecutionEngine/Orc/ |
D | ExecutionUtils.cpp | 22 GV ? dyn_cast_or_null<ConstantArray>(GV->getInitializer()) : nullptr), in CtorDtorIterator() 55 if (Function *F = dyn_cast_or_null<Function>(FuncC)) { in operator *() 58 } else if (ConstantExpr *CE = dyn_cast_or_null<ConstantExpr>(FuncC)) { in operator *() 60 FuncC = dyn_cast_or_null<ConstantExpr>(CE->getOperand(0)); in operator *()
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | DebugLoc.cpp | 119 MDNode *Scope = dyn_cast_or_null<MDNode>(N->getOperand(2)); in getFromDILocation() 123 if (ConstantInt *Line = dyn_cast_or_null<ConstantInt>(N->getOperand(0))) in getFromDILocation() 125 if (ConstantInt *Col = dyn_cast_or_null<ConstantInt>(N->getOperand(1))) in getFromDILocation() 128 return get(LineNo, ColNo, Scope, dyn_cast_or_null<MDNode>(N->getOperand(3))); in getFromDILocation() 135 MDNode *Scope = dyn_cast_or_null<MDNode>(N->getOperand(1)); in getFromDILexicalBlock() 139 if (ConstantInt *Line = dyn_cast_or_null<ConstantInt>(N->getOperand(2))) in getFromDILexicalBlock() 141 if (ConstantInt *Col = dyn_cast_or_null<ConstantInt>(N->getOperand(3))) in getFromDILexicalBlock()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/PDB/ |
D | PDBContext.cpp | 42 if (auto Func = dyn_cast_or_null<PDBSymbolFunc>(Symbol.get())) { in getLineInfoForAddress() 44 } else if (auto Data = dyn_cast_or_null<PDBSymbolData>(Symbol.get())) { in getLineInfoForAddress() 101 auto *Func = dyn_cast_or_null<PDBSymbolFunc>(FuncSymbol.get()); in getFunctionName() 109 if (auto *PS = dyn_cast_or_null<PDBSymbolPublicSymbol>(PublicSym.get())) { in getFunctionName()
|
/external/llvm/lib/DebugInfo/PDB/ |
D | PDBContext.cpp | 43 if (auto Func = dyn_cast_or_null<PDBSymbolFunc>(Symbol.get())) { in getLineInfoForAddress() 45 } else if (auto Data = dyn_cast_or_null<PDBSymbolData>(Symbol.get())) { in getLineInfoForAddress() 102 auto *Func = dyn_cast_or_null<PDBSymbolFunc>(FuncSymbol.get()); in getFunctionName() 110 if (auto *PS = dyn_cast_or_null<PDBSymbolPublicSymbol>(PublicSym.get())) { in getFunctionName()
|
/external/clang/lib/Index/ |
D | CodegenNameGenerator.cpp | 89 if (const auto *CD = dyn_cast_or_null<CXXConstructorDecl>(ND)) { in getAllManglings() 100 } else if (const auto *DD = dyn_cast_or_null<CXXDestructorDecl>(ND)) { in getAllManglings() 107 } else if (const auto *MD = dyn_cast_or_null<CXXMethodDecl>(ND)) { in getAllManglings() 150 if (const auto *CD = dyn_cast_or_null<CXXConstructorDecl>(ND)) in getMangledStructor() 152 else if (const auto *DD = dyn_cast_or_null<CXXDestructorDecl>(ND)) in getMangledStructor()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Transforms/Utils/ |
D | SSAUpdaterBulk.cpp | 92 PHINode *UpdatePhiA = dyn_cast_or_null<PHINode>(I1->getOperand(0)); in TEST() 96 EXPECT_EQ(UpdatePhiA, dyn_cast_or_null<PHINode>(I1->getOperand(0))); in TEST() 99 PHINode *UpdatePhiB = dyn_cast_or_null<PHINode>(I3->getOperand(0)); in TEST() 102 EXPECT_EQ(UpdatePhiB, dyn_cast_or_null<PHINode>(I3->getOperand(1))); in TEST() 191 PHINode *UpdatePhi = dyn_cast_or_null<PHINode>(I2->getOperand(0)); in TEST()
|
/external/clang/tools/libclang/ |
D | CXType.cpp | 245 if (const TypedefNameDecl *TD = dyn_cast_or_null<TypedefNameDecl>(D)) { in clang_getTypedefDeclUnderlyingType() 263 if (const EnumDecl *TD = dyn_cast_or_null<EnumDecl>(D)) { in clang_getEnumDeclIntegerType() 280 if (const EnumConstantDecl *TD = dyn_cast_or_null<EnumConstantDecl>(D)) { in clang_getEnumConstantDeclValue() 296 if (const EnumConstantDecl *TD = dyn_cast_or_null<EnumConstantDecl>(D)) { in clang_getEnumConstantDeclUnsignedValue() 312 if (const FieldDecl *FD = dyn_cast_or_null<FieldDecl>(D)) { in clang_getFieldDeclBitWidth() 599 if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D)) in clang_getCursorResultType() 796 dyn_cast_or_null<RecordDecl>(cxcursor::getCursorDecl(PC)); in validateFieldParentType() 831 dyn_cast_or_null<RecordDecl>(cxcursor::getCursorDecl(PC)); in clang_Type_getOffsetOf() 860 if (const FieldDecl *FD = dyn_cast_or_null<FieldDecl>(D)) in clang_Cursor_getOffsetOfField() 862 if (const IndirectFieldDecl *IFD = dyn_cast_or_null<IndirectFieldDecl>(D)) in clang_Cursor_getOffsetOfField() [all …]
|
D | CXCursor.cpp | 469 dyn_cast_or_null<ImplicitParamDecl>(cast<DeclRefExpr>(S)->getDecl())) { in MakeCXCursor() 936 return dyn_cast_or_null<Expr>(getCursorStmt(Cursor)); in getCursorExpr() 974 const NamedDecl *D = dyn_cast_or_null<NamedDecl>(getCursorDecl(cursor)); in getOverriddenCursors() 1099 if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D)) in clang_Cursor_getNumArguments() 1101 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) in clang_Cursor_getNumArguments() 1118 if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D)) { in clang_Cursor_getArgument() 1122 } else if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) { in clang_Cursor_getArgument() 1148 const FunctionDecl *FD = llvm::dyn_cast_or_null<clang::FunctionDecl>( in clang_Cursor_getNumTemplateArguments() 1186 const FunctionDecl *FD = llvm::dyn_cast_or_null<clang::FunctionDecl>( in clang_Cursor_getTemplateArgument() 1347 if (const NamedDecl *namedDecl = dyn_cast_or_null<NamedDecl>(decl)) { in clang_getCursorCompletionString() [all …]
|
D | CIndexCXX.cpp | 60 = dyn_cast_or_null<TemplateDecl>(getCursorDecl(C))) in clang_getTemplateCursorKind() 66 = dyn_cast_or_null<ClassTemplatePartialSpecializationDecl>( in clang_getTemplateCursorKind()
|
/external/clang/lib/ARCMigrate/ |
D | TransRetainReleaseDealloc.cpp | 354 auto *CompS = dyn_cast_or_null<CompoundStmt>(*StmtExprChild.begin()); in checkForGCDOrXPC() 361 auto *DeclS = dyn_cast_or_null<DeclStmt>(*CompStmtChild.begin()); in checkForGCDOrXPC() 366 VarDecl *VD = dyn_cast_or_null<VarDecl>(DeclS->getSingleDecl()); in checkForGCDOrXPC() 430 if (ImplicitCastExpr *castE = dyn_cast_or_null<ImplicitCastExpr>(parent)) in tryRemoving() 433 if (ParenExpr *parenE = dyn_cast_or_null<ParenExpr>(parent)) in tryRemoving() 437 bopE = dyn_cast_or_null<BinaryOperator>(parent)) { in tryRemoving()
|
D | TransUnbridgedCasts.cpp | 187 if (ObjCMethodDecl *method = dyn_cast_or_null<ObjCMethodDecl>(ParentD)) { in transformNonObjCToObjCCast() 379 if (ReturnStmt *retS = dyn_cast_or_null<ReturnStmt>(parent)) { in transformObjCToNonObjCCast() 418 if ((callE = dyn_cast_or_null<CallExpr>( in isPassedToCFRetain() 421 FD = dyn_cast_or_null<FunctionDecl>(callE->getCalleeDecl())) in isPassedToCFRetain() 431 if (CallExpr *callE = dyn_cast_or_null<CallExpr>( in isPassedToCParamWithKnownOwnership() 434 FD = dyn_cast_or_null<FunctionDecl>(callE->getCalleeDecl())) { in isPassedToCParamWithKnownOwnership()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | Module.cpp | 173 return dyn_cast_or_null<Function>(getNamedValue(Name)); in getFunction() 190 dyn_cast_or_null<GlobalVariable>(getNamedValue(Name))) in getGlobalVariable() 204 GlobalVariable *GV = dyn_cast_or_null<GlobalVariable>(getNamedValue(Name)); in getOrInsertGlobal() 232 return dyn_cast_or_null<GlobalAlias>(getNamedValue(Name)); in getNamedAlias() 236 return dyn_cast_or_null<GlobalIFunc>(getNamedValue(Name)); in getNamedIFunc() 290 dyn_cast_or_null<MDString>(Flag->getOperand(1))) { in getModuleFlagsMetadata()
|
D | ProfileSummary.cpp | 145 MDTuple *Tuple = dyn_cast_or_null<MDTuple>(MD); in getFromMD() 151 if (isKeyValuePair(dyn_cast_or_null<MDTuple>(FormatMD), "ProfileFormat", in getFromMD() 154 else if (isKeyValuePair(dyn_cast_or_null<MDTuple>(FormatMD), "ProfileFormat", in getFromMD()
|
D | ModuleSummaryIndex.cpp | 40 auto *Summary = dyn_cast_or_null<FunctionSummary>(GlobSummary.get()); in collectDefinedFunctionsForModule() 193 auto *FS = dyn_cast_or_null<FunctionSummary>(GVS); in getSummaryAttributes() 313 if (auto *AS = dyn_cast_or_null<AliasSummary>(SummaryIt.second)) { in exportToDot() 321 if (auto *FS = dyn_cast_or_null<FunctionSummary>(SummaryIt.second)) in exportToDot()
|
/external/llvm/lib/IR/ |
D | Module.cpp | 195 return dyn_cast_or_null<Function>(getNamedValue(Name)); in getFunction() 211 dyn_cast_or_null<GlobalVariable>(getNamedValue(Name))) in getGlobalVariable() 225 GlobalVariable *GV = dyn_cast_or_null<GlobalVariable>(getNamedValue(Name)); in getOrInsertGlobal() 253 return dyn_cast_or_null<GlobalAlias>(getNamedValue(Name)); in getNamedAlias() 257 return dyn_cast_or_null<GlobalIFunc>(getNamedValue(Name)); in getNamedIFunc() 311 dyn_cast_or_null<MDString>(Flag->getOperand(1))) { in getModuleFlagsMetadata()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/Orc/ |
D | ExecutionUtils.cpp | 63 GV ? dyn_cast_or_null<ConstantArray>(GV->getInitializer()) : nullptr), in CtorDtorIterator() 96 if (Function *F = dyn_cast_or_null<Function>(FuncC)) { in operator *() 99 } else if (ConstantExpr *CE = dyn_cast_or_null<ConstantExpr>(FuncC)) { in operator *() 101 FuncC = dyn_cast_or_null<ConstantExpr>(CE->getOperand(0)); in operator *()
|
/external/llvm/lib/Analysis/ |
D | TypeBasedAliasAnalysis.cpp | 155 MDNode *P = dyn_cast_or_null<MDNode>(Node->getOperand(1)); in getParent() 189 return dyn_cast_or_null<MDNode>(Node->getOperand(0)); in getBaseType() 192 return dyn_cast_or_null<MDNode>(Node->getOperand(1)); in getAccessType() 239 MDNode *P = dyn_cast_or_null<MDNode>(Node->getOperand(1)); in getParent() 264 MDNode *P = dyn_cast_or_null<MDNode>(Node->getOperand(TheIdx)); in getParent()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Bitcode/Reader/ |
D | MetadataLoader.cpp | 240 if (auto *N = dyn_cast_or_null<MDNode>(MD)) in getMetadataIfResolved() 247 return dyn_cast_or_null<MDNode>(getMetadataFwdRef(Idx)); in getMDNodeFwdRefOrNull() 284 auto *N = dyn_cast_or_null<MDNode>(MD); in tryToResolveCycles() 306 auto *UUID = dyn_cast_or_null<MDString>(MaybeUUID); in upgradeTypeRef() 320 auto *Tuple = dyn_cast_or_null<MDTuple>(MaybeTuple); in upgradeTypeRefArray() 337 auto *Tuple = dyn_cast_or_null<MDTuple>(MaybeTuple); in resolveTypeRefArray() 376 auto *N = dyn_cast_or_null<MDNode>(MD); in getTemporaries() 476 if (auto *SPs = dyn_cast_or_null<MDTuple>(CU_SP.second)) in upgradeCUSubprograms() 478 if (auto *SP = dyn_cast_or_null<DISubprogram>(Op)) in upgradeCUSubprograms() 492 if (auto *GVs = dyn_cast_or_null<MDTuple>(CU->getRawGlobalVariables())) in upgradeCUVariables() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | TypeBasedAliasAnalysis.cpp | 170 MDNodeTy *P = dyn_cast_or_null<MDNodeTy>(Node->getOperand(1)); in getParent() 223 return dyn_cast_or_null<MDNode>(Node->getOperand(0)); in getBaseType() 227 return dyn_cast_or_null<MDNode>(Node->getOperand(1)); in getAccessType() 323 MDNode *P = dyn_cast_or_null<MDNode>(Node->getOperand(1)); in getField() 352 MDNode *P = dyn_cast_or_null<MDNode>(Node->getOperand(TheIdx)); in getField()
|