/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-10.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); 86 bool eliminateIVUser(Instruction *UseInst, Instruction *IVOperand); 108 Value *SimplifyIndvar::foldIVUser(Instruction *UseInst, Instruction *IVOperand) { in foldIVUser() argument 113 switch (UseInst->getOpcode()) { in foldIVUser() 120 if (IVOperand != UseInst->getOperand(OperIdx) || in foldIVUser() 121 !isa<ConstantInt>(UseInst->getOperand(1))) in foldIVUser() 134 ConstantInt *D = cast<ConstantInt>(UseInst->getOperand(1)); in foldIVUser() 135 if (UseInst->getOpcode() == Instruction::LShr) { in foldIVUser() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | SimplifyIndVar.cpp | 80 Value *foldIVUser(Instruction *UseInst, Instruction *IVOperand); 82 bool eliminateIdentitySCEV(Instruction *UseInst, Instruction *IVOperand); 83 bool replaceIVUserWithLoopInvariant(Instruction *UseInst); 88 bool eliminateIVUser(Instruction *UseInst, Instruction *IVOperand); 110 Value *SimplifyIndvar::foldIVUser(Instruction *UseInst, Instruction *IVOperand) { in foldIVUser() argument 115 switch (UseInst->getOpcode()) { in foldIVUser() 122 if (IVOperand != UseInst->getOperand(OperIdx) || in foldIVUser() 123 !isa<ConstantInt>(UseInst->getOperand(1))) in foldIVUser() 136 ConstantInt *D = cast<ConstantInt>(UseInst->getOperand(1)); in foldIVUser() 137 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-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 107 Instruction *UseInst, 540 Instruction *UseInst = cast<Instruction>(User); in collectUsesWithPtrTypes() local 541 if (UseInst->getOpcode() == Instruction::PtrToInt) in collectUsesWithPtrTypes() 544 if (LoadInst *LI = dyn_cast<LoadInst>(UseInst)) { in collectUsesWithPtrTypes() 551 if (StoreInst *SI = dyn_cast<StoreInst>(UseInst)) { in collectUsesWithPtrTypes() 558 } else if (AtomicRMWInst *RMW = dyn_cast<AtomicRMWInst>(UseInst)) { in collectUsesWithPtrTypes() 561 } else if (AtomicCmpXchgInst *CAS = dyn_cast<AtomicCmpXchgInst>(UseInst)) { in collectUsesWithPtrTypes() 568 if (ICmpInst *ICmp = dyn_cast<ICmpInst>(UseInst)) { in collectUsesWithPtrTypes() 576 if (UseInst->getOpcode() == Instruction::AddrSpaceCast) { in collectUsesWithPtrTypes() 578 if (PointerMayBeCaptured(UseInst, true, true)) in collectUsesWithPtrTypes() [all …]
|
D | GCNNSAReassign.cpp | 206 const MachineInstr *UseInst = U.getParent(); in CheckNSA() local 207 if (UseInst->isCopy() && UseInst->getOperand(0).getReg() == PhysReg) in CheckNSA()
|
D | GCNRegBankReassign.cpp | 437 const MachineInstr *UseInst = U.getParent(); in isReassignable() local 438 if (UseInst->isCopy() && UseInst->getOperand(0).getReg() == PhysReg) in isReassignable()
|
/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-10.0/llvm/lib/CodeGen/ |
D | MachineSink.cpp | 285 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local 286 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock() 287 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock() 288 if (!(UseBlock == MBB && UseInst->isPHI() && in AllUsesDominatedByBlock() 289 UseInst->getOperand(OpNo+1).getMBB() == DefMBB)) { in AllUsesDominatedByBlock() 299 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local 300 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock() 301 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock() 302 if (UseInst->isPHI()) { in AllUsesDominatedByBlock() 305 UseBlock = UseInst->getOperand(OpNo+1).getMBB(); in AllUsesDominatedByBlock() [all …]
|
D | MIRCanonicalizerPass.cpp | 223 MachineInstr *UseInst = UO.getParent(); in rescheduleCanonically() local 226 const unsigned UseLoc = getInstrIdx(*UseInst); in rescheduleCanonically() 229 if (UseInst->getParent() != Def->getParent()) in rescheduleCanonically() 236 UseToBringDefCloserTo = UseInst; in rescheduleCanonically()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 113 Instruction *UseInst, 644 Instruction *UseInst = cast<Instruction>(User); in collectUsesWithPtrTypes() local 645 if (UseInst->getOpcode() == Instruction::PtrToInt) in collectUsesWithPtrTypes() 648 if (LoadInst *LI = dyn_cast<LoadInst>(UseInst)) { in collectUsesWithPtrTypes() 655 if (StoreInst *SI = dyn_cast<StoreInst>(UseInst)) { in collectUsesWithPtrTypes() 662 } else if (AtomicRMWInst *RMW = dyn_cast<AtomicRMWInst>(UseInst)) { in collectUsesWithPtrTypes() 665 } else if (AtomicCmpXchgInst *CAS = dyn_cast<AtomicCmpXchgInst>(UseInst)) { in collectUsesWithPtrTypes() 672 if (ICmpInst *ICmp = dyn_cast<ICmpInst>(UseInst)) { in collectUsesWithPtrTypes() 680 if (UseInst->getOpcode() == Instruction::AddrSpaceCast) { in collectUsesWithPtrTypes() 682 if (PointerMayBeCaptured(UseInst, true, true)) in collectUsesWithPtrTypes() [all …]
|
D | GCNNSAReassign.cpp | 206 const MachineInstr *UseInst = U.getParent(); in CheckNSA() local 207 if (UseInst->isCopy() && UseInst->getOperand(0).getReg() == PhysReg) in CheckNSA()
|
D | GCNRegBankReassign.cpp | 490 const MachineInstr *UseInst = U.getParent(); in isReassignable() local 491 if (UseInst->isCopy() && UseInst->getOperand(0).getReg() == PhysReg) in isReassignable()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | DeadStoreElimination.cpp | 1764 Instruction *UseInst) { in isCompleteOverwrite() 1768 if (!UseInst->mayWriteToMemory()) in isCompleteOverwrite() 1771 if (auto *CB = dyn_cast<CallBase>(UseInst)) in isCompleteOverwrite() 1776 if (auto CC = getLocForWriteEx(UseInst)) in isCompleteOverwrite() 1777 return isOverwrite(UseInst, DefInst, *CC, DefLoc, DL, TLI, DepWriteOffset, in isCompleteOverwrite() 1819 Instruction *UseInst = cast<MemoryUseOrDef>(UseAccess)->getMemoryInst(); in isWriteAtEndOfFunction() local 1820 if (isReadClobber(*MaybeLoc, UseInst)) { in isWriteAtEndOfFunction() 1821 LLVM_DEBUG(dbgs() << " ... hit read clobber " << *UseInst << ".\n"); in isWriteAtEndOfFunction() 1887 bool isReadClobber(MemoryLocation DefLoc, Instruction *UseInst) { in isReadClobber() 1888 if (isNoopIntrinsic(UseInst)) in isReadClobber() [all …]
|
D | Sink.cpp | 136 Instruction *UseInst = cast<Instruction>(U.getUser()); in SinkInstruction() local 137 BasicBlock *UseBlock = UseInst->getParent(); in SinkInstruction() 141 if (PHINode *PN = dyn_cast<PHINode>(UseInst)) { in SinkInstruction()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | MachineSink.cpp | 299 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local 300 unsigned OpNo = UseInst->getOperandNo(&MO); in AllUsesDominatedByBlock() 301 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock() 302 return UseBlock == MBB && UseInst->isPHI() && in AllUsesDominatedByBlock() 303 UseInst->getOperand(OpNo + 1).getMBB() == DefMBB; in AllUsesDominatedByBlock() 311 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local 312 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock() 313 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock() 314 if (UseInst->isPHI()) { in AllUsesDominatedByBlock() 317 UseBlock = UseInst->getOperand(OpNo+1).getMBB(); in AllUsesDominatedByBlock() [all …]
|
D | MIRCanonicalizerPass.cpp | 222 MachineInstr *UseInst = UO.getParent(); in rescheduleCanonically() local 225 const unsigned UseLoc = getInstrIdx(*UseInst); in rescheduleCanonically() 228 if (UseInst->getParent() != Def->getParent()) in rescheduleCanonically() 235 UseToBringDefCloserTo = UseInst; in rescheduleCanonically()
|
D | RegAllocFast.cpp | 347 for (const MachineInstr &UseInst : MRI->use_nodbg_instructions(VirtReg)) { in mayLiveOut() local 348 if (UseInst.getParent() != MBB || ++C >= Limit) { in mayLiveOut() 357 if (SelfLoopDef == &UseInst || in mayLiveOut() 358 !dominates(*MBB, SelfLoopDef->getIterator(), UseInst.getIterator())) { in mayLiveOut()
|
/external/llvm-project/llvm/lib/Target/PowerPC/ |
D | PPCPreEmitPeephole.cpp | 254 MachineBasicBlock::iterator UseInst; in addLinkerOpt() member 299 Pair.UseInst = BBI; in addLinkerOpt() 310 assert(Pair->UseInst.isValid() && Pair->StillValid && in addLinkerOpt() 317 for (; BBI != Pair->UseInst; ++BBI) { in addLinkerOpt() 339 Pair->UseInst->addOperand(ImplUse); in addLinkerOpt() 348 Pair->UseInst->addOperand(*MF, PCRelLabel); in addLinkerOpt()
|
/external/llvm-project/polly/lib/Transform/ |
D | ForwardOpTree.cpp | 664 Instruction *UseInst, ScopStmt *DefStmt, in forwardSpeculatable() argument 667 if (isa<PHINode>(UseInst)) in forwardSpeculatable() 682 if (mayBeMemoryDependent(*UseInst)) in forwardSpeculatable() 686 Depends.reserve(UseInst->getNumOperands()); in forwardSpeculatable() 687 for (Value *OpVal : UseInst->operand_values()) { in forwardSpeculatable() 706 auto ExecAction = [this, TargetStmt, UseInst]() { in forwardSpeculatable() 710 TargetStmt->prependInstruction(UseInst); in forwardSpeculatable() 712 LLVM_DEBUG(dbgs() << " forwarded speculable instruction: " << *UseInst in forwardSpeculatable()
|
/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-10.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/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/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyRegStackify.cpp | 415 const MachineInstr *UseInst = Use.getParent(); in oneUseDominatesOtherUses() local 416 VNInfo *UseVNI = LI.getVNInfoBefore(LIS.getInstructionIndex(*UseInst)); in oneUseDominatesOtherUses() 421 if (UseInst == OneUseInst) { in oneUseDominatesOtherUses() 428 while (!MDT.dominates(OneUseInst, UseInst)) { in oneUseDominatesOtherUses() 434 if (UseInst->getDesc().getNumDefs() == 0) in oneUseDominatesOtherUses() 436 const MachineOperand &MO = UseInst->getOperand(0); in oneUseDominatesOtherUses() 451 UseInst = NewUseInst; in oneUseDominatesOtherUses()
|
/external/llvm-project/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyRegStackify.cpp | 451 const MachineInstr *UseInst = Use.getParent(); in oneUseDominatesOtherUses() local 452 VNInfo *UseVNI = LI.getVNInfoBefore(LIS.getInstructionIndex(*UseInst)); in oneUseDominatesOtherUses() 457 if (UseInst == OneUseInst) { in oneUseDominatesOtherUses() 464 while (!MDT.dominates(OneUseInst, UseInst)) { in oneUseDominatesOtherUses() 470 if (UseInst->getDesc().getNumDefs() == 0) in oneUseDominatesOtherUses() 472 const MachineOperand &MO = UseInst->getOperand(0); in oneUseDominatesOtherUses() 487 UseInst = NewUseInst; in oneUseDominatesOtherUses()
|