Searched refs:dyn_cast (Results 201 - 225 of 1463) sorted by relevance

1234567891011>>

/freebsd-current/contrib/llvm-project/llvm/utils/TableGen/
H A DDAGISelMatcher.cpp355 if (const CheckOpcodeMatcher *COM = dyn_cast<CheckOpcodeMatcher>(M)) {
365 if (const CheckTypeMatcher *CT = dyn_cast<CheckTypeMatcher>(M)) {
379 if (const CheckTypeMatcher *CT = dyn_cast<CheckTypeMatcher>(M))
385 if (const CheckChildTypeMatcher *CC = dyn_cast<CheckChildTypeMatcher>(M)) {
397 if (const CheckIntegerMatcher *CIM = dyn_cast<CheckIntegerMatcher>(M))
403 if (const CheckChildIntegerMatcher *CCIM = dyn_cast<CheckChildIntegerMatcher>(M)) {
415 if (const CheckValueTypeMatcher *CVT = dyn_cast<CheckValueTypeMatcher>(M))
431 if (const auto *CCCM = dyn_cast<CheckCondCodeMatcher>(M))
437 if (const auto *CCCCM = dyn_cast<CheckChild2CondCodeMatcher>(M))
H A DCodeGenInstAlias.cpp32 DefInit *ADI = dyn_cast<DefInit>(Arg);
108 if (IntInit *II = dyn_cast<IntInit>(Arg)) {
120 if (BitsInit *BI = dyn_cast<BitsInit>(Arg)) {
173 DefInit *DI = dyn_cast<DefInit>(Result->getOperator());
184 DefInit *ADI = dyn_cast<DefInit>(Result->getArg(i));
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopDeletion.cpp90 if (Instruction *I = dyn_cast<Instruction>(incoming)) {
187 if (auto *BO = dyn_cast<BinaryOperator>(V)) {
193 } else if (auto *Cmp = dyn_cast<ICmpInst>(V)) {
199 } else if (auto *Select = dyn_cast<SelectInst>(V)) {
202 if (auto *C = dyn_cast<ConstantInt>(Cond)) {
335 auto *ICmp = dyn_cast<ICmpInst>(Cond);
364 auto *ConstCondition = dyn_cast<ConstantInt>(KnownCondition);
374 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(Term)) {
378 auto *ConstSwitchValue = dyn_cast<ConstantInt>(SwitchValueOnFirstIter);
H A DLoopInterchange.cpp98 if (auto *Ld = dyn_cast<LoadInst>(&I)) {
102 } else if (auto *St = dyn_cast<StoreInst>(&I)) {
558 dyn_cast<BranchInst>(OuterLoopHeader->getTerminator());
610 Instruction *I = dyn_cast<Instruction>(Val);
633 dyn_cast<BranchInst>(InnerLoopLatch->getTerminator());
637 dyn_cast<CmpInst>(InnerLoopLatchBI->getCondition())) {
656 const Instruction *I = dyn_cast<Instruction>(V);
696 PHINode *PHI = dyn_cast<PHINode>(SV);
712 if (PHINode *PHI = dyn_cast<PHINode>(User)) {
867 PHINode *PN = dyn_cast<PHINod
[all...]
H A DLoopRerollPass.cpp517 if (auto *BO = dyn_cast<BinaryOperator>(User)) {
522 if (PHINode *PN = dyn_cast<PHINode>(UU)) {
556 dyn_cast<SCEVAddRecExpr>(SE->getSCEV(&IV))) {
561 const auto *IncSCEV = dyn_cast<SCEVConstant>(PHISCEV->getStepRecurrence(*SE));
668 if (PHINode *PN = dyn_cast<PHINode>(User)) {
681 if (Instruction *Op = dyn_cast<Instruction>(U))
701 if (LoadInst *LI = dyn_cast<LoadInst>(I))
703 if (StoreInst *SI = dyn_cast<StoreInst>(I))
705 if (MemIntrinsic *MI = dyn_cast<MemIntrinsic>(I))
714 if (Instruction *I = dyn_cast<Instructio
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSSAUpdater.cpp112 if (PHINode *SomePhi = dyn_cast<PHINode>(BB->begin())) {
192 if (PHINode *UserPN = dyn_cast<PHINode>(User))
252 if (PHINode *UserPN = dyn_cast<PHINode>(User))
304 if (PHINode *SomePhi = dyn_cast<PHINode>(BB->begin()))
334 return dyn_cast<PHINode>(Val);
377 if (const LoadInst *LI = dyn_cast<LoadInst>(Insts[0]))
413 if (StoreInst *SI = dyn_cast<StoreInst>(User)) {
449 if (LoadInst *L = dyn_cast<LoadInst>(&I)) {
465 if (StoreInst *SI = dyn_cast<StoreInst>(&I)) {
H A DLowerGlobalDtors.cpp81 const ConstantArray *InitList = dyn_cast<ConstantArray>(GV->getInitializer());
86 auto *ETy = dyn_cast<StructType>(InitList->getType()->getElementType());
101 auto *CS = dyn_cast<ConstantStruct>(O);
105 auto *Priority = dyn_cast<ConstantInt>(CS->getOperand(0));
147 if (auto F = dyn_cast<Function>(AtExit.getCallee())) {
H A DCloneFunction.cpp72 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) {
139 if (Argument *NewArg = dyn_cast<Argument>(VMap[&OldArg])) {
214 if (ReturnInst *RI = dyn_cast<ReturnInst>(CBB->getTerminator()))
243 auto *LScope = dyn_cast<DILocalScope>(S);
447 if (const auto *CmpI = dyn_cast<FCmpInst>(&OldInst)) {
532 if (auto *Call = dyn_cast<CallInst>(NewInst))
574 if (auto *CB = dyn_cast<CallBase>(&*II))
579 if (const AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
590 if (const BranchInst *BI = dyn_cast<BranchInst>(OldTI)) {
593 ConstantInt *Cond = dyn_cast<ConstantIn
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolution.cpp443 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this))
449 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this))
455 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this))
461 const SCEVMulExpr *Mul = dyn_cast<SCEVMulExpr>(this);
465 const SCEVConstant *SC = dyn_cast<SCEVConstant>(Mul->getOperand(0));
613 if (const auto *LA = dyn_cast<Argument>(LV)) {
619 if (const auto *LGV = dyn_cast<GlobalValue>(LV)) {
636 if (const auto *LInst = dyn_cast<Instruction>(LV)) {
1036 if (auto *U = dyn_cast<SCEVUnknown>(Op)) {
1150 if (const SCEVConstant *SC = dyn_cast<SCEVConstan
[all...]
H A DBasicAliasAnalysis.cpp371 if (const ConstantInt *Const = dyn_cast<ConstantInt>(Val.V))
375 if (const BinaryOperator *BOp = dyn_cast<BinaryOperator>(Val.V)) {
376 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(BOp->getOperand(1))) {
555 const Instruction *CxtI = dyn_cast<Instruction>(V);
562 const Operator *Op = dyn_cast<Operator>(V);
565 if (const GlobalAlias *GA = dyn_cast<GlobalAlias>(V)) {
581 const GEPOperator *GEPOp = dyn_cast<GEPOperator>(Op);
583 if (const auto *PHI = dyn_cast<PHINode>(V)) {
589 } else if (const auto *Call = dyn_cast<CallBase>(V)) {
639 if (const ConstantInt *CIdx = dyn_cast<ConstantIn
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp85 if (PHINode *PN = dyn_cast<PHINode>(WU)) {
95 } else if (Instruction *Instr = dyn_cast<Instruction>(WU)) {
99 ConstantExpr *CExpr = dyn_cast<ConstantExpr>(WU);
117 ConstantExpr *CE = dyn_cast<ConstantExpr>(WU);
125 ArrayType *AT = dyn_cast<ArrayType>(Ty);
/freebsd-current/contrib/llvm-project/clang/lib/Analysis/
H A DLiveVariables.cpp72 if (const auto *DD = dyn_cast<DecompositionDecl>(D)) {
183 while (const ArrayType *VT = dyn_cast<ArrayType>(ty)) {
184 if (const VariableArrayType *VAT = dyn_cast<VariableArrayType>(VT))
196 if (const Expr *Ex = dyn_cast<Expr>(E))
198 if (const FullExpr *FE = dyn_cast<FullExpr>(E)) {
202 if (const OpaqueValueExpr *OVE = dyn_cast<OpaqueValueExpr>(E)) {
223 if (const auto *E = dyn_cast<Expr>(S)) {
255 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) {
268 if (OpaqueValueExpr *OV = dyn_cast<OpaqueValueExpr>(child))
335 if (const auto *DR = dyn_cast<DeclRefExp
[all...]
H A DCallGraph.cpp61 if (BlockExpr *Block = dyn_cast<BlockExpr>(CEE)) {
141 if (BlockDecl *BD = dyn_cast<BlockDecl>(D))
145 if (auto *DC = dyn_cast<DeclContext>(I))
164 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
190 if (auto constructor = dyn_cast<CXXConstructorDecl>(D)) {
/freebsd-current/contrib/llvm-project/llvm/lib/Target/ARC/MCTargetDesc/
H A DARCInstPrinter.cpp112 if (const auto *CE = dyn_cast<MCConstantExpr>(Expr)) {
118 if (const auto *BE = dyn_cast<MCBinaryExpr>(Expr)) {
119 SRE = dyn_cast<MCSymbolRefExpr>(BE->getLHS());
120 const auto *CE = dyn_cast<MCConstantExpr>(BE->getRHS());
124 SRE = dyn_cast<MCSymbolRefExpr>(Expr);
/freebsd-current/contrib/llvm-project/clang/lib/AST/
H A DASTImporterLookupTable.cpp30 if (const auto *RTy = dyn_cast<RecordType>(Ty)) {
59 if (const auto *RTy = dyn_cast<RecordType>(Ty))
61 else if (const auto *SpecTy = dyn_cast<TemplateSpecializationType>(Ty))
64 dyn_cast<SubstTemplateTypeParmType>(Ty)) {
98 if (auto *Ns = dyn_cast<NamespaceDecl>(D->getDeclContext()))
/freebsd-current/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DWasmEmitter.cpp348 if (auto S = dyn_cast<WasmYAML::DylinkSection>(&Section)) {
350 } else if (auto S = dyn_cast<WasmYAML::NameSection>(&Section)) {
352 } else if (auto S = dyn_cast<WasmYAML::LinkingSection>(&Section)) {
354 } else if (auto S = dyn_cast<WasmYAML::ProducersSection>(&Section)) {
356 } else if (auto S = dyn_cast<WasmYAML::TargetFeaturesSection>(&Section)) {
604 if (auto S = dyn_cast<WasmYAML::CustomSection>(Sec.get()))
613 if (auto S = dyn_cast<WasmYAML::CustomSection>(Sec.get()))
615 else if (auto S = dyn_cast<WasmYAML::TypeSection>(Sec.get()))
617 else if (auto S = dyn_cast<WasmYAML::ImportSection>(Sec.get()))
619 else if (auto S = dyn_cast<WasmYAM
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteKernelArguments.cpp69 Instruction *U = dyn_cast<Instruction>(PtrUsers.pop_back_val());
97 LoadInst *LI = dyn_cast<LoadInst>(Ptr);
101 PointerType *PT = dyn_cast<PointerType>(Ptr->getType());
142 AllocaInst *AI = dyn_cast<AllocaInst>(&*InsPt);
170 PointerType *PT = dyn_cast<PointerType>(Arg.getType());
/freebsd-current/contrib/llvm-project/llvm/lib/CodeGen/
H A DReplaceWithVeclib.cpp78 auto *CI = dyn_cast<CallInst>(&I);
106 auto *VTy = dyn_cast<VectorType>(I.getType());
115 auto *CI = dyn_cast<CallInst>(&I);
124 } else if (auto *VectorArgTy = dyn_cast<VectorType>(ArgTy)) {
214 if (auto *CI = dyn_cast<CallInst>(I))
/freebsd-current/contrib/llvm-project/clang/lib/AST/Interp/
H A DEvaluationResult.cpp78 } else if (const auto *ElemCAT = dyn_cast<ConstantArrayType>(ElemType)) {
140 const Decl *SourceDecl = Source.dyn_cast<const Decl *>();
174 if (const auto *D = Source.dyn_cast<const Decl *>()) {
175 if (const auto *VD = dyn_cast<ValueDecl>(D))
177 } else if (const auto *E = Source.dyn_cast<const Expr *>()) {
/freebsd-current/contrib/llvm-project/llvm/lib/Target/ARC/
H A DARCISelDAGToDAG.cpp106 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) {
135 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) {
150 if ((FIN = dyn_cast<FrameIndexSDNode>(Addr))) {
157 if ((FIN = dyn_cast<FrameIndexSDNode>(Addr.getOperand(0))) &&
158 (CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) &&
/freebsd-current/contrib/llvm-project/llvm/tools/llvm-size/
H A Dllvm-size.cpp360 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(Obj);
515 auto *MachO = dyn_cast<MachOObjectFile>(O);
549 if (Archive *a = dyn_cast<Archive>(&Bin)) {
559 if (ObjectFile *o = dyn_cast<ObjectFile>(&*ChildOrErr.get())) {
560 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o);
581 dyn_cast<MachOUniversalBinary>(&Bin)) {
595 if (ObjectFile *o = dyn_cast<ObjectFile>(&*UO.get())) {
596 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o);
633 if (ObjectFile *o = dyn_cast<ObjectFile>(&*ChildOrErr.get())) {
634 MachOObjectFile *MachO = dyn_cast<MachOObjectFil
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DStripSymbols.cpp60 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) {
114 dyn_cast<GlobalValue>(Inits->getOperand(i)->stripPointerCasts()))
158 if (Constant *C = dyn_cast<Constant>(Arg1))
164 if (Constant *C = dyn_cast<Constant>(Arg2))
173 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) {
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DBoundsChecking.cpp73 ConstantInt *SizeCI = dyn_cast<ConstantInt>(Size);
159 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) {
163 } else if (StoreInst *SI = dyn_cast<StoreInst>(&I)) {
167 } else if (AtomicCmpXchgInst *AI = dyn_cast<AtomicCmpXchgInst>(&I)) {
172 } else if (AtomicRMWInst *AI = dyn_cast<AtomicRMWInst>(&I)) {
/freebsd-current/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCMergeStringPool.cpp70 dyn_cast<ConstantDataSequential>(ConstLHS);
75 dyn_cast<ConstantDataSequential>(ConstRHS);
120 if (auto *I = dyn_cast<Instruction>(CurrentUser)) {
125 if (auto *II = dyn_cast<IntrinsicInst>(I)) {
190 dyn_cast<ConstantDataSequential>(Global.getInitializer());
/freebsd-current/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DRegionStore.cpp398 if (const auto *FD = dyn_cast<FunctionDecl>(InitLoc->getDecl()))
473 if (const auto *BR = dyn_cast<CXXBaseObjectRegion>(R))
653 if (const SubRegion *R = dyn_cast<SubRegion>(Key.getRegion())) {
814 if (const FieldRegion *FR = dyn_cast<FieldRegion>(R))
871 } else if (const FieldRegion *FR = dyn_cast<FieldRegion>(Top)) {
910 } else if (const SubRegion *BaseSR = dyn_cast<SubRegion>(Base)) {
1063 if (const auto *TO = dyn_cast<TypedValueRegion>(baseR)) {
1091 if (const BlockDataRegion *BR = dyn_cast<BlockDataRegion>(baseR)) {
1115 if (const SymbolicRegion *SR = dyn_cast<SymbolicRegion>(baseR))
1168 if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayTyp
[all...]

Completed in 172 milliseconds

1234567891011>>