Searched refs:dyn_cast (Results 176 - 200 of 680) sorted by relevance

1234567891011>>

/external/llvm/lib/Transforms/Scalar/
H A DEarlyCSE.cpp64 if (CallInst *CI = dyn_cast<CallInst>(Inst))
91 if (BinaryOperator* BinOp = dyn_cast<BinaryOperator>(Inst)) {
108 if (CmpInst *CI = dyn_cast<CmpInst>(Inst)) {
119 if (CastInst *CI = dyn_cast<CastInst>(Inst))
122 if (const ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(Inst))
126 if (const InsertValueInst *IVI = dyn_cast<InsertValueInst>(Inst))
152 if (BinaryOperator *LHSBinOp = dyn_cast<BinaryOperator>(LHSI)) {
173 if (CmpInst *LHSCmp = dyn_cast<CmpInst>(LHSI)) {
210 CallInst *CI = dyn_cast<CallInst>(Inst);
463 if (LoadInst *LI = dyn_cast<LoadIns
[all...]
H A DSeparateConstOffsetFromGEP.cpp352 if (ConstantInt *ConstLHS = dyn_cast<ConstantInt>(LHS)) {
356 if (ConstantInt *ConstRHS = dyn_cast<ConstantInt>(RHS)) {
405 User *U = dyn_cast<User>(V);
409 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
412 } else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(V)) {
443 if (Constant *C = dyn_cast<Constant>(Current)) {
480 if (CastInst *Cast = dyn_cast<CastInst>(U)) {
520 if (ConstantInt *CI = dyn_cast<ConstantInt>(NextInChain)) {
623 dyn_cast<GlobalVariable>(GEP->getPointerOperand());
634 if (ZExtInst *Extended = dyn_cast<ZExtIns
[all...]
H A DScalarizer.cpp185 PtrTy = dyn_cast<PointerType>(Ty);
219 InsertElementInst *Insert = dyn_cast<InsertElementInst>(V);
222 ConstantInt *Idx = dyn_cast<ConstantInt>(Insert->getOperand(2));
262 if (Argument *VArg = dyn_cast<Argument>(V)) {
269 if (Instruction *VOp = dyn_cast<Instruction>(V)) {
324 if (Instruction *New = dyn_cast<Instruction>(CV[I])) {
342 Layout.VecTy = dyn_cast<VectorType>(Ty);
364 VectorType *VT = dyn_cast<VectorType>(I.getType());
384 VectorType *VT = dyn_cast<VectorType>(SI.getType());
426 VectorType *VT = dyn_cast<VectorTyp
[all...]
H A DSROA.cpp319 if (ConstantInt *CI = dyn_cast<ConstantInt>(SI.getCondition()))
413 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand());
418 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
501 ConstantInt *Length = dyn_cast<ConstantInt>(II.getLength());
517 ConstantInt *Length = dyn_cast<ConstantInt>(II.getLength());
621 if (LoadInst *LI = dyn_cast<LoadInst>(I)) {
625 if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
633 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(I)) {
821 if (DbgDeclareInst *DDI = dyn_cast<DbgDeclareInst>(U))
823 else if (DbgValueInst *DVI = dyn_cast<DbgValueIns
[all...]
/external/clang/lib/AST/
H A DDecl.cpp244 dyn_cast<NonTypeTemplateParmDecl>(P)) {
320 if (NamedDecl *ND = dyn_cast<NamedDecl>(Arg.getAsDecl())) {
532 const FunctionDecl *FD = dyn_cast<FunctionDecl>(D);
560 if (const LinkageSpecDecl *SD = dyn_cast<LinkageSpecDecl>(D.getDeclContext()))
578 if (const VarDecl *Var = dyn_cast<VarDecl>(D)) {
622 const VarDecl *Var = dyn_cast<VarDecl>(D);
623 const FunctionDecl *Func = dyn_cast<FunctionDecl>(D);
646 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(DC);
680 if (const VarDecl *Var = dyn_cast<VarDecl>(D)) {
721 = dyn_cast<VarTemplateSpecializationDec
[all...]
/external/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp172 CallInst *CI = dyn_cast<CallInst>(I);
230 if (InvokeInst *II = dyn_cast<InvokeInst>(I->getTerminator()))
252 if (ResumeInst *RI = dyn_cast<ResumeInst>(BB->getTerminator()))
299 Instruction *NewCall = dyn_cast<Instruction>(VMI->second);
411 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(U)) {
478 if (DbgValueInst *DVI = dyn_cast<DbgValueInst>(BI)) {
501 if (auto *BI = dyn_cast<BitCastInst>(Prev)) {
509 if (auto *CI = dyn_cast<CallInst>(Prev)) {
561 if (const InvokeInst *II = dyn_cast<InvokeInst>(I->getTerminator())) {
574 if (const InvokeInst *II = dyn_cast<InvokeIns
[all...]
H A DPromoteMemoryToRegister.cpp67 if (const LoadInst *LI = dyn_cast<LoadInst>(U)) {
72 } else if (const StoreInst *SI = dyn_cast<StoreInst>(U)) {
79 } else if (const IntrinsicInst *II = dyn_cast<IntrinsicInst>(U)) {
83 } else if (const BitCastInst *BCI = dyn_cast<BitCastInst>(U)) {
88 } else if (const GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(U)) {
137 if (StoreInst *SI = dyn_cast<StoreInst>(User)) {
457 if (StoreInst *SI = dyn_cast<StoreInst>(U))
467 LoadInst *LI = dyn_cast<LoadInst>(*UI++);
751 while ((SomePHI = dyn_cast<PHINode>(BBI++)) &&
789 if (StoreInst *SI = dyn_cast<StoreIns
[all...]
H A DBuildLibCalls.cpp56 if (const Function *F = dyn_cast<Function>(StrLen->stripPointerCasts()))
86 if (const Function *F = dyn_cast<Function>(StrNLen->stripPointerCasts()))
114 if (const Function *F = dyn_cast<Function>(StrChr->stripPointerCasts()))
145 if (const Function *F = dyn_cast<Function>(StrNCmp->stripPointerCasts()))
170 if (const Function *F = dyn_cast<Function>(StrCpy->stripPointerCasts()))
196 if (const Function *F = dyn_cast<Function>(StrNCpy->stripPointerCasts()))
225 if (const Function *F = dyn_cast<Function>(MemCpy->stripPointerCasts()))
253 if (const Function *F = dyn_cast<Function>(MemChr->stripPointerCasts()))
284 if (const Function *F = dyn_cast<Function>(MemCmp->stripPointerCasts()))
319 if (const Function *F = dyn_cast<Functio
[all...]
H A DLowerInvoke.cpp57 if (InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator())) {
H A DMem2Reg.cpp73 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) // Is it an alloca?
/external/llvm/lib/Analysis/IPA/
H A DInlineCost.cpp250 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand());
253 OpC = dyn_cast<ConstantInt>(SimpleOp);
259 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
277 ConstantInt *AllocSize = dyn_cast<ConstantInt>(Size);
367 Constant *COp = dyn_cast<Constant>(I.getOperand(0));
396 Constant *COp = dyn_cast<Constant>(I.getOperand(0));
433 Constant *COp = dyn_cast<Constant>(I.getOperand(0));
463 Constant *COp = dyn_cast<Constant>(I.getOperand(0));
480 Constant *COp = dyn_cast<Constant>(Operand);
505 if (Constant *CLHS = dyn_cast<Constan
[all...]
/external/llvm/include/llvm/IR/
H A DPatternMatch.h129 if (const Constant *C = dyn_cast<Constant>(V))
142 if (const Constant *C = dyn_cast<Constant>(V))
166 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
171 if (const Constant *C = dyn_cast<Constant>(V))
190 if (const ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
215 if (const ConstantInt *CI = dyn_cast<ConstantInt>(V))
218 if (const Constant *C = dyn_cast<Constant>(V))
234 if (const ConstantInt *CI = dyn_cast<ConstantInt>(V))
240 if (const Constant *C = dyn_cast<Constant>(V))
291 if (Class *CV = dyn_cast<Clas
[all...]
/external/lldb/source/Expression/
H A DIRInterpreter.cpp150 const Constant *constant = dyn_cast<Constant>(value);
220 if (const ConstantInt *constant_int = dyn_cast<ConstantInt>(constant))
227 if (const ConstantFP *constant_fp = dyn_cast<ConstantFP>(constant))
234 if (const ConstantExpr *constant_expr = dyn_cast<ConstantExpr>(constant))
249 Constant *base = dyn_cast<Constant>(*op_cursor);
398 if (const Constant *constant = dyn_cast<Constant>(value))
471 ICmpInst *icmp_inst = dyn_cast<ICmpInst>(ii);
631 const BinaryOperator *bin_op = dyn_cast<BinaryOperator>(inst);
731 const AllocaInst *alloca_inst = dyn_cast<AllocaInst>(inst);
810 const CastInst *cast_inst = dyn_cast<CastIns
[all...]
/external/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp242 else if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(Obj))
476 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(Obj);
667 if (ELF32LEObjectFile *ELF = dyn_cast<ELF32LEObjectFile>(Obj))
669 if (ELF64LEObjectFile *ELF = dyn_cast<ELF64LEObjectFile>(Obj))
671 if (ELF32BEObjectFile *ELF = dyn_cast<ELF32BEObjectFile>(Obj))
673 if (ELF64BEObjectFile *ELF = dyn_cast<ELF64BEObjectFile>(Obj))
696 else if (IRObjectFile *IR = dyn_cast<IRObjectFile>(Obj))
698 else if (COFFObjectFile *COFF = dyn_cast<COFFObjectFile>(Obj))
700 else if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(Obj))
702 else if (ELF32LEObjectFile *ELF = dyn_cast<ELF32LEObjectFil
[all...]
/external/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp68 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(V))
71 if (const User *U = dyn_cast<User>(V)) {
125 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV))
128 if (const GlobalValue *GV = dyn_cast<GlobalValue>(CV))
131 if (const BlockAddress *BA = dyn_cast<BlockAddress>(CV))
134 const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV);
722 if (const IntegerType *ITy = dyn_cast<IntegerType>(Ty)) {
968 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) {
975 if (const Constant *C = dyn_cast<Constant>(U))
983 if (const GlobalVariable *othergv = dyn_cast<GlobalVariabl
[all...]
/external/clang/examples/PrintFunctionNames/
H A DPrintFunctionNames.cpp29 if (const NamedDecl *ND = dyn_cast<NamedDecl>(D))
/external/clang/include/clang/Basic/
H A DLLVM.h56 using llvm::dyn_cast;
/external/clang/lib/ARCMigrate/
H A DTransARCAssign.cpp49 DeclRefExpr *declRef = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts());
H A DTransGCCalls.cpp47 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) {
/external/clang/lib/Serialization/
H A DASTCommon.h53 if (const BuiltinType *BT = dyn_cast<BuiltinType>(T.getTypePtr()))
/external/clang/lib/StaticAnalyzer/Checkers/
H A DArrayBoundChecker.cpp43 const ElementRegion *ER = dyn_cast<ElementRegion>(R);
H A DMacOSXAPIChecker.cpp86 if (const VarRegion *VR = dyn_cast<VarRegion>(R))
/external/llvm/lib/Target/Sparc/
H A DSparcISelDAGToDAG.cpp76 if (FrameIndexSDNode *FIN = dyn_cast<FrameIndexSDNode>(Addr)) {
88 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) {
91 dyn_cast<FrameIndexSDNode>(Addr.getOperand(0))) {
126 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1)))
/external/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp82 if (const ConstantDataSequential *CDS = dyn_cast<ConstantDataSequential>(C)) {
140 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV);
182 if (ArrayType *ATy = dyn_cast<ArrayType>(C->getType())) {
184 dyn_cast<IntegerType>(ATy->getElementType())) {
/external/llvm/lib/Target/X86/
H A DX86AtomicExpandPass.cpp89 if (AtomicRMWInst *AI = dyn_cast<AtomicRMWInst>(Inst))
91 if (StoreInst *SI = dyn_cast<StoreInst>(Inst))
164 if (AtomicRMWInst *AI = dyn_cast<AtomicRMWInst>(Inst))
166 if (StoreInst *SI = dyn_cast<StoreInst>(Inst))

Completed in 465 milliseconds

1234567891011>>