summaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py
diff options
context:
space:
mode:
authorPierre Oechsel <pierre.oechsel@gmail.com>2020-02-12 10:26:01 +0100
committerAlex Zinenko <zinenko@google.com>2020-02-12 15:13:18 +0100
commitfd11cda2519f91e2f522f58f137b3082a65b5f62 (patch)
tree2569f151818dcfe98d12102eb63c7e0f7c0edf9d /lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py
parenta19de32095e4cdb18957e66609574ce2021a8d1c (diff)
[mlir] StdToLLVM: Add error when the sourceMemRef of a subview is not a llvm type.
A memref_cast casting to a memref with a non identity map can't be lowered to llvm. Take the following case: ``` func @invalid_memref_cast(%arg0: memref<?x?xf64>) { %c1 = constant 1 : index %c0 = constant 0 : index %5 = memref_cast %arg0 : memref<?x?xf64> to memref<?x?xf64, #map1> %25 = std.subview %5[%c0, %c0][%c1, %c1][] : memref<?x?xf64, #map1> to memref<?x?xf64, #map1> return } ``` When lowering the subview mlir was assuming `%5` to have an llvm type (which is not the case as mlir failed to lower the memref_cast). Differential Revision: https://reviews.llvm.org/D74466
Diffstat (limited to 'lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py')
0 files changed, 0 insertions, 0 deletions