[CodeGen] Expose some data types and accessors from StackMaps
This is for supporting custom stack map formats, where the
custom printer can access the stack map data.
Patch by Cherry Zhang <email@example.com>.
Reviewers: thanm, apilipenko
Reviewed By: apilipenko
Differential Revision: https://reviews.llvm.org/D54224