[llvm] [X86][MC] Added support for -msse2avx option in llvm-mc (PR #96860)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 28 10:37:14 PDT 2024
================
@@ -3745,7 +3749,22 @@ bool X86AsmParser::ParseInstruction(ParseInstructionInfo &Info, StringRef Name,
return false;
}
+void replaceSSE2AVXOpcode(MCInst &Inst) {
+ ArrayRef<X86TableEntry> Table{X86SSE2AVXTable};
+ unsigned Opcode = Inst.getOpcode();
+ const auto I = llvm::lower_bound(Table, Opcode);
+ if (I != Table.end() && I->OldOpc == Opcode) {
+ Inst.setOpcode(I->NewOpc);
----------------
MaskRay wrote:
delete braces
https://github.com/llvm/llvm-project/pull/96860
More information about the llvm-commits
mailing list