Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DSimplifyIndVar.cpp76 Value *foldIVUser(Instruction *UseInst, Instruction *IVOperand);
78 bool eliminateIVUser(Instruction *UseInst, Instruction *IVOperand);
93 Value *SimplifyIndvar::foldIVUser(Instruction *UseInst, Instruction *IVOperand) { in foldIVUser() argument
97 switch (UseInst->getOpcode()) { in foldIVUser()
104 if (IVOperand != UseInst->getOperand(OperIdx) || in foldIVUser()
105 !isa<ConstantInt>(UseInst->getOperand(1))) in foldIVUser()
118 ConstantInt *D = cast<ConstantInt>(UseInst->getOperand(1)); in foldIVUser()
119 if (UseInst->getOpcode() == Instruction::LShr) { in foldIVUser()
121 uint32_t BitWidth = cast<IntegerType>(UseInst->getType())->getBitWidth(); in foldIVUser()
125 D = ConstantInt::get(UseInst->getContext(), in foldIVUser()
[all …]
/external/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp69 Value *foldIVUser(Instruction *UseInst, Instruction *IVOperand);
71 bool eliminateIdentitySCEV(Instruction *UseInst, Instruction *IVOperand);
74 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()
[all …]
/external/llvm/lib/CodeGen/
DMachineSink.cpp225 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
226 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock()
227 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
228 if (!(UseBlock == MBB && UseInst->isPHI() && in AllUsesDominatedByBlock()
229 UseInst->getOperand(OpNo+1).getMBB() == DefMBB)) { in AllUsesDominatedByBlock()
239 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
240 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock()
241 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
242 if (UseInst->isPHI()) { in AllUsesDominatedByBlock()
245 UseBlock = UseInst->getOperand(OpNo+1).getMBB(); in AllUsesDominatedByBlock()
[all …]
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DMachineSink.cpp177 MachineInstr *UseInst = &*I; in AllUsesDominatedByBlock() local
178 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
179 if (!(UseBlock == MBB && UseInst->isPHI() && in AllUsesDominatedByBlock()
180 UseInst->getOperand(I.getOperandNo()+1).getMBB() == DefMBB)) { in AllUsesDominatedByBlock()
192 MachineInstr *UseInst = &*I; in AllUsesDominatedByBlock() local
193 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
194 if (UseInst->isPHI()) { in AllUsesDominatedByBlock()
197 UseBlock = UseInst->getOperand(I.getOperandNo()+1).getMBB(); in AllUsesDominatedByBlock()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp59 Instruction *UseInst,
553 Instruction *UseInst = cast<Instruction>(User); in collectUsesWithPtrTypes() local
554 if (UseInst->getOpcode() == Instruction::PtrToInt) in collectUsesWithPtrTypes()
557 if (LoadInst *LI = dyn_cast_or_null<LoadInst>(UseInst)) { in collectUsesWithPtrTypes()
564 if (StoreInst *SI = dyn_cast<StoreInst>(UseInst)) { in collectUsesWithPtrTypes()
571 } else if (AtomicRMWInst *RMW = dyn_cast_or_null<AtomicRMWInst>(UseInst)) { in collectUsesWithPtrTypes()
575 = dyn_cast_or_null<AtomicCmpXchgInst>(UseInst)) { in collectUsesWithPtrTypes()
582 if (ICmpInst *ICmp = dyn_cast<ICmpInst>(UseInst)) { in collectUsesWithPtrTypes()
593 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(UseInst)) { in collectUsesWithPtrTypes()
602 if (SelectInst *SI = dyn_cast<SelectInst>(UseInst)) { in collectUsesWithPtrTypes()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DSink.cpp80 Instruction *UseInst = cast<Instruction>(*I); in AllUsesDominatedByBlock() local
81 BasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
82 if (PHINode *PN = dyn_cast<PHINode>(UseInst)) { in AllUsesDominatedByBlock()
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyRegStackify.cpp367 const MachineInstr *UseInst = Use.getParent(); in OneUseDominatesOtherUses() local
368 VNInfo *UseVNI = LI.getVNInfoBefore(LIS.getInstructionIndex(*UseInst)); in OneUseDominatesOtherUses()
374 if (UseInst == OneUseInst) { in OneUseDominatesOtherUses()
381 while (!MDT.dominates(OneUseInst, UseInst)) { in OneUseDominatesOtherUses()
387 if (UseInst->getDesc().getNumDefs() == 0) in OneUseDominatesOtherUses()
389 const MachineOperand &MO = UseInst->getOperand(0); in OneUseDominatesOtherUses()
404 UseInst = NewUseInst; in OneUseDominatesOtherUses()
/external/llvm/lib/Transforms/Scalar/
DSink.cpp45 Instruction *UseInst = cast<Instruction>(U.getUser()); in AllUsesDominatedByBlock() local
46 BasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
47 if (PHINode *PN = dyn_cast<PHINode>(UseInst)) { in AllUsesDominatedByBlock()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DIRBuilder.h96 Instruction *UseInst = cast<Instruction>(U.getUser()); in SetInsertPoint() local
97 if (PHINode *Phi = dyn_cast<PHINode>(UseInst)) { in SetInsertPoint()
103 SetInsertPoint(UseInst); in SetInsertPoint()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DScalarEvolution.cpp4693 getConstantEvolvingPHIOperands(Instruction *UseInst, const Loop *L, in getConstantEvolvingPHIOperands() argument
4699 for (Instruction::op_iterator OpI = UseInst->op_begin(), in getConstantEvolvingPHIOperands()
4700 OpE = UseInst->op_end(); OpI != OpE; ++OpI) { in getConstantEvolvingPHIOperands()
/external/llvm/lib/Analysis/
DScalarEvolution.cpp6322 getConstantEvolvingPHIOperands(Instruction *UseInst, const Loop *L, in getConstantEvolvingPHIOperands() argument
6328 for (Value *Op : UseInst->operands()) { in getConstantEvolvingPHIOperands()