/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | LiveRangeEdit.cpp | 39 LiveInterval &LI = LIS.getOrCreateInterval(VReg); in createFrom() local 40 newRegs_.push_back(&LI); in createFrom() 41 return LI; in createFrom() 162 bool LiveRangeEdit::foldAsLoad(LiveInterval *LI, in foldAsLoad() argument 170 for (MachineRegisterInfo::reg_nodbg_iterator I = MRI.reg_nodbg_begin(LI->reg), in foldAsLoad() 196 if (UseMI->readsWritesVirtualRegister(LI->reg, &Ops).second) in foldAsLoad() 205 DefMI->addRegisterDead(LI->reg, 0); in foldAsLoad() 249 LiveInterval &LI = LIS.getInterval(Reg); in eliminateDeadDefs() local 257 LI.killedAt(Idx))) in eliminateDeadDefs() 258 ToShrink.insert(&LI); in eliminateDeadDefs() [all …]
|
D | StrongPHIElimination.cpp | 147 LiveIntervals *LI; member in __anon86a083a20111::StrongPHIElimination 182 MIIndexCompare(LiveIntervals *LiveIntervals) : LI(LiveIntervals) { } in MIIndexCompare() 185 return LI->getInstructionIndex(LHS) < LI->getInstructionIndex(RHS); in operator ()() 188 LiveIntervals *LI; member 238 LI = &getAnalysis<LiveIntervals>(); in runOnMachineFunction() 328 LI->RemoveMachineInstrFromMaps(PHI); in runOnMachineFunction() 345 LiveInterval &DestLI = LI->getInterval(DestReg); in runOnMachineFunction() 346 LiveInterval &NewLI = LI->getInterval(NewReg); in runOnMachineFunction() 354 NewVNI = NewLI.createValueCopy(DestLR->valno, LI->getVNInfoAllocator()); in runOnMachineFunction() 362 LI->removeInterval(DestReg); in runOnMachineFunction() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 73 if (auto *LI = dyn_cast<LoadInst>(I)) { in isOnlyCopiedFromConstantGlobal() local 75 if (!LI->isSimple()) return false; in isOnlyCopiedFromConstantGlobal() 452 static LoadInst *combineLoadToNewType(InstCombiner &IC, LoadInst &LI, Type *NewTy, in combineLoadToNewType() argument 454 assert((!LI.isAtomic() || isSupportedAtomicType(NewTy)) && in combineLoadToNewType() 457 Value *Ptr = LI.getPointerOperand(); in combineLoadToNewType() 458 unsigned AS = LI.getPointerAddressSpace(); in combineLoadToNewType() 460 LI.getAllMetadata(MD); in combineLoadToNewType() 469 NewPtr, LI.getAlignment(), LI.isVolatile(), LI.getName() + Suffix); in combineLoadToNewType() 470 NewLoad->setAtomic(LI.getOrdering(), LI.getSyncScopeID()); in combineLoadToNewType() 498 copyNonnullMetadata(LI, N, *NewLoad); in combineLoadToNewType() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 69 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in isOnlyCopiedFromConstantGlobal() local 71 if (!LI->isSimple()) return false; in isOnlyCopiedFromConstantGlobal() 320 static LoadInst *combineLoadToNewType(InstCombiner &IC, LoadInst &LI, Type *NewTy, in combineLoadToNewType() argument 322 Value *Ptr = LI.getPointerOperand(); in combineLoadToNewType() 323 unsigned AS = LI.getPointerAddressSpace(); in combineLoadToNewType() 325 LI.getAllMetadata(MD); in combineLoadToNewType() 329 LI.getAlignment(), LI.isVolatile(), LI.getName() + Suffix); in combineLoadToNewType() 330 NewLoad->setAtomic(LI.getOrdering(), LI.getSynchScope()); in combineLoadToNewType() 460 static Instruction *combineLoadToOperationType(InstCombiner &IC, LoadInst &LI) { in combineLoadToOperationType() argument 463 if (!LI.isUnordered()) in combineLoadToOperationType() [all …]
|
/external/swiftshader/third_party/LLVM/tools/llvm-diff/ |
D | DifferenceEngine.cpp | 197 BasicBlock::iterator LI = L->begin(), LE = L->end(); in diff() local 203 assert(LI != LE && RI != R->end()); in diff() 204 Instruction *LeftI = &*LI, *RightI = &*RI; in diff() 217 ++LI, ++RI; in diff() 218 } while (LI != LE); // This is sufficient: we can't get equality of in diff() 223 for (LI = L->begin(), RI = R->begin(); LI != LE; ++LI, ++RI) in diff() 224 unify(&*LI, &*RI); in diff() 228 void runBlockDiff(BasicBlock::iterator LI, BasicBlock::iterator RI); 281 InvokeInst *LI = cast<InvokeInst>(L); in diff() local 283 if (diffCallSites(CallSite(LI), CallSite(RI), Complain)) in diff() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/ |
D | LoopInfoTest.cpp | 21 function_ref<void(Function &F, LoopInfo &LI)> Test) { in runWithLoopInfo() 26 LoopInfo LI(DT); in runWithLoopInfo() local 27 Test(*F, LI); in runWithLoopInfo() 61 runWithLoopInfo(*M, "foo", [&](Function &F, LoopInfo &LI) { in TEST() argument 66 Loop *L = LI.getLoopFor(Header); in TEST() 114 LoopInfo LI; in TEST() local 115 LI.analyze(DT); in TEST() 120 Loop &L_0 = *LI.getLoopFor(&*I++); in TEST() 122 Loop &L_0_0 = *LI.getLoopFor(&*I++); in TEST() 124 Loop &L_0_1 = *LI.getLoopFor(&*I++); in TEST() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 89 static Instruction *InstCombineLoadCast(InstCombiner &IC, LoadInst &LI, in InstCombineLoadCast() argument 91 User *CI = cast<User>(LI.getOperand(0)); in InstCombineLoadCast() 113 Idxs[0] = Constant::getNullValue(Type::getInt32Ty(LI.getContext())); in InstCombineLoadCast() 125 (SrcPTy->isPointerTy() == LI.getType()->isPointerTy()) && in InstCombineLoadCast() 133 IC.Builder->CreateLoad(CastOp, LI.isVolatile(), CI->getName()); in InstCombineLoadCast() 134 NewLoad->setAlignment(LI.getAlignment()); in InstCombineLoadCast() 135 NewLoad->setAtomic(LI.getOrdering(), LI.getSynchScope()); in InstCombineLoadCast() 137 return new BitCastInst(NewLoad, LI.getType()); in InstCombineLoadCast() 144 Instruction *InstCombiner::visitLoadInst(LoadInst &LI) { in visitLoadInst() argument 145 Value *Op = LI.getOperand(0); in visitLoadInst() [all …]
|
/external/llvm/tools/llvm-diff/ |
D | DifferenceEngine.cpp | 194 BasicBlock::iterator LI = L->begin(), LE = L->end(); in diff() local 198 assert(LI != LE && RI != R->end()); in diff() 199 Instruction *LeftI = &*LI, *RightI = &*RI; in diff() 212 ++LI; in diff() 214 } while (LI != LE); // This is sufficient: we can't get equality of in diff() 219 for (LI = L->begin(), RI = R->begin(); LI != LE; ++LI, ++RI) in diff() 220 unify(&*LI, &*RI); in diff() 224 void runBlockDiff(BasicBlock::iterator LI, BasicBlock::iterator RI); 277 InvokeInst *LI = cast<InvokeInst>(L); in diff() local 279 if (diffCallSites(CallSite(LI), CallSite(RI), Complain)) in diff() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-diff/ |
D | DifferenceEngine.cpp | 194 BasicBlock::iterator LI = L->begin(), LE = L->end(); in diff() local 198 assert(LI != LE && RI != R->end()); in diff() 199 Instruction *LeftI = &*LI, *RightI = &*RI; in diff() 212 ++LI; in diff() 214 } while (LI != LE); // This is sufficient: we can't get equality of in diff() 219 for (LI = L->begin(), RI = R->begin(); LI != LE; ++LI, ++RI) in diff() 220 unify(&*LI, &*RI); in diff() 224 void runBlockDiff(BasicBlock::iterator LI, BasicBlock::iterator RI); 277 InvokeInst *LI = cast<InvokeInst>(L); in diff() local 279 if (diffCallSites(CallSite(LI), CallSite(RI), Complain)) in diff() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/ |
D | MachineLoopInfo.h | 61 LoopInfoBase<MachineBasicBlock, MachineLoop> LI; variable 74 LoopInfoBase<MachineBasicBlock, MachineLoop>& getBase() { return LI; } in getBase() 80 inline iterator begin() const { return LI.begin(); } in begin() 81 inline iterator end() const { return LI.end(); } in end() 82 bool empty() const { return LI.empty(); } in empty() 88 return LI.getLoopFor(BB); in getLoopFor() 94 return LI.getLoopFor(BB); 100 return LI.getLoopDepth(BB); in getLoopDepth() 105 return LI.isLoopHeader(BB); in isLoopHeader() 112 virtual void releaseMemory() { LI.releaseMemory(); } in releaseMemory() [all …]
|
/external/llvm/include/llvm/CodeGen/ |
D | MachineLoopInfo.h | 69 LoopInfoBase<MachineBasicBlock, MachineLoop> LI; variable 82 LoopInfoBase<MachineBasicBlock, MachineLoop>& getBase() { return LI; } in getBase() 86 inline iterator begin() const { return LI.begin(); } in begin() 87 inline iterator end() const { return LI.end(); } in end() 88 bool empty() const { return LI.empty(); } in empty() 93 return LI.getLoopFor(BB); in getLoopFor() 98 return LI.getLoopFor(BB); 103 return LI.getLoopDepth(BB); in getLoopDepth() 108 return LI.isLoopHeader(BB); in isLoopHeader() 114 void releaseMemory() override { LI.releaseMemory(); } in releaseMemory() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/ |
D | MachineLoopInfo.h | 87 LoopInfoBase<MachineBasicBlock, MachineLoop> LI; variable 98 LoopInfoBase<MachineBasicBlock, MachineLoop>& getBase() { return LI; } in getBase() 110 inline iterator begin() const { return LI.begin(); } in begin() 111 inline iterator end() const { return LI.end(); } in end() 112 bool empty() const { return LI.empty(); } in empty() 117 return LI.getLoopFor(BB); in getLoopFor() 122 return LI.getLoopFor(BB); 127 return LI.getLoopDepth(BB); in getLoopDepth() 132 return LI.isLoopHeader(BB); in isLoopHeader() 138 void releaseMemory() override { LI.releaseMemory(); } in releaseMemory() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopDeletion.cpp | 83 for (Loop::block_iterator LI = L->block_begin(), LE = L->block_end(); in isLoopDead() local 84 LI != LE; ++LI) { in isLoopDead() 85 for (Instruction &I : **LI) { in isLoopDead() 176 for (Loop::block_iterator LI = L->block_begin(), LE = L->block_end(); in runImpl() local 177 LI != LE; ++LI) { in runImpl() 180 ChildNodes.insert(ChildNodes.begin(), DT[*LI]->begin(), DT[*LI]->end()); in runImpl() 186 DT.eraseNode(*LI); in runImpl() 190 (*LI)->dropAllReferences(); in runImpl() 197 for (Loop::block_iterator LI = L->block_begin(), LE = L->block_end(); in runImpl() local 198 LI != LE; ++LI) in runImpl() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | LiveRangeEdit.cpp | 40 LiveInterval &LI = LIS.createEmptyInterval(VReg); in createEmptyIntervalFrom() local 42 LI.markNotSpillable(); in createEmptyIntervalFrom() 50 LI.createSubRange(Alloc, S.LaneMask); in createEmptyIntervalFrom() 52 return LI; in createEmptyIntervalFrom() 186 bool LiveRangeEdit::foldAsLoad(LiveInterval *LI, in foldAsLoad() argument 191 for (MachineOperand &MO : MRI.reg_nodbg_operands(LI->reg)) { in foldAsLoad() 227 if (UseMI->readsWritesVirtualRegister(LI->reg, &Ops).second) in foldAsLoad() 236 DefMI->addRegisterDead(LI->reg, nullptr); in foldAsLoad() 242 bool LiveRangeEdit::useIsKill(const LiveInterval &LI, in useIsKill() argument 246 if (LI.Query(Idx).isKill()) in useIsKill() [all …]
|
D | RenameIndependentSubregs.cpp | 78 bool renameComponents(LiveInterval &LI) const; 85 LiveInterval &LI) const; 122 bool RenameIndependentSubregs::renameComponents(LiveInterval &LI) const { in INITIALIZE_PASS_DEPENDENCY() 124 if (LI.valnos.size() < 2) in INITIALIZE_PASS_DEPENDENCY() 129 if (!findComponents(Classes, SubRangeInfos, LI)) in INITIALIZE_PASS_DEPENDENCY() 133 unsigned Reg = LI.reg; in INITIALIZE_PASS_DEPENDENCY() 136 Intervals.push_back(&LI); in INITIALIZE_PASS_DEPENDENCY() 157 LiveInterval &LI) const { in findComponents() 161 for (LiveInterval::SubRange &SR : LI.subranges()) { in findComponents() 178 unsigned Reg = LI.reg; in findComponents() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/NVPTX/ |
D | NVPTXLowerAggrCopies.cpp | 73 if (LoadInst *LI = dyn_cast<LoadInst>(II)) { in runOnFunction() local 74 if (!LI->hasOneUse()) in runOnFunction() 77 if (DL.getTypeStoreSize(LI->getType()) < MaxAggrCopySize) in runOnFunction() 80 if (StoreInst *SI = dyn_cast<StoreInst>(LI->user_back())) { in runOnFunction() 81 if (SI->getOperand(0) != LI) in runOnFunction() 83 AggrLoads.push_back(LI); in runOnFunction() 106 for (LoadInst *LI : AggrLoads) { in runOnFunction() 107 StoreInst *SI = dyn_cast<StoreInst>(*LI->user_begin()); in runOnFunction() 108 Value *SrcAddr = LI->getOperand(0); in runOnFunction() 110 unsigned NumLoads = DL.getTypeStoreSize(LI->getType()); in runOnFunction() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | PromoteMemoryToRegister.cpp | 72 if (const LoadInst *LI = dyn_cast<LoadInst>(U)) { in isAllocaPromotable() local 75 if (LI->isVolatile()) in isAllocaPromotable() 148 LoadInst *LI = cast<LoadInst>(User); in AnalyzeAlloca() local 151 UsingBlocks.push_back(LI->getParent()); in AnalyzeAlloca() 152 AllocaPointerVal = LI; in AnalyzeAlloca() 315 static void addAssumeNonNull(AssumptionCache *AC, LoadInst *LI) { in addAssumeNonNull() argument 317 Intrinsic::getDeclaration(LI->getModule(), Intrinsic::assume); in addAssumeNonNull() 318 ICmpInst *LoadNotNull = new ICmpInst(ICmpInst::ICMP_NE, LI, in addAssumeNonNull() 319 Constant::getNullValue(LI->getType())); in addAssumeNonNull() 320 LoadNotNull->insertAfter(LI); in addAssumeNonNull() [all …]
|
/external/llvm/lib/CodeGen/ |
D | RenameIndependentSubregs.cpp | 78 bool renameComponents(LiveInterval &LI) const; 85 LiveInterval &LI) const; 122 bool RenameIndependentSubregs::renameComponents(LiveInterval &LI) const { in INITIALIZE_PASS_DEPENDENCY() 124 if (LI.valnos.size() < 2) in INITIALIZE_PASS_DEPENDENCY() 129 if (!findComponents(Classes, SubRangeInfos, LI)) in INITIALIZE_PASS_DEPENDENCY() 133 unsigned Reg = LI.reg; in INITIALIZE_PASS_DEPENDENCY() 136 Intervals.push_back(&LI); in INITIALIZE_PASS_DEPENDENCY() 157 LiveInterval &LI) const { in findComponents() 161 for (LiveInterval::SubRange &SR : LI.subranges()) { in findComponents() 178 unsigned Reg = LI.reg; in findComponents() [all …]
|
D | LiveRangeEdit.cpp | 39 LiveInterval &LI = LIS.createEmptyInterval(VReg); in createEmptyIntervalFrom() local 40 return LI; in createEmptyIntervalFrom() 164 bool LiveRangeEdit::foldAsLoad(LiveInterval *LI, in foldAsLoad() argument 169 for (MachineOperand &MO : MRI.reg_nodbg_operands(LI->reg)) { in foldAsLoad() 205 if (UseMI->readsWritesVirtualRegister(LI->reg, &Ops).second) in foldAsLoad() 214 DefMI->addRegisterDead(LI->reg, nullptr); in foldAsLoad() 220 bool LiveRangeEdit::useIsKill(const LiveInterval &LI, in useIsKill() argument 224 if (LI.Query(Idx).isKill()) in useIsKill() 229 for (const LiveInterval::SubRange &S : LI.subranges()) { in useIsKill() 293 LiveInterval &LI = LIS.getInterval(Reg); in eliminateDeadDef() local [all …]
|
/external/swiftshader/third_party/LLVM/utils/TableGen/ |
D | StringMatcher.cpp | 106 for (std::map<char, std::vector<const StringPair*> >::iterator LI = in EmitStringMatcherForChar() local 107 MatchesByLetter.begin(), E = MatchesByLetter.end(); LI != E; ++LI) { in EmitStringMatcherForChar() 109 OS << Indent << "case '" << LI->first << "':\t // " in EmitStringMatcherForChar() 110 << LI->second.size() << " string"; in EmitStringMatcherForChar() 111 if (LI->second.size() != 1) OS << 's'; in EmitStringMatcherForChar() 113 if (EmitStringMatcherForChar(LI->second, CharNo+1, IndentCount+1)) in EmitStringMatcherForChar() 139 for (std::map<unsigned, std::vector<const StringPair*> >::iterator LI = in Emit() local 140 MatchesByLength.begin(), E = MatchesByLength.end(); LI != E; ++LI) { in Emit() 141 OS.indent(Indent*2+2) << "case " << LI->first << ":\t // " in Emit() 142 << LI->second.size() in Emit() [all …]
|
/external/llvm/lib/TableGen/ |
D | StringMatcher.cpp | 106 for (std::map<char, std::vector<const StringPair*> >::iterator LI = in EmitStringMatcherForChar() local 107 MatchesByLetter.begin(), E = MatchesByLetter.end(); LI != E; ++LI) { in EmitStringMatcherForChar() 109 OS << Indent << "case '" << LI->first << "':\t // " in EmitStringMatcherForChar() 110 << LI->second.size() << " string"; in EmitStringMatcherForChar() 111 if (LI->second.size() != 1) OS << 's'; in EmitStringMatcherForChar() 113 if (EmitStringMatcherForChar(LI->second, CharNo+1, IndentCount+1)) in EmitStringMatcherForChar() 139 for (std::map<unsigned, std::vector<const StringPair*> >::iterator LI = in Emit() local 140 MatchesByLength.begin(), E = MatchesByLength.end(); LI != E; ++LI) { in Emit() 141 OS.indent(Indent*2+2) << "case " << LI->first << ":\t // " in Emit() 142 << LI->second.size() in Emit() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/TableGen/ |
D | StringMatcher.cpp | 114 for (std::map<char, std::vector<const StringPair*>>::iterator LI = in EmitStringMatcherForChar() local 115 MatchesByLetter.begin(), E = MatchesByLetter.end(); LI != E; ++LI) { in EmitStringMatcherForChar() 117 OS << Indent << "case '" << LI->first << "':\t // " in EmitStringMatcherForChar() 118 << LI->second.size() << " string"; in EmitStringMatcherForChar() 119 if (LI->second.size() != 1) OS << 's'; in EmitStringMatcherForChar() 121 if (EmitStringMatcherForChar(LI->second, CharNo + 1, IndentCount + 1, in EmitStringMatcherForChar() 147 for (std::map<unsigned, std::vector<const StringPair*>>::iterator LI = in Emit() local 148 MatchesByLength.begin(), E = MatchesByLength.end(); LI != E; ++LI) { in Emit() 149 OS.indent(Indent*2+2) << "case " << LI->first << ":\t // " in Emit() 150 << LI->second.size() in Emit() [all …]
|
/external/llvm/lib/Analysis/ |
D | CFG.cpp | 113 static const Loop *getOutermostLoop(const LoopInfo *LI, const BasicBlock *BB) { in getOutermostLoop() argument 114 const Loop *L = LI->getLoopFor(BB); in getOutermostLoop() 123 static bool loopContainsBoth(const LoopInfo *LI, in loopContainsBoth() argument 125 const Loop *L1 = getOutermostLoop(LI, BB1); in loopContainsBoth() 126 const Loop *L2 = getOutermostLoop(LI, BB2); in loopContainsBoth() 132 const DominatorTree *DT, const LoopInfo *LI) { in isPotentiallyReachableFromMany() argument 150 if (LI && loopContainsBoth(LI, BB, StopBB)) in isPotentiallyReachableFromMany() 159 if (const Loop *Outer = LI ? getOutermostLoop(LI, BB) : nullptr) { in isPotentiallyReachableFromMany() 175 const DominatorTree *DT, const LoopInfo *LI) { in isPotentiallyReachable() argument 183 DT, LI); in isPotentiallyReachable() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | CFG.cpp | 113 static const Loop *getOutermostLoop(const LoopInfo *LI, const BasicBlock *BB) { in getOutermostLoop() argument 114 const Loop *L = LI->getLoopFor(BB); in getOutermostLoop() 123 static bool loopContainsBoth(const LoopInfo *LI, in loopContainsBoth() argument 125 const Loop *L1 = getOutermostLoop(LI, BB1); in loopContainsBoth() 126 const Loop *L2 = getOutermostLoop(LI, BB2); in loopContainsBoth() 132 const DominatorTree *DT, const LoopInfo *LI) { in isPotentiallyReachableFromMany() argument 150 if (LI && loopContainsBoth(LI, BB, StopBB)) in isPotentiallyReachableFromMany() 159 if (const Loop *Outer = LI ? getOutermostLoop(LI, BB) : nullptr) { in isPotentiallyReachableFromMany() 175 const DominatorTree *DT, const LoopInfo *LI) { in isPotentiallyReachable() argument 183 DT, LI); in isPotentiallyReachable() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | LoopDeletion.cpp | 112 for (Loop::block_iterator LI = L->block_begin(), LE = L->block_end(); in IsLoopDead() local 113 LI != LE; ++LI) { in IsLoopDead() 114 for (BasicBlock::iterator BI = (*LI)->begin(), BE = (*LI)->end(); in IsLoopDead() 205 for (Loop::block_iterator LI = L->block_begin(), LE = L->block_end(); in runOnLoop() local 206 LI != LE; ++LI) { in runOnLoop() 209 ChildNodes.insert(ChildNodes.begin(), DT[*LI]->begin(), DT[*LI]->end()); in runOnLoop() 216 DT.eraseNode(*LI); in runOnLoop() 220 (*LI)->dropAllReferences(); in runOnLoop() 227 for (Loop::block_iterator LI = L->block_begin(), LE = L->block_end(); in runOnLoop() local 228 LI != LE; ++LI) in runOnLoop() [all …]
|