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