cl: support go:linkname

This commit is contained in:
xushiwei
2024-04-22 15:09:08 +08:00
parent 2142e14b6d
commit 5343a55395
11 changed files with 114 additions and 24 deletions

View File

@@ -230,7 +230,7 @@ func (b Builder) BinOp(op token.Token, x, y Expr) Expr {
return Expr{llvm.CreateICmp(b.impl, pred, x.impl, y.impl), tret}
case vkFloat:
pred := floatPredOpToLLVM[op-predOpBase]
return Expr{llvm.ConstFCmp(pred, x.impl, y.impl), tret}
return Expr{llvm.CreateFCmp(b.impl, pred, x.impl, y.impl), tret}
case vkString, vkComplex, vkBool:
panic("todo")
}