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

Method instAdd

cmd/ll2go/instruction.go:144–147  ·  view source on GitHub ↗

instAdd converts the given LLVM IR add instruction to a corresponding Go statement.

(inst *ir.InstAdd)

Source from the content-addressed store, hash-verified

142// instAdd converts the given LLVM IR add instruction to a corresponding Go
143// statement.
144func (d *decompiler) instAdd(inst *ir.InstAdd) ast.Stmt {
145 expr := d.binaryOp(inst.X, token.ADD, inst.Y)
146 return d.assign(inst.Name, expr)
147}
148
149// instFAdd converts the given LLVM IR fadd instruction to a corresponding Go
150// statement.

Callers 1

instMethod · 0.95

Calls 2

binaryOpMethod · 0.95
assignMethod · 0.95

Tested by

no test coverage detected