[MLIR][LLVM] Make index type bitwidth configurable.
authorStephan Herhut <herhut@google.com>
Thu, 26 Mar 2020 11:12:06 +0000 (12:12 +0100)
committerStephan Herhut <herhut@google.com>
Fri, 27 Mar 2020 11:42:54 +0000 (12:42 +0100)
commitac9d742bbe4f7f712f1e221df2a2b76386ec495d
tree3bfb240f43a1e427158a7925d1b6c4c504881d09
parent35173dddd1fbfb3ebd65dfea3e0ab2df4d840613
[MLIR][LLVM] Make index type bitwidth configurable.

This change adds a new option to the StandardToLLVM lowering to configure
the bitwidth of the index type independently of the target architecture's
pointer size.

Differential revision: https://reviews.llvm.org/D76353
mlir/include/mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h
mlir/include/mlir/Conversion/StandardToLLVM/ConvertStandardToLLVMPass.h
mlir/lib/Conversion/GPUCommon/IndexIntrinsicsOpLowering.h
mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/test/Conversion/StandardToLLVM/convert-to-llvmir.mlir
mlir/test/Target/llvmir.mlir