[all-commits] [llvm/llvm-project] 838fde: [mlir][llvm] A DICompositeTypeAttr is also a DISco...
Tobias Gysi via All-commits
all-commits at lists.llvm.org
Thu Jan 12 05:22:06 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 838fdefc52d33ebe759f0325a67112222cf6c2c0
https://github.com/llvm/llvm-project/commit/838fdefc52d33ebe759f0325a67112222cf6c2c0
Author: Tobias Gysi <tobias.gysi at nextsilicon.com>
Date: 2023-01-12 (Thu, 12 Jan 2023)
Changed paths:
M mlir/lib/Dialect/LLVMIR/IR/LLVMAttrs.cpp
M mlir/test/Dialect/LLVMIR/debuginfo.mlir
M mlir/test/Target/LLVMIR/Import/debug-info.ll
M mlir/test/Target/LLVMIR/llvmir-debug.mlir
Log Message:
-----------
[mlir][llvm] A DICompositeTypeAttr is also a DIScopeAttr.
A DICompositeTypeAttr is the MLIR counterpart of LLVMIR's
DICompositeType debug metadata node. It can be used to store debug
information associated to a class or struct type definition. Any class
member method then sets its scope to the parent DICompositeType. This
revision adds DICompositeTypeAttr to the list of DIScopeAttrs to
prevent verification failures for legal debug information. Additionally,
it adds a number of test cases.
Reviewed By: Dinistro
Differential Revision: https://reviews.llvm.org/D141480
More information about the All-commits
mailing list