diff --git a/suite/auto-sync/src/autosync/Targets.py b/suite/auto-sync/src/autosync/Targets.py index 1065902c1c..f79f25aa10 100644 --- a/suite/auto-sync/src/autosync/Targets.py +++ b/suite/auto-sync/src/autosync/Targets.py @@ -14,6 +14,7 @@ "TriCore", "ARC", "Sparc", + "WebAssembly", ] # Names of the target architecture as they are used in code and pretty much everywhere else. @@ -29,6 +30,7 @@ "TriCore", "ARC", "Sparc", + "WebAssembly", ] # Maps the target full name to the name used in code (and pretty much everywhere else). @@ -45,6 +47,7 @@ "ARC": "ARC", "Sparc": "Sparc", "ARCH": "ARCH", # For testing + "WebAssembly": "WebAssembly" } # Maps the name from ARCH_LLVM_NAMING to the directory name in LLVM @@ -61,4 +64,5 @@ "ARC": "ARC", "Sparc": "Sparc", "ARCH": "ARCH", # For testing + "WebAssembly": "WebAssembly" } diff --git a/suite/auto-sync/src/autosync/cpptranslator/arch_config.json b/suite/auto-sync/src/autosync/cpptranslator/arch_config.json index 4ee00ba61a..3c2db56aad 100644 --- a/suite/auto-sync/src/autosync/cpptranslator/arch_config.json +++ b/suite/auto-sync/src/autosync/cpptranslator/arch_config.json @@ -314,5 +314,24 @@ ], "templates_with_arg_deduction": [], "manually_edited_files": [] + }, + "WebAssembly": { + "files_to_translate": [ + { + "in": "{LLVM_ROOT}/llvm/lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp", + "out": "WebAssemblyDisassembler.c" + },{ + "in": "{LLVM_ROOT}/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.cpp", + "out": "WebAssemblyInstPrinter.c" + },{ + "in": "{LLVM_ROOT}/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.h", + "out": "WebAssemblyInstPrinter.h" + } + ], + "files_for_template_search": [ + ], + "templates_with_arg_deduction": [], + "manually_edited_files": [ + ] } }