[llvm] e80f9ca - [llvm-objdump] try to fix hexagon and riscv tests after 1035123ac50db

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 14 17:40:48 PDT 2021


Author: Nico Weber
Date: 2021-04-14T20:40:38-04:00
New Revision: e80f9cab0ab82852b70b9a5edbdfb69bc35c135b

URL: https://github.com/llvm/llvm-project/commit/e80f9cab0ab82852b70b9a5edbdfb69bc35c135b
DIFF: https://github.com/llvm/llvm-project/commit/e80f9cab0ab82852b70b9a5edbdfb69bc35c135b.diff

LOG: [llvm-objdump] try to fix hexagon and riscv tests after 1035123ac50db

Added: 
    

Modified: 
    llvm/tools/llvm-objdump/ObjdumpOpts.td
    llvm/tools/llvm-objdump/llvm-objdump.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-objdump/ObjdumpOpts.td b/llvm/tools/llvm-objdump/ObjdumpOpts.td
index dfcb25938022..95b6d7c3a8c7 100644
--- a/llvm/tools/llvm-objdump/ObjdumpOpts.td
+++ b/llvm/tools/llvm-objdump/ObjdumpOpts.td
@@ -283,6 +283,27 @@ def x86_asm_syntax_intel : Flag<["--"], "x86-asm-syntax=intel">,
   HelpText<"Emit Intel-style disassembly">,
   Group<grp_objdump>;
 
+def mhvx : Flag<["--"], "mhvx">, HelpText<"Enable Hexagon Vector eXtensions">,
+  Group<grp_objdump>;
+
+def mhvx_v66 : Flag<["--"], "mhvx=v66">,
+  Group<grp_objdump>;
+
+def mv60 : Flag<["--"], "mv60">, HelpText<"Build for Hexagon V60">,
+  Group<grp_objdump>;
+
+def mv65 : Flag<["--"], "mv65">, HelpText<"Build for Hexagon V65">,
+  Group<grp_objdump>;
+
+def mv66 : Flag<["--"], "mv66">, HelpText<"Build for Hexagon V66">,
+  Group<grp_objdump>;
+
+def mv67t : Flag<["--"], "mv67t">, HelpText<"Build for Hexagon V67t">,
+  Group<grp_objdump>;
+
+def riscv_no_aliases : Flag<["--"], "riscv-no-aliases">,
+  HelpText<"Disable the emission of assembler pseudo instructions">,
+  Group<grp_objdump>;
 
 
 def grp_mach_o : OptionGroup<"kind">, HelpText<"llvm-objdump MachO Specific Options">;

diff  --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp
index 54b9471d1ba3..53518c033222 100644
--- a/llvm/tools/llvm-objdump/llvm-objdump.cpp
+++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp
@@ -2862,6 +2862,20 @@ static void parseOptions(const llvm::opt::InputArgList &InputArgs) {
       break;
     }
   }
+  if (InputArgs.hasArg(OBJDUMP_mhvx))
+    LLVMArgs.push_back("--mhvx");
+  if (InputArgs.hasArg(OBJDUMP_mhvx_v66))
+    LLVMArgs.push_back("--mhvx=v66");
+  if (InputArgs.hasArg(OBJDUMP_mv60))
+    LLVMArgs.push_back("--mv60");
+  if (InputArgs.hasArg(OBJDUMP_mv65))
+    LLVMArgs.push_back("--mv65");
+  if (InputArgs.hasArg(OBJDUMP_mv66))
+    LLVMArgs.push_back("--mv66");
+  if (InputArgs.hasArg(OBJDUMP_mv67t))
+    LLVMArgs.push_back("--mv67t");
+  if (InputArgs.hasArg(OBJDUMP_riscv_no_aliases))
+    LLVMArgs.push_back("--riscv-no-aliases");
   LLVMArgs.push_back(nullptr);
   llvm::cl::ParseCommandLineOptions(LLVMArgs.size() - 1, LLVMArgs.data());
 }


        


More information about the llvm-commits mailing list