diff options
author | Justin Wilson <justin.wilson@omibyte.io> | 2023-12-04 08:52:02 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-04 15:52:02 +0100 |
commit | 6da578cec1395ee54f82b51f912fb85fdb6cdce3 (patch) | |
tree | de16414042e3131b911093ae7a6370cd04a29ce5 /clang/lib/Frontend | |
parent | 8f40ef3479fb16b9b754a29e56bac91c6377e7b7 (diff) | |
download | llvm-6da578cec1395ee54f82b51f912fb85fdb6cdce3.zip llvm-6da578cec1395ee54f82b51f912fb85fdb6cdce3.tar.gz llvm-6da578cec1395ee54f82b51f912fb85fdb6cdce3.tar.bz2 |
[mlir] Add support for DIGlobalVariable and DIGlobalVariableExpression (#73367)
This PR introduces DIGlobalVariableAttr and
DIGlobalVariableExpressionAttr so that ModuleTranslation can emit the
required metadata needed for debug information about global variable.
The translator implementation for debug metadata needed to be refactored
in order to allow translation of nodes based on MDNode
(DIGlobalVariableExpressionAttr and DIExpression) in addition to
DINode-based nodes.
A DIGlobalVariableExpressionAttr can now be passed to the GlobalOp
operation directly and ModuleTranslation will create the respective
DIGlobalVariable and DIGlobalVariableExpression nodes. The compile unit
that DIGlobalVariable is expected to be configured with will be updated
with the created DIGlobalVariableExpression.
Diffstat (limited to 'clang/lib/Frontend')
0 files changed, 0 insertions, 0 deletions