Changeset 10753 for trunk/source/compiler/X86/x86-backend.lisp
- Timestamp:
- Sep 15, 2008, 11:16:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/compiler/X86/x86-backend.lisp
r10505 r10753 73 73 (type2 (optype (car operands)))) 74 74 (dolist (template templates) 75 (when (x86::match-template-types template type0 type1 type2 )75 (when (x86::match-template-types template type0 type1 type2 backend) 76 76 (collect ((types)) 77 77 (if type0 (types type0)) … … 81 81 (types)))))))))))) 82 82 83 (defun fixup-opcode-ordinals (vinsn-template opcode-templates )83 (defun fixup-opcode-ordinals (vinsn-template opcode-templates &optional (backend *target-backend*)) 84 84 (let* ((changed ())) 85 85 (dolist (vinsn-opcode (vinsn-template-opcode-alist vinsn-template)) … … 89 89 (error "Unknown X86 instruction - ~a. Odd, because it was once a known instruction." name)) 90 90 (let* ((new-ordinal (dolist (template opcode-templates) 91 (when (x86::match-template-types template type0 type1 type2 )91 (when (x86::match-template-types template type0 type1 type2 backend) 92 92 (return (x86::x86-opcode-template-ordinal template)))))) 93 93 (unless new-ordinal … … 121 121 (defparameter *report-missing-vinsns* nil) 122 122 123 (defun fixup-x86-vinsn-templates (template-hash opcode-templates )123 (defun fixup-x86-vinsn-templates (template-hash opcode-templates &optional (backend *target-backend*)) 124 124 (maphash #'(lambda (name vinsn-template) 125 125 (if (not (cdr vinsn-template)) 126 126 (when *report-missing-vinsns* 127 127 (warn "Reference to undefined vinsn ~s" name)) 128 (fixup-opcode-ordinals (cdr vinsn-template) opcode-templates )))128 (fixup-opcode-ordinals (cdr vinsn-template) opcode-templates backend))) 129 129 template-hash)) 130 130
Note: See TracChangeset
for help on using the changeset viewer.