Add some comments to clarify the arguments to the vtbl and vtbx intrinsics.
authorBob Wilson <bob.wilson@apple.com>
Wed, 12 Aug 2009 01:48:30 +0000 (01:48 +0000)
committerBob Wilson <bob.wilson@apple.com>
Wed, 12 Aug 2009 01:48:30 +0000 (01:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78775 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IntrinsicsARM.td

index 7b7208276383bff1b5e88ff39b66eafd18537445..f78b20a46335ee7d0d0bd0a521dd2a7e7c24e06e 100644 (file)
@@ -300,12 +300,16 @@ def int_arm_neon_vmovls : Neon_1Arg_Long_Intrinsic;
 def int_arm_neon_vmovlu : Neon_1Arg_Long_Intrinsic;
 
 // Vector Table Lookup.
+// The first 1-4 arguments are the table.
 def int_arm_neon_vtbl1 : Neon_Tbl2Arg_Intrinsic;
 def int_arm_neon_vtbl2 : Neon_Tbl3Arg_Intrinsic;
 def int_arm_neon_vtbl3 : Neon_Tbl4Arg_Intrinsic;
 def int_arm_neon_vtbl4 : Neon_Tbl5Arg_Intrinsic;
 
 // Vector Table Extension.
+// Some elements of the destination vector may not be updated, so the original
+// value of that vector is passed as the first argument.  The next 1-4
+// arguments after that are the table.
 def int_arm_neon_vtbx1 : Neon_Tbl3Arg_Intrinsic;
 def int_arm_neon_vtbx2 : Neon_Tbl4Arg_Intrinsic;
 def int_arm_neon_vtbx3 : Neon_Tbl5Arg_Intrinsic;