Lines Matching refs:AddrInst

3212   bool matchOperationAddr(User *AddrInst, unsigned Opcode, unsigned Depth,
4495 bool AddressingModeMatcher::matchOperationAddr(User *AddrInst, unsigned Opcode, in matchOperationAddr() argument
4508 return matchAddr(AddrInst->getOperand(0), Depth); in matchOperationAddr()
4510 auto AS = AddrInst->getType()->getPointerAddressSpace(); in matchOperationAddr()
4513 if (TLI.getValueType(DL, AddrInst->getOperand(0)->getType()) == PtrTy) in matchOperationAddr()
4514 return matchAddr(AddrInst->getOperand(0), Depth); in matchOperationAddr()
4520 if (AddrInst->getOperand(0)->getType()->isIntOrPtrTy() && in matchOperationAddr()
4524 AddrInst->getOperand(0)->getType() != AddrInst->getType()) in matchOperationAddr()
4525 return matchAddr(AddrInst->getOperand(0), Depth); in matchOperationAddr()
4529 = AddrInst->getOperand(0)->getType()->getPointerAddressSpace(); in matchOperationAddr()
4530 unsigned DestAS = AddrInst->getType()->getPointerAddressSpace(); in matchOperationAddr()
4532 return matchAddr(AddrInst->getOperand(0), Depth); in matchOperationAddr()
4547 if (matchAddr(AddrInst->getOperand(1), Depth+1) && in matchOperationAddr()
4548 matchAddr(AddrInst->getOperand(0), Depth+1)) in matchOperationAddr()
4557 if (matchAddr(AddrInst->getOperand(0), Depth+1) && in matchOperationAddr()
4558 matchAddr(AddrInst->getOperand(1), Depth+1)) in matchOperationAddr()
4574 ConstantInt *RHS = dyn_cast<ConstantInt>(AddrInst->getOperand(1)); in matchOperationAddr()
4581 return matchScaledValue(AddrInst->getOperand(0), Scale, Depth); in matchOperationAddr()
4590 gep_type_iterator GTI = gep_type_begin(AddrInst); in matchOperationAddr()
4591 for (unsigned i = 1, e = AddrInst->getNumOperands(); i != e; ++i, ++GTI) { in matchOperationAddr()
4595 cast<ConstantInt>(AddrInst->getOperand(i))->getZExtValue(); in matchOperationAddr()
4605 dyn_cast<ConstantInt>(AddrInst->getOperand(i))) { in matchOperationAddr()
4630 if (matchAddr(AddrInst->getOperand(0), Depth+1)) { in matchOperationAddr()
4631 if (!cast<GEPOperator>(AddrInst)->isInBounds()) in matchOperationAddr()
4635 } else if (EnableGEPOffsetSplit && isa<GetElementPtrInst>(AddrInst) && in matchOperationAddr()
4642 Value *Base = AddrInst->getOperand(0); in matchOperationAddr()
4644 auto *GEP = cast<GetElementPtrInst>(AddrInst); in matchOperationAddr()
4666 if (!cast<GEPOperator>(AddrInst)->isInBounds()) in matchOperationAddr()
4670 if (!matchAddr(AddrInst->getOperand(0), Depth+1)) { in matchOperationAddr()
4678 AddrMode.BaseReg = AddrInst->getOperand(0); in matchOperationAddr()
4682 if (!matchScaledValue(AddrInst->getOperand(VariableOperand), VariableScale, in matchOperationAddr()
4691 AddrMode.BaseReg = AddrInst->getOperand(0); in matchOperationAddr()
4693 if (!matchScaledValue(AddrInst->getOperand(VariableOperand), in matchOperationAddr()
4706 Instruction *Ext = dyn_cast<Instruction>(AddrInst); in matchOperationAddr()