diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2018-12-21 03:03:12 +0000 | 
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2018-12-21 03:03:12 +0000 | 
| commit | d16b7722786b6ee7b0505653cbcaac0aab16dfb7 (patch) | |
| tree | e6d789e044a5822c600343bf41390d008fc4322d | |
| parent | bee2ad718530e92b76218068aed07ecb14ce7d02 (diff) | |
| download | bcm5719-llvm-d16b7722786b6ee7b0505653cbcaac0aab16dfb7.tar.gz bcm5719-llvm-d16b7722786b6ee7b0505653cbcaac0aab16dfb7.zip  | |
GlobalISel: Correct example PartialMapping table
When I try to use this, it seems like the second half needs
to start where the previous part left off.
llvm-svn: 349879
| -rw-r--r-- | llvm/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h | 11 | 
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h b/llvm/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h index 82fd7eddb68..c33b32b2db4 100644 --- a/llvm/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h +++ b/llvm/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h @@ -103,8 +103,8 @@ public:    /// Currently the TableGen-like file would look like:    /// \code    /// PartialMapping[] = { -  /// /*32-bit add*/ {0, 32, GPR}, -  /// /*2x32-bit add*/ {0, 32, GPR}, {0, 32, GPR}, // <-- Same entry 3x +  /// /*32-bit add*/    {0, 32, GPR}, // Scalar entry repeated for first vec elt. +  /// /*2x32-bit add*/  {0, 32, GPR}, {32, 32, GPR},    /// /*<2x32-bit> vadd {0, 64, VPR}    /// }; // PartialMapping duplicated.    /// @@ -118,14 +118,15 @@ public:    /// With the array of pointer, we would have:    /// \code    /// PartialMapping[] = { -  /// /*32-bit add*/ {0, 32, GPR}, +  /// /*32-bit add lower */ {0, 32, GPR}, +  /// /*32-bit add upper */ {32, 32, GPR},    /// /*<2x32-bit> vadd {0, 64, VPR}    /// }; // No more duplication.    ///    /// BreakDowns[] = {    /// /*AddBreakDown*/ &PartialMapping[0], -  /// /*2xAddBreakDown*/ &PartialMapping[0], &PartialMapping[0], -  /// /*VAddBreakDown*/ &PartialMapping[1] +  /// /*2xAddBreakDown*/ &PartialMapping[0], &PartialMapping[1], +  /// /*VAddBreakDown*/ &PartialMapping[2]    /// }; // Addresses of PartialMapping duplicated (smaller).    ///    /// ValueMapping[] {  | 

