HomeSort by relevance Sort by last modified time
    Searched refs:dyn_cast (Results 376 - 400 of 1820) sorted by null

<<11121314151617181920>>

  /external/llvm/lib/Transforms/InstCombine/
InstCombineAndOrXor.cpp 36 if (ConstantInt *C = dyn_cast<ConstantInt>(V))
98 IntegerType *ITy = dyn_cast<IntegerType>(I.getType());
111 ConstantInt *ConstLHS = dyn_cast<ConstantInt>(OldLHS);
112 ConstantInt *ConstRHS = dyn_cast<ConstantInt>(OldRHS);
113 IntrinsicInst *IntrLHS = dyn_cast<IntrinsicInst>(OldLHS);
114 IntrinsicInst *IntrRHS = dyn_cast<IntrinsicInst>(OldRHS);
177 ConstantInt *TogetherCI = dyn_cast<ConstantInt>(Together);
361 Instruction *LHSI = dyn_cast<Instruction>(LHS);
445 ConstantInt *ACst = dyn_cast<ConstantInt>(A);
446 ConstantInt *BCst = dyn_cast<ConstantInt>(B)
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
Constants.cpp 41 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
45 if (const ConstantDataVector *CV = dyn_cast<ConstantDataVector>(this))
50 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this))
67 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
71 if (const ConstantDataVector *CV = dyn_cast<ConstantDataVector>(this))
76 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this))
87 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this))
91 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
102 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this))
106 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)
    [all...]
AsmWriter.cpp 125 if (const Constant *C = dyn_cast<Constant>(V))
200 if (auto *BA = dyn_cast<BlockAddress>(V))
260 if (const Constant *C = dyn_cast<Constant>(V))
321 if (const Argument *MA = dyn_cast<Argument>(V))
324 if (const BasicBlock *BB = dyn_cast<BasicBlock>(V))
327 if (const Instruction *I = dyn_cast<Instruction>(V)) {
332 if (const GlobalValue *GV = dyn_cast<GlobalValue>(V))
335 if (const auto *MAV = dyn_cast<MetadataAsValue>(V)) {
855 if (const Argument *FA = dyn_cast<Argument>(V))
858 if (const Instruction *I = dyn_cast<Instruction>(V)
    [all...]
IntrinsicInst.cpp 44 if (auto *V = dyn_cast<ValueAsMetadata>(MD))
112 dyn_cast<MetadataAsValue>(getArgOperand(NumOperands - 2))->getMetadata();
132 dyn_cast<MetadataAsValue>(getArgOperand(NumOperands - 1))->getMetadata();
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Vectorize/
LoadStoreVectorizer.cpp 287 if (LoadInst *L = dyn_cast<LoadInst>(I))
289 if (StoreInst *S = dyn_cast<StoreInst>(I))
366 auto *GEPA = dyn_cast<GetElementPtrInst>(PtrA);
367 auto *GEPB = dyn_cast<GetElementPtrInst>(PtrB);
385 Instruction *OpA = dyn_cast<Instruction>(GTIA.getOperand());
386 Instruction *OpB = dyn_cast<Instruction>(GTIB.getOperand());
411 OpB = dyn_cast<Instruction>(OpB->getOperand(0));
435 OpA = dyn_cast<Instruction>(ValA);
460 if (auto *SelectA = dyn_cast<SelectInst>(PtrA)) {
461 if (auto *SelectB = dyn_cast<SelectInst>(PtrB))
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
LazyValueInfo.cpp 557 if (Constant *VC = dyn_cast<Constant>(Val))
609 Instruction *BBI = dyn_cast<Instruction>(Val);
613 if (PHINode *PN = dyn_cast<PHINode>(BBI))
616 if (auto *SI = dyn_cast<SelectInst>(BBI))
628 PointerType *PT = dyn_cast<PointerType>(BBI->getType());
634 if (auto *CI = dyn_cast<CastInst>(BBI))
637 BinaryOperator *BO = dyn_cast<BinaryOperator>(BBI);
649 if (LoadInst *L = dyn_cast<LoadInst>(I)) {
654 if (StoreInst *S = dyn_cast<StoreInst>(I)) {
659 if (MemIntrinsic *MI = dyn_cast<MemIntrinsic>(I))
    [all...]
MemoryBuiltins.cpp 272 return isMallocLikeFn(I, TLI) ? dyn_cast<CallInst>(I) : nullptr;
287 if (StructType *ST = dyn_cast<StructType>(T))
315 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(*UI++)) {
418 return dyn_cast<CallInst>(I);
504 if (Instruction *I = dyn_cast<Instruction>(V)) {
510 if (GEPOperator *GEP = dyn_cast<GEPOperator>(V))
514 if (Argument *A = dyn_cast<Argument>(V))
516 if (ConstantPointerNull *P = dyn_cast<ConstantPointerNull>(V))
518 if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V))
520 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(V)
    [all...]
ModuleSummaryAnalysis.cpp 100 const User *Operand = dyn_cast<User>(OI);
107 if (auto *GV = dyn_cast<GlobalValue>(Operand)) {
144 auto *CI = dyn_cast<ConstantInt>(Arg);
165 auto *TypeId = dyn_cast<MDString>(TypeMDVal->getMetadata());
175 auto *AssumeCI = dyn_cast<CallInst>(CIU.getUser());
196 auto *TypeId = dyn_cast<MDString>(TypeMDVal->getMetadata());
259 const auto *CI = dyn_cast<CallInst>(&I);
273 CalledFunction = dyn_cast<Function>(CalledValue);
277 if (auto *GA = dyn_cast<GlobalAlias>(CalledValue)) {
279 CalledFunction = dyn_cast<Function>(GA->getBaseObject())
    [all...]
ScalarEvolution.cpp 360 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this))
366 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this))
372 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this))
378 const SCEVMulExpr *Mul = dyn_cast<SCEVMulExpr>(this);
382 const SCEVConstant *SC = dyn_cast<SCEVConstant>(Mul->getOperand(0));
464 if (ConstantExpr *VCE = dyn_cast<ConstantExpr>(getValue()))
466 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(VCE->getOperand(0)))
470 if (ConstantInt *CI = dyn_cast<ConstantInt>(CE->getOperand(1)))
481 if (ConstantExpr *VCE = dyn_cast<ConstantExpr>(getValue()))
483 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(VCE->getOperand(0))
    [all...]
