Lines Matching refs:InferredAddrSpace
131 const ValueToAddrSpaceMapTy &InferredAddrSpace);
136 ValueToAddrSpaceMapTy *InferredAddrSpace);
143 const ValueToAddrSpaceMapTy &InferredAddrSpace,
430 ValueToAddrSpaceMapTy InferredAddrSpace; in runOnFunction() local
431 inferAddressSpaces(Postorder, &InferredAddrSpace); in runOnFunction()
435 return rewriteWithNewAddressSpaces(Postorder, InferredAddrSpace, &F); in runOnFunction()
440 ValueToAddrSpaceMapTy *InferredAddrSpace) { in inferAddressSpaces() argument
444 (*InferredAddrSpace)[V] = ADDRESS_SPACE_UNINITIALIZED; in inferAddressSpaces()
453 Optional<unsigned> NewAS = updateAddressSpace(*V, *InferredAddrSpace); in inferAddressSpaces()
459 (*InferredAddrSpace)[V] = NewAS.getValue(); in inferAddressSpaces()
466 auto Pos = InferredAddrSpace->find(User); in inferAddressSpaces()
469 if (Pos == InferredAddrSpace->end()) in inferAddressSpaces()
484 const Value &V, const ValueToAddrSpaceMapTy &InferredAddrSpace) { in updateAddressSpace() argument
485 assert(InferredAddrSpace.count(&V)); in updateAddressSpace()
492 if (InferredAddrSpace.count(PtrOperand)) in updateAddressSpace()
493 OperandAS = InferredAddrSpace.lookup(PtrOperand); in updateAddressSpace()
502 unsigned OldAS = InferredAddrSpace.lookup(&V); in updateAddressSpace()
511 const ValueToAddrSpaceMapTy &InferredAddrSpace, Function *F) { in rewriteWithNewAddressSpaces() argument
519 unsigned NewAddrSpace = InferredAddrSpace.lookup(V); in rewriteWithNewAddressSpaces()