Home
last modified time | relevance | path

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

/NextBSD/contrib/llvm/lib/Transforms/Utils/
HDSimplifyIndVar.cpp69 Value *foldIVUser(Instruction *UseInst, Instruction *IVOperand);
71 bool eliminateIVUser(Instruction *UseInst, Instruction *IVOperand);
90 Value *SimplifyIndvar::foldIVUser(Instruction *UseInst, Instruction *IVOperand) { in foldIVUser() argument
94 switch (UseInst->getOpcode()) { in foldIVUser()
101 if (IVOperand != UseInst->getOperand(OperIdx) || in foldIVUser()
102 !isa<ConstantInt>(UseInst->getOperand(1))) in foldIVUser()
115 ConstantInt *D = cast<ConstantInt>(UseInst->getOperand(1)); in foldIVUser()
116 if (UseInst->getOpcode() == Instruction::LShr) { in foldIVUser()
118 uint32_t BitWidth = cast<IntegerType>(UseInst->getType())->getBitWidth(); in foldIVUser()
122 D = ConstantInt::get(UseInst->getContext(), in foldIVUser()
[all …]
/NextBSD/contrib/llvm/lib/CodeGen/
HDMachineSink.cpp224 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
225 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock()
226 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
227 if (!(UseBlock == MBB && UseInst->isPHI() && in AllUsesDominatedByBlock()
228 UseInst->getOperand(OpNo+1).getMBB() == DefMBB)) { in AllUsesDominatedByBlock()
238 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
239 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock()
240 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
241 if (UseInst->isPHI()) { in AllUsesDominatedByBlock()
244 UseBlock = UseInst->getOperand(OpNo+1).getMBB(); in AllUsesDominatedByBlock()
[all …]
/NextBSD/contrib/llvm/lib/Transforms/Scalar/
HDSink.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()
/NextBSD/contrib/llvm/lib/Target/AMDGPU/
HDAMDGPUPromoteAlloca.cpp258 Instruction *UseInst = dyn_cast<Instruction>(User); in collectUsesWithPtrTypes() local
259 if (UseInst && UseInst->getOpcode() == Instruction::PtrToInt) in collectUsesWithPtrTypes()
262 if (StoreInst *SI = dyn_cast_or_null<StoreInst>(UseInst)) { in collectUsesWithPtrTypes()
/NextBSD/contrib/llvm/lib/Analysis/
HDScalarEvolution.cpp5353 getConstantEvolvingPHIOperands(Instruction *UseInst, const Loop *L, in getConstantEvolvingPHIOperands() argument
5359 for (Instruction::op_iterator OpI = UseInst->op_begin(), in getConstantEvolvingPHIOperands()
5360 OpE = UseInst->op_end(); OpI != OpE; ++OpI) { in getConstantEvolvingPHIOperands()