summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/R600Defines.h
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-08-21 17:48:14 +0000
committerTom Stellard <[email protected]>2012-08-23 15:00:48 +0000
commit90bd1d52bbf95947955a66ec67f5f6c7dc87119a (patch)
tree10f19ae1120867e64a4bb3509610c304f397e3b6 /src/gallium/drivers/radeon/R600Defines.h
parent235318a578b3d7772a60590c7e76791ed6d1a78e (diff)
radeon/llvm: Use the MCCodeEmitter for R600
Diffstat (limited to 'src/gallium/drivers/radeon/R600Defines.h')
-rw-r--r--src/gallium/drivers/radeon/R600Defines.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/R600Defines.h b/src/gallium/drivers/radeon/R600Defines.h
new file mode 100644
index 00000000000..655b9844592
--- /dev/null
+++ b/src/gallium/drivers/radeon/R600Defines.h
@@ -0,0 +1,23 @@
+//===-- R600Defines.h - R600 Helper Macros ----------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+
+// Operand Flags
+#define MO_FLAG_CLAMP (1 << 0)
+#define MO_FLAG_NEG (1 << 1)
+#define MO_FLAG_ABS (1 << 2)
+#define MO_FLAG_MASK (1 << 3)
+#define MO_FLAG_PUSH (1 << 4)
+#define MO_FLAG_NOT_LAST (1 << 5)
+#define NUM_MO_FLAGS 6
+
+// Helper for finding getting the operand index for the instruction flags
+// operand.
+#define GET_FLAG_OPERAND_IDX(Flags) (((Flags) >> 7) & 0x3)
+