Lines Matching refs:AddrInst

2665   bool matchOperationAddr(User *AddrInst, unsigned Opcode, unsigned Depth,
3880 bool AddressingModeMatcher::matchOperationAddr(User *AddrInst, unsigned Opcode, in matchOperationAddr() argument
3893 return matchAddr(AddrInst->getOperand(0), Depth); in matchOperationAddr()
3895 auto AS = AddrInst->getType()->getPointerAddressSpace(); in matchOperationAddr()
3898 if (TLI.getValueType(DL, AddrInst->getOperand(0)->getType()) == PtrTy) in matchOperationAddr()
3899 return matchAddr(AddrInst->getOperand(0), Depth); in matchOperationAddr()
3905 if (AddrInst->getOperand(0)->getType()->isIntOrPtrTy() && in matchOperationAddr()
3909 AddrInst->getOperand(0)->getType() != AddrInst->getType()) in matchOperationAddr()
3910 return matchAddr(AddrInst->getOperand(0), Depth); in matchOperationAddr()
3914 = AddrInst->getOperand(0)->getType()->getPointerAddressSpace(); in matchOperationAddr()
3915 unsigned DestAS = AddrInst->getType()->getPointerAddressSpace(); in matchOperationAddr()
3917 return matchAddr(AddrInst->getOperand(0), Depth); in matchOperationAddr()
3931 if (matchAddr(AddrInst->getOperand(1), Depth+1) && in matchOperationAddr()
3932 matchAddr(AddrInst->getOperand(0), Depth+1)) in matchOperationAddr()
3941 if (matchAddr(AddrInst->getOperand(0), Depth+1) && in matchOperationAddr()
3942 matchAddr(AddrInst->getOperand(1), Depth+1)) in matchOperationAddr()
3957 ConstantInt *RHS = dyn_cast<ConstantInt>(AddrInst->getOperand(1)); in matchOperationAddr()
3964 return matchScaledValue(AddrInst->getOperand(0), Scale, Depth); in matchOperationAddr()
3973 gep_type_iterator GTI = gep_type_begin(AddrInst); in matchOperationAddr()
3974 for (unsigned i = 1, e = AddrInst->getNumOperands(); i != e; ++i, ++GTI) { in matchOperationAddr()
3978 cast<ConstantInt>(AddrInst->getOperand(i))->getZExtValue(); in matchOperationAddr()
3982 if (ConstantInt *CI = dyn_cast<ConstantInt>(AddrInst->getOperand(i))) { in matchOperationAddr()
4008 if (matchAddr(AddrInst->getOperand(0), Depth+1)) in matchOperationAddr()
4010 } else if (EnableGEPOffsetSplit && isa<GetElementPtrInst>(AddrInst) && in matchOperationAddr()
4017 Value *Base = AddrInst->getOperand(0); in matchOperationAddr()
4019 auto *GEP = cast<GetElementPtrInst>(AddrInst); in matchOperationAddr()
4047 if (!matchAddr(AddrInst->getOperand(0), Depth+1)) { in matchOperationAddr()
4055 AddrMode.BaseReg = AddrInst->getOperand(0); in matchOperationAddr()
4059 if (!matchScaledValue(AddrInst->getOperand(VariableOperand), VariableScale, in matchOperationAddr()
4068 AddrMode.BaseReg = AddrInst->getOperand(0); in matchOperationAddr()
4070 if (!matchScaledValue(AddrInst->getOperand(VariableOperand), in matchOperationAddr()
4083 Instruction *Ext = dyn_cast<Instruction>(AddrInst); in matchOperationAddr()