MCPcopy Create free account
hub / github.com/decomp/decomp / binaryOp

Method binaryOp

cmd/ll2go/instruction.go:541–547  ·  view source on GitHub ↗

binaryOp converts the given LLVM IR binary operation to a corresponding Go expression.

(x value.Value, op token.Token, y value.Value)

Source from the content-addressed store, hash-verified

539// binaryOp converts the given LLVM IR binary operation to a corresponding Go
540// expression.
541func (d *decompiler) binaryOp(x value.Value, op token.Token, y value.Value) ast.Expr {
542 return &ast.BinaryExpr{
543 X: d.value(x),
544 Op: op,
545 Y: d.value(y),
546 }
547}
548
549// convert returns a Go statement for converting the given LLVM IR value into
550// the specified type.

Callers 15

exprAddMethod · 0.95
exprFAddMethod · 0.95
exprSubMethod · 0.95
exprFSubMethod · 0.95
exprMulMethod · 0.95
exprFMulMethod · 0.95
exprUDivMethod · 0.95
exprSDivMethod · 0.95
exprFDivMethod · 0.95
exprURemMethod · 0.95
exprSRemMethod · 0.95
exprFRemMethod · 0.95

Calls 1

valueMethod · 0.95

Tested by

no test coverage detected