basic.isa (6245:f8692407cc23) basic.isa (6250:1cc6e860d95f)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007-2008 The Florida State University
4// All rights reserved.
5//
6// Redistribution and use in source and binary forms, with or without
7// modification, are permitted provided that the following conditions are
8// met: redistributions of source code must retain the above copyright

--- 28 unchanged lines hidden (view full) ---

37def template BasicDeclare {{
38 /**
39 * Static instruction class for "%(mnemonic)s".
40 */
41 class %(class_name)s : public %(base_class)s
42 {
43 public:
44 /// Constructor.
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007-2008 The Florida State University
4// All rights reserved.
5//
6// Redistribution and use in source and binary forms, with or without
7// modification, are permitted provided that the following conditions are
8// met: redistributions of source code must retain the above copyright

--- 28 unchanged lines hidden (view full) ---

37def template BasicDeclare {{
38 /**
39 * Static instruction class for "%(mnemonic)s".
40 */
41 class %(class_name)s : public %(base_class)s
42 {
43 public:
44 /// Constructor.
45 %(class_name)s(MachInst machInst);
45 %(class_name)s(ExtMachInst machInst);
46 %(BasicExecDeclare)s
47 };
48}};
49
50// Basic instruction class constructor template.
51def template BasicConstructor {{
46 %(BasicExecDeclare)s
47 };
48}};
49
50// Basic instruction class constructor template.
51def template BasicConstructor {{
52 inline %(class_name)s::%(class_name)s(MachInst machInst) : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s)
52 inline %(class_name)s::%(class_name)s(ExtMachInst machInst) : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s)
53 {
54 %(constructor)s;
55 }
56}};
57
58
59// Basic instruction class execute method template.
60def template BasicExecute {{

--- 42 unchanged lines hidden ---
53 {
54 %(constructor)s;
55 }
56}};
57
58
59// Basic instruction class execute method template.
60def template BasicExecute {{

--- 42 unchanged lines hidden ---