Lines Matching defs:WE

87     auto WE = std::make_unique<WebAssemblyException>(EHPad);
88 discoverAndMapException(WE.get(), MDT, MDF);
89 Exceptions.push_back(std::move(WE));
170 auto *WE = getExceptionFor(EHPad);
176 // If WE (the current EH pad's exception) is still contained in SrcWE but
178 // out WE out of SrcWE too.
179 if (WE != SrcWE && SrcWE->contains(WE) && !DstWE->contains(WE) &&
183 << WE->getEHPad()->getNumber() << "."
184 << WE->getEHPad()->getName()
188 WE->setParentException(SrcWE->getParentException());
198 WebAssemblyException *WE = getExceptionFor(MBB);
199 for (; WE; WE = WE->getParentException())
200 WE->addToBlocksSet(MBB);
245 WebAssemblyException *WE = getExceptionFor(MBB);
246 for (; WE; WE = WE->getParentException())
247 WE->addToBlocksVector(MBB);
254 for (auto &WE : Exceptions) {
255 ExceptionPointers.push_back(WE.get());
256 if (WE->getParentException())
257 WE->getParentException()->getSubExceptions().push_back(std::move(WE));
259 addTopLevelException(std::move(WE));
264 for (auto *WE : ExceptionPointers) {
265 WE->reverseBlock();
266 std::reverse(WE->getSubExceptions().begin(), WE->getSubExceptions().end());
283 WebAssemblyException *WE, const MachineDominatorTree &MDT,
289 MachineBasicBlock *EHPad = WE->getEHPad();
299 if (SubE != WE) {
301 SubE->setParentException(WE);
315 changeExceptionFor(MBB, WE);
324 WE->getSubExceptions().reserve(NumSubExceptions);
325 WE->reserveBlocks(NumBlocks);
330 WebAssemblyException *WE = getExceptionFor(MBB);
331 if (WE) {
332 while (WebAssemblyException *Parent = WE->getParentException())
333 WE = Parent;
335 return WE;
364 raw_ostream &operator<<(raw_ostream &OS, const WebAssemblyException &WE) {
365 WE.print(OS);
370 for (auto &WE : TopLevelExceptions)
371 WE->print(OS);