diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-02-05 09:10:40 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-02-05 09:10:40 +0000 |
commit | bc9486bea08428b9137b9a5404d8fdadc8b16a54 (patch) | |
tree | 9b917560871a76e07ce15f73ca051b0252fad4a3 /llvm/utils/TableGen/CodeGenInstruction.cpp | |
parent | 4c6129af32c988d047f4ae96dec2003e37212ab5 (diff) | |
download | bcm5719-llvm-bc9486bea08428b9137b9a5404d8fdadc8b16a54.tar.gz bcm5719-llvm-bc9486bea08428b9137b9a5404d8fdadc8b16a54.zip |
Shrink the size of CodeGenInstruction a little bit by using bitfields. 32 bools seemed excessive.
llvm-svn: 200829
Diffstat (limited to 'llvm/utils/TableGen/CodeGenInstruction.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenInstruction.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.cpp b/llvm/utils/TableGen/CodeGenInstruction.cpp index 576388b2ed1..dbe3e69c8e1 100644 --- a/llvm/utils/TableGen/CodeGenInstruction.cpp +++ b/llvm/utils/TableGen/CodeGenInstruction.cpp @@ -315,10 +315,13 @@ CodeGenInstruction::CodeGenInstruction(Record *R) hasCtrlDep = R->getValueAsBit("hasCtrlDep"); isNotDuplicable = R->getValueAsBit("isNotDuplicable"); - mayLoad = R->getValueAsBitOrUnset("mayLoad", mayLoad_Unset); - mayStore = R->getValueAsBitOrUnset("mayStore", mayStore_Unset); - hasSideEffects = R->getValueAsBitOrUnset("hasSideEffects", - hasSideEffects_Unset); + bool Unset; + mayLoad = R->getValueAsBitOrUnset("mayLoad", Unset); + mayLoad_Unset = Unset; + mayStore = R->getValueAsBitOrUnset("mayStore", Unset); + mayStore_Unset = Unset; + hasSideEffects = R->getValueAsBitOrUnset("hasSideEffects", Unset); + hasSideEffects_Unset = Unset; neverHasSideEffects = R->getValueAsBit("neverHasSideEffects"); isAsCheapAsAMove = R->getValueAsBit("isAsCheapAsAMove"); |