Home | History | Annotate | Download | only in TableGen

Lines Matching refs:Form

129 /// @param form - The form of the instruction.
130 /// @return - true if the form implies that a ModR/M byte is required, false
132 static bool needsModRMForDecode(uint8_t form) {
133 if (form == X86Local::MRMDestReg ||
134 form == X86Local::MRMDestMem ||
135 form == X86Local::MRMSrcReg ||
136 form == X86Local::MRMSrcMem ||
137 (form >= X86Local::MRM0r && form <= X86Local::MRM7r) ||
138 (form >= X86Local::MRM0m && form <= X86Local::MRM7m))
144 /// isRegFormat - Indicates whether a particular form requires the Mod field of
147 /// @param form - The form of the instruction.
148 /// @return - true if the form implies that Mod must be 0b11, false
150 static bool isRegFormat(uint8_t form) {
151 if (form == X86Local::MRMDestReg ||
152 form == X86Local::MRMSrcReg ||
153 (form >= X86Local::MRM0r && form <= X86Local::MRM7r))
212 Form = byteFromRec(Rec, "FormBits");
366 if (Form == X86Local::Pseudo ||
370 if (Form == X86Local::MRMInitReg)
621 switch (Form) {
808 if (needsModRMForDecode(Form))
809 filter = new ModFilter(isRegFormat(Form));
816 switch (Form) {
827 filter = new ExtendedFilter(true, Form - X86Local::MRM0r);
837 filter = new ExtendedFilter(false, Form - X86Local::MRM0m);
840 } // switch (Form)
848 if (needsModRMForDecode(Form))
849 filter = new ModFilter(isRegFormat(Form));
856 if (needsModRMForDecode(Form))
857 filter = new ModFilter(isRegFormat(Form));
864 if (needsModRMForDecode(Form))
865 filter = new ModFilter(isRegFormat(Form));
872 if (needsModRMForDecode(Form))
873 filter = new ModFilter(isRegFormat(Form));
888 if (Form == X86Local::AddRegFrm) {
904 switch (Form) {
916 filter = new ExtendedFilter(true, Form - X86Local::MRM0r);
926 filter = new ExtendedFilter(false, Form - X86Local::MRM0m);
929 } // switch (Form)
939 filter = new EscapeFilter(false, Form - X86Local::MRM0m);
942 if (needsModRMForDecode(Form))
943 filter = new ModFilter(isRegFormat(Form));
955 if (Form == X86Local::AddRegFrm) {