Lines Matching refs:AddrInst

3193   bool matchOperationAddr(User *AddrInst, unsigned Opcode, unsigned Depth,
4475 bool AddressingModeMatcher::matchOperationAddr(User *AddrInst, unsigned Opcode, in matchOperationAddr() argument
4488 return matchAddr(AddrInst->getOperand(0), Depth); in matchOperationAddr()
4490 auto AS = AddrInst->getType()->getPointerAddressSpace(); in matchOperationAddr()
4493 if (TLI.getValueType(DL, AddrInst->getOperand(0)->getType()) == PtrTy) in matchOperationAddr()
4494 return matchAddr(AddrInst->getOperand(0), Depth); in matchOperationAddr()
4500 if (AddrInst->getOperand(0)->getType()->isIntOrPtrTy() && in matchOperationAddr()
4504 AddrInst->getOperand(0)->getType() != AddrInst->getType()) in matchOperationAddr()
4505 return matchAddr(AddrInst->getOperand(0), Depth); in matchOperationAddr()
4509 = AddrInst->getOperand(0)->getType()->getPointerAddressSpace(); in matchOperationAddr()
4510 unsigned DestAS = AddrInst->getType()->getPointerAddressSpace(); in matchOperationAddr()
4512 return matchAddr(AddrInst->getOperand(0), Depth); in matchOperationAddr()
4527 if (matchAddr(AddrInst->getOperand(1), Depth+1) && in matchOperationAddr()
4528 matchAddr(AddrInst->getOperand(0), Depth+1)) in matchOperationAddr()
4537 if (matchAddr(AddrInst->getOperand(0), Depth+1) && in matchOperationAddr()
4538 matchAddr(AddrInst->getOperand(1), Depth+1)) in matchOperationAddr()
4554 ConstantInt *RHS = dyn_cast<ConstantInt>(AddrInst->getOperand(1)); in matchOperationAddr()
4561 return matchScaledValue(AddrInst->getOperand(0), Scale, Depth); in matchOperationAddr()
4570 gep_type_iterator GTI = gep_type_begin(AddrInst); in matchOperationAddr()
4571 for (unsigned i = 1, e = AddrInst->getNumOperands(); i != e; ++i, ++GTI) { in matchOperationAddr()
4575 cast<ConstantInt>(AddrInst->getOperand(i))->getZExtValue(); in matchOperationAddr()
4585 dyn_cast<ConstantInt>(AddrInst->getOperand(i))) { in matchOperationAddr()
4610 if (matchAddr(AddrInst->getOperand(0), Depth+1)) { in matchOperationAddr()
4611 if (!cast<GEPOperator>(AddrInst)->isInBounds()) in matchOperationAddr()
4615 } else if (EnableGEPOffsetSplit && isa<GetElementPtrInst>(AddrInst) && in matchOperationAddr()
4622 Value *Base = AddrInst->getOperand(0); in matchOperationAddr()
4624 auto *GEP = cast<GetElementPtrInst>(AddrInst); in matchOperationAddr()
4646 if (!cast<GEPOperator>(AddrInst)->isInBounds()) in matchOperationAddr()
4650 if (!matchAddr(AddrInst->getOperand(0), Depth+1)) { in matchOperationAddr()
4658 AddrMode.BaseReg = AddrInst->getOperand(0); in matchOperationAddr()
4662 if (!matchScaledValue(AddrInst->getOperand(VariableOperand), VariableScale, in matchOperationAddr()
4671 AddrMode.BaseReg = AddrInst->getOperand(0); in matchOperationAddr()
4673 if (!matchScaledValue(AddrInst->getOperand(VariableOperand), in matchOperationAddr()
4686 Instruction *Ext = dyn_cast<Instruction>(AddrInst); in matchOperationAddr()