ScalarEvolutionAliasAnalysis.cpp 96 if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(S)) {
100 } else if (const SCEVAddExpr *A = dyn_cast<SCEVAddExpr>(S)) {
105 } else if (const SCEVUnknown *U = dyn_cast<SCEVUnknown>(S)) {
  /external/llvm/lib/Analysis/
MemoryBuiltins.cpp 217 return isMallocLikeFn(I, TLI) ? dyn_cast<CallInst>(I) : nullptr;
232 if (StructType *ST = dyn_cast<StructType>(T))
260 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(*UI++)) {
311 const CallInst *CI = dyn_cast<CallInst>(I);
419 if (Instruction *I = dyn_cast<Instruction>(V)) {
425 if (GEPOperator *GEP = dyn_cast<GEPOperator>(V))
429 if (Argument *A = dyn_cast<Argument>(V))
431 if (ConstantPointerNull *P = dyn_cast<ConstantPointerNull>(V))
433 if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V))
435 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(V)
    [all...]
BranchProbabilityInfo.cpp 150 if (auto *II = dyn_cast<InvokeInst>(TI))
275 if (const CallInst *CI = dyn_cast<CallInst>(I))
311 const BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator());
316 ICmpInst *CI = dyn_cast<ICmpInst>(Cond);
404 const BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator());
409 ICmpInst *CI = dyn_cast<ICmpInst>(Cond);
414 ConstantInt *CV = dyn_cast<ConstantInt>(RHS);
420 if (Instruction *LHS = dyn_cast<Instruction>(CI->getOperand(0)))
422 if (ConstantInt *AndRHS = dyn_cast<ConstantInt>(LHS->getOperand(1)))
487 const BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator())
    [all...]
