[llvm] [X86][MC] Added support for -msse2avx option in llvm-mc (PR #96860)
    Shengchen Kan via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Jun 27 01:46:14 PDT 2024
    
    
  
================
@@ -335,6 +337,31 @@ void X86InstrMappingEmitter::emitND2NonNDTable(
   printTable(Table, "X86ND2NonNDTable", "GET_X86_ND2NONND_TABLE", OS);
 }
 
+// Method emitSSE2AVXTable will create table GET_X86_SSE2AVX_TABLE for SSE to
+// AVX instruction mapping in X86GenInstrMapping.inc file, In table first entry
+// will be SSE instruction and second entry will be equivalent AVX instruction
+// Example:-  "{ X86::ADDPDrm, X86::VADDPDrm },"
+void X86InstrMappingEmitter::emitSSE2AVXTable(
+    ArrayRef<const CodeGenInstruction *> Insts, raw_ostream &OS) {
+  std::vector<Entry> Table;
----------------
KanRobert wrote:
Need to check !isInteresting(Rec) 
https://github.com/llvm/llvm-project/pull/96860
    
    
More information about the llvm-commits
mailing list