Searched refs:dyn_cast (Results 76 - 100 of 1463) sorted by relevance

1234567891011>>

/freebsd-current/contrib/llvm-project/llvm/lib/IR/
H A DValue.cpp219 if (auto *Assume = dyn_cast<AssumeInst>(U.getUser())) {
248 const auto *User = dyn_cast<Instruction>(*UI);
261 if (Instruction *I = dyn_cast<Instruction>(V)) {
265 } else if (BasicBlock *BB = dyn_cast<BasicBlock>(V)) {
268 } else if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) {
271 } else if (Argument *A = dyn_cast<Argument>(V)) {
379 if (Function *F = dyn_cast<Function>(this))
458 const GlobalValue *GV = dyn_cast<GlobalValue>(this);
477 auto *CE = dyn_cast<ConstantExpr>(O);
490 auto *C = dyn_cast<Constan
[all...]
H A DOperator.cpp43 if (auto *NNI = dyn_cast<PossiblyNonNegInst>(this))
47 if (const auto *FP = dyn_cast<FPMathOperator>(this))
56 auto *I = dyn_cast<Instruction>(this);
61 if (auto *I = dyn_cast<GetElementPtrInst>(this))
67 if (auto *I = dyn_cast<GetElementPtrInst>(this))
80 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand());
141 if (auto ConstOffset = dyn_cast<ConstantInt>(V)) {
200 if (auto ConstOffset = dyn_cast<ConstantInt>(V)) {
H A DGlobals.cpp43 if (const Function *F = dyn_cast<Function>(this))
175 if (auto *GA = dyn_cast<GlobalAlias>(this)) {
185 if (auto *GA = dyn_cast<GlobalAlias>(this)) {
268 const Function *F = dyn_cast<Function>(this);
276 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(this))
280 if (const Function *F = dyn_cast<Function>(this))
333 if (auto *GO = dyn_cast<GlobalObject>(C)) {
337 if (auto *GA = dyn_cast<GlobalAlias>(C)) {
342 if (auto *CE = dyn_cast<ConstantExpr>(C)) {
374 auto *GO = dyn_cast<GlobalObjec
[all...]
H A DConstantFold.cpp77 if (VectorType *DestPTy = dyn_cast<VectorType>(DestTy)) {
90 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
102 if (ConstantFP *FP = dyn_cast<ConstantFP>(V)) {
143 if (ConstantInt *CI = dyn_cast<ConstantInt>(C)) {
153 ConstantExpr *CE = dyn_cast<ConstantExpr>(C);
159 ConstantInt *Amt = dyn_cast<ConstantInt>(CE->getOperand(1));
211 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V)) {
257 if (ConstantFP *FPC = dyn_cast<ConstantFP>(V)) {
267 if (ConstantFP *FPC = dyn_cast<ConstantFP>(V)) {
283 if (ConstantInt *CI = dyn_cast<ConstantIn
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Target/Lanai/AsmParser/
H A DLanaiAsmParser.cpp213 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(Imm.Value);
230 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value)) {
236 if (const LanaiMCExpr *SymbolRefExpr = dyn_cast<LanaiMCExpr>(Imm.Value))
240 if (const MCBinaryExpr *BinaryExpr = dyn_cast<MCBinaryExpr>(Imm.Value))
242 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS()))
252 const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value);
266 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value)) {
273 if (const LanaiMCExpr *SymbolRefExpr = dyn_cast<LanaiMCExpr>(Imm.Value))
277 if (const MCBinaryExpr *BinaryExpr = dyn_cast<MCBinaryExpr>(Imm.Value))
279 dyn_cast<LanaiMCExp
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DLLVMConventionsChecker.cpp40 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext());
146 if (VarDecl *VD = dyn_cast<VarDecl>(I))
159 ExprWithCleanups *Ex1 = dyn_cast<ExprWithCleanups>(Init);
162 CXXConstructExpr *Ex2 = dyn_cast<CXXConstructExpr>(Ex1->getSubExpr());
165 ImplicitCastExpr *Ex3 = dyn_cast<ImplicitCastExpr>(Ex2->getArg(0));
168 CXXConstructExpr *Ex4 = dyn_cast<CXXConstructExpr>(Ex3->getSubExpr());
171 ImplicitCastExpr *Ex5 = dyn_cast<ImplicitCastExpr>(Ex4->getArg(0));
174 CXXBindTemporaryExpr *Ex6 = dyn_cast<CXXBindTemporaryExpr>(Ex5->getSubExpr());
H A DObjCPropertyChecker.cpp58 dyn_cast<ObjCInterfaceDecl>(D->getDeclContext())) {
60 } else if (auto *CatD = dyn_cast<ObjCCategoryDecl>(D->getDeclContext())) {
/freebsd-current/contrib/llvm-project/llvm/lib/Analysis/
H A DOverflowInstAnalysis.cpp34 auto *Extract = dyn_cast<ExtractValueInst>(V);
39 II = dyn_cast<IntrinsicInst>(Extract->getAggregateOperand());
H A DLoopUnrollAnalyzer.cpp36 if (auto *SC = dyn_cast<SCEVConstant>(S)) {
46 auto *AR = dyn_cast<SCEVAddRecExpr>(S);
52 if (auto *SC = dyn_cast<SCEVConstant>(ValueAtIteration)) {
58 auto *Base = dyn_cast<SCEVUnknown>(SE.getPointerBase(S));
62 dyn_cast<SCEVConstant>(SE.getMinusSCEV(ValueAtIteration, Base));
88 if (auto FI = dyn_cast<FPMathOperator>(&I))
110 auto *GV = dyn_cast<GlobalVariable>(AddressIt->second.Base);
117 dyn_cast<ConstantDataSequential>(GV->getInitializer());
H A DDelinearization.cpp39 if (const auto *SU = dyn_cast<SCEVUnknown>(S))
56 if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(S))
131 if (auto *Mul = dyn_cast<SCEVMulExpr>(S)) {
135 const SCEVUnknown *Unknown = dyn_cast<SCEVUnknown>(Op);
206 if (const SCEVMulExpr *M = dyn_cast<SCEVMulExpr>(Step)) {
253 if (const SCEVMulExpr *Expr = dyn_cast<SCEVMulExpr>(S))
265 if (const SCEVMulExpr *M = dyn_cast<SCEVMulExpr>(T)) {
348 if (auto *AR = dyn_cast<SCEVAddRecExpr>(Expr))
497 if (auto *Const = dyn_cast<SCEVConstant>(Expr))
506 auto *ArrayTy = dyn_cast<ArrayTyp
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCodeBuilders.cpp24 if (const auto *CE = dyn_cast<CXXConstructExpr>(Expr)) {
45 if (const auto *Op = dyn_cast<CXXOperatorCallExpr>(Expr))
57 if (const auto *Op = dyn_cast<CXXOperatorCallExpr>(Expr))
87 if (const auto *Op = dyn_cast<UnaryOperator>(&E))
110 if (const auto *Op = dyn_cast<UnaryOperator>(&E))
133 if (const auto *Op = llvm::dyn_cast<UnaryOperator>(&E))
159 if (const auto *Op = llvm::dyn_cast<UnaryOperator>(&E))
194 if (const auto *OpCall = dyn_cast<clang::CXXOperatorCallExpr>(&E)) {
/freebsd-current/contrib/llvm-project/clang/include/clang/AST/
H A DASTImporterSharedState.h59 if (auto *ND = dyn_cast<NamedDecl>(D))
65 if (auto *ND = dyn_cast<NamedDecl>(D))
/freebsd-current/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/
H A DChromiumCheckModel.cpp58 if (const auto *Call = dyn_cast<CallExpr>(Stmt)) {
59 if (const auto *M = dyn_cast<CXXMethodDecl>(Call->getDirectCallee())) {
/freebsd-current/contrib/llvm-project/clang/lib/AST/Interp/
H A DSource.cpp36 if (auto *S = Source.dyn_cast<const Stmt *>())
37 return dyn_cast<Expr>(S);
/freebsd-current/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVStripConvergentIntrinsics.cpp46 if (auto *II = dyn_cast<IntrinsicInst>(&I)) {
58 } else if (auto *CI = dyn_cast<CallInst>(&I)) {
/freebsd-current/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerRefTypesIntPtrConv.cpp64 PtrToIntInst *PTI = dyn_cast<PtrToIntInst>(&*I);
65 IntToPtrInst *ITP = dyn_cast<IntToPtrInst>(&*I);
/freebsd-current/contrib/llvm-project/llvm/lib/TableGen/
H A DRecord.cpp127 if (const BitsRecTy *BitsTy = dyn_cast<BitsRecTy>(RHS))
180 if (const auto *ListTy = dyn_cast<ListRecTy>(RHS))
186 if (const ListRecTy *RHSl = dyn_cast<ListRecTy>(RHS))
281 const RecordRecTy *RTy = dyn_cast<RecordRecTy>(RHS);
315 if (RecordRecTy *RecTy1 = dyn_cast<RecordRecTy>(T1)) {
316 if (RecordRecTy *RecTy2 = dyn_cast<RecordRecTy>(T2))
328 if (ListRecTy *ListTy1 = dyn_cast<ListRecTy>(T1)) {
329 if (ListRecTy *ListTy2 = dyn_cast<ListRecTy>(T2)) {
351 if (auto *TyInit = dyn_cast<TypedInit>(this))
353 if (auto *ArgInit = dyn_cast<ArgumentIni
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/AST/
H A DDeclBase.cpp148 if (auto *DD = dyn_cast<DecompositionDecl>(this)) {
211 if (const auto *TTP = dyn_cast<TemplateTypeParmDecl>(this))
213 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(this))
215 if (const auto *TTP = dyn_cast<TemplateTemplateParmDecl>(this))
221 if (const auto *Var = dyn_cast<VarDecl>(this))
228 if (auto *FD = dyn_cast<FunctionDecl>(this))
230 if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(this))
240 if (auto *FD = dyn_cast<FunctionDecl>(this))
242 if (auto *RD = dyn_cast<CXXRecordDecl>(this))
244 if (auto *VD = dyn_cast<VarDec
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/CodeGen/
H A DWinEHPrepare.cpp172 dyn_cast<AllocaInst>(CPI->getArgOperand(2)->stripPointerCasts()))
183 if (const auto *CRI = dyn_cast<CleanupReturnInst>(U))
193 auto *II = dyn_cast<InvokeInst>(BB.getTerminator());
203 dyn_cast<FuncletPadInst>(FuncletEntryBB->getFirstNonPHI());
207 else if (auto *CatchPad = dyn_cast<CatchPadInst>(FuncletPad))
209 else if (auto *CleanupPad = dyn_cast<CleanupPadInst>(FuncletPad))
326 const Function *Filter = dyn_cast<Function>(FilterOrNull);
360 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) {
381 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) {
416 if (auto *InnerCatchSwitch = dyn_cast<CatchSwitchIns
[all...]
H A DTypePromotion.cpp238 else if (auto *Call = dyn_cast<CallInst>(V))
240 else if (auto *Trunc = dyn_cast<TruncInst>(V))
259 if (auto *Store = dyn_cast<StoreInst>(V))
261 if (auto *Return = dyn_cast<ReturnInst>(V))
263 if (auto *ZExt = dyn_cast<ZExtInst>(V))
265 if (auto *Switch = dyn_cast<SwitchInst>(V))
267 if (auto *ICmp = dyn_cast<ICmpInst>(V))
348 if (auto *Const = dyn_cast<ConstantInt>(CI->getOperand(0)))
350 else if (auto *Const = dyn_cast<ConstantInt>(CI->getOperand(1)))
387 auto *I = dyn_cast<Instructio
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFlattenCFG.cpp137 PHINode *PHI = dyn_cast<PHINode>(BB->begin());
149 BranchInst *PBI = dyn_cast<BranchInst>(Pred->getTerminator());
221 BranchInst *BPS = dyn_cast<BranchInst>(PS->getTerminator());
235 BranchInst *PBI1 = dyn_cast<BranchInst>(PS1->getTerminator());
236 BranchInst *PBI2 = dyn_cast<BranchInst>(PS2->getTerminator());
253 auto *CI = dyn_cast<CmpInst>(BI->getCondition());
273 PHI = dyn_cast<PHINode>(PS2->begin());
346 StoreInst *SI = dyn_cast<StoreInst>(CurI);
418 Instruction *CInst2 = dyn_cast<Instruction>(DomBI2->getCondition());
430 Instruction *CInst1 = dyn_cast<Instructio
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanTransforms.cpp50 if (auto *VPPhi = dyn_cast<VPWidenPHIRecipe>(&Ingredient)) {
66 if (LoadInst *Load = dyn_cast<LoadInst>(Inst)) {
70 } else if (StoreInst *Store = dyn_cast<StoreInst>(Inst)) {
74 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Inst)) {
76 } else if (CallInst *CI = dyn_cast<CallInst>(Inst)) {
80 } else if (SelectInst *SI = dyn_cast<SelectInst>(Inst)) {
82 } else if (auto *CI = dyn_cast<CastInst>(Inst)) {
111 VPBasicBlock *VPBB = dyn_cast<VPBasicBlock>(EntryVPBB->getSuccessors()[0]);
132 if (auto *RepR = dyn_cast<VPReplicateRecipe>(SinkCandidate)) {
145 auto *UI = dyn_cast<VPRecipeBas
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Target/VE/
H A DVECustomDAG.cpp219 if (MemSDNode *MemN = dyn_cast<MemSDNode>(Op.getNode()))
231 if (auto *MemN = dyn_cast<MemSDNode>(Op.getNode()))
247 if (auto MemN = dyn_cast<MemSDNode>(Op))
300 if (auto *StoreN = dyn_cast<VPStridedStoreSDNode>(Op.getNode()))
302 if (auto *StoreN = dyn_cast<VPStridedLoadSDNode>(Op.getNode()))
317 if (auto *N = dyn_cast<MaskedGatherScatterSDNode>(Op.getNode()))
319 if (auto *N = dyn_cast<VPGatherScatterSDNode>(Op.getNode()))
325 if (auto *N = dyn_cast<MaskedGatherScatterSDNode>(Op.getNode()))
327 if (auto *N = dyn_cast<VPGatherScatterSDNode>(Op.getNode()))
338 if (auto *StoreN = dyn_cast<StoreSDNod
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp292 Instruction *U = dyn_cast<Instruction>(Q.pop_front_val());
303 const auto *U = dyn_cast<const Instruction>(V);
341 if (Instruction *U = dyn_cast<Instruction>(V)) {
405 Instruction *U = dyn_cast<Instruction>(Q.pop_front_val());
439 Instruction *U = dyn_cast<Instruction>(V);
483 auto *InI = dyn_cast<const Instruction>(OpI);
484 auto *InJ = dyn_cast<const Instruction>(OpJ);
495 Instruction *SubI = dyn_cast<Instruction>(Sub);
503 Instruction *U = dyn_cast<Instruction>(V);
521 if (Instruction *OpI = dyn_cast<Instructio
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransZeroOutPropsInDealloc.cpp52 DeclRefExpr *refE = dyn_cast<DeclRefExpr>(receiver->IgnoreParenCasts());
106 ObjCImplDecl *IMD = dyn_cast<ObjCImplDecl>(D->getDeclContext());
151 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(E))
153 if (PseudoObjectExpr *PO = dyn_cast<PseudoObjectExpr>(E))
167 if (ObjCIvarRefExpr *IV = dyn_cast<ObjCIvarRefExpr>(LHS)) {
191 BinaryOperator *BO = dyn_cast<BinaryOperator>(PO->getSyntacticForm());
196 dyn_cast<ObjCPropertyRefExpr>(BO->getLHS()->IgnoreParens());

Completed in 321 milliseconds

1234567891011>>