/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | SimplifyIndVar.cpp | 76 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/ |
D | SimplifyIndVar.cpp | 69 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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | SimplifyIndVar.cpp | 78 Value *foldIVUser(Instruction *UseInst, Instruction *IVOperand); 80 bool eliminateIdentitySCEV(Instruction *UseInst, Instruction *IVOperand); 81 bool replaceIVUserWithLoopInvariant(Instruction *UseInst); 85 bool eliminateIVUser(Instruction *UseInst, Instruction *IVOperand); 107 Value *SimplifyIndvar::foldIVUser(Instruction *UseInst, Instruction *IVOperand) { in foldIVUser() argument 111 switch (UseInst->getOpcode()) { in foldIVUser() 118 if (IVOperand != UseInst->getOperand(OperIdx) || in foldIVUser() 119 !isa<ConstantInt>(UseInst->getOperand(1))) in foldIVUser() 132 ConstantInt *D = cast<ConstantInt>(UseInst->getOperand(1)); in foldIVUser() 133 if (UseInst->getOpcode() == Instruction::LShr) { in foldIVUser() [all …]
|
/external/llvm/lib/CodeGen/ |
D | MachineSink.cpp | 225 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/ |
D | MachineSink.cpp | 177 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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 102 Instruction *UseInst, 517 Instruction *UseInst = cast<Instruction>(User); in collectUsesWithPtrTypes() local 518 if (UseInst->getOpcode() == Instruction::PtrToInt) in collectUsesWithPtrTypes() 521 if (LoadInst *LI = dyn_cast<LoadInst>(UseInst)) { in collectUsesWithPtrTypes() 528 if (StoreInst *SI = dyn_cast<StoreInst>(UseInst)) { in collectUsesWithPtrTypes() 535 } else if (AtomicRMWInst *RMW = dyn_cast<AtomicRMWInst>(UseInst)) { in collectUsesWithPtrTypes() 538 } else if (AtomicCmpXchgInst *CAS = dyn_cast<AtomicCmpXchgInst>(UseInst)) { in collectUsesWithPtrTypes() 545 if (ICmpInst *ICmp = dyn_cast<ICmpInst>(UseInst)) { in collectUsesWithPtrTypes() 553 if (UseInst->getOpcode() == Instruction::AddrSpaceCast) { in collectUsesWithPtrTypes() 555 if (PointerMayBeCaptured(UseInst, true, true)) in collectUsesWithPtrTypes() [all …]
|
D | SIPeepholeSDWA.cpp | 451 for (MachineInstr &UseInst : MRI->use_nodbg_instructions(PotentialMO->getReg())) { in potentialToConvert() 452 if (&UseInst != ParentMI) in potentialToConvert()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | MachineSink.cpp | 261 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local 262 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock() 263 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock() 264 if (!(UseBlock == MBB && UseInst->isPHI() && in AllUsesDominatedByBlock() 265 UseInst->getOperand(OpNo+1).getMBB() == DefMBB)) { in AllUsesDominatedByBlock() 275 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local 276 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock() 277 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock() 278 if (UseInst->isPHI()) { in AllUsesDominatedByBlock() 281 UseBlock = UseInst->getOperand(OpNo+1).getMBB(); in AllUsesDominatedByBlock() [all …]
|
D | MIRCanonicalizerPass.cpp | 243 MachineInstr *UseInst = UO.getParent(); in rescheduleCanonically() local 246 const unsigned UseLoc = getInstrIdx(*UseInst); in rescheduleCanonically() 249 if (UseInst->getParent() != Def->getParent()) in rescheduleCanonically() 256 UseToBringDefCloserTo = UseInst; in rescheduleCanonically()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 59 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/ |
D | Sink.cpp | 80 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/ |
D | WebAssemblyRegStackify.cpp | 367 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/ |
D | Sink.cpp | 45 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-7.0/llvm/lib/Transforms/Scalar/ |
D | Sink.cpp | 45 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-7.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyRegStackify.cpp | 400 const MachineInstr *UseInst = Use.getParent(); in OneUseDominatesOtherUses() local 401 VNInfo *UseVNI = LI.getVNInfoBefore(LIS.getInstructionIndex(*UseInst)); in OneUseDominatesOtherUses() 407 if (UseInst == OneUseInst) { in OneUseDominatesOtherUses() 414 while (!MDT.dominates(OneUseInst, UseInst)) { in OneUseDominatesOtherUses() 420 if (UseInst->getDesc().getNumDefs() == 0) in OneUseDominatesOtherUses() 422 const MachineOperand &MO = UseInst->getOperand(0); in OneUseDominatesOtherUses() 437 UseInst = NewUseInst; in OneUseDominatesOtherUses()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | MemorySSA.cpp | 251 const Instruction *UseInst, in instructionClobbersQuery() argument 255 ImmutableCallSite UseCS(UseInst); in instructionClobbersQuery() 289 if (auto *UseLoad = dyn_cast<LoadInst>(UseInst)) in instructionClobbersQuery() 1261 Instruction *UseInst = MU->getMemoryInst(); in optimizeUsesInBlock() local 1262 MemoryAccess *Result = Walker->getClobberingMemoryAccess(UseInst); in optimizeUsesInBlock()
|
D | ScalarEvolution.cpp | 7678 getConstantEvolvingPHIOperands(Instruction *UseInst, const Loop *L, in getConstantEvolvingPHIOperands() argument 7687 for (Value *Op : UseInst->operands()) { in getConstantEvolvingPHIOperands()
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | IRBuilder.h | 96 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-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | FastISel.cpp | 279 for (MachineInstr &UseInst : MRI.use_nodbg_instructions(DefReg)) { in sinkLocalValueMaterialization() 280 auto I = OrderMap.Orders.find(&UseInst); in sinkLocalValueMaterialization() 286 FirstUser = &UseInst; in sinkLocalValueMaterialization()
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | ScalarEvolution.cpp | 4693 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/ |
D | ScalarEvolution.cpp | 6322 getConstantEvolvingPHIOperands(Instruction *UseInst, const Loop *L, in getConstantEvolvingPHIOperands() argument 6328 for (Value *Op : UseInst->operands()) { in getConstantEvolvingPHIOperands()
|