Home
last modified time | relevance | path

Searched refs:dyn_cast_or_null (Results 1 – 25 of 962) sorted by relevance

12345678910>>...39

/external/llvm-project/clang/test/Analysis/
Dcast-value-notes.cpp32 const auto *C = dyn_cast_or_null<Circle>(S); in evalNonNullParamNonNullReturnReference()
35 if (!dyn_cast_or_null<Circle>(C)) { in evalNonNullParamNonNullReturnReference()
41 if (dyn_cast_or_null<Triangle>(C)) { in evalNonNullParamNonNullReturnReference()
47 if (dyn_cast_or_null<Rectangle>(C)) { in evalNonNullParamNonNullReturnReference()
53 if (dyn_cast_or_null<Hexagon>(C)) { in evalNonNullParamNonNullReturnReference()
93 if (!dyn_cast_or_null<Circle>(C)) { in evalNonNullParamNonNullReturn()
99 if (dyn_cast_or_null<Triangle>(C)) { in evalNonNullParamNonNullReturn()
105 if (dyn_cast_or_null<Rectangle>(C)) { in evalNonNullParamNonNullReturn()
111 if (dyn_cast_or_null<Hexagon>(C)) { in evalNonNullParamNonNullReturn()
147 const auto *C = dyn_cast_or_null<Circle>(S); in evalNonNullParamNullReturn()
[all …]
Dcast-value-state-dump.cpp20 const auto *C = dyn_cast_or_null<Circle>(S); in evalNonNullParamNonNullReturn()
25 if (dyn_cast_or_null<Square>(S)) { in evalNonNullParamNonNullReturn()
/external/llvm/unittests/Support/
DCasting.cpp63 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/tensorflow/tensorflow/compiler/mlir/lite/experimental/estimators/
Darithmetic_count_util.h28 output.getType().dyn_cast_or_null<mlir::RankedTensorType>(); in GetArithmeticCountForBroadcastableOp()
39 input.getType().dyn_cast_or_null<mlir::RankedTensorType>(); in GetInputTensorTotalSize()
55 weight.getType().dyn_cast_or_null<mlir::RankedTensorType>(); in GetArithmeticCountForConvAndFullyconnectedOp()
60 output.getType().dyn_cast_or_null<mlir::RankedTensorType>(); in GetArithmeticCountForConvAndFullyconnectedOp()
74 bias.getType().dyn_cast_or_null<mlir::RankedTensorType>(); in GetArithmeticCountForConvAndFullyconnectedOp()
/external/clang/lib/StaticAnalyzer/Core/
DCheckerHelpers.cpp81 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()
/external/llvm-project/llvm/unittests/Support/
DCasting.cpp74 return dyn_cast_or_null<foo>(this); in naz()
183 TEST(CastingTest, dyn_cast_or_null) { in TEST() argument
184 const foo *F1 = dyn_cast_or_null<foo>(B2); in TEST()
186 const foo *F2 = dyn_cast_or_null<foo>(B2); in TEST()
188 const foo *F3 = dyn_cast_or_null<foo>(B4); in TEST()
190 foo *F4 = dyn_cast_or_null<foo>(fub()); in TEST()
401 EXPECT_TRUE(dyn_cast_or_null<pointer_wrappers::Derived>(MN) == nullptr); in TEST()
402 EXPECT_TRUE(dyn_cast_or_null<pointer_wrappers::Derived>(CN) == nullptr); in TEST()
403 EXPECT_TRUE(dyn_cast_or_null<pointer_wrappers::Derived>(MB) == nullptr); in TEST()
404 EXPECT_TRUE(dyn_cast_or_null<pointer_wrappers::Derived>(CB) == nullptr); in TEST()
[all …]
/external/llvm-project/mlir/include/mlir/IR/
DSymbolTable.h33 return dyn_cast_or_null<T>(lookup(name)); in lookup()
118 return dyn_cast_or_null<T>(lookupNearestSymbolFrom(from, symbol)); in lookupNearestSymbolFrom()
122 return dyn_cast_or_null<T>(lookupNearestSymbolFrom(from, symbol)); in lookupNearestSymbolFrom()
229 return dyn_cast_or_null<T>( in lookupSymbolIn()
247 return dyn_cast_or_null<T>(lookupNearestSymbolFrom(from, symbol)); in lookupNearestSymbolFrom()
251 return dyn_cast_or_null<T>(lookupNearestSymbolFrom(from, symbol)); in lookupNearestSymbolFrom()
293 return dyn_cast_or_null<T>(lookupSymbol(name)); in lookupSymbol()
300 return dyn_cast_or_null<T>(lookupSymbol(symbol)); in lookupSymbol()
/external/tensorflow/tensorflow/compiler/mlir/lite/utils/
Dtftext_utils.cc66 return func.getType().getInput(idx).dyn_cast_or_null<TensorType>(); in GetInputType()
70 return func.getType().getResult(idx).dyn_cast_or_null<TensorType>(); in GetResultType()
214 auto width = attrs.get("width").dyn_cast_or_null<IntegerAttr>(); in CreateNgramsCustomOption()
221 attrs.get("string_separator").dyn_cast_or_null<StringAttr>(); in CreateNgramsCustomOption()
232 auto axis = attrs.get("axis").dyn_cast_or_null<IntegerAttr>(); in CreateNgramsCustomOption()
239 attrs.get("reduction_type").dyn_cast_or_null<StringAttr>(); in CreateNgramsCustomOption()
289 attr.GetAttrs().get("hash_seed").dyn_cast_or_null<ArrayAttr>(); in VerifySgnnProjection()
304 auto buckets = attr.GetAttrs().get("buckets").dyn_cast_or_null<IntegerAttr>(); in VerifySgnnProjection()
317 auto hash_seed = attrs.get("hash_seed").dyn_cast_or_null<ArrayAttr>(); in CreateSgnnProjectionCustomOption()
325 auto buckets = attrs.get("buckets").dyn_cast_or_null<IntegerAttr>(); in CreateSgnnProjectionCustomOption()
Dperception_ops_utils.cc48 ArrayAttr array_attr = attrs.get(attr_name).dyn_cast_or_null<ArrayAttr>(); in GetIntegerArraySafe()
125 auto padding = attrs.get("padding").dyn_cast_or_null<StringAttr>(); in CreateCustomOptions()
177 func_.getType().getInput(0).dyn_cast_or_null<RankedTensorType>(); in VerifySignature()
184 func_.getType().getInput(1).dyn_cast_or_null<RankedTensorType>(); in VerifySignature()
191 func_.getType().getResult(0).dyn_cast_or_null<RankedTensorType>(); in VerifySignature()
/external/llvm/lib/ExecutionEngine/Orc/
DExecutionUtils.cpp22 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/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dtranslate_utils.cc46 version_attr.get("producer").dyn_cast_or_null<mlir::IntegerAttr>(); in ExtractTfVersions()
51 version_attr.get("min_consumer").dyn_cast_or_null<mlir::IntegerAttr>(); in ExtractTfVersions()
55 version_attr.get("bad_consumers").dyn_cast_or_null<mlir::ArrayAttr>(); in ExtractTfVersions()
60 bad_consumer.dyn_cast_or_null<mlir::IntegerAttr>(); in ExtractTfVersions()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dgpu_fusion.cc68 auto batch_norm = dyn_cast_or_null<FusedBatchNormV3Op>(relu_input); in matchAndRewrite()
74 add_op = dyn_cast_or_null<AddV2Op>(relu_input); in matchAndRewrite()
78 dyn_cast_or_null<FusedBatchNormV3Op>(add_op.x().getDefiningOp()); in matchAndRewrite()
84 dyn_cast_or_null<FusedBatchNormV3Op>(add_op.y().getDefiningOp()); in matchAndRewrite()
Dfold_broadcast.cc126 auto eq_op = llvm::dyn_cast_or_null<Op>(op); in RewriteEqOp()
142 op->getResultTypes().front().dyn_cast_or_null<RankedTensorType>(); in RewriteOp()
148 auto broadcast = llvm::dyn_cast_or_null<TF::BroadcastToOp>( in RewriteOp()
154 broadcast.input().getType().dyn_cast_or_null<RankedTensorType>(); in RewriteOp()
161 .dyn_cast_or_null<RankedTensorType>(); in RewriteOp()
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DSwapIfBranches.cpp57 if (dyn_cast_or_null<CompoundStmt>(N->ASTNode.get<Stmt>())) in REGISTER_TWEAK()
59 If = dyn_cast_or_null<IfStmt>(N->ASTNode.get<Stmt>()); in REGISTER_TWEAK()
63 return If && dyn_cast_or_null<CompoundStmt>(If->getThen()) && in REGISTER_TWEAK()
64 dyn_cast_or_null<CompoundStmt>(If->getElse()); in REGISTER_TWEAK()
/external/llvm-project/mlir/include/mlir/Dialect/Utils/
DStructuredOpsUtils.h80 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isParallelIterator()
87 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isReductionIterator()
94 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isWindowIterator()
139 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isSparseDim()
144 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isDenseDim()
/external/llvm-project/llvm/unittests/CodeGen/
DAsmPrinterDwarfTest.cpp95 const MCSymbolRefExpr *ActualArg0 = dyn_cast_or_null<MCSymbolRefExpr>(Arg0); in TEST_F()
118 const MCSymbolRefExpr *ActualArg0 = dyn_cast_or_null<MCSymbolRefExpr>(Arg0); in TEST_F()
157 const MCSymbolRefExpr *ActualArg0 = dyn_cast_or_null<MCSymbolRefExpr>(Arg0); in TEST_F()
181 const MCSymbolRefExpr *ActualArg0 = dyn_cast_or_null<MCSymbolRefExpr>(Arg0); in TEST_F()
220 const MCBinaryExpr *ActualArg0 = dyn_cast_or_null<MCBinaryExpr>(Arg0); in TEST_F()
225 dyn_cast_or_null<MCSymbolRefExpr>(ActualArg0->getLHS()); in TEST_F()
230 dyn_cast_or_null<MCConstantExpr>(ActualArg0->getRHS()); in TEST_F()
244 const MCBinaryExpr *ActualArg0 = dyn_cast_or_null<MCBinaryExpr>(Arg0); in TEST_F()
249 dyn_cast_or_null<MCSymbolRefExpr>(ActualArg0->getLHS()); in TEST_F()
254 dyn_cast_or_null<MCConstantExpr>(ActualArg0->getRHS()); in TEST_F()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DMakeMemberFunctionConstCheck.cpp145 if (const auto *Cast = dyn_cast_or_null<ImplicitCastExpr>(Parent)) { in VisitUser()
161 if (const auto *M = dyn_cast_or_null<MemberExpr>(Parent)) in VisitUser()
173 if (const auto *UnOp = dyn_cast_or_null<UnaryOperator>(Parent)) { in VisitCXXThisExpr()
184 if (const auto *Cast = dyn_cast_or_null<ImplicitCastExpr>(Parent)) { in VisitCXXThisExpr()
192 } else if (const auto *Member = dyn_cast_or_null<MemberExpr>(Parent)) { in VisitCXXThisExpr()
/external/llvm/lib/DebugInfo/PDB/
DPDBContext.cpp43 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/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/
DPDBContext.cpp41 if (auto Func = dyn_cast_or_null<PDBSymbolFunc>(Symbol.get())) { in getLineInfoForAddress()
43 } else if (auto Data = dyn_cast_or_null<PDBSymbolData>(Symbol.get())) { in getLineInfoForAddress()
106 auto *Func = dyn_cast_or_null<PDBSymbolFunc>(FuncSymbol.get()); in getFunctionName()
114 if (auto *PS = dyn_cast_or_null<PDBSymbolPublicSymbol>(PublicSym.get())) { in getFunctionName()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DCheckerHelpers.cpp85 if (auto Assign = dyn_cast_or_null<BinaryOperator>(S)) { in parseAssignment()
89 if (auto DE = dyn_cast_or_null<DeclRefExpr>(Assign->getLHS())) in parseAssignment()
90 VD = dyn_cast_or_null<VarDecl>(DE->getDecl()); in parseAssignment()
92 } else if (auto PD = dyn_cast_or_null<DeclStmt>(S)) { in parseAssignment()
/external/llvm-project/clang/lib/ARCMigrate/
DTransRetainReleaseDealloc.cpp272 if (auto *E = dyn_cast_or_null<Expr>(prevStmt)) in getPreviousAndNextStmt()
283 if (auto *E = dyn_cast_or_null<Expr>(nextStmt)) in getPreviousAndNextStmt()
358 auto *CompS = dyn_cast_or_null<CompoundStmt>(*StmtExprChild.begin()); in checkForGCDOrXPC()
365 auto *DeclS = dyn_cast_or_null<DeclStmt>(*CompStmtChild.begin()); in checkForGCDOrXPC()
370 VarDecl *VD = dyn_cast_or_null<VarDecl>(DeclS->getSingleDecl()); in checkForGCDOrXPC()
434 if (ImplicitCastExpr *castE = dyn_cast_or_null<ImplicitCastExpr>(parent)) in tryRemoving()
437 if (ParenExpr *parenE = dyn_cast_or_null<ParenExpr>(parent)) in tryRemoving()
441 bopE = dyn_cast_or_null<BinaryOperator>(parent)) { in tryRemoving()
/external/clang/lib/Index/
DCodegenNameGenerator.cpp89 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/llvm-project/llvm/unittests/Transforms/Utils/
DSSAUpdaterBulkTest.cpp91 PHINode *UpdatePhiA = dyn_cast_or_null<PHINode>(I1->getOperand(0)); in TEST()
95 EXPECT_EQ(UpdatePhiA, dyn_cast_or_null<PHINode>(I1->getOperand(0))); in TEST()
98 PHINode *UpdatePhiB = dyn_cast_or_null<PHINode>(I3->getOperand(0)); in TEST()
101 EXPECT_EQ(UpdatePhiB, dyn_cast_or_null<PHINode>(I3->getOperand(1))); in TEST()
190 PHINode *UpdatePhi = dyn_cast_or_null<PHINode>(I2->getOperand(0)); in TEST()
/external/llvm-project/llvm/lib/DebugInfo/PDB/
DPDBContext.cpp41 if (auto Func = dyn_cast_or_null<PDBSymbolFunc>(Symbol.get())) { in getLineInfoForAddress()
43 } else if (auto Data = dyn_cast_or_null<PDBSymbolData>(Symbol.get())) { in getLineInfoForAddress()
141 auto *Func = dyn_cast_or_null<PDBSymbolFunc>(FuncSymbol.get()); in getFunctionName()
149 if (auto *PS = dyn_cast_or_null<PDBSymbolPublicSymbol>(PublicSym.get())) { in getFunctionName()
/external/llvm-project/flang/lib/Optimizer/Dialect/
DFIRAttr.cpp213 } else if (attr.dyn_cast_or_null<fir::PointIntervalAttr>()) { in printFirAttribute()
215 } else if (attr.dyn_cast_or_null<fir::ClosedIntervalAttr>()) { in printFirAttribute()
217 } else if (attr.dyn_cast_or_null<fir::LowerBoundAttr>()) { in printFirAttribute()
219 } else if (attr.dyn_cast_or_null<fir::UpperBoundAttr>()) { in printFirAttribute()
221 } else if (auto a = attr.dyn_cast_or_null<fir::RealAttr>()) { in printFirAttribute()

12345678910>>...39