compileInstrOrValue
This commit is contained in:
@@ -335,9 +335,12 @@ func (p *context) compileInstrOrValue(b llssa.Builder, iv instrOrValue, asValue
|
|||||||
panic("todo")
|
panic("todo")
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
fn := p.compileValue(b, cv)
|
panic("todo")
|
||||||
args := p.compileValues(b, call.Args, kind)
|
/*
|
||||||
ret = b.Call(fn, args...)
|
fn := p.compileValue(b, cv)
|
||||||
|
args := p.compileValues(b, call.Args, kind)
|
||||||
|
ret = b.Call(fn, args...)
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
case *ssa.BinOp:
|
case *ssa.BinOp:
|
||||||
x := p.compileValue(b, v.X)
|
x := p.compileValue(b, v.X)
|
||||||
@@ -458,11 +461,14 @@ func (p *context) compileValue(b llssa.Builder, v ssa.Value) llssa.Expr {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
case *ssa.Function:
|
case *ssa.Function:
|
||||||
fn, ftype := p.funcOf(v)
|
panic("unreachable")
|
||||||
if ftype >= llgoInstrBase {
|
/*
|
||||||
panic("can't use llgo instruction as a value")
|
fn, ftype := p.funcOf(v)
|
||||||
}
|
if ftype >= llgoInstrBase {
|
||||||
return fn.Expr
|
panic("can't use llgo instruction as a value")
|
||||||
|
}
|
||||||
|
return fn.Expr
|
||||||
|
*/
|
||||||
case *ssa.Global:
|
case *ssa.Global:
|
||||||
g := p.varOf(v)
|
g := p.varOf(v)
|
||||||
return g.Expr
|
return g.Expr
|
||||||
|
|||||||
Reference in New Issue
Block a user