intel: decoder: add destructor for gen_spec
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sat, 23 Sep 2017 20:32:10 +0000 (21:32 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 1 Nov 2017 13:49:12 +0000 (13:49 +0000)
commiteb00b8b18c63f683ba6fd0f43848365dd84e5a96
tree28a9c928fc35e78bf565a1f6cb4624b7a9be1270
parentde213b4af818e203680e2cf127bee0b0bf2482d6
intel: decoder: add destructor for gen_spec

This makes use of ralloc to simplify the destruction. We can also
store instructions in hash tables.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
src/intel/common/gen_decoder.c
src/intel/common/gen_decoder.h