[llvm] r191507 - [mips][msa] Added MSA.txt to describe instruction selection quirks.

Daniel Sanders daniel.sanders at imgtec.com
Fri Sep 27 03:42:22 PDT 2013


Author: dsanders
Date: Fri Sep 27 05:42:22 2013
New Revision: 191507

URL: http://llvm.org/viewvc/llvm-project?rev=191507&view=rev
Log:
[mips][msa] Added MSA.txt to describe instruction selection quirks.

This file contains notes about the instruction selection for MSA. For example,
it notes that ilvl.d is cannot be selected because ilvev.d covers the same
cases and is selected instead of ilvl.d.


Added:
    llvm/trunk/lib/Target/Mips/MSA.txt

Added: llvm/trunk/lib/Target/Mips/MSA.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MSA.txt?rev=191507&view=auto
==============================================================================
--- llvm/trunk/lib/Target/Mips/MSA.txt (added)
+++ llvm/trunk/lib/Target/Mips/MSA.txt Fri Sep 27 05:42:22 2013
@@ -0,0 +1,30 @@
+Code Generation Notes for MSA
+=============================
+
+Intrinsics are lowered to SelectionDAG nodes where possible in order to enable
+optimisation, reduce the size of the ISel matcher, and reduce repetition in
+the implementation. In a small number of cases, this can cause different
+(semantically equivalent) instructions to be used in place of the requested
+instruction, even when no optimisation has taken place.
+
+Instructions
+============
+
+This section describes any quirks of instruction selection for MSA. For
+example, two instructions might be equally valid for some given IR and one is
+chosen in preference to the other.
+
+vshf.w:
+        It is not possible to emit vshf.w when the shuffle description is
+        constant since shf.w covers exactly the same cases. shf.w is used
+        instead. It is also impossible for the shuffle description to be
+        unknown at compile-time due to the definition of shufflevector in
+        LLVM IR.
+
+ilvl.d, pckev.d:
+        It is not possible to emit ilvl.d, or pckev.d since ilvev.d covers the
+        same shuffle. ilvev.d will be emitted instead.
+
+ilvr.d, ilvod.d, pckod.d:
+        It is not possible to emit ilvr.d, or pckod.d since ilvod.d covers the
+        same shuffle. ilvod.d will be emitted instead.





More information about the llvm-commits mailing list