[llvm] [PowerPC] Add a set of extended mnemonics that are missing from Power 10. (PR #73003)

Lei Huang via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 23 08:33:48 PST 2023


================
@@ -3437,6 +3437,23 @@ def crnot : OutPatFrag<(ops node:$in),
 def       : Pat<(not i1:$in),
                 (crnot $in)>;
 
+// Pseudo-instructions for alternate assembly syntax (never used by codegen).
+// These are aliases that require C++ handling to convert to the target
+// instruction, while InstAliases can be handled directly by tblgen.
+class PPCAsmPseudo<string asm, dag iops>
+  : Instruction {
+  let Namespace = "PPC";
+  bit PPC64 = 0;  // Default value, override with isPPC64
+
+  let OutOperandList = (outs);
+  let InOperandList = iops;
+  let Pattern = [];
+  let AsmString = asm;
+  let isAsmParserOnly = 1;
+  let isPseudo = 1;
+  let hasNoSchedulingInfo = 1;
+}
+
----------------
lei137 wrote:

This look like just a move of a prev def.  Any reason that this was needed?

https://github.com/llvm/llvm-project/pull/73003


More information about the llvm-commits mailing list