basic.isa (3275:72793cdc795c) | basic.isa (3384:510f95cd22df) |
---|---|
1// Copyright (c) 2006 The Regents of The University of Michigan 2// All rights reserved. 3// 4// Redistribution and use in source and binary forms, with or without 5// modification, are permitted provided that the following conditions are 6// met: redistributions of source code must retain the above copyright 7// notice, this list of conditions and the following disclaimer; 8// redistributions in binary form must reproduce the above copyright --- 36 unchanged lines hidden (view full) --- 45def template BasicDeclare {{ 46 /** 47 * Static instruction class for "%(mnemonic)s". 48 */ 49 class %(class_name)s : public %(base_class)s 50 { 51 public: 52 // Constructor. | 1// Copyright (c) 2006 The Regents of The University of Michigan 2// All rights reserved. 3// 4// Redistribution and use in source and binary forms, with or without 5// modification, are permitted provided that the following conditions are 6// met: redistributions of source code must retain the above copyright 7// notice, this list of conditions and the following disclaimer; 8// redistributions in binary form must reproduce the above copyright --- 36 unchanged lines hidden (view full) --- 45def template BasicDeclare {{ 46 /** 47 * Static instruction class for "%(mnemonic)s". 48 */ 49 class %(class_name)s : public %(base_class)s 50 { 51 public: 52 // Constructor. |
53 %(class_name)s(MachInst machInst); | 53 %(class_name)s(ExtMachInst machInst); |
54 %(BasicExecDeclare)s 55 }; 56}}; 57 58// Basic instruction class constructor template. 59def template BasicConstructor {{ | 54 %(BasicExecDeclare)s 55 }; 56}}; 57 58// Basic instruction class constructor template. 59def template BasicConstructor {{ |
60 inline %(class_name)s::%(class_name)s(MachInst machInst) | 60 inline %(class_name)s::%(class_name)s(ExtMachInst machInst) |
61 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s) 62 { 63 %(constructor)s; 64 } 65}}; 66 67// Basic instruction class execute method template. 68def template BasicExecute {{ --- 36 unchanged lines hidden --- | 61 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s) 62 { 63 %(constructor)s; 64 } 65}}; 66 67// Basic instruction class execute method template. 68def template BasicExecute {{ --- 36 unchanged lines hidden --- |