3c3
< // Copyright (c) 2012-2013 ARM Limited
---
> // Copyright (c) 2012-2013, 2015 ARM Limited
44a45
> decoders = { 'Generic' : {} }
52c53
< byElem=False):
---
> byElem=False, decoder='Generic'):
54c55
< global header_output, exec_output
---
> global header_output, exec_output, decoders
3358a3360,3371
> for decoderFlavour, type_dict in decoders.iteritems():
> header_output += '''
> class %(decoder_flavour)sDecoder {
> public:
> ''' % { "decoder_flavour" : decoderFlavour }
> for type,name in type_dict.iteritems():
> header_output += '''
> template<typename Elem> using %(type)s = %(new_name)s<Elem>;''' % {
> "type" : type, "new_name" : name
> }
> header_output += '''
> };'''