diff options
author | Tobias Grosser <tobias@grosser.es> | 2017-05-27 15:18:53 +0000 |
---|---|---|
committer | Tobias Grosser <tobias@grosser.es> | 2017-05-27 15:18:53 +0000 |
commit | 1e55db30d520694104c21f9c337276865d46e772 (patch) | |
tree | cdc738450d8044d7d8b7bb526f01e69976253f13 /lldb/packages/Python/lldbsuite/test/python_api/process/TestProcessAPI.py | |
parent | f5e7e60bc8dc362dd98107d6db41b9b758ecbf20 (diff) | |
download | bcm5719-llvm-1e55db30d520694104c21f9c337276865d46e772.tar.gz bcm5719-llvm-1e55db30d520694104c21f9c337276865d46e772.zip |
Delinearize memory accesses that reference parameters coming from function calls
Certain affine memory accesses which we model today might contain products of
parameters which we might combined into a new parameter to be able to create an
affine expression that represents these memory accesses. Especially in the
context of OpenCL, this approach looses information as memory accesses such as
A[get_global_id(0) * N + get_global_id(1)] are assumed to be linear. We
correctly recover their multi-dimensional structure by assuming that parameters
that are the result of a function call at IR level likely are not parameters,
but indeed induction variables. The resulting access is now
A[get_global_id(0)][get_global_id(1)] for an array A[][N].
llvm-svn: 304075
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/process/TestProcessAPI.py')
0 files changed, 0 insertions, 0 deletions