diff options
author | Tom Stellard <[email protected]> | 2012-08-22 15:04:58 +0000 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-08-23 15:00:47 +0000 |
commit | 67a47a445b544ac638d10303dc697d70f25d12fb (patch) | |
tree | 53389276cfde310b51178027f9b684a344f598da /src/gallium/drivers/radeon/R600InstrInfo.h | |
parent | 3a7a56e7aa56bc6cb847c241ef6bd749713ae6e1 (diff) |
radeon/llvm: Add flag operand to some instructions
This new operand replaces the MachineOperand flags in LLVM, which
will be deprecated soon. Eventually all instructions should have a flag
operand, but for now this operand has only been added to instructions
that need it.
Diffstat (limited to 'src/gallium/drivers/radeon/R600InstrInfo.h')
-rw-r--r-- | src/gallium/drivers/radeon/R600InstrInfo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/R600InstrInfo.h b/src/gallium/drivers/radeon/R600InstrInfo.h index 20de7dc7f2d..5e160a0d57a 100644 --- a/src/gallium/drivers/radeon/R600InstrInfo.h +++ b/src/gallium/drivers/radeon/R600InstrInfo.h @@ -112,8 +112,13 @@ namespace llvm { virtual int getInstrLatency(const InstrItineraryData *ItinData, SDNode *Node) const { return 1;} + bool HasFlagOperand(const MachineInstr &MI) const; + ///AddFlag - Add one of the MO_FLAG* flags to the specified Operand. void AddFlag(MachineInstr *MI, unsigned Operand, unsigned Flag) const; + + ///IsFlagSet - Determine if the specified flag is set on this Operand. + bool IsFlagSet(const MachineInstr &MI, unsigned Operand, unsigned Flag) const; }; } // End llvm namespace @@ -127,6 +132,7 @@ namespace R600_InstFlag { TRIG = (1 << 4), OP3 = (1 << 5), VECTOR = (1 << 6) + //FlagOperand bits 7, 8 }; } |