automatically generate action/instruction ID classes

Reviewer: @andi-bigswitch

Part of the effort to bring loci closer to the IR.