diff options
| author | Quentin Colombet <qcolombet@apple.com> | 2016-04-06 18:24:34 +0000 |
|---|---|---|
| committer | Quentin Colombet <qcolombet@apple.com> | 2016-04-06 18:24:34 +0000 |
| commit | df4aee09f88c10856e970a2906ba1b2c9b1fc7bd (patch) | |
| tree | 9be7380e3f78cc57d71709309c9c776c9608a700 /llvm/lib/CodeGen | |
| parent | 39aca42df63f57fd57dd82532f8190ac2027e00e (diff) | |
| download | bcm5719-llvm-df4aee09f88c10856e970a2906ba1b2c9b1fc7bd.tar.gz bcm5719-llvm-df4aee09f88c10856e970a2906ba1b2c9b1fc7bd.zip | |
[RegisterBankInfo] Provide a default constructor for InstructionMapping
helper class.
The default constructor creates invalid (isValid() == false) instances
and may be used to communicate that a mapping was not found.
llvm-svn: 265581
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp b/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp index 1a4ce00044a..8287a15e01d 100644 --- a/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp +++ b/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp @@ -30,6 +30,7 @@ using namespace llvm; const unsigned RegisterBankInfo::DefaultMappingID = UINT_MAX; +const unsigned RegisterBankInfo::InvalidMappingID = UINT_MAX - 1; /// Get the size in bits of the \p OpIdx-th operand of \p MI. /// |

