summaryrefslogtreecommitdiffstats
path: root/llvm/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
commita44f6269bfd26ca0d73d142736328d45042ab8a4 (patch)
tree0ce50e7cf5d68f67e7f36a635a3e7b5e6d2749d7 /llvm/utils/TableGen/CodeEmitterGen.h
parent9b6c02ebe420d3d80496230d26ad35f44da3f150 (diff)
downloadbcm5719-llvm-a44f6269bfd26ca0d73d142736328d45042ab8a4.tar.gz
bcm5719-llvm-a44f6269bfd26ca0d73d142736328d45042ab8a4.zip
1. Simplfy bit operations.
2. Coalesce instruction cases. llvm-svn: 29135
Diffstat (limited to 'llvm/utils/TableGen/CodeEmitterGen.h')
-rw-r--r--llvm/utils/TableGen/CodeEmitterGen.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/CodeEmitterGen.h b/llvm/utils/TableGen/CodeEmitterGen.h
index 6089f70e99f..e0a7071ed6d 100644
--- a/llvm/utils/TableGen/CodeEmitterGen.h
+++ b/llvm/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
OpenPOWER on IntegriCloud