summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRParser/MIParser.h
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2016-06-08 23:27:46 +0000
committerQuentin Colombet <qcolombet@apple.com>2016-06-08 23:27:46 +0000
commit2c6469687d6e9c65f8060ced5768a36864784a13 (patch)
treefd8ac4d2de86f23c9fc9d92fc46d458f820913dc /llvm/lib/CodeGen/MIRParser/MIParser.h
parentf05f360debba5bb7b096f7ad8b6effc8c084609c (diff)
downloadbcm5719-llvm-2c6469687d6e9c65f8060ced5768a36864784a13.tar.gz
bcm5719-llvm-2c6469687d6e9c65f8060ced5768a36864784a13.zip
[MIR] Check that generic virtual registers get a size.
Without that check it was possible to write test cases where the size was not specified and we ended up with weird asserts down the road, because the default value (1) would not make sense. llvm-svn: 272226
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser/MIParser.h')
-rw-r--r--llvm/lib/CodeGen/MIRParser/MIParser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MIParser.h b/llvm/lib/CodeGen/MIRParser/MIParser.h
index ce39805e0c5..3557b9a6d5d 100644
--- a/llvm/lib/CodeGen/MIRParser/MIParser.h
+++ b/llvm/lib/CodeGen/MIRParser/MIParser.h
@@ -15,6 +15,7 @@
#define LLVM_LIB_CODEGEN_MIRPARSER_MIPARSER_H
#include "llvm/ADT/DenseMap.h"
+#include "llvm/ADT/SmallSet.h"
namespace llvm {
@@ -35,6 +36,8 @@ struct PerFunctionMIParsingState {
DenseMap<unsigned, int> StackObjectSlots;
DenseMap<unsigned, unsigned> ConstantPoolSlots;
DenseMap<unsigned, unsigned> JumpTableSlots;
+ /// Hold the generic virtual registers.
+ SmallSet<unsigned, 8> GenericVRegs;
};
/// Parse the machine basic block definitions, and skip the machine
OpenPOWER on IntegriCloud