circt/test/Analysis
Fabian Schuiki 594b8f65df
[Debug] Add scope op (#6454)
Add the `dbg.scope` operation to the debug dialect. The op creates an
additional level of hierarchy in the DI, a "scope", which can be used to
group variables and other scopes.

Operations such as `hw.module` introduce an implicit scope. All debug
operations within a module are added to that implicit scope, unless they
have an explicit `scope` operand. Providing an explicit scope can be
used to represent inlined modules.

Scopes in DI do not necessarily have to correspond to levels of a module
hierarchy. They can also be used to model things like control flow
scopes, call stacks, and other source-language concepts.

This commit also introduces an optional `scope` operand on
`dbg.variable`. The `DebugInfo` analysis, which traverses the IR and
builds up a canonical representation of the DI, honors this operand and
adds the variables to the corresponding scope.
2023-12-08 09:38:46 -08:00
..
debug-analysis.mlir [Debug] Add debug-only value/op analysis (#6335) 2023-10-26 13:53:49 -07:00
debug-info.mlir [Debug] Add scope op (#6454) 2023-12-08 09:38:46 -08:00
dependence-analysis.mlir Bump LLVM to dd115e5a9bc7 2023-08-04 12:46:45 -05:00
infer-top-level.mlir [HW] Change printer for modules (#6205) 2023-09-28 16:30:15 -05:00
scheduling-analysis.mlir Bump LLVM to dd115e5a9bc7 2023-08-04 12:46:45 -05:00