summaryrefslogtreecommitdiff
path: root/utils/TableGen/CodeEmitterGen.h
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-07-13 21:02:53 +0000
committerJim Laskey <jlaskey@mac.com>2006-07-13 21:02:53 +0000
commitf1b05bf755c3a083944f03fbf6a83892bc051065 (patch)
tree796190cab6208c280aea4806d9a38a079e1a18b2 /utils/TableGen/CodeEmitterGen.h
parent262041892d7f821a86ea96c0282ff1e53aac1888 (diff)
downloadllvm-f1b05bf755c3a083944f03fbf6a83892bc051065.tar.gz
llvm-f1b05bf755c3a083944f03fbf6a83892bc051065.tar.bz2
llvm-f1b05bf755c3a083944f03fbf6a83892bc051065.tar.xz
1. Simplfy bit operations.
2. Coalesce instruction cases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29135 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeEmitterGen.h')
-rw-r--r--utils/TableGen/CodeEmitterGen.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/TableGen/CodeEmitterGen.h b/utils/TableGen/CodeEmitterGen.h
index 6089f70e99..e0a7071ed6 100644
--- a/utils/TableGen/CodeEmitterGen.h
+++ b/utils/TableGen/CodeEmitterGen.h
@@ -17,10 +17,12 @@
#include "TableGenBackend.h"
#include <map>
#include <vector>
+#include <string>
namespace llvm {
class RecordVal;
+class BitsInit;
class CodeEmitterGen : public TableGenBackend {
RecordKeeper &Records;
@@ -32,10 +34,8 @@ public:
private:
void emitMachineOpEmitter(std::ostream &o, const std::string &Namespace);
void emitGetValueBit(std::ostream &o, const std::string &Namespace);
- void emitInstrOpBits(std::ostream &o,
- const std::vector<RecordVal> &Vals,
- std::map<std::string, unsigned> &OpOrder,
- std::map<std::string, bool> &OpContinuous);
+ void reverseBits(std::vector<Record*> &Insts);
+ int getVariableBit(const std::string &VarName, BitsInit *BI, int bit);
};
} // End llvm namespace