1//===-- R600Defines.h - R600 Helper Macros ----------------------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9 10 11// Operand Flags 12#define MO_FLAG_CLAMP (1 << 0) 13#define MO_FLAG_NEG (1 << 1) 14#define MO_FLAG_ABS (1 << 2) 15#define MO_FLAG_MASK (1 << 3) 16#define MO_FLAG_PUSH (1 << 4) 17#define MO_FLAG_NOT_LAST (1 << 5) 18#define NUM_MO_FLAGS 6 19 20// Helper for finding getting the operand index for the instruction flags 21// operand. 22#define GET_FLAG_OPERAND_IDX(Flags) (((Flags) >> 7) & 0x3) 23 24