cl: _testpy/pow (multiargs)

This commit is contained in:
xushiwei
2024-05-15 08:44:00 +08:00
parent 120b507c75
commit 56269bd52b
4 changed files with 182 additions and 9 deletions

View File

@@ -78,6 +78,11 @@ func (p Program) Null(t Type) Expr {
return Expr{llvm.ConstNull(t.ll), t}
}
// PyNull returns a null *PyObject constant expression.
func (p Program) PyNull() Expr {
return p.Null(p.PyObjectPtr())
}
// BoolVal returns a boolean constant expression.
func (p Program) BoolVal(v bool) Expr {
t := p.Bool()