MCPcopy Create free account
hub / github.com/llir/llvm / NewAdd

Method NewAdd

ir/block_binary.go:13–17  ·  view source on GitHub ↗

--- [ Binary instructions ] ------------------------------------------------- ~~~ [ add ] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NewAdd appends a new add instruction to the basic block based on the given operands.

(x, y value.Value)

Source from the content-addressed store, hash-verified

11// NewAdd appends a new add instruction to the basic block based on the given
12// operands.
13func (block *Block) NewAdd(x, y value.Value) *InstAdd {
14 inst := NewAdd(x, y)
15 block.Insts = append(block.Insts, inst)
16 return inst
17}
18
19// ~~~ [ fadd ] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20

Callers 2

ExampleFunction · 0.95
Example_mainFunction · 0.95

Calls 1

NewAddFunction · 0.70

Tested by 2

ExampleFunction · 0.76
Example_mainFunction · 0.76