Lines Matching refs:WE
88 auto WE = std::make_unique<WebAssemblyException>(EHPad); in recalculate() local
89 discoverAndMapException(WE.get(), MDT, MDF); in recalculate()
90 Exceptions.push_back(std::move(WE)); in recalculate()
171 auto *WE = getExceptionFor(EHPad); in recalculate() local
180 if (WE != SrcWE && SrcWE->contains(WE) && !DstWE->contains(WE) && in recalculate()
184 << WE->getEHPad()->getNumber() << "." in recalculate()
185 << WE->getEHPad()->getName() in recalculate()
189 WE->setParentException(SrcWE->getParentException()); in recalculate()
199 WebAssemblyException *WE = getExceptionFor(MBB); in recalculate() local
200 for (; WE; WE = WE->getParentException()) in recalculate()
201 WE->addToBlocksSet(MBB); in recalculate()
246 WebAssemblyException *WE = getExceptionFor(MBB); in recalculate() local
247 for (; WE; WE = WE->getParentException()) in recalculate()
248 WE->addToBlocksVector(MBB); in recalculate()
255 for (auto &WE : Exceptions) { in recalculate() local
256 ExceptionPointers.push_back(WE.get()); in recalculate()
257 if (WE->getParentException()) in recalculate()
258 WE->getParentException()->getSubExceptions().push_back(std::move(WE)); in recalculate()
260 addTopLevelException(std::move(WE)); in recalculate()
265 for (auto *WE : ExceptionPointers) { in recalculate() local
266 WE->reverseBlock(); in recalculate()
267 std::reverse(WE->getSubExceptions().begin(), WE->getSubExceptions().end()); in recalculate()
284 WebAssemblyException *WE, const MachineDominatorTree &MDT, in discoverAndMapException() argument
290 MachineBasicBlock *EHPad = WE->getEHPad(); in discoverAndMapException()
300 if (SubE != WE) { in discoverAndMapException()
302 SubE->setParentException(WE); in discoverAndMapException()
316 changeExceptionFor(MBB, WE); in discoverAndMapException()
325 WE->getSubExceptions().reserve(NumSubExceptions); in discoverAndMapException()
326 WE->reserveBlocks(NumBlocks); in discoverAndMapException()
331 WebAssemblyException *WE = getExceptionFor(MBB); in getOutermostException() local
332 if (WE) { in getOutermostException()
333 while (WebAssemblyException *Parent = WE->getParentException()) in getOutermostException()
334 WE = Parent; in getOutermostException()
336 return WE; in getOutermostException()
365 raw_ostream &operator<<(raw_ostream &OS, const WebAssemblyException &WE) { in operator <<() argument
366 WE.print(OS); in operator <<()
371 for (auto &WE : TopLevelExceptions) in print() local
372 WE->print(OS); in print()