summaryrefslogtreecommitdiff
path: root/src/ilasm/asmenum.h
diff options
context:
space:
mode:
authordotnet-bot <dotnet-bot@microsoft.com>2015-12-08 09:17:49 -0800
committerdotnet-bot <dotnet-bot@microsoft.com>2015-12-08 09:17:49 -0800
commitd4163670d965be4ff29d6732fbc88ee316758e64 (patch)
tree4a503ad3da8cd744a746d7788da0d50dec267b74 /src/ilasm/asmenum.h
parent01fdf5036c24468185e7b6f01976100424183be2 (diff)
downloadcoreclr-d4163670d965be4ff29d6732fbc88ee316758e64.tar.gz
coreclr-d4163670d965be4ff29d6732fbc88ee316758e64.tar.bz2
coreclr-d4163670d965be4ff29d6732fbc88ee316758e64.zip
Open sourcing ILASM
[tfs-changeset: 1555681]
Diffstat (limited to 'src/ilasm/asmenum.h')
-rw-r--r--src/ilasm/asmenum.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/ilasm/asmenum.h b/src/ilasm/asmenum.h
new file mode 100644
index 0000000000..b8bd49966e
--- /dev/null
+++ b/src/ilasm/asmenum.h
@@ -0,0 +1,42 @@
+//
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+//
+#ifndef __asmenum_h__
+#define __asmenum_h__
+
+#include "openum.h"
+
+typedef struct
+{
+ char * pszName;
+ OPCODE op;
+
+ BYTE Type; // Inline0 etc.
+
+ BYTE Len; // std mapping
+ BYTE Std1;
+ BYTE Std2;
+} opcodeinfo_t;
+
+#ifdef DECLARE_DATA
+opcodeinfo_t OpcodeInfo[] =
+{
+#define OPALIAS(c,s,real) { s, real, 0, 0, 0, 0 },
+#define OPDEF(c,s,pop,push,args,type,l,s1,s2,ctrl) { s, c, args,l,s1,s2 },
+#include "opcode.def"
+#undef OPDEF
+#undef OPALIAS
+};
+
+unsigned OpcodeInfoLen = sizeof(OpcodeInfo) / sizeof(opcodeinfo_t);
+#else
+extern opcodeinfo_t OpcodeInfo[];
+extern unsigned OpcodeInfoLen;
+#endif
+
+
+
+#endif /* __openum_h__ */
+
+