ScalarEvolutionAliasAnalysis.cpp 96 if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(S)) {
100 } else if (const SCEVAddExpr *A = dyn_cast<SCEVAddExpr>(S)) {
105 } else if (const SCEVUnknown *U = dyn_cast<SCEVUnknown>(S)) {
  /external/llvm/lib/Transforms/Utils/
LoopUtils.cpp 39 if (!Set.count(dyn_cast<Instruction>(*Use)))
119 Instruction *J = dyn_cast<Instruction>(U.get());
132 CastInst *Cast = dyn_cast<CastInst>(J);
257 !VisitedInsts.count(dyn_cast<Instruction>(Cur->getOperand(0))))
382 if ((Cmp = dyn_cast<ICmpInst>(I)) || (Cmp = dyn_cast<FCmpInst>(I))) {
383 if (!Cmp->hasOneUse() || !(Select = dyn_cast<SelectInst>(*I->user_begin())))
389 if (!(Select = dyn_cast<SelectInst>(I)))
391 if (!(Cmp = dyn_cast<ICmpInst>(I->getOperand(0))) &&
392 !(Cmp = dyn_cast<FCmpInst>(I->getOperand(0)))
    [all...]
DemoteRegToStack.cpp 45 if (InvokeInst *II = dyn_cast<InvokeInst>(&I)) {
58 if (PHINode *PN = dyn_cast<PHINode>(U)) {
126 if (InvokeInst *II = dyn_cast<InvokeInst>(P->getIncomingValue(i))) {
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
NewGVN.cpp 208 if (auto *InstOp = dyn_cast<Instruction>(Op)) {
    [all...]
  /external/llvm/lib/Target/NVPTX/
NVPTXImageOptimizer.cpp 65 if (CallInst *CI = dyn_cast<CallInst>(I)) {
155 if (BranchInst *BI = dyn_cast<BranchInst>(*UI)) {
173 if (ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(V)) {
NVVMReflect.cpp 156 CallInst *Call = dyn_cast<CallInst>(&I);
171 if (const CallInst *ConvCall = dyn_cast<CallInst>(Str)) {
184 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(Operand)) {
  /external/llvm/lib/Transforms/Scalar/
ConstantHoisting.cpp 124 if (auto CastInst = dyn_cast<Instruction>(Opnd))
185 if (auto IntrInst = dyn_cast<IntrinsicInst>(Inst))
222 if (auto Call = dyn_cast<CallInst>(Inst))
234 auto AI = dyn_cast<AllocaInst>(Inst);
243 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) {
249 if (auto CastInst = dyn_cast<Instruction>(Opnd)) {
255 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) {
264 if (auto ConstExpr = dyn_cast<ConstantExpr>(Opnd)) {
269 if (auto ConstInt = dyn_cast<ConstantInt>(ConstExpr->getOperand(0))) {
452 if (auto PHI = dyn_cast<PHINode>(Inst))
    [all...]
  /external/swiftshader/third_party/LLVM/lib/Analysis/
ScalarEvolutionAliasAnalysis.cpp 91 if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(S)) {
95 } else if (const SCEVAddExpr *A = dyn_cast<SCEVAddExpr>(S)) {
100 } else if (const SCEVUnknown *U = dyn_cast<SCEVUnknown>(S)) {
  /external/swiftshader/third_party/LLVM/lib/CodeGen/
StackProtector.cpp 120 if (AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
126 if (ArrayType *AT = dyn_cast<ArrayType>(AI->getAllocatedType())) {
156 ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator());
  /external/swiftshader/third_party/LLVM/lib/Target/Blackfin/
BlackfinISelDAGToDAG.cpp 100 if ((FIN = dyn_cast<FrameIndexSDNode>(Addr))) {
107 if ((FIN = dyn_cast<FrameIndexSDNode>(Addr.getOperand(0))) &&
108 (CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) &&
  /external/swiftshader/third_party/LLVM/tools/llvm-dis/
llvm-dis.cpp 79 if (const Instruction *I = dyn_cast<Instruction>(&V)) {
91 if (const DbgDeclareInst *DDI = dyn_cast<DbgDeclareInst>(I)) {
100 else if (const DbgValueInst *DVI = dyn_cast<DbgValueInst>(I)) {
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Bitcode/Reader/
ValueList.cpp 49 /// Methods to support type inquiry through isa, cast, and dyn_cast.
86 if (Constant *PHC = dyn_cast<Constant>(&*OldV)) {
196 if (ConstantArray *UserCA = dyn_cast<ConstantArray>(UserC)) {
198 } else if (ConstantStruct *UserCS = dyn_cast<ConstantStruct>(UserC)) {
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
Analysis.cpp 45 if (StructType *STy = dyn_cast<StructType>(Ty)) {
58 else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {
89 if (StructType *STy = dyn_cast<StructType>(Ty)) {
100 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {
120 GlobalValue *GV = dyn_cast<GlobalValue>(V);
121 GlobalVariable *Var = dyn_cast<GlobalVariable>(V);
127 GV = dyn_cast<GlobalValue>(Init);
241 const Instruction *I = dyn_cast<Instruction>(V);
278 } else if (const InsertValueInst *IVI = dyn_cast<InsertValueInst>(V)) {
293 } else if (const ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(V))
    [all...]

Completed in 939 milliseconds

<<11121314151617181920>>