Home
last modified time | relevance | path

Searched refs:dyn_cast (Results 1 – 25 of 2123) sorted by relevance

12345678910>>...85

/llvm-project-15.0.7/llvm/unittests/ADT/
H A DPointerUnionTest.cpp224 EXPECT_EQ(dyn_cast<int *>(a), nullptr); in TEST_F()
225 EXPECT_EQ(dyn_cast<float *>(a), &f); in TEST_F()
226 EXPECT_EQ(dyn_cast<int *>(b), &i); in TEST_F()
228 EXPECT_EQ(dyn_cast<int *>(c), &i); in TEST_F()
230 EXPECT_EQ(dyn_cast<int *>(n), nullptr); in TEST_F()
232 EXPECT_EQ(dyn_cast<int *>(i3), &i); in TEST_F()
235 EXPECT_EQ(dyn_cast<int *>(f3), nullptr); in TEST_F()
236 EXPECT_EQ(dyn_cast<float *>(f3), &f); in TEST_F()
241 EXPECT_EQ(dyn_cast<int *>(i4), &i); in TEST_F()
246 EXPECT_EQ(dyn_cast<float *>(f4), &f); in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/unittests/Transforms/Utils/
H A DCallPromotionUtilsTest.cpp56 auto *F = dyn_cast<Function>(GV); in TEST()
69 auto *F1 = dyn_cast<Function>(GV); in TEST()
89 auto *F = dyn_cast<Function>(GV); in TEST()
116 auto *F = dyn_cast<Function>(GV); in TEST()
151 auto *F = dyn_cast<Function>(GV); in TEST()
190 auto *F = dyn_cast<Function>(GV); in TEST()
304 F = dyn_cast<Function>(GV); in TEST()
309 F = dyn_cast<Function>(GV); in TEST()
312 AI = dyn_cast<AllocaInst>(Inst); in TEST()
315 CI = dyn_cast<CallInst>(Inst); in TEST()
[all …]
/llvm-project-15.0.7/clang/include/clang/AST/
H A DIgnoreExpr.h48 if (auto *ICE = dyn_cast<ImplicitCastExpr>(E)) in IgnoreImplicitCastsSingleStep()
51 if (auto *FE = dyn_cast<FullExpr>(E)) in IgnoreImplicitCastsSingleStep()
75 if (auto *CE = dyn_cast<CastExpr>(E)) in IgnoreCastsSingleStep()
78 if (auto *FE = dyn_cast<FullExpr>(E)) in IgnoreCastsSingleStep()
93 if (auto *CE = dyn_cast<CastExpr>(E)) in IgnoreLValueCastsSingleStep()
101 if (auto *CE = dyn_cast<CastExpr>(E)) in IgnoreBaseCastsSingleStep()
125 auto *CCE = dyn_cast<CXXConstructExpr>(E); in IgnoreElidableImplicitConstructorSingleStep()
137 if (auto *ICE = dyn_cast<ImplicitCastExpr>(E)) in IgnoreImplicitAsWrittenSingleStep()
144 if (auto *PE = dyn_cast<ParenExpr>(E)) in IgnoreParensOnlySingleStep()
150 if (auto *PE = dyn_cast<ParenExpr>(E)) in IgnoreParensSingleStep()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstantFolder.h45 auto *LC = dyn_cast<Constant>(LHS); in FoldBinOp()
46 auto *RC = dyn_cast<Constant>(RHS); in FoldBinOp()
57 auto *LC = dyn_cast<Constant>(LHS); in FoldExactBinOp()
58 auto *RC = dyn_cast<Constant>(RHS); in FoldExactBinOp()
70 auto *LC = dyn_cast<Constant>(LHS); in FoldNoWrapBinOp()
71 auto *RC = dyn_cast<Constant>(RHS); in FoldNoWrapBinOp()
99 auto *LC = dyn_cast<Constant>(LHS); in FoldICmp()
100 auto *RC = dyn_cast<Constant>(RHS); in FoldICmp()
122 auto *CC = dyn_cast<Constant>(C); in FoldSelect()
166 auto *C1 = dyn_cast<Constant>(V1); in FoldShuffleVector()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetFolder.h56 auto *LC = dyn_cast<Constant>(LHS); in FoldBinOp()
57 auto *RC = dyn_cast<Constant>(RHS); in FoldBinOp()
68 auto *LC = dyn_cast<Constant>(LHS); in FoldExactBinOp()
69 auto *RC = dyn_cast<Constant>(RHS); in FoldExactBinOp()
81 auto *LC = dyn_cast<Constant>(LHS); in FoldNoWrapBinOp()
82 auto *RC = dyn_cast<Constant>(RHS); in FoldNoWrapBinOp()
103 auto *LC = dyn_cast<Constant>(LHS); in FoldICmp()
104 auto *RC = dyn_cast<Constant>(RHS); in FoldICmp()
132 auto *CC = dyn_cast<Constant>(C); in FoldSelect()
177 auto *C1 = dyn_cast<Constant>(V1); in FoldShuffleVector()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DNonConstParameterCheck.cpp42 if (const auto *M = dyn_cast<CXXMethodDecl>(D)) { in check()
57 if (const auto *B = dyn_cast<BinaryOperator>(S)) { in check()
60 } else if (const auto *CE = dyn_cast<CallExpr>(S)) { in check()
82 } else if (const auto *CE = dyn_cast<CXXConstructExpr>(S)) { in check()
100 } else if (const auto *R = dyn_cast<ReturnStmt>(S)) { in check()
102 } else if (const auto *U = dyn_cast<UnaryOperator>(S)) { in check()
176 if (const auto *Cast = dyn_cast<ImplicitCastExpr>(E)) { in markCanNotBeConst()
185 if (const auto *B = dyn_cast<BinaryOperator>(E)) { in markCanNotBeConst()
201 } else if (const auto *U = dyn_cast<UnaryOperator>(E)) { in markCanNotBeConst()
223 } else if (const auto *ILE = dyn_cast<InitListExpr>(E)) { in markCanNotBeConst()
[all …]
/llvm-project-15.0.7/mlir/lib/IR/
H A DTypeRange.cpp30 if (auto *result = owner.dyn_cast<detail::OpResultImpl *>()) in TypeRange()
32 else if (auto *operand = owner.dyn_cast<OpOperand *>()) in TypeRange()
40 if (const auto *value = object.dyn_cast<const Value *>()) in offset_base()
42 if (auto *operand = object.dyn_cast<OpOperand *>()) in offset_base()
44 if (auto *result = object.dyn_cast<detail::OpResultImpl *>()) in offset_base()
46 return {object.dyn_cast<const Type *>() + index}; in offset_base()
51 if (const auto *value = object.dyn_cast<const Value *>()) in dereference_iterator()
53 if (auto *operand = object.dyn_cast<OpOperand *>()) in dereference_iterator()
55 if (auto *result = object.dyn_cast<detail::OpResultImpl *>()) in dereference_iterator()
57 return object.dyn_cast<const Type *>()[index]; in dereference_iterator()
H A DTypes.cpp32 if (auto intTy = dyn_cast<IntegerType>()) in isInteger()
38 if (auto intTy = dyn_cast<IntegerType>()) in isSignlessInteger()
44 if (auto intTy = dyn_cast<IntegerType>()) in isSignlessInteger()
50 if (auto intTy = dyn_cast<IntegerType>()) in isSignedInteger()
56 if (auto intTy = dyn_cast<IntegerType>()) in isSignedInteger()
62 if (auto intTy = dyn_cast<IntegerType>()) in isUnsignedInteger()
68 if (auto intTy = dyn_cast<IntegerType>()) in isUnsignedInteger()
93 if (auto intType = dyn_cast<IntegerType>()) in getIntOrFloatBitWidth()
/llvm-project-15.0.7/lld/wasm/
H A DSymbols.cpp119 if (auto *t = dyn_cast<TagSymbol>(this)) in getSignature()
121 if (auto *l = dyn_cast<LazySymbol>(this)) in getSignature()
132 if (auto *d = dyn_cast<DefinedData>(this)) in getChunk()
144 if (auto *g = dyn_cast<DefinedGlobal>(this)) in isLive()
146 if (auto *t = dyn_cast<DefinedTag>(this)) in isLive()
148 if (auto *t = dyn_cast<DefinedTable>(this)) in isLive()
160 if (auto *g = dyn_cast<DefinedGlobal>(this)) in markLive()
162 if (auto *t = dyn_cast<DefinedTag>(this)) in markLive()
164 if (auto *t = dyn_cast<DefinedTable>(this)) in markLive()
356 if (auto *f = dyn_cast<DefinedTag>(this)) in getTagIndex()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Utils/
H A DQuantUtils.cpp119 auto inputType = input.getType().dyn_cast<ShapedType>(); in buildConvOpQuantizationAttr()
163 auto aType = a.getType().dyn_cast<ShapedType>(); in buildMatMulOpQuantizationAttr()
164 auto bType = b.getType().dyn_cast<ShapedType>(); in buildMatMulOpQuantizationAttr()
192 auto inputType = input.getType().dyn_cast<ShapedType>(); in buildUnaryOpQuantizationAttr()
193 auto outputType = outputRawType.dyn_cast<ShapedType>(); in buildUnaryOpQuantizationAttr()
218 auto inputType = input.getType().dyn_cast<ShapedType>(); in buildPadOpQuantizationAttr()
238 auto inputType = input.getType().dyn_cast<ShapedType>(); in buildConvOpResultTypeInfo()
277 auto minElems = minAttr.dyn_cast<DenseFPElementsAttr>(); in buildQTypeFromMinMax()
294 auto minVal = minAttr.dyn_cast<FloatAttr>(); in buildQTypeFromMinMax()
299 auto maxVal = maxAttr.dyn_cast<FloatAttr>(); in buildQTypeFromMinMax()
[all …]
/llvm-project-15.0.7/llvm/lib/IR/
H A DProfileSummary.cpp109 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in getValMD()
139 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in isKeyValuePair()
140 MDString *ValMD = dyn_cast<MDString>(MD->getOperand(1)); in isKeyValuePair()
152 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in getSummaryFromMD()
155 MDTuple *EntriesMD = dyn_cast<MDTuple>(MD->getOperand(1)); in getSummaryFromMD()
159 MDTuple *EntryMD = dyn_cast<MDTuple>(MDOp); in getSummaryFromMD()
163 dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(0)); in getSummaryFromMD()
165 dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(1)); in getSummaryFromMD()
167 dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(2)); in getSummaryFromMD()
183 if (getVal(dyn_cast<MDTuple>(Tuple->getOperand(Idx)), Key, Value)) { in getOptionalVal()
[all …]
H A DTypeFinder.cpp79 if (auto *GEP = dyn_cast<GetElementPtrInst>(&I)) in run()
81 if (auto *AI = dyn_cast<AllocaInst>(&I)) in run()
83 if (const auto *CB = dyn_cast<CallBase>(&I)) in run()
118 if (StructType *STy = dyn_cast<StructType>(Ty)) in incorporateType()
134 if (const auto *M = dyn_cast<MetadataAsValue>(V)) { in incorporateValue()
135 if (const auto *N = dyn_cast<MDNode>(M->getMetadata())) in incorporateValue()
137 if (const auto *MDV = dyn_cast<ValueAsMetadata>(M->getMetadata())) in incorporateValue()
155 if (auto *GEP = dyn_cast<GEPOperator>(V)) in incorporateValue()
173 if (const auto *AL = dyn_cast<DIArgList>(V)) { in incorporateMDNode()
183 if (auto *N = dyn_cast<MDNode>(Op)) { in incorporateMDNode()
[all …]
H A DInstruction.cpp179 auto *CB = dyn_cast<CallBase>(this); in dropUndefImplyingAttrsAndUnknownMetadata()
313 if (auto *FP = dyn_cast<FPMathOperator>(V)) in copyIRFlags()
334 if (auto *FP = dyn_cast<FPMathOperator>(V)) { in andIRFlags()
456 if (const CmpInst *CI = dyn_cast<CmpInst>(I1)) in haveSameSpecialState()
563 const PHINode *PN = dyn_cast<PHINode>(I); in isUsedOutsideOfBlock()
671 if (auto *MI = dyn_cast<MemIntrinsic>(II)) in isVolatile()
706 if (auto *SI = dyn_cast<StoreInst>(this)) in willReturn()
709 if (const auto *CB = dyn_cast<CallBase>(this)) in willReturn()
719 auto *II = dyn_cast<IntrinsicInst>(this); in isLifetimeStartOrEnd()
727 auto *II = dyn_cast<IntrinsicInst>(this); in isLaunderOrStripInvariantGroup()
[all …]
/llvm-project-15.0.7/llvm/unittests/Transforms/Vectorize/
H A DVPlanHCFGTest.cpp63 VPInstruction *Idx = dyn_cast<VPInstruction>(&*Iter++); in TEST_F()
68 VPInstruction *Load = dyn_cast<VPInstruction>(&*Iter++); in TEST_F()
73 VPInstruction *Add = dyn_cast<VPInstruction>(&*Iter++); in TEST_F()
78 VPInstruction *Store = dyn_cast<VPInstruction>(&*Iter++); in TEST_F()
89 VPInstruction *ICmp = dyn_cast<VPInstruction>(&*Iter++); in TEST_F()
187 EXPECT_NE(nullptr, dyn_cast<VPWidenPHIRecipe>(&*Iter++)); in TEST_F()
188 EXPECT_NE(nullptr, dyn_cast<VPWidenGEPRecipe>(&*Iter++)); in TEST_F()
190 EXPECT_NE(nullptr, dyn_cast<VPWidenRecipe>(&*Iter++)); in TEST_F()
192 EXPECT_NE(nullptr, dyn_cast<VPWidenRecipe>(&*Iter++)); in TEST_F()
193 EXPECT_NE(nullptr, dyn_cast<VPWidenRecipe>(&*Iter++)); in TEST_F()
[all …]
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DCStringSyntaxChecker.cpp39 if (const auto *D1 = dyn_cast<DeclRefExpr>(A1->IgnoreParenCasts())) in sameDecl()
40 if (const auto *D2 = dyn_cast<DeclRefExpr>(A2->IgnoreParenCasts())) in sameDecl()
47 if (const auto *UE = dyn_cast<UnaryExprOrTypeTraitExpr>(E)) in isSizeof()
55 if (const auto *CE = dyn_cast<CallExpr>(E)) { in isStrlen()
67 if (const auto *IL = dyn_cast<IntegerLiteral>(E)) in isOne()
73 if (const auto *D = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts())) in getPrintableName()
130 if (const auto *BE = dyn_cast<BinaryOperator>(LenArg->IgnoreParenCasts())) { in containsBadStrncatPattern()
161 dyn_cast<DeclRefExpr>(LenArg->IgnoreParenLValueCasts()); in containsBadStrlcpyStrlcatPattern()
168 const auto *LenArgVal = dyn_cast<VarDecl>(LenArgDRE->getDecl()); in containsBadStrlcpyStrlcatPattern()
189 dyn_cast<BinaryOperator>(DstArg->IgnoreParenImpCasts())) { in containsBadStrlcpyStrlcatPattern()
[all …]
H A DDeadStoresChecker.cpp57 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl())) in VisitDeclRefExpr()
107 dyn_cast<BinaryOperator>(Ex->IgnoreParenCasts()); in LookThroughTransitiveAssignmentsAndCommaOperators()
288 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in CheckDeclRef()
348 if (VD == dyn_cast<VarDecl>(RhsDR->getDecl())) in observeStmt()
369 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex)) in observeStmt()
372 else if (const DeclStmt *DS = dyn_cast<DeclStmt>(S)) in observeStmt()
376 const auto *V = dyn_cast<VarDecl>(DI); in observeStmt()
487 if (auto *LE = dyn_cast<LambdaExpr>(S)) { in operator ()()
492 const UnaryOperator *U = dyn_cast<UnaryOperator>(S); in operator ()()
499 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E)) in operator ()()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLowerExpectIntrinsic.cpp78 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect()
140 if (ZExtInst *ZExt = dyn_cast<ZExtInst>(V)) { in handlePhiDef()
146 if (SExtInst *SExt = dyn_cast<SExtInst>(V)) { in handlePhiDef()
152 BinaryOperator *BinOp = dyn_cast<BinaryOperator>(V); in handlePhiDef()
197 BI = dyn_cast<BranchInst>(BB->getTerminator()); in handlePhiDef()
209 ConstantInt *CI = dyn_cast<ConstantInt>(PhiOpnd); in handlePhiDef()
275 ICmpInst *CmpI = dyn_cast<ICmpInst>(BSI.getCondition()); in handleBrSelExpect()
279 CI = dyn_cast<CallInst>(BSI.getCondition()); in handleBrSelExpect()
289 CI = dyn_cast<CallInst>(CmpI->getOperand(0)); in handleBrSelExpect()
367 CallInst *CI = dyn_cast<CallInst>(&Inst); in lowerExpectIntrinsic()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DAST.cpp49 if (auto *Func = llvm::dyn_cast<FunctionDecl>(&ND)) { in getTemplateSpecializationArgLocs()
73 if (const auto *TD = dyn_cast<T>(D)) in isTemplateSpecializationKind()
175 if (const auto *MD = dyn_cast<ObjCMethodDecl>(&D)) in nameLocation()
202 if (auto *V = llvm::dyn_cast<DeclaratorDecl>(&ND)) in getQualifierLoc()
204 if (auto *T = llvm::dyn_cast<TagDecl>(&ND)) in getQualifierLoc()
403 if (const auto *ND = llvm::dyn_cast<NamedDecl>(&D)) in hasReservedName()
724 if (auto *RT = dyn_cast<ReferenceType>(PlainType)) in getUnderylingPackType()
729 return dyn_cast<TemplateTypeParmType>( in getUnderylingPackType()
910 if (const auto *Call = dyn_cast<CallExpr>(E)) { in unwrapForward()
913 return dyn_cast<DeclRefExpr>( in unwrapForward()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DGlobalStatus.cpp55 if (const Constant *CU = dyn_cast<Constant>(U)) in isSafeToDestroyConstant()
66 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(V)) in analyzeGlobalAux()
72 if (const Constant *C = dyn_cast<Constant>(UR)) { in analyzeGlobalAux()
73 const ConstantExpr *CE = dyn_cast<ConstantExpr>(C); in analyzeGlobalAux()
84 } else if (const Instruction *I = dyn_cast<Instruction>(UR)) { in analyzeGlobalAux()
92 if (const LoadInst *LI = dyn_cast<LoadInst>(I)) { in analyzeGlobalAux()
98 } else if (const StoreInst *SI = dyn_cast<StoreInst>(I)) { in analyzeGlobalAux()
116 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(Ptr)) { in analyzeGlobalAux()
119 if (Constant *C = dyn_cast<Constant>(StoredVal)) { in analyzeGlobalAux()
169 } else if (const MemSetInst *MSI = dyn_cast<MemSetInst>(I)) { in analyzeGlobalAux()
[all …]
H A DEvaluator.cpp63 if (auto *GV = dyn_cast<GlobalValue>(C)) in isSimpleEnoughValueToCommitHelper()
124 if (auto *Agg = Val.dyn_cast<MutableAggregate *>()) in clear()
150 if (auto *VT = dyn_cast<FixedVectorType>(Ty)) { in makeMutable()
152 } else if (auto *AT = dyn_cast<ArrayType>(Ty)) in makeMutable()
154 else if (auto *ST = dyn_cast<StructType>(Ty)) in makeMutable()
205 if (auto *ST = dyn_cast<StructType>(Ty)) in toConstant()
207 if (auto *AT = dyn_cast<ArrayType>(Ty)) in toConstant()
220 if (auto *GV = dyn_cast<GlobalVariable>(P)) in ComputeLoadResult()
237 if (auto *Fn = dyn_cast<Function>(C)) in getFunction()
240 if (auto *Alias = dyn_cast<GlobalAlias>(C)) in getFunction()
[all …]
/llvm-project-15.0.7/llvm/unittests/IR/
H A DVectorTypesTest.cpp66 auto *V8Int16Ty = dyn_cast<FixedVectorType>( in TEST()
78 auto *V2Int64Ty = dyn_cast<FixedVectorType>( in TEST()
96 auto *ExtTy = dyn_cast<FixedVectorType>( in TEST()
102 auto *TruncTy = dyn_cast<FixedVectorType>( in TEST()
108 auto *HalvedTy = dyn_cast<FixedVectorType>( in TEST()
114 auto *DoubledTy = dyn_cast<FixedVectorType>( in TEST()
160 auto *ScV8Int16Ty = dyn_cast<ScalableVectorType>( in TEST()
191 auto *ExtTy = dyn_cast<ScalableVectorType>( in TEST()
197 auto *TruncTy = dyn_cast<ScalableVectorType>( in TEST()
203 auto *HalvedTy = dyn_cast<ScalableVectorType>( in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DTypeMetadataUtils.cpp41 } else if (auto *CI = dyn_cast<CallInst>(User)) { in findCallsAtConstantOffset()
43 } else if (auto *II = dyn_cast<InvokeInst>(User)) { in findCallsAtConstantOffset()
86 if (auto *Assume = dyn_cast<AssumeInst>(CIU.getUser())) in findDevirtualizableCallsForTypeTest()
112 if (auto EVI = dyn_cast<ExtractValueInst>(CIU)) { in findDevirtualizableCallsForTypeCheckedLoad()
140 if (auto *C = dyn_cast<ConstantStruct>(I)) { in getPointerAtOffset()
150 if (auto *C = dyn_cast<ConstantArray>(I)) { in getPointerAtOffset()
163 if (auto *CI = dyn_cast<ConstantInt>(I)) { in getPointerAtOffset()
168 if (auto *C = dyn_cast<ConstantExpr>(I)) { in getPointerAtOffset()
179 auto *CE = dyn_cast<ConstantExpr>(C); in getPointerAtOffset()
204 auto *PtrExpr = dyn_cast<ConstantExpr>(U); in replaceRelativePointerUsersWithZero()
[all …]
/llvm-project-15.0.7/clang/include/clang/Analysis/
H A DAnyCall.h113 if (const auto *ME = dyn_cast<ObjCMessageExpr>(E)) { in forExpr()
115 } else if (const auto *CE = dyn_cast<CallExpr>(E)) { in forExpr()
117 } else if (const auto *CXNE = dyn_cast<CXXNewExpr>(E)) { in forExpr()
119 } else if (const auto *CXDE = dyn_cast<CXXDeleteExpr>(E)) { in forExpr()
121 } else if (const auto *CXCE = dyn_cast<CXXConstructExpr>(E)) { in forExpr()
123 } else if (const auto *CXCIE = dyn_cast<CXXInheritedCtorInitExpr>(E)) { in forExpr()
134 if (const auto *FD = dyn_cast<FunctionDecl>(D)) { in forDecl()
136 } else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) { in forDecl()
147 if (const auto *FD = dyn_cast<FunctionDecl>(D)) { in parameters()
149 } else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) { in parameters()
[all …]
/llvm-project-15.0.7/clang/lib/Index/
H A DIndexingContext.cpp156 } else if (auto *VD = dyn_cast<VarDecl>(D)) { in isTemplateImplicitInstantiation()
161 } else if (const auto *ED = dyn_cast<EnumDecl>(D)) { in isTemplateImplicitInstantiation()
220 } else if (auto *VD = dyn_cast<VarDecl>(D)) { in adjustTemplateImplicitInstantiation()
224 } else if (const auto *ED = dyn_cast<EnumDecl>(D)) { in adjustTemplateImplicitInstantiation()
249 if (auto VD = dyn_cast<VarDecl>(D)) in isDeclADefinition()
252 if (auto FD = dyn_cast<FunctionDecl>(D)) in isDeclADefinition()
255 if (auto TD = dyn_cast<TagDecl>(D)) in isDeclADefinition()
258 if (auto MD = dyn_cast<ObjCMethodDecl>(D)) in isDeclADefinition()
283 if (auto NS = dyn_cast<NamespaceDecl>(Parent)) { in adjustParent()
289 } else if (auto ND = dyn_cast<NamedDecl>(Parent)) { in adjustParent()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DTypePromotion.cpp250 if (auto *Store = dyn_cast<StoreInst>(V)) in isSink()
252 if (auto *Return = dyn_cast<ReturnInst>(V)) in isSink()
254 if (auto *ZExt = dyn_cast<ZExtInst>(V)) in isSink()
258 if (auto *ICmp = dyn_cast<ICmpInst>(V)) in isSink()
378 auto *I = dyn_cast<Instruction>(V); in shouldPromote()
432 if (auto *I = dyn_cast<Instruction>(V)) in ExtendSources()
451 if (auto *I = dyn_cast<Instruction>(V)) in ExtendSources()
554 if (auto ZExt = dyn_cast<ZExtInst>(I)) in TruncateSinks()
697 if (auto *I = dyn_cast<Instruction>(V)) { in isSupportedValue()
745 auto *I = dyn_cast<Instruction>(V); in isLegalToPromote()
[all …]

12345678910>>...85