Type returns the type of the instruction.
()
| 46 | |
| 47 | // Type returns the type of the instruction. |
| 48 | func (inst *InstAdd) Type() types.Type { |
| 49 | // Cache type if not present. |
| 50 | if inst.Typ == nil { |
| 51 | inst.Typ = inst.X.Type() |
| 52 | } |
| 53 | return inst.Typ |
| 54 | } |
| 55 | |
| 56 | // LLString returns the LLVM syntax representation of the instruction. |
| 57 | // |