llvm-project/mlir
Alex Zinenko aa84e6e579 [mlir] Fix undefined behavior in Linalg utils getViewSizes
The utility function getViewSizes in Linalg has been recently updated to
support a different form of Linalg operations. In doing so, the code looking
like `smallvector.push_back(smallvector[i])` was introduced. Unlike std
vectors, this can lead to undefined behavior if the vector must grow upon
insertion: `smallvector[i]` returns a reference to the element, `push_back`
takes a const reference to the element, and then grows the vector storage
before accessing the referenced value. After the resize, the reference may
become dangling, which leads to undefined behavior detected by ASAN as
use-after-free. Work around the issue by forcing the value to be copied by
putting it into a temporary variable.
2020-07-21 09:57:41 +02:00
..
cmake/modules Install the MLIRTableGen static library. 2020-06-11 18:23:24 -07:00
docs [MLIR][SPIRVToLLVM] Documentation for SPIR-V to LLVM conversion 2020-07-20 13:42:57 +03:00
examples [MLIR] Add variadic isa<> for Type, Value, and Attribute 2020-06-29 15:04:48 -07:00
include [mlir] Fix undefined behavior in Linalg utils getViewSizes 2020-07-21 09:57:41 +02:00
integration_test [mlir] Add alignment attribute to LLVM memory ops and use in vector.transfer 2020-07-13 17:35:20 -04:00
lib [MLIR][SPIRVToLLVM] Conversion of SPIR-V branch ops 2020-07-21 10:52:20 +03:00
test [MLIR][SPIRVToLLVM] Conversion of SPIR-V branch ops 2020-07-21 10:52:20 +03:00
tools [MLIR][TableGen] Add default value for named attributes for 2 more build methods 2020-07-16 09:32:19 -07:00
unittests [spirv] Use owning module ref to avoid leaks and fix ASAN tests 2020-07-16 17:30:59 -04:00
utils [mlir][NFC] Remove usernames and google bug numbers from TODO comments. 2020-07-07 01:40:52 -07:00
.clang-format
.clang-tidy Fix MLIR clang-tidy: when tweaking it does not inherit from the parent 2020-03-07 17:44:21 +00:00
CMakeLists.txt Initial boiler-plate for python bindings. 2020-07-09 12:03:58 -07:00
LICENSE.TXT Add the Apache2 with LLVM exceptions license to MLIR 2019-12-24 00:58:06 -08:00
README.md mlir README.md: Fix the syntax 2019-12-24 13:31:07 +01:00

README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.