Add isCodeGenOnly value to the CodeGenInstruction class.
authorJim Grosbach <grosbach@apple.com>
Thu, 7 Jul 2011 00:48:02 +0000 (00:48 +0000)
committerJim Grosbach <grosbach@apple.com>
Thu, 7 Jul 2011 00:48:02 +0000 (00:48 +0000)
So users of a CGI don't have to look up the value directly from the original
Record; just like the rest of the convenience values in the class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134576 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/CodeGenInstruction.cpp
utils/TableGen/CodeGenInstruction.h

index 28b56ba1295531aaf4743c3d42b3bbcf99c86daa..d1e63a9bd8fcf240caea3a02844974af44d89396 100644 (file)
@@ -311,6 +311,7 @@ CodeGenInstruction::CodeGenInstruction(Record *R) : TheDef(R), Operands(R) {
   isAsCheapAsAMove = R->getValueAsBit("isAsCheapAsAMove");
   hasExtraSrcRegAllocReq = R->getValueAsBit("hasExtraSrcRegAllocReq");
   hasExtraDefRegAllocReq = R->getValueAsBit("hasExtraDefRegAllocReq");
+  isCodeGenOnly = R->getValueAsBit("isCodeGenOnly");
   isPseudo = R->getValueAsBit("isPseudo");
   ImplicitDefs = R->getValueAsListOfDefs("Defs");
   ImplicitUses = R->getValueAsListOfDefs("Uses");
index ad39722ab0f816a5083d29b50c67de5f55574b1b..e00b631247d0e6c871e1495c252070440f03b326 100644 (file)
@@ -235,6 +235,7 @@ namespace llvm {
     bool isAsCheapAsAMove;
     bool hasExtraSrcRegAllocReq;
     bool hasExtraDefRegAllocReq;
+    bool isCodeGenOnly;
     bool isPseudo;