Hi, You just have to type-switch on the ssa.Instruction value.
hth, -s sent from my droid On Wed, Apr 4, 2018, 13:21 Arpit Aggarwal <[email protected]> wrote: > Hi everybody, > > I am using Go SSA for analysis purposes in my project. > > The BasicBlock type in Go ssa contains Instrs[] of type []Instruction. > But Instruction type is not able to tell me which type of instruction is > it (BinOp, Unop etc). There is no function if Instruction interface which > can tell me about the type of instruction > Is there a way to retriece that information. > > Thanks in advance > Arpit > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
