ssa: support string and pointer debug info, fix params debugging

This commit is contained in:
Li Jie
2024-09-18 16:42:47 +08:00
parent 4dbfc9483e
commit d85a080f9b
8 changed files with 342 additions and 283 deletions

View File

@@ -57,6 +57,11 @@ func (p BasicBlock) Addr() Expr {
// -----------------------------------------------------------------------------
type dbgExpr struct {
ptr Expr
val Expr
}
type aBuilder struct {
impl llvm.Builder
blk BasicBlock
@@ -64,7 +69,7 @@ type aBuilder struct {
Pkg Package
Prog Program
allocVars map[Expr]Expr
dbgVars map[Expr]dbgExpr
}
// Builder represents a builder for creating instructions in a function.