aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorUday Bondhugula <uday@polymagelabs.com>2020-04-06 13:10:20 +0530
committerUday Bondhugula <uday@polymagelabs.com>2020-04-08 15:10:19 +0530
commit01d97a35493a8a306bfaa3ceb3e6fa49b05dea89 (patch)
tree7d31ce6e459a419df359d0b8b2c5694845843498 /llvm/tools/llvm-objdump/llvm-objdump.cpp
parent11bd3e5c6549a4983be454ccfbeb16e88c9532db (diff)
downloadllvm-01d97a35493a8a306bfaa3ceb3e6fa49b05dea89.zip
llvm-01d97a35493a8a306bfaa3ceb3e6fa49b05dea89.tar.gz
llvm-01d97a35493a8a306bfaa3ceb3e6fa49b05dea89.tar.bz2
[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
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions