Lines Matching defs:ASC
267 const auto *ASC = dyn_cast<AddrSpaceCastInst>(I);
268 if (!ASC)
270 unsigned ToAS = ASC->getDestAddressSpace();
427 } else if (auto *ASC = dyn_cast<AddrSpaceCastInst>(I)) {
428 auto *V = getReplacement(ASC->getPointerOperand());
431 ASC, V->getType()->getPointerAddressSpace()) &&
435 ASC->getType()->getPointerAddressSpace()) {
436 auto *NewI = new AddrSpaceCastInst(V, ASC->getType(), "");
437 NewI->takeName(ASC);
438 IC.InsertNewInstWith(NewI, ASC->getIterator());
439 WorkMap[ASC] = NewI;
441 WorkMap[ASC] = V;