Lines Matching refs:Instruction

387     if (VCE->getOpcode() == Instruction::PtrToInt)
389 if (CE->getOpcode() == Instruction::GetElementPtr &&
404 if (VCE->getOpcode() == Instruction::PtrToInt)
406 if (CE->getOpcode() == Instruction::GetElementPtr &&
429 if (VCE->getOpcode() == Instruction::PtrToInt)
431 if (CE->getOpcode() == Instruction::GetElementPtr &&
514 if (const Instruction *LInst = dyn_cast<Instruction>(LV)) {
515 const Instruction *RInst = cast<Instruction>(RV);
3062 /// PushDefUseChildren - Push users of the given Instruction
3065 PushDefUseChildren(Instruction *I,
3066 SmallVectorImpl<Instruction *> &Worklist) {
3069 Worklist.push_back(cast<Instruction>(U));
3077 ScalarEvolution::ForgetSymbolicName(Instruction *PN, const SCEV *SymName) {
3078 SmallVector<Instruction *, 16> Worklist;
3081 SmallPtrSet<Instruction *, 8> Visited;
3084 Instruction *I = Worklist.pop_back_val();
3285 // Add expression, because the Instruction may be guarded by control flow
3707 unsigned Opcode = Instruction::UserOp1;
3708 if (Instruction *I = dyn_cast<Instruction>(V)) {
3730 case Instruction::Add: {
3747 if (Opcode != Instruction::Add && Opcode != Instruction::Sub)
3751 if (Opcode == Instruction::Sub)
3759 case Instruction::Mul: {
3764 Op->getValueID() == Instruction::Mul + Value::InstructionVal;
3772 case Instruction::UDiv:
3775 case Instruction::Sub:
3778 case Instruction::And:
3814 case Instruction::Or:
3839 case Instruction::Xor:
3857 if (BO->getOpcode() == Instruction::And &&
3884 case Instruction::Shl:
3902 case Instruction::LShr:
3920 case Instruction::AShr:
3924 if (L->getOpcode() == Instruction::Shl &&
3946 case Instruction::Trunc:
3949 case Instruction::ZExt:
3952 case Instruction::SExt:
3955 case Instruction::BitCast:
3966 case Instruction::GetElementPtr:
3969 case Instruction::PHI:
3972 case Instruction::Select:
4183 PushLoopPHIs(const Loop *L, SmallVectorImpl<Instruction *> &Worklist) {
4227 SmallVector<Instruction *, 16> Worklist;
4230 SmallPtrSet<Instruction *, 8> Visited;
4232 Instruction *I = Worklist.pop_back_val();
4279 SmallVector<Instruction *, 16> Worklist;
4282 SmallPtrSet<Instruction *, 8> Visited;
4284 Instruction *I = Worklist.pop_back_val();
4309 Instruction *I = dyn_cast<Instruction>(V);
4313 SmallVector<Instruction *, 16> Worklist;
4316 SmallPtrSet<Instruction *, 8> Visited;
4602 if (BO->getOpcode() == Instruction::And) {
4640 if (BO->getOpcode() == Instruction::Or) {
4792 << Instruction::getOpcodeName(Instruction::ICmp)
4922 static bool CanConstantFold(const Instruction *I) {
4936 static bool canConstantEvolve(Instruction *I, const Loop *L) {
4957 getConstantEvolvingPHIOperands(Instruction *UseInst, const Loop *L,
4958 DenseMap<Instruction *, PHINode *> &PHIMap) {
4963 for (Instruction::op_iterator OpI = UseInst->op_begin(),
4968 Instruction *OpInst = dyn_cast<Instruction>(*OpI);
4999 Instruction *I = dyn_cast<Instruction>(V);
5007 DenseMap<Instruction *, PHINode *> PHIMap;
5016 DenseMap<Instruction *, Constant *> &Vals,
5021 Instruction *I = dyn_cast<Instruction>(V);
5038 Instruction *Operand = dyn_cast<Instruction>(I->getOperand(i));
5079 DenseMap<Instruction *, Constant *> CurrentIterVals;
5112 DenseMap<Instruction *, Constant *> NextIterVals;
5125 for (DenseMap<Instruction *, Constant *>::const_iterator
5169 DenseMap<Instruction *, Constant *> CurrentIterVals;
5206 DenseMap<Instruction *, Constant *> NextIterVals;
5212 for (DenseMap<Instruction *, Constant *>::const_iterator
5369 if (Instruction *I = dyn_cast<Instruction>(SU->getValue())) {
5882 if (const Instruction *AI = dyn_cast<Instruction>(AU->getValue()))
5883 if (const Instruction *BI = dyn_cast<Instruction>(BU->getValue()))
6391 if (BO->getOpcode() == Instruction::And) {
6395 } else if (BO->getOpcode() == Instruction::Or) {
7363 const SCEV *ScalarEvolution::getElementSize(Instruction *Inst) {
7861 if (Instruction *I = dyn_cast<Instruction>(cast<SCEVUnknown>(S)->getValue()))
7945 if (Instruction *I =
7946 dyn_cast<Instruction>(cast<SCEVUnknown>(S)->getValue())) {