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

Method instFAdd

cmd/ll2go/instruction.go:151–154  ·  view source on GitHub ↗

instFAdd converts the given LLVM IR fadd instruction to a corresponding Go statement.

(inst *ir.InstFAdd)

Source from the content-addressed store, hash-verified

149// instFAdd converts the given LLVM IR fadd instruction to a corresponding Go
150// statement.
151func (d *decompiler) instFAdd(inst *ir.InstFAdd) ast.Stmt {
152 expr := d.binaryOp(inst.X, token.ADD, inst.Y)
153 return d.assign(inst.Name, expr)
154}
155
156// instSub converts the given LLVM IR sub instruction to a corresponding Go
157// statement.

Callers 1

instMethod · 0.95

Calls 2

binaryOpMethod · 0.95
assignMethod · 0.95

Tested by

no test coverage detected