[AAPointerInfo] rearrange code in preparation for further changes
authorSameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com>
Fri, 9 Dec 2022 05:28:28 +0000 (10:58 +0530)
committerSameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com>
Fri, 9 Dec 2022 05:28:28 +0000 (10:58 +0530)
commit0dc0a441323d41b4860668f38d290579e0de130c
treee073e0b2f8b129d9759a00f7b7b87354ba14b909
parentf00dcd3d7a6ce05b731f7d0d5d3c887bead5ca5a
[AAPointerInfo] rearrange code in preparation for further changes

AAPointerInfoFloating::updateImpl
  Move the member function definition out of its class before modifying it.

translateAndAddState
  Split the function definition into two along the FromCallee boolean argument.

handleAccess
  This should only be called when Size is not known. In other cases, replaced
  with a direct call to addAccess.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D138645
llvm/lib/Transforms/IPO/AttributorAttributes.cpp