[PATCH] D81472: [Matrix] Update load/store intrinsics.
Nicolas Vasilache via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 15 10:23:35 PDT 2020
nicolasvasilache added a comment.
@fhahn see https://github.com/llvm/llvm-project/blob/master/mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td#L203
you can extract the LLVM dialect from an LLVM type.
Then you should be able to extract the datalayout with:
dialect.getLLVMModule().getDataLayout();
align = dataLayout.getPrefTypeAlignment(
elementTy.cast<LLVM::LLVMType>().getUnderlyingType());
see e.g. https://github.com/llvm/llvm-project/blob/master/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp#L135
you would then need to update this location: https://github.com/llvm/llvm-project/blob/master/mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td#L828
would that work for you ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81472/new/
https://reviews.llvm.org/D81472
More information about the llvm-commits
mailing list