Lines Matching defs:ASC
256 const auto *ASC = dyn_cast<AddrSpaceCastInst>(I);
257 if (!ASC)
259 unsigned ToAS = ASC->getDestAddressSpace();
413 } else if (auto *ASC = dyn_cast<AddrSpaceCastInst>(I)) {
414 auto *V = getReplacement(ASC->getPointerOperand());
417 ASC, V->getType()->getPointerAddressSpace()) &&
421 ASC->getType()->getPointerAddressSpace()) {
422 auto *NewI = new AddrSpaceCastInst(V, ASC->getType(), "");
423 NewI->takeName(ASC);
424 IC.InsertNewInstWith(NewI, ASC->getIterator());
425 WorkMap[ASC] = NewI;
427 WorkMap[ASC] = V;