llvm-project/mlir
Uday Bondhugula 01d97a3549 [MLIR] Add support to use aligned_alloc to lower AllocOp from std to llvm
Support to recognize and deal with aligned_alloc was recently added to
LLVM's TLI/MemoryBuiltins and its various optimization passes. This
revision adds support for generation of aligned_alloc's when lowering
AllocOp from std to LLVM. Setting 'use-aligned_alloc=1' will lead to
aligned_alloc being used for all heap allocations. An alignment and size
that works with the constraints of aligned_alloc is chosen.

Using aligned_alloc is preferable to "using malloc and adjusting the
allocated pointer to align for indexing" because the pointer access
arithmetic done for the latter only makes it harder for LLVM passes to
deal with for analysis, optimization, attribute deduction, and rewrites.

Differential Revision: https://reviews.llvm.org/D77528
2020-04-08 15:10:19 +05:30
..
cmake/modules [CMAKE] Plumb include_directories() into tablegen() 2020-04-03 11:23:38 -07:00
docs [mlir][Pass] Update the documentation for the declarative pass specification 2020-04-07 14:21:32 -07:00
examples Keep output file after successful execution of mlir-opt 2020-04-08 03:37:45 +00:00
include [MLIR] Add support to use aligned_alloc to lower AllocOp from std to llvm 2020-04-08 15:10:19 +05:30
lib [MLIR] Add support to use aligned_alloc to lower AllocOp from std to llvm 2020-04-08 15:10:19 +05:30
test [MLIR] Add support to use aligned_alloc to lower AllocOp from std to llvm 2020-04-08 15:10:19 +05:30
tools Keep output file after successful execution of mlir-opt 2020-04-08 03:37:45 +00:00
unittests Remove FxpMathOps dialect and Quantizer tool. 2020-04-07 13:22:39 -07:00
utils [mlir] NFC: Fix trivial typo 2020-04-05 11:30:30 +09:00
.clang-format [mlir] add .clang-format 2019-03-29 12:41:43 -07:00
.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 [mlir] Fix cross compiling MLIR 2020-03-14 19:18:40 +00: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.