aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2020-06-18 13:06:00 +0100
committerFlorian Hahn <flo@fhahn.com>2020-06-18 13:19:31 +0100
commit1669fddc9f6096a5c674ba0a459403ea2c5ffd9c (patch)
tree8a615fcf517d1b0e8096e99b837a75a33fdf2808 /clang/lib/Frontend/CompilerInvocation.cpp
parent3cfd74e64be2b283bb6205c629796f58c8aca47c (diff)
downloadllvm-1669fddc9f6096a5c674ba0a459403ea2c5ffd9c.zip
llvm-1669fddc9f6096a5c674ba0a459403ea2c5ffd9c.tar.gz
llvm-1669fddc9f6096a5c674ba0a459403ea2c5ffd9c.tar.bz2
[Matrix] Use alignment info when lowering loads/stores.
This patch updates LowerMatrixIntrinsics to preserve the alignment specified at the original load/stores and the align attribute for the pointer argument of the column.major.load/store intrinsics. We can always use the specified alignment for the load of the first column. For subsequent columns, the alignment may need to be reduced. For ConstantInt strides, compute the offset for the start of the column in bytes and use commonAlignment to get the largest valid alignment. For non-ConstantInt strides, we need to take the common alignment of the initial alignment and the element size in bytes. Reviewers: anemet, Gerolf, hfinkel, andrew.w.kaylor, LuoYuanke, rjmccall Reviewed By: rjmccall Differential Revision: https://reviews.llvm.org/D81960
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions