Home
last modified time | relevance | path

Searched refs:UseInst (Results 1 – 6 of 6) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp70 Value *foldIVUser(Instruction *UseInst, Instruction *IVOperand);
72 bool eliminateIVUser(Instruction *UseInst, Instruction *IVOperand);
91 Value *SimplifyIndvar::foldIVUser(Instruction *UseInst, Instruction *IVOperand) { in foldIVUser() argument
95 switch (UseInst->getOpcode()) { in foldIVUser()
102 if (IVOperand != UseInst->getOperand(OperIdx) || in foldIVUser()
103 !isa<ConstantInt>(UseInst->getOperand(1))) in foldIVUser()
116 ConstantInt *D = cast<ConstantInt>(UseInst->getOperand(1)); in foldIVUser()
117 if (UseInst->getOpcode() == Instruction::LShr) { in foldIVUser()
119 uint32_t BitWidth = cast<IntegerType>(UseInst->getType())->getBitWidth(); in foldIVUser()
123 D = ConstantInt::get(UseInst->getContext(), in foldIVUser()
[all …]
/external/llvm/lib/CodeGen/
DMachineSink.cpp212 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
213 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock()
214 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
215 if (!(UseBlock == MBB && UseInst->isPHI() && in AllUsesDominatedByBlock()
216 UseInst->getOperand(OpNo+1).getMBB() == DefMBB)) { in AllUsesDominatedByBlock()
226 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
227 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock()
228 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
229 if (UseInst->isPHI()) { in AllUsesDominatedByBlock()
232 UseBlock = UseInst->getOperand(OpNo+1).getMBB(); in AllUsesDominatedByBlock()
[all …]
/external/llvm/lib/Transforms/Scalar/
DSink.cpp84 Instruction *UseInst = cast<Instruction>(U.getUser()); in AllUsesDominatedByBlock() local
85 BasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
86 if (PHINode *PN = dyn_cast<PHINode>(UseInst)) { in AllUsesDominatedByBlock()
/external/llvm/lib/Target/R600/
DAMDGPUPromoteAlloca.cpp249 Instruction *UseInst = dyn_cast<Instruction>(User); in collectUsesWithPtrTypes() local
250 if (UseInst && UseInst->getOpcode() == Instruction::PtrToInt) in collectUsesWithPtrTypes()
/external/llvm/include/llvm/IR/
DIRBuilder.h108 Instruction *UseInst = cast<Instruction>(U.getUser()); in SetInsertPoint() local
109 if (PHINode *Phi = dyn_cast<PHINode>(UseInst)) { in SetInsertPoint()
115 SetInsertPoint(UseInst); in SetInsertPoint()
/external/llvm/lib/Analysis/
DScalarEvolution.cpp5324 getConstantEvolvingPHIOperands(Instruction *UseInst, const Loop *L, in getConstantEvolvingPHIOperands() argument
5330 for (Instruction::op_iterator OpI = UseInst->op_begin(), in getConstantEvolvingPHIOperands()
5331 OpE = UseInst->op_end(); OpI != OpE; ++OpI) { in getConstantEvolvingPHIOperands()