aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorTobias Gysi <tobias.gysi@nextsilicon.com>2023-01-13 10:14:21 +0100
committerTobias Gysi <tobias.gysi@nextsilicon.com>2023-01-13 10:22:55 +0100
commitf61f42b9d63d3e6b1c8f45e68a31d467f3627f75 (patch)
tree6e7e1a2d6e54629ff2d95d9b57205291dddec455 /llvm/lib/CodeGen/MachineScheduler.cpp
parent16f9451b07619cd84e0b88ff17ca2b27a2c1f9cc (diff)
downloadllvm-f61f42b9d63d3e6b1c8f45e68a31d467f3627f75.zip
llvm-f61f42b9d63d3e6b1c8f45e68a31d467f3627f75.tar.gz
llvm-f61f42b9d63d3e6b1c8f45e68a31d467f3627f75.tar.bz2
Reland "[mlir][llvm] Add an explicit void type debug info attribute."
Previously, the DISubroutineType attribute used an optional result parameter and an optional argument types array to model the subroutine signature. LLVM IR debug metadata, on the other hand, has one types list whose first entry maps to the result type. That entry may be null to model a void result type. The type list may also be entirely empty not specifying any type information. The latter is problematic since the current DISubroutineType attribute cannot express it. The revision changes DISubroutineTypeAttr to closely follow the LLVM metadata design. In particular, it uses a single types parameter array to model the subroutine signature and introduces an explicit DIVoidResultTypeAttr to model the null entries. Reviewed By: Dinistro Differential Revision: https://reviews.llvm.org/D141261 This reverts commit 81f57b6 and relands commit a960547 Fixes flang build and drop_begin on an empty array ref.
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions