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

Method instFRem

cmd/ll2go/instruction.go:222–225  ·  view source on GitHub ↗

instFRem converts the given LLVM IR frem instruction to a corresponding Go statement.

(inst *ir.InstFRem)

Source from the content-addressed store, hash-verified

220// instFRem converts the given LLVM IR frem instruction to a corresponding Go
221// statement.
222func (d *decompiler) instFRem(inst *ir.InstFRem) ast.Stmt {
223 expr := d.binaryOp(inst.X, token.REM, inst.Y)
224 return d.assign(inst.Name, expr)
225}
226
227// instShl converts the given LLVM IR shl instruction to a corresponding Go
228// statement.

Callers 1

instMethod · 0.95

Calls 2

binaryOpMethod · 0.95
assignMethod · 0.95

Tested by

no test coverage detected