[mlir:LLVM] Fix translation of DISubRangeAttr to LLVM
authorRiver Riddle <riddleriver@gmail.com>
Fri, 4 Nov 2022 02:12:53 +0000 (19:12 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Sat, 5 Nov 2022 01:15:03 +0000 (18:15 -0700)
commite83446f43b23cf4a4274cb3bde09883dcd9f7b4d
treead0a8df1a00f6c33f4f1091e5e3ea2a86bee3d8a
parent38c219b4a8ebe30d781a1ebbb9a9d29b24c28b39
[mlir:LLVM] Fix translation of DISubRangeAttr to LLVM

We were missing DISubRangeAttr in the type switch. This
also updates a few of the range parameters to be optional.
mlir/include/mlir/Dialect/LLVMIR/LLVMAttrDefs.td
mlir/lib/Dialect/LLVMIR/IR/LLVMAttrs.cpp
mlir/lib/Target/LLVMIR/DebugTranslation.cpp
mlir/test/Target/LLVMIR/llvmir-debug.mlir