ssa: chan send/recv
This commit is contained in:
@@ -133,6 +133,7 @@ type aProgram struct {
|
||||
rtIfaceTy llvm.Type
|
||||
rtSliceTy llvm.Type
|
||||
rtMapTy llvm.Type
|
||||
rtChanTy llvm.Type
|
||||
|
||||
anyTy Type
|
||||
voidTy Type
|
||||
@@ -287,6 +288,13 @@ func (p Program) rtString() llvm.Type {
|
||||
return p.rtStringTy
|
||||
}
|
||||
|
||||
func (p Program) rtChan() llvm.Type {
|
||||
if p.rtChanTy.IsNil() {
|
||||
p.rtChanTy = p.rtType("Chan").ll
|
||||
}
|
||||
return p.rtChanTy
|
||||
}
|
||||
|
||||
func (p Program) tyComplex64() llvm.Type {
|
||||
if p.c64Type.IsNil() {
|
||||
ctx := p.ctx
|
||||
|
||||
Reference in New Issue
Block a user