Searched refs:dyn_cast (Results 1 - 25 of 1463) sorted by relevance

1234567891011>>

/freebsd-current/contrib/llvm-project/clang/include/clang/AST/
H A DIgnoreExpr.h49 if (auto *ICE = dyn_cast<ImplicitCastExpr>(E))
52 if (auto *FE = dyn_cast<FullExpr>(E))
66 if (auto *MTE = dyn_cast<MaterializeTemporaryExpr>(E))
69 if (auto *NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E))
76 if (auto *CE = dyn_cast<CastExpr>(E))
79 if (auto *FE = dyn_cast<FullExpr>(E))
82 if (auto *MTE = dyn_cast<MaterializeTemporaryExpr>(E))
85 if (auto *NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E))
94 if (auto *CE = dyn_cast<CastExpr>(E))
102 if (auto *CE = dyn_cast<CastExp
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAnnotation2Metadata.cpp45 auto *OpC = dyn_cast<ConstantStruct>(&Op);
48 auto *StrC = dyn_cast<GlobalValue>(OpC->getOperand(1)->stripPointerCasts());
51 auto *StrData = dyn_cast<ConstantDataSequential>(StrC->getOperand(0));
54 auto *Fn = dyn_cast<Function>(OpC->getOperand(0)->stripPointerCasts());
/freebsd-current/contrib/llvm-project/llvm/lib/ObjCopy/
H A DObjCopy.cpp40 if (auto *ELFBinary = dyn_cast<object::ELFObjectFileBase>(&In)) {
48 if (auto *COFFBinary = dyn_cast<object::COFFObjectFile>(&In)) {
56 if (auto *MachOBinary = dyn_cast<object::MachOObjectFile>(&In)) {
65 dyn_cast<object::MachOUniversalBinary>(&In)) {
69 if (auto *WasmBinary = dyn_cast<object::WasmObjectFile>(&In)) {
77 if (auto *XCOFFBinary = dyn_cast<object::XCOFFObjectFile>(&In)) {
/freebsd-current/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DASTUtils.cpp22 if (auto *cast = dyn_cast<CastExpr>(E)) {
35 if (auto *call = dyn_cast<CallExpr>(E)) {
36 if (auto *memberCall = dyn_cast<CXXMemberCallExpr>(call)) {
47 if (auto *operatorCall = dyn_cast<CXXOperatorCallExpr>(E)) {
69 if (auto *unaryOp = dyn_cast<UnaryOperator>(E)) {
83 if (auto *Ref = dyn_cast<DeclRefExpr>(E)) {
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetFolder.h56 auto *LC = dyn_cast<Constant>(LHS);
57 auto *RC = dyn_cast<Constant>(RHS);
68 auto *LC = dyn_cast<Constant>(LHS);
69 auto *RC = dyn_cast<Constant>(RHS);
81 auto *LC = dyn_cast<Constant>(LHS);
82 auto *RC = dyn_cast<Constant>(RHS);
103 auto *LC = dyn_cast<Constant>(LHS);
104 auto *RC = dyn_cast<Constant>(RHS);
112 if (Constant *C = dyn_cast<Constant>(V))
122 if (auto *PC = dyn_cast<Constan
[all...]
/freebsd-current/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantFolder.h45 auto *LC = dyn_cast<Constant>(LHS);
46 auto *RC = dyn_cast<Constant>(RHS);
57 auto *LC = dyn_cast<Constant>(LHS);
58 auto *RC = dyn_cast<Constant>(RHS);
70 auto *LC = dyn_cast<Constant>(LHS);
71 auto *RC = dyn_cast<Constant>(RHS);
93 if (Constant *C = dyn_cast<Constant>(V))
99 auto *LC = dyn_cast<Constant>(LHS);
100 auto *RC = dyn_cast<Constant>(RHS);
111 if (auto *PC = dyn_cast<Constan
[all...]
/freebsd-current/contrib/llvm-project/llvm/utils/TableGen/GlobalISel/
H A DCombinerUtils.h25 if (const DefInit *OpI = dyn_cast<DefInit>(&N))
36 if (const DefInit *OpI = dyn_cast<DefInit>(&N))
48 if (const DagInit *I = dyn_cast<DagInit>(&N))
50 if (const DefInit *OpI = dyn_cast<DefInit>(I->getOperator()))
62 if (const DagInit *I = dyn_cast<DagInit>(&N))
63 if (const DefInit *OpI = dyn_cast<DefInit>(I->getOperator()))
/freebsd-current/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp33 if (const auto *If = dyn_cast<IfStmt>(S))
36 if (const auto *While = dyn_cast<WhileStmt>(S))
38 if (const auto *For = dyn_cast<ForStmt>(S))
40 if (const auto *CXXFor = dyn_cast<CXXForRangeStmt>(S))
42 if (const auto *ObjCFor = dyn_cast<ObjCForCollectionStmt>(S))
44 if(const auto *Switch = dyn_cast<SwitchStmt>(S))
46 if(const auto *Case = dyn_cast<SwitchCase>(S))
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerAtomicPass.cpp43 if (FenceInst *FI = dyn_cast<FenceInst>(&Inst))
45 else if (AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(&Inst))
47 else if (AtomicRMWInst *RMWI = dyn_cast<AtomicRMWInst>(&Inst))
49 else if (LoadInst *LI = dyn_cast<LoadInst>(&Inst)) {
52 } else if (StoreInst *SI = dyn_cast<StoreInst>(&Inst)) {
H A DLowerExpectIntrinsic.cpp77 CallInst *CI = dyn_cast<CallInst>(SI.getCondition());
87 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1));
118 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(Expect->getArgOperand(1));
147 if (ZExtInst *ZExt = dyn_cast<ZExtInst>(V)) {
153 if (SExtInst *SExt = dyn_cast<SExtInst>(V)) {
159 BinaryOperator *BinOp = dyn_cast<BinaryOperator>(V);
163 ConstantInt *CInt = dyn_cast<ConstantInt>(BinOp->getOperand(1));
198 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator());
204 BI = dyn_cast<BranchInst>(BB->getTerminator());
216 ConstantInt *CI = dyn_cast<ConstantIn
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/AST/
H A DStmtIterator.cpp26 while (const ArrayType *vt = dyn_cast<ArrayType>(t)) {
27 if (const VariableArrayType *vat = dyn_cast<VariableArrayType>(vt))
48 if (VarDecl* VD = dyn_cast<VarDecl>(*DGI))
75 if (VarDecl* VD = dyn_cast<VarDecl>(D)) {
84 else if (TypedefNameDecl* TD = dyn_cast<TypedefNameDecl>(D)) {
91 else if (EnumConstantDecl* ECD = dyn_cast<EnumConstantDecl>(D)) {
/freebsd-current/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstrInfo.cpp48 if (const Argument *Arg = dyn_cast<Argument>(Ptr))
51 const Instruction *I = dyn_cast<Instruction>(Ptr);
/freebsd-current/contrib/llvm-project/llvm/lib/IR/
H A DTypeFinder.cpp79 if (auto *GEP = dyn_cast<GetElementPtrInst>(&I))
81 if (auto *AI = dyn_cast<AllocaInst>(&I))
83 if (const auto *CB = dyn_cast<CallBase>(&I))
118 if (StructType *STy = dyn_cast<StructType>(Ty))
134 if (const auto *M = dyn_cast<MetadataAsValue>(V)) {
135 if (const auto *N = dyn_cast<MDNode>(M->getMetadata()))
137 if (const auto *MDV = dyn_cast<ValueAsMetadata>(M->getMetadata()))
139 if (const auto *AL = dyn_cast<DIArgList>(M->getMetadata())) {
160 if (auto *GEP = dyn_cast<GEPOperator>(V))
180 if (auto *N = dyn_cast<MDNod
[all...]
H A DProfileSummary.cpp109 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0));
110 ConstantAsMetadata *ValMD = dyn_cast<ConstantAsMetadata>(MD->getOperand(1));
139 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0));
140 MDString *ValMD = dyn_cast<MDString>(MD->getOperand(1));
152 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0));
155 MDTuple *EntriesMD = dyn_cast<MDTuple>(MD->getOperand(1));
159 MDTuple *EntryMD = dyn_cast<MDTuple>(MDOp);
163 dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(0));
165 dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(1));
167 dyn_cast<ConstantAsMetadat
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiSelectionDAGInfo.cpp27 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size);
/freebsd-current/contrib/llvm-project/lld/COFF/
H A DMarkLive.cpp35 if (auto *sc = dyn_cast<SectionChunk>(c))
47 if (auto *sym = dyn_cast<DefinedRegular>(b))
49 else if (auto *sym = dyn_cast<DefinedImportData>(b))
51 else if (auto *sym = dyn_cast<DefinedImportThunk>(b))
H A DSymbols.cpp70 if (auto *sym = dyn_cast<DefinedCOFF>(this))
72 if (auto *sym = dyn_cast<LazyArchive>(this))
74 if (auto *sym = dyn_cast<LazyObject>(this))
76 if (auto *sym = dyn_cast<LazyDLLSymbol>(this))
82 if (auto *r = dyn_cast<DefinedRegular>(this))
84 if (auto *imp = dyn_cast<DefinedImportData>(this))
86 if (auto *imp = dyn_cast<DefinedImportThunk>(this))
130 if (auto *d = dyn_cast<Defined>(a))
/freebsd-current/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerAggrCopies.cpp71 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) {
78 if (StoreInst *SI = dyn_cast<StoreInst>(LI->user_back())) {
83 } else if (MemIntrinsic *IntrCall = dyn_cast<MemIntrinsic>(&I)) {
86 if (ConstantInt *LenCI = dyn_cast<ConstantInt>(IntrCall->getLength())) {
127 if (MemCpyInst *Memcpy = dyn_cast<MemCpyInst>(MemCall)) {
129 } else if (MemMoveInst *Memmove = dyn_cast<MemMoveInst>(MemCall)) {
131 } else if (MemSetInst *Memset = dyn_cast<MemSetInst>(MemCall)) {
H A DNVPTXLowerAlloca.cpp71 if (auto allocaInst = dyn_cast<AllocaInst>(&I)) {
87 auto LI = dyn_cast<LoadInst>(AllocaUse.getUser());
93 auto SI = dyn_cast<StoreInst>(AllocaUse.getUser());
99 auto GI = dyn_cast<GetElementPtrInst>(AllocaUse.getUser());
104 auto BI = dyn_cast<BitCastInst>(AllocaUse.getUser());
/freebsd-current/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DUndefinedAssignmentChecker.cpp43 dyn_cast<FunctionDecl>(C.getStackFrame()->getDecl()))
59 if (const UnaryOperator *U = dyn_cast<UnaryOperator>(StoreE)) {
67 if (const BinaryOperator *B = dyn_cast<BinaryOperator>(StoreE)) {
81 if (const DeclStmt *DS = dyn_cast<DeclStmt>(StoreE)) {
87 dyn_cast<CXXConstructorDecl>(C.getStackFrame()->getDecl())) {
H A DCStringSyntaxChecker.cpp39 if (const auto *D1 = dyn_cast<DeclRefExpr>(A1->IgnoreParenCasts()))
40 if (const auto *D2 = dyn_cast<DeclRefExpr>(A2->IgnoreParenCasts()))
47 if (const auto *UE = dyn_cast<UnaryExprOrTypeTraitExpr>(E))
55 if (const auto *CE = dyn_cast<CallExpr>(E)) {
67 if (const auto *IL = dyn_cast<IntegerLiteral>(E))
73 if (const auto *D = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()))
130 if (const auto *BE = dyn_cast<BinaryOperator>(LenArg->IgnoreParenCasts())) {
159 const auto *DstArgDRE = dyn_cast<DeclRefExpr>(DstArg->IgnoreParenImpCasts());
161 dyn_cast<DeclRefExpr>(LenArg->IgnoreParenLValueCasts());
168 const auto *LenArgVal = dyn_cast<VarDec
[all...]
H A DDeadStoresChecker.cpp57 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl()))
107 const BinaryOperator *BO = dyn_cast<BinaryOperator>(Ex);
288 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
297 const BinaryOperator* BRHS = dyn_cast<BinaryOperator>(RHS);
304 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts())))
308 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts())))
326 if (const BinaryOperator* B = dyn_cast<BinaryOperator>(S)) {
329 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS()))
330 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
346 if (const DeclRefExpr *RhsDR = dyn_cast<DeclRefExp
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonOptimizeSZextends.cpp103 BinaryOperator *Ashr = dyn_cast<BinaryOperator>(&I);
107 ConstantInt *C = dyn_cast<ConstantInt>(AshrOp1);
113 Instruction *Shl = dyn_cast<Instruction>(Ashr->getOperand(0));
118 C = dyn_cast<ConstantInt>(ShlOp1);
124 if (IntrinsicInst *I = dyn_cast<IntrinsicInst>(Intr)) {
131 if (Instruction *J = dyn_cast<Instruction>(TheUse.getUser())) {
/freebsd-current/contrib/llvm-project/llvm/lib/Analysis/
H A DTypeMetadataUtils.cpp41 } else if (auto *CI = dyn_cast<CallInst>(User)) {
43 } else if (auto *II = dyn_cast<InvokeInst>(User)) {
61 } else if (auto GEP = dyn_cast<GetElementPtrInst>(User)) {
86 if (auto *Assume = dyn_cast<AssumeInst>(CIU.getUser()))
106 auto *Offset = dyn_cast<ConstantInt>(CI->getArgOperand(1));
114 if (auto EVI = dyn_cast<ExtractValueInst>(CIU)) {
142 if (auto *C = dyn_cast<ConstantStruct>(I)) {
152 if (auto *C = dyn_cast<ConstantArray>(I)) {
165 if (auto *CI = dyn_cast<ConstantInt>(I)) {
170 if (auto *C = dyn_cast<ConstantExp
[all...]
H A DValueLatticeUtils.cpp34 if (auto *Store = dyn_cast<StoreInst>(U))
37 if (auto *Load = dyn_cast<LoadInst>(U))

Completed in 317 milliseconds

1234567891011>>