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

<<11121314151617181920>>

  /external/llvm/lib/Transforms/Scalar/
CorrelatedValuePropagation.cpp 78 ConstantInt *CI = dyn_cast<ConstantInt>(C);
109 SelectInst *SI = dyn_cast<SelectInst>(Incoming);
131 Constant *C = dyn_cast<Constant>(SI->getFalseValue());
164 if (LoadInst *L = dyn_cast<LoadInst>(I))
185 Constant *Op1 = dyn_cast<Constant>(C->getOperand(1));
193 auto *I = dyn_cast<Instruction>(Op0);
303 PointerType *Type = dyn_cast<PointerType>(V->getType());
334 auto *I = dyn_cast<Instruction>(O);
390 auto *C = dyn_cast<CmpInst>(V);
394 Constant *Op1 = dyn_cast<Constant>(C->getOperand(1))
    [all...]
LoopRerollPass.cpp 474 const SCEVMulExpr *MulSCEV = dyn_cast<SCEVMulExpr>(SCEVExpr);
479 if (const SCEVConstant *IncSCEV = dyn_cast<SCEVConstant>(SCEVExpr)) {
487 return dyn_cast<SCEVConstant>(SE->getNegativeSCEV(NewSCEV));
489 return dyn_cast<SCEVConstant>(SE->getUDivExpr(SCEVExpr, SizeOfExpr));
500 if (const SCEVConstant *Constant = dyn_cast<SCEVConstant>(Operand)) {
502 } else if (const SCEVUnknown *Unknown = dyn_cast<SCEVUnknown>(Operand)) {
545 if (auto *BO = dyn_cast<BinaryOperator>(User)) {
550 if (PHINode *PN = dyn_cast<PHINode>(UU)) {
556 Instruction *UUser = dyn_cast<Instruction>(UU);
561 UUser = dyn_cast<Instruction>(*(UUser->user_begin()))
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
SSAUpdater.cpp 114 if (PHINode *SomePhi = dyn_cast<PHINode>(BB->begin())) {
194 if (PHINode *UserPN = dyn_cast<PHINode>(User))
211 if (PHINode *UserPN = dyn_cast<PHINode>(User))
263 if (PHINode *SomePhi = dyn_cast<PHINode>(BB->begin())) {
295 return dyn_cast<PHINode>(I);
300 return dyn_cast<PHINode>(Val);
343 if (const LoadInst *LI = dyn_cast<LoadInst>(Insts[0]))
380 if (StoreInst *SI = dyn_cast<StoreInst>(User)) {
416 if (LoadInst *L = dyn_cast<LoadInst>(&I)) {
432 if (StoreInst *SI = dyn_cast<StoreInst>(&I))
    [all...]
SimplifyCFG.cpp 255 CmpInst *Ci2 = dyn_cast<CmpInst>(SI2->getCondition());
329 Instruction *I = dyn_cast<Instruction>(V);
333 if (ConstantExpr *C = dyn_cast<ConstantExpr>(V))
348 BranchInst *BI = dyn_cast<BranchInst>(PBB->getTerminator());
397 ConstantInt *CI = dyn_cast<ConstantInt>(V);
410 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V))
412 if (ConstantInt *CI = dyn_cast<ConstantInt>(CE->getOperand(0))) {
480 if (!((ICI = dyn_cast<ICmpInst>(I)) &&
621 Instruction *I = dyn_cast<Instruction>(V);
635 if (Instruction *I = dyn_cast<Instruction>(V))
    [all...]
Local.cpp 110 if (auto *BI = dyn_cast<BranchInst>(T)) {
115 if (auto *Cond = dyn_cast<ConstantInt>(BI->getCondition())) {
153 if (auto *SI = dyn_cast<SwitchInst>(T)) {
156 auto *CI = dyn_cast<ConstantInt>(SI->getCondition());
294 if (auto *IBI = dyn_cast<IndirectBrInst>(T)) {
297 dyn_cast<BlockAddress>(IBI->getAddress()->stripPointerCasts())) {
365 if (DbgDeclareInst *DDI = dyn_cast<DbgDeclareInst>(I)) {
370 if (DbgValueInst *DVI = dyn_cast<DbgValueInst>(I)) {
375 if (DbgLabelInst *DLI = dyn_cast<DbgLabelInst>(I)) {
386 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(I))
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
Casting.cpp 71 return dyn_cast<foo>(this);
164 TEST(CastingTest, dyn_cast) {
165 const foo *F1 = dyn_cast<foo>(B2);
167 const foo *F2 = dyn_cast<foo>(B2);
169 const foo *F3 = dyn_cast<foo>(B4);
171 // Can't pass null pointer to dyn_cast<>.
172 // foo *F4 = dyn_cast<foo>(fub());
280 Base *BP = dyn_cast<Base>(&D);
389 EXPECT_TRUE(dyn_cast<pointer_wrappers::Derived>(MB) == nullptr);
390 EXPECT_TRUE(dyn_cast<pointer_wrappers::Derived>(CB) == nullptr)
    [all...]
  /external/llvm/lib/Analysis/
ScalarEvolutionExpander.cpp 57 if (CastInst *CI = dyn_cast<CastInst>(U))
92 if (auto *II = dyn_cast<InvokeInst>(I))
125 if (CastInst *CI = dyn_cast<CastInst>(V)) {
133 if (CastInst *CI = dyn_cast<CastInst>(V))
139 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V))
148 if (Constant *C = dyn_cast<Constant>(V))
153 if (Argument *A = dyn_cast<Argument>(V)) {
174 if (Constant *CLHS = dyn_cast<Constant>(LHS))
175 if (Constant *CRHS = dyn_cast<Constant>(RHS))
240 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(S))
    [all...]
ConstantFolding.cpp 64 if (auto *IT = dyn_cast<IntegerType>(DestTy)) {
65 auto *VTy = dyn_cast<VectorType>(C->getType());
105 auto *DestVTy = dyn_cast<VectorType>(DestTy);
183 Constant *Src = dyn_cast<ConstantInt>(C->getAggregateElement(SrcElt++));
209 auto *Src = dyn_cast<ConstantInt>(C->getAggregateElement(i));
245 if ((GV = dyn_cast<GlobalValue>(C))) {
252 auto *CE = dyn_cast<ConstantExpr>(C);
261 auto *GEP = dyn_cast<GEPOperator>(CE);
296 if (auto *CI = dyn_cast<ConstantInt>(C)) {
314 if (auto *CFP = dyn_cast<ConstantFP>(C))
    [all...]
Lint.cpp 210 if (Function *F = dyn_cast<Function>(findValue(Callee,
277 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(&I))
296 dyn_cast<ConstantInt>(findValue(MCI->getLength(),
393 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(UnderlyingObject))
427 if (AllocaInst *AI = dyn_cast<AllocaInst>(Base)) {
434 } else if (GlobalVariable *GV = dyn_cast<GlobalVariable>(Base)) {
487 if (ConstantInt *CI = dyn_cast<ConstantInt>(findValue(I.getOperand(1),
495 dyn_cast<ConstantInt>(findValue(I.getOperand(1), /*OffsetOk=*/false)))
502 dyn_cast<ConstantInt>(findValue(I.getOperand(1), /*OffsetOk=*/false)))
513 VectorType *VecTy = dyn_cast<VectorType>(V->getType())
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
JumpThreading.cpp 204 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator());
221 BranchInst *PredBr = dyn_cast<BranchInst>(PredBB->getTerminator());
234 ConstantInt *CI = dyn_cast<ConstantInt>(PhiOpnd);
400 auto *BI = dyn_cast<BranchInst>(BB.getTerminator());
510 if (const CallInst *CI = dyn_cast<CallInst>(I)) {
557 if (UndefValue *U = dyn_cast<UndefValue>(Val))
561 return dyn_cast<BlockAddress>(Val->stripPointerCasts());
563 return dyn_cast<ConstantInt>(Val);
596 Instruction *I = dyn_cast<Instruction>(V);
628 if (PHINode *PN = dyn_cast<PHINode>(I))
    [all...]
  /external/swiftshader/third_party/LLVM/lib/Analysis/
LazyValueInfo.cpp 133 if (ConstantInt *CI = dyn_cast<ConstantInt>(V))
149 if (ConstantInt *CI = dyn_cast<ConstantInt>(V))
211 if (ConstantInt *Res = dyn_cast<ConstantInt>(
237 if (ConstantInt *Res = dyn_cast<ConstantInt>(
505 if (Constant *VC = dyn_cast<Constant>(Val))
540 Instruction *BBI = dyn_cast<Instruction>(Val);
545 if (PHINode *PN = dyn_cast<PHINode>(BBI)) {
549 if (AllocaInst *AI = dyn_cast<AllocaInst>(BBI)) {
567 BinaryOperator *BO = dyn_cast<BinaryOperator>(BBI);
580 if (LoadInst *L = dyn_cast<LoadInst>(I))
    [all...]
  /external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
InstCombineShifts.cpp 32 if (SelectInst *SI = dyn_cast<SelectInst>(Op1))
36 if (ConstantInt *CUI = dyn_cast<ConstantInt>(Op1))
74 Instruction *I = dyn_cast<Instruction>(V);
117 CI = dyn_cast<ConstantInt>(I->getOperand(1));
141 CI = dyn_cast<ConstantInt>(I->getOperand(1));
186 if (Constant *C = dyn_cast<Constant>(V)) {
192 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V))
236 if (Instruction *VI = dyn_cast<Instruction>(V)) {
276 if (Instruction *VI = dyn_cast<Instruction>(V)) {
344 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0)
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
InstCombineAddSub.cpp 353 if (!Val || !(I = dyn_cast<Instruction>(Val)))
362 if ((C0 = dyn_cast<ConstantFP>(Opnd0)) && C0->isZero())
365 if ((C1 = dyn_cast<ConstantFP>(Opnd1)) && C1->isZero())
396 if (ConstantFP *C = dyn_cast<ConstantFP>(V0)) {
401 if (ConstantFP *C = dyn_cast<ConstantFP>(V1)) {
441 Instruction *I0 = dyn_cast<Instruction>(I->getOperand(0));
442 Instruction *I1 = dyn_cast<Instruction>(I->getOperand(1));
493 if (ConstantFP *CFP = dyn_cast<ConstantFP>(NewAddSub)) {
497 } else if (Instruction *II = dyn_cast<Instruction>(NewAddSub))
502 if (Instruction *II = dyn_cast<Instruction>(RI)
    [all...]
InstCombineCasts.cpp 33 if (ConstantInt *CI = dyn_cast<ConstantInt>(Val)) {
39 if (BinaryOperator *I = dyn_cast<BinaryOperator>(Val)) {
41 OverflowingBinaryOperator *OBI = dyn_cast<OverflowingBinaryOperator>(Val);
48 if (ConstantInt *RHS = dyn_cast<ConstantInt>(I->getOperand(1))) {
164 if (Constant *C = dyn_cast<Constant>(V)) {
265 if (auto *CSrc = dyn_cast<CastInst>(Src)) { // A->B->C cast
278 if (auto *Sel = dyn_cast<SelectInst>(Src)) {
283 auto *Cmp = dyn_cast<CmpInst>(Sel->getCondition());
292 if (auto *PN = dyn_cast<PHINode>(Src)) {
625 auto *Shuf = dyn_cast<ShuffleVectorInst>(Trunc.getOperand(0))
    [all...]
InstCombineVectorOps.cpp 52 if (Constant *C = dyn_cast<Constant>(V)) {
64 Instruction *I = dyn_cast<Instruction>(V);
74 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I))
79 if (CmpInst *CI = dyn_cast<CmpInst>(I))
99 if (ExtractElementInst *EU = dyn_cast<ExtractElementInst>(U)) {
149 Instruction *pos = dyn_cast<Instruction>(PHIInVal);
177 if (Constant *C = dyn_cast<Constant>(EI.getOperand(0)))
183 if (ConstantInt *IdxC = dyn_cast<ConstantInt>(EI.getOperand(1))) {
209 if (BitCastInst *BCI = dyn_cast<BitCastInst>(EI.getOperand(0))) {
210 if (VectorType *VT = dyn_cast<VectorType>(BCI->getOperand(0)->getType())
    [all...]
  /external/llvm/lib/Transforms/Instrumentation/
IndirectCallPromotion.cpp 278 if (ICPInvokeOnly && dyn_cast<CallInst>(Inst)) {
282 if (ICPCallOnly && dyn_cast<InvokeInst>(Inst)) {
344 InvokeInst *II = dyn_cast<InvokeInst>(Inst);
361 PHINode *PHI = dyn_cast<PHINode>(&I);
368 if (dyn_cast<Instruction>(V) == Inst)
385 PHINode *PHI = dyn_cast<PHINode>(&I);
407 PHINode *PHI = dyn_cast<PHINode>(&I);
414 if (dyn_cast<Instruction>(V) == Inst) {
436 if (CallInst *CI = dyn_cast<CallInst>(DirectCallInst))
439 InsertionBB = (dyn_cast<InvokeInst>(DirectCallInst))->getNormalDest()
    [all...]
  /external/llvm/lib/Transforms/Utils/
CloneFunction.cpp 58 if (const AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
108 if (Argument *NewArg = dyn_cast<Argument>(VMap[&OldArg])) {
158 if (ReturnInst *RI = dyn_cast<ReturnInst>(CBB->getTerminator()))
318 if (const AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
329 if (const BranchInst *BI = dyn_cast<BranchInst>(OldTI)) {
332 ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition());
347 } else if (const SwitchInst *SI = dyn_cast<SwitchInst>(OldTI)) {
349 ConstantInt *Cond = dyn_cast<ConstantInt>(SI->getCondition());
450 if (const PHINode *PN = dyn_cast<PHINode>(I)) {
521 for (; (PN = dyn_cast<PHINode>(I)); ++I)
    [all...]
  /external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
BuildLibCalls.cpp 46 if (const Function *F = dyn_cast<Function>(StrLen->stripPointerCasts()))
67 if (const Function *F = dyn_cast<Function>(StrChr->stripPointerCasts()))
91 if (const Function *F = dyn_cast<Function>(StrNCmp->stripPointerCasts()))
110 if (const Function *F = dyn_cast<Function>(StrCpy->stripPointerCasts()))
129 if (const Function *F = dyn_cast<Function>(StrNCpy->stripPointerCasts()))
153 if (const Function *F = dyn_cast<Function>(MemCpy->stripPointerCasts()))
174 if (const Function *F = dyn_cast<Function>(MemChr->stripPointerCasts()))
199 if (const Function *F = dyn_cast<Function>(MemCmp->stripPointerCasts()))
230 if (const Function *F = dyn_cast<Function>(Callee->stripPointerCasts()))
249 if (const Function *F = dyn_cast<Function>(PutChar->stripPointerCasts())
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
SafepointIRVerifier.cpp 105 assert(dyn_cast<Instruction>(U->getUser())->isTerminator() &&
109 assert(!isDeadBlock(dyn_cast<Instruction>(U->getUser())->getParent()) &&
141 const BranchInst *BI = dyn_cast<BranchInst>(TI);
149 ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition());
243 if (auto *PT = dyn_cast<PointerType>(T))
254 if (VectorType *VT = dyn_cast<VectorType>(Ty))
256 if (ArrayType *AT = dyn_cast<ArrayType>(Ty))
258 if (StructType *ST = dyn_cast<StructType>(Ty))
330 if (const auto *CI = dyn_cast<CastInst>(V)) {
334 if (const auto *GEP = dyn_cast<GetElementPtrInst>(V))
    [all...]
  /external/spirv-llvm/lib/SPIRV/
SPIRVWriter.cpp 135 if (auto I = dyn_cast<Instruction>(V)) {
146 } else if (auto F = dyn_cast<Function>(V)) {
416 if (auto *StructTy = dyn_cast<StructType>(Ty)) {
429 if (auto *PtrTy = dyn_cast<PointerType>(Ty))
432 if (auto *ArrayTy = dyn_cast<ArrayType>(Ty))
465 auto ST = dyn_cast<StructType>(ET);
532 auto ST = dyn_cast<StructType>(T);
539 if (auto ST = dyn_cast<StructType>(T)) {
572 if (FunctionType *FT = dyn_cast<FunctionType>(T)) {
691 if (auto CPNull = dyn_cast<ConstantPointerNull>(V)
    [all...]
  /external/llvm/lib/Target/AArch64/
AArch64AddressTypePromotion.cpp 160 const BinaryOperator *BinOp = dyn_cast<BinaryOperator>(Inst);
270 while (auto *Inst = dyn_cast<Instruction>(SExt->getOperand(0))) {
288 Instruction *User = dyn_cast<Instruction>(U.getUser());
321 if (const ConstantInt *Cst = dyn_cast<ConstantInt>(Opnd)) {
439 const Instruction *Inst = dyn_cast<GetElementPtrInst>(U);
454 const BinaryOperator *BinOp = dyn_cast<BinaryOperator>(Inst);
458 Inst = dyn_cast<Instruction>(Last);
  /external/llvm/lib/Target/Lanai/
LanaiISelDAGToDAG.cpp 105 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr)) {
127 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr)) {
154 if (FrameIndexSDNode *FIN = dyn_cast<FrameIndexSDNode>(Addr)) {
173 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1)))
178 dyn_cast<FrameIndexSDNode>(Addr.getOperand(0))) {
228 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1)))
302 int FI = dyn_cast<FrameIndexSDNode>(Node)->getIndex();
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
ValueTracking.cpp 154 CxtI = dyn_cast<Instruction>(V);
211 if (const ICmpInst *IC = dyn_cast<ICmpInst>(U))
213 if (Constant *C = dyn_cast<Constant>(IC->getOperand(1)))
252 if (auto *CI = dyn_cast<ConstantInt>(V))
482 if (const User *U = dyn_cast<User>(V))
495 if (const CallInst *CI = dyn_cast<CallInst>(I))
    [all...]
Lint.cpp 232 if (Function *F = dyn_cast<Function>(findValue(Callee,
316 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(&I))
335 dyn_cast<ConstantInt>(findValue(MCI->getLength(),
432 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(UnderlyingObject))
466 if (AllocaInst *AI = dyn_cast<AllocaInst>(Base)) {
473 } else if (GlobalVariable *GV = dyn_cast<GlobalVariable>(Base)) {
526 if (ConstantInt *CI = dyn_cast<ConstantInt>(findValue(I.getOperand(1),
534 dyn_cast<ConstantInt>(findValue(I.getOperand(1), /*OffsetOk=*/false)))
541 dyn_cast<ConstantInt>(findValue(I.getOperand(1), /*OffsetOk=*/false)))
552 VectorType *VecTy = dyn_cast<VectorType>(V->getType())
    [all...]
  /external/clang/lib/AST/
Decl.cpp 256 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) {
332 if (const auto *ND = dyn_cast<NamedDecl>(Arg.getAsDecl())) {
544 const auto *FD = dyn_cast<FunctionDecl>(D);
572 if (const auto *SD = dyn_cast<LinkageSpecDecl>(D.getDeclContext()))
590 if (const auto *Var = dyn_cast<VarDecl>(D)) {
630 } else if (const auto *IFD = dyn_cast<IndirectFieldDecl>(D)) {
639 const auto *Var = dyn_cast<VarDecl>(D);
640 const auto *Func = dyn_cast<FunctionDecl>(D);
665 const auto *ND = dyn_cast<NamespaceDecl>(DC);
699 if (const auto *Var = dyn_cast<VarDecl>(D))
    [all...]

Completed in 789 milliseconds

<<11121314151617181920>>