summaryrefslogtreecommitdiff
path: root/lib/Target/AMDGPU/R600Defines.h
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2012-07-16 14:17:08 +0000
committerTom Stellard <thomas.stellard@amd.com>2012-09-21 16:41:32 +0000
commit486f1c80bbb443572855ce704fcf07bc21c9a5dd (patch)
tree9bc7dc9b2616db000d979b434eece896434b8288 /lib/Target/AMDGPU/R600Defines.h
parentbd5d30916fc155aeb24335f46bd3100ce33de2f4 (diff)
AMDGPU: Add core backend files for R600/SI codegen
Diffstat (limited to 'lib/Target/AMDGPU/R600Defines.h')
-rw-r--r--lib/Target/AMDGPU/R600Defines.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/Target/AMDGPU/R600Defines.h b/lib/Target/AMDGPU/R600Defines.h
new file mode 100644
index 00000000000..4db199a5539
--- /dev/null
+++ b/lib/Target/AMDGPU/R600Defines.h
@@ -0,0 +1,22 @@
+//===-- 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)