diff options
author | Tom Stellard <[email protected]> | 2012-08-21 19:30:26 +0000 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-08-23 15:00:47 +0000 |
commit | 3a7a56e7aa56bc6cb847c241ef6bd749713ae6e1 (patch) | |
tree | 928bde6156b305c69e2bb067e9b95fc6ed9a203a /src/gallium/drivers/radeon/R600InstrInfo.h | |
parent | bee2edbf3d2da2c2351c70e56da0dca205caa8ea (diff) |
radeon/llvm: Encapsulate setting of MachineOperand flags
MachineOperand flags will be removed soon, so it is convienent to
have only one function that modifies them.
Diffstat (limited to 'src/gallium/drivers/radeon/R600InstrInfo.h')
-rw-r--r-- | src/gallium/drivers/radeon/R600InstrInfo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/R600InstrInfo.h b/src/gallium/drivers/radeon/R600InstrInfo.h index 6e184cccf9b..20de7dc7f2d 100644 --- a/src/gallium/drivers/radeon/R600InstrInfo.h +++ b/src/gallium/drivers/radeon/R600InstrInfo.h @@ -111,6 +111,9 @@ namespace llvm { virtual int getInstrLatency(const InstrItineraryData *ItinData, SDNode *Node) const { return 1;} + + ///AddFlag - Add one of the MO_FLAG* flags to the specified Operand. + void AddFlag(MachineInstr *MI, unsigned Operand, unsigned Flag) const; }; } // End llvm namespace |