Home
last modified time | relevance | path

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

12345678910>>...87

/llvm-project/mlir/lib/Dialect/NVGPU/Transforms/
H A DUtils.cpp19 if (auto ldmatrixOp = dyn_cast<LdMatrixOp>(op)) in getIndices()
21 if (auto copyOp = dyn_cast<DeviceAsyncCopyOp>(op)) in getIndices()
23 if (auto loadOp = dyn_cast<memref::LoadOp>(op)) in getIndices()
25 if (auto storeOp = dyn_cast<memref::StoreOp>(op)) in getIndices()
27 if (auto vectorReadOp = dyn_cast<vector::LoadOp>(op)) in getIndices()
29 if (auto vectorStoreOp = dyn_cast<vector::StoreOp>(op)) in getIndices()
31 if (auto transferReadOp = dyn_cast<vector::TransferReadOp>(op)) in getIndices()
33 if (auto transferWriteOp = dyn_cast<vector::TransferWriteOp>(op)) in getIndices()
39 if (auto ldmatrixOp = dyn_cast<LdMatrixOp>(op)) in setIndices()
41 if (auto copyOp = dyn_cast<DeviceAsyncCopyOp>(op)) in setIndices()
[all …]
/llvm-project/clang/include/clang/AST/
H A DIgnoreExpr.h49 if (auto *ICE = dyn_cast<ImplicitCastExpr>(E)) in IgnoreImplicitCastsSingleStep()
52 if (auto *FE = dyn_cast<FullExpr>(E)) in IgnoreImplicitCastsSingleStep()
66 if (auto *MTE = dyn_cast<MaterializeTemporaryExpr>(E)) in IgnoreImplicitCastsExtraSingleStep()
69 if (auto *NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E)) in IgnoreImplicitCastsExtraSingleStep()
76 if (auto *CE = dyn_cast<CastExpr>(E)) in IgnoreCastsSingleStep()
79 if (auto *FE = dyn_cast<FullExpr>(E)) in IgnoreCastsSingleStep()
82 if (auto *MTE = dyn_cast<MaterializeTemporaryExpr>(E)) in IgnoreCastsSingleStep()
85 if (auto *NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E)) in IgnoreCastsSingleStep()
94 if (auto *CE = dyn_cast<CastExpr>(E)) in IgnoreLValueCastsSingleStep()
102 if (auto *CE = dyn_cast<CastExpr>(E)) in IgnoreBaseCastsSingleStep()
[all …]
/llvm-project/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()
93 if (Constant *C = dyn_cast<Constant>(V)) in FoldUnOpFMF()
99 auto *LC = dyn_cast<Constant>(LHS); in FoldCmp()
100 auto *RC = dyn_cast<Constant>(RHS); in FoldCmp()
111 if (auto *PC = dyn_cast<Constant>(Ptr)) { in FoldGEP()
[all …]
/llvm-project/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 FoldCmp()
104 auto *RC = dyn_cast<Constant>(RHS); in FoldCmp()
112 if (Constant *C = dyn_cast<Constant>(V)) in FoldUnOpFMF()
122 if (auto *PC = dyn_cast<Constant>(Ptr)) { in FoldGEP()
[all …]
/llvm-project/llvm/unittests/Transforms/Utils/
H A DCallPromotionUtilsTest.cpp80 auto *F = dyn_cast<Function>(GV); in TEST()
83 auto *AI = dyn_cast<AllocaInst>(Inst); in TEST()
86 auto *CI = dyn_cast<CallInst>(Inst); in TEST()
93 auto *F1 = dyn_cast<Function>(GV); in TEST()
113 auto *F = dyn_cast<Function>(GV); in TEST()
116 auto *CI = dyn_cast<CallInst>(Inst);
140 auto *F = dyn_cast<Function>(GV); in TEST()
143 auto *CI = dyn_cast<CallInst>(Inst);
175 auto *F = dyn_cast<Function>(GV); in TEST()
178 auto *CI = dyn_cast<CallIns in TEST()
[all...]
/llvm-project/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()
227 EXPECT_EQ(dyn_cast<float *>(b), nullptr); in TEST_F()
228 EXPECT_EQ(dyn_cast<int *>(c), &i); in TEST_F()
229 EXPECT_EQ(dyn_cast<float *>(c), nullptr); in TEST_F()
232 EXPECT_EQ(dyn_cast<int *>(i3), &i); in TEST_F()
233 EXPECT_EQ(dyn_cast<float *>(i3), nullptr); in TEST_F()
234 EXPECT_EQ(dyn_cast<long long *>(i3), nullptr); in TEST_F()
235 EXPECT_EQ(dyn_cast<int *>(f3), nullptr); in TEST_F()
[all …]
/llvm-project/llvm/lib/Analysis/
H A DTypeMetadataUtils.cpp43 } else if (auto *CI = dyn_cast<CallInst>(User)) { in findCallsAtConstantOffset()
45 } else if (auto *II = dyn_cast<InvokeInst>(User)) { in findCallsAtConstantOffset()
63 } else if (auto GEP = dyn_cast<GetElementPtrInst>(User)) { in findLoadCallsAtConstantOffset()
72 } else if (auto *Call = dyn_cast<CallInst>(User)) { in findLoadCallsAtConstantOffset()
74 if (auto *LoadOffset = dyn_cast<ConstantInt>(Call->getOperand(1))) { in findLoadCallsAtConstantOffset()
96 if (auto *Assume = dyn_cast<AssumeInst>(CIU.getUser())) in findDevirtualizableCallsForTypeTest()
116 auto *Offset = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in findDevirtualizableCallsForTypeCheckedLoad()
124 if (auto EVI = dyn_cast<ExtractValueInst>(CIU)) { in findDevirtualizableCallsForTypeCheckedLoad()
147 if (auto *Equiv = dyn_cast<DSOLocalEquivalent>(I)) in getPointerAtOffset()
158 if (auto *C = dyn_cast<ConstantStruc in getPointerAtOffset()
[all...]
/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DASTUtils.cpp29 if (auto *tempExpr = dyn_cast<MaterializeTemporaryExpr>(E)) { in tryToFindPtrOrigin()
33 if (auto *tempExpr = dyn_cast<CXXBindTemporaryExpr>(E)) { in tryToFindPtrOrigin()
37 if (auto *tempExpr = dyn_cast<CXXConstructExpr>(E)) { in tryToFindPtrOrigin()
44 if (auto *POE = dyn_cast<PseudoObjectExpr>(E)) { in tryToFindPtrOrigin()
50 if (auto *tempExpr = dyn_cast<ParenExpr>(E)) { in tryToFindPtrOrigin()
54 if (auto *Expr = dyn_cast<ConditionalOperator>(E)) { in tryToFindPtrOrigin()
60 if (auto *cast = dyn_cast<CastExpr>(E)) { in tryToFindPtrOrigin()
73 if (auto *call = dyn_cast<CallExpr>(E)) { in tryToFindPtrOrigin()
74 if (auto *memberCall = dyn_cast<CXXMemberCallExpr>(call)) { in tryToFindPtrOrigin()
87 if (auto *operatorCall = dyn_cast<CXXOperatorCallExp in tryToFindPtrOrigin()
[all...]
/llvm-project/clang-tools-extra/clang-tidy/readability/
H A DNonConstParameterCheck.cpp40 if (const auto *M = dyn_cast<CXXMethodDecl>(D)) { in check()
55 if (const auto *B = dyn_cast<BinaryOperator>(S)) { in check()
58 } else if (const auto *CE = dyn_cast<CallExpr>(S)) { in check()
80 } else if (const auto *CE = dyn_cast<CXXConstructExpr>(S)) { in check()
98 } else if (const auto *R = dyn_cast<ReturnStmt>(S)) { in check()
100 } else if (const auto *U = dyn_cast<UnaryOperator>(S)) { in check()
132 auto It = Parameters.find(dyn_cast<ParmVarDecl>(Ref->getDecl())); in setReferenced()
177 if (const auto *Cast = dyn_cast<ImplicitCastExpr>(E)) { in markCanNotBeConst()
186 if (const auto *B = dyn_cast<BinaryOperator>(E)) { in markCanNotBeConst()
199 } else if (const auto *C = dyn_cast<ConditionalOperato in markCanNotBeConst()
[all...]
/llvm-project/lld/wasm/
H A DSymbols.cpp123 if (auto* f = dyn_cast<FunctionSymbol>(this)) in getSignature()
125 if (auto *t = dyn_cast<TagSymbol>(this)) in getSignature()
127 if (auto *l = dyn_cast<LazySymbol>(this)) in getSignature()
133 if (auto *f = dyn_cast<DefinedFunction>(this)) in getChunk()
135 if (auto *f = dyn_cast<UndefinedFunction>(this)) in getChunk()
138 if (auto *d = dyn_cast<DefinedData>(this)) in getChunk()
150 if (auto *g = dyn_cast<DefinedGlobal>(this)) in isLive()
152 if (auto *t = dyn_cast<DefinedTag>(this)) in isLive()
154 if (auto *t = dyn_cast<DefinedTable>(this)) in isLive()
166 if (auto *g = dyn_cast<DefinedGloba in markLive()
[all...]
/llvm-project/llvm/tools/llvm-reduce/deltas/
H A DReduceMemoryOperations.cpp20 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in removeVolatileInFunction()
23 } else if (StoreInst *SI = dyn_cast<StoreInst>(&I)) { in removeVolatileInFunction()
26 } else if (AtomicRMWInst *RMW = dyn_cast<AtomicRMWInst>(&I)) { in removeVolatileInFunction()
29 } else if (AtomicCmpXchgInst *CmpXChg = dyn_cast<AtomicCmpXchgInst>(&I)) { in removeVolatileInFunction()
32 } else if (MemIntrinsic *MemIntrin = dyn_cast<MemIntrinsic>(&I)) { in removeVolatileInFunction()
50 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in reduceAtomicSyncScopesInFunction()
53 } else if (StoreInst *SI = dyn_cast<StoreInst>(&I)) { in reduceAtomicSyncScopesInFunction()
56 } else if (AtomicRMWInst *RMW = dyn_cast<AtomicRMWInst>(&I)) { in reduceAtomicSyncScopesInFunction()
59 } else if (AtomicCmpXchgInst *CmpXChg = dyn_cast<AtomicCmpXchgInst>(&I)) { in reduceAtomicSyncScopesInFunction()
62 } else if (FenceInst *Fence = dyn_cast<FenceInst>(&I)) { in reduceAtomicSyncScopesInFunction()
[all …]
/llvm-project/mlir/lib/Dialect/Tosa/Utils/
H A DQuantUtils.cpp111 (llvm::dyn_cast<quant::UniformQuantizedType>((inputType).getElementType()))
113 (llvm::dyn_cast<quant::QuantizedType>((inputType).getElementType()))
123 auto inputType = dyn_cast<ShapedType>(input.getType()); in buildConvOpQuantizationAttr()
124 auto weightType = dyn_cast<ShapedType>(weight.getType()); in buildConvOpQuantizationAttr()
132 dyn_cast<quant::UniformQuantizedPerAxisType>(weightType.getElementType()); in buildConvOpQuantizationAttr()
167 auto aType = dyn_cast<ShapedType>(a.getType()); in buildMatMulOpQuantizationAttr()
168 auto bType = dyn_cast<ShapedType>(b.getType()); in buildMatMulOpQuantizationAttr()
196 auto inputType = dyn_cast<ShapedType>(input.getType()); in buildUnaryOpQuantizationAttr()
197 auto outputType = dyn_cast<ShapedType>(outputRawType); in buildUnaryOpQuantizationAttr()
222 auto inputType = dyn_cast<ShapedType>(input.getType()); in buildPadOpQuantizationAttr()
[all …]
/llvm-project/llvm/lib/IR/
H A DInstruction.cpp348 if (auto *PN = dyn_cast<PHINode>(this)) { in getInsertionPointAfterDef()
351 } else if (auto *II = dyn_cast<InvokeInst>(this)) { in getInsertionPointAfterDef()
380 if (auto *Inst = dyn_cast<OverflowingBinaryOperator>(this))
387 if (auto *Inst = dyn_cast<OverflowingBinaryOperator>(this)) in hasNoUnsignedWrap()
404 if (auto *Inst = dyn_cast<OverflowingBinaryOperator>(this)) in hasNonNeg()
411 if (auto *Inst = dyn_cast<OverflowingBinaryOperator>(this)) in dropPoisonGeneratingFlags()
493 if (!dyn_cast<DILocation>(Op)) { in dropUBImplyingAttrsAndUnknownMetadata()
508 if (const auto *CB = dyn_cast<CallBase>(this)) { in dropUBImplyingAttrsAndMetadata()
518 if (auto *CB = dyn_cast<CallBase>(this)) { in isExact()
531 auto *CB = dyn_cast<CallBas in setHasNoNaNs()
[all...]
H A DProfileSummary.cpp109 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in getValMD()
110 ConstantAsMetadata *ValMD = dyn_cast<ConstantAsMetadata>(MD->getOperand(1)); 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<ConstantAsMetadat in getSummaryFromMD()
[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()
96 dyn_cast<DbgVariableRecord>(&Dbg)) { in run()
132 if (StructType *STy = dyn_cast<StructType>(Ty))
148 if (const auto *M = dyn_cast<MetadataAsValue>(V)) { in incorporateValue()
149 if (const auto *N = dyn_cast<MDNode>(M->getMetadata())) in incorporateValue()
151 if (const auto *MDV = dyn_cast<ValueAsMetadata>(M->getMetadata())) in incorporateValue()
153 if (const auto *AL = dyn_cast<DIArgList>(M->getMetadata())) { in incorporateValue()
174 if (auto *GEP = dyn_cast<GEPOperato in incorporateMDNode()
[all...]
/llvm-project/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()
159 const auto *DstArgDRE = dyn_cast<DeclRefExpr>(DstArg->IgnoreParenImpCasts()); in containsBadStrlcpyStrlcatPattern()
161 dyn_cast<DeclRefExpr>(LenArg->IgnoreParenLValueCasts()); in containsBadStrlcpyStrlcatPattern()
168 const auto *LenArgVal = dyn_cast<VarDecl>(LenArgDRE->getDecl()); in containsBadStrlcpyStrlcatPattern()
[all …]
H A DDeadStoresChecker.cpp57 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl())) in VisitDeclRefExpr()
107 const BinaryOperator *BO = dyn_cast<BinaryOperator>(Ex); in LookThroughTransitiveAssignmentsAndCommaOperators()
288 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in CheckDeclRef()
297 const BinaryOperator* BRHS = dyn_cast<BinaryOperator>(RHS); in isIncrement()
304 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts()))) in isIncrement()
308 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts()))) in isIncrement()
326 if (const BinaryOperator* B = dyn_cast<BinaryOperator>(S)) { in observeStmt()
329 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS())) in observeStmt()
330 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in observeStmt()
346 if (const DeclRefExpr *RhsDR = dyn_cast<DeclRefExp in observeStmt()
[all...]
/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerExpectIntrinsic.cpp77 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect()
87 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect()
118 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(Expect->getArgOperand(1)); in handlePhiDef()
147 if (ZExtInst *ZExt = dyn_cast<ZExtInst>(V)) { in handlePhiDef()
153 if (SExtInst *SExt = dyn_cast<SExtInst>(V)) { in handlePhiDef()
159 BinaryOperator *BinOp = dyn_cast<BinaryOperator>(V); in handlePhiDef()
163 ConstantInt *CInt = dyn_cast<ConstantInt>(BinOp->getOperand(1)); in handlePhiDef()
198 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); in handlePhiDef()
204 BI = dyn_cast<BranchInst>(BB->getTerminator()); in handlePhiDef()
216 ConstantInt *CI = dyn_cast<ConstantInt>(PhiOpnd); in handlePhiDef()
[all …]
/llvm-project/llvm/unittests/IR/
H A DVectorTypesTest.cpp51 dyn_cast<FixedVectorType>(VectorType::get(Int32Ty, 8, false)); in TEST()
57 dyn_cast<FixedVectorType>(VectorType::get(Int8Ty, V8Int32Ty)); in TEST()
63 dyn_cast<FixedVectorType>(VectorType::get(Int32Ty, V8Int32Ty)); in TEST()
66 auto *V8Int16Ty = dyn_cast<FixedVectorType>( in TEST()
73 auto *V4Int64Ty = dyn_cast<FixedVectorType>(VectorType::get(Int64Ty, EltCnt)); in TEST()
78 auto *V2Int64Ty = dyn_cast<FixedVectorType>( in TEST()
85 dyn_cast<FixedVectorType>(VectorType::get(Int64Ty, EltCnt * 2)); in TEST()
91 dyn_cast<FixedVectorType>(VectorType::get(Float64Ty, EltCnt)); in TEST()
96 auto *ExtTy = dyn_cast<FixedVectorType>( in TEST()
102 auto *TruncTy = dyn_cast<FixedVectorTyp in TEST()
[all...]
/llvm-project/llvm/unittests/Transforms/Vectorize/
H A DVPlanHCFGTest.cpp65 VPWidenPHIRecipe *Phi = dyn_cast<VPWidenPHIRecipe>(&*Iter++); in TEST_F()
68 VPInstruction *Idx = dyn_cast<VPInstruction>(&*Iter++); in TEST_F()
73 VPInstruction *Load = dyn_cast<VPInstruction>(&*Iter++); in TEST_F()
78 VPInstruction *Add = dyn_cast<VPInstruction>(&*Iter++); in TEST_F()
83 VPInstruction *Store = dyn_cast<VPInstruction>(&*Iter++); in TEST_F()
89 VPInstruction *IndvarAdd = dyn_cast<VPInstruction>(&*Iter++); in TEST_F()
94 VPInstruction *ICmp = dyn_cast<VPInstruction>(&*Iter++); in TEST_F()
227 EXPECT_NE(nullptr, dyn_cast<VPWidenPHIRecipe>(&*Iter++));
228 EXPECT_NE(nullptr, dyn_cast<VPWidenGEPRecipe>(&*Iter++));
229 EXPECT_NE(nullptr, dyn_cast<VPWidenMemoryRecip
[all...]
/llvm-project/clang/lib/AST/
H A DQualTypeNames.cpp126 if (const auto *TST = dyn_cast<const TemplateSpecializationType>(TypePtr)) { in getFullyQualifiedTemplateType()
148 } else if (const auto *TSTRecord = dyn_cast<const RecordType>(TypePtr)) { in getFullyQualifiedTemplateType()
154 dyn_cast<ClassTemplateSpecializationDecl>(TSTRecord->getDecl())) { in getFullyQualifiedTemplateType()
189 if (const auto *NS = dyn_cast<NamespaceDecl>(DC)) { in createOuterNNS()
192 NS = dyn_cast<NamespaceDecl>(NS->getDeclContext()); in createOuterNNS()
198 } else if (const auto *TD = dyn_cast<TagDecl>(DC)) { in createOuterNNS()
200 } else if (const auto *TDD = dyn_cast<TypedefNameDecl>(DC)) { in createOuterNNS()
250 } else if (const auto *TDD = dyn_cast<TypedefType>(Type)) { in getFullyQualifiedNestedNameSpecifier()
269 const auto *Outer = dyn_cast<NamedDecl>(DC); in createNestedNameSpecifierForScopeOf()
270 const auto *OuterNS = dyn_cast<NamespaceDec in createNestedNameSpecifierForScopeOf()
[all...]
/llvm-project/clang-tools-extra/clangd/
H A DAST.cpp49 if (auto *Func = llvm::dyn_cast<FunctionDecl>(&ND)) { in getTemplateSpecializationArgLocs()
53 } else if (auto *Cls = llvm::dyn_cast<ClassTemplateSpecializationDecl>(&ND)) { in getTemplateSpecializationArgLocs()
56 } else if (auto *Var = llvm::dyn_cast<VarTemplateSpecializationDecl>(&ND)) { in getTemplateSpecializationArgLocs()
68 if (const auto *TD = dyn_cast<T>(D)) in isTemplateSpecializationKind()
92 if (auto *UDD = llvm::dyn_cast<UsingDirectiveDecl>(D)) in getUsingNamespaceDirectives()
118 if (auto *TD = llvm::dyn_cast<TagDecl>(CurContext)) { in getQualification()
124 } else if (auto *NSD = llvm::dyn_cast<NamespaceDecl>(CurContext)) { in getQualification()
175 if (const auto *MD = dyn_cast<ObjCMethodDecl>(&D)) in nameLocation()
204 if (auto *V = llvm::dyn_cast<DeclaratorDecl>(&ND)) in getQualifierLoc()
206 if (auto *T = llvm::dyn_cast<TagDec in getQualifierLoc()
[all...]
/llvm-project/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()
161 } else if (const MemTransferInst *MTI = dyn_cast<MemTransferIns in analyzeGlobalAux()
[all...]
/llvm-project/clang/lib/Index/
H A DIndexingContext.cpp151 SD = dyn_cast<ClassTemplateSpecializationDecl>(D)) { in isTemplateImplicitInstantiation()
153 } else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { in isTemplateImplicitInstantiation()
155 } else if (auto *VD = dyn_cast<VarDecl>(D)) { in isTemplateImplicitInstantiation()
157 } else if (const auto *RD = dyn_cast<CXXRecordDecl>(D)) { in isTemplateImplicitInstantiation()
160 } else if (const auto *ED = dyn_cast<EnumDecl>(D)) { in isTemplateImplicitInstantiation()
165 if (const auto *Parent = dyn_cast<Decl>(D->getDeclContext())) in isTemplateImplicitInstantiation()
201 dyn_cast<ClassTemplateSpecializationDecl>(D->getDeclContext())) in getDeclContextForTemplateInstationPattern()
203 else if (const auto *RD = dyn_cast<CXXRecordDecl>(D->getDeclContext())) in getDeclContextForTemplateInstationPattern()
210 SD = dyn_cast<ClassTemplateSpecializationDecl>(D)) { in adjustTemplateImplicitInstantiation()
217 } else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { in adjustTemplateImplicitInstantiation()
[all …]
/llvm-project/clang/include/clang/Analysis/
H A DAnyCall.h114 if (const auto *ME = dyn_cast<ObjCMessageExpr>(E)) { in forExpr()
116 } else if (const auto *CE = dyn_cast<CallExpr>(E)) { in forExpr()
118 } else if (const auto *CXNE = dyn_cast<CXXNewExpr>(E)) { in forExpr()
120 } else if (const auto *CXDE = dyn_cast<CXXDeleteExpr>(E)) { in forExpr()
122 } else if (const auto *CXCE = dyn_cast<CXXConstructExpr>(E)) { in forExpr()
124 } else if (const auto *CXCIE = dyn_cast<CXXInheritedCtorInitExpr>(E)) { in forExpr()
135 if (const auto *FD = dyn_cast<FunctionDecl>(D)) { in forDecl()
137 } else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) { in forDecl()
148 if (const auto *FD = dyn_cast<FunctionDecl>(D)) { in parameters()
150 } else if (const auto *MD = dyn_cast<ObjCMethodDec in parameters()
[all...]

12345678910>>...87