diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-06-25 21:22:18 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-06-25 21:22:18 +0000 |
commit | 5e48a0e9ae2365a130dd1ec2e0b4beb337ab79e0 (patch) | |
tree | 90a7974f1e0f3588375d5af2122403fee0a58c0b /lib/Target/R600/R600InstrInfo.h | |
parent | 898b9f020d1089f679d1b1939fd6aafa9de4b411 (diff) | |
download | llvm-5e48a0e9ae2365a130dd1ec2e0b4beb337ab79e0.tar.gz llvm-5e48a0e9ae2365a130dd1ec2e0b4beb337ab79e0.tar.bz2 llvm-5e48a0e9ae2365a130dd1ec2e0b4beb337ab79e0.tar.xz |
R600: Use new getNamedOperandIdx function generated by TableGen
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184880 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600/R600InstrInfo.h')
-rw-r--r-- | lib/Target/R600/R600InstrInfo.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Target/R600/R600InstrInfo.h b/lib/Target/R600/R600InstrInfo.h index 6a11c63bfc..f06abf6081 100644 --- a/lib/Target/R600/R600InstrInfo.h +++ b/lib/Target/R600/R600InstrInfo.h @@ -210,17 +210,15 @@ namespace llvm { /// \brief Get the index of Op in the MachineInstr. /// /// \returns -1 if the Instruction does not contain the specified \p Op. - int getOperandIdx(const MachineInstr &MI, R600Operands::Ops Op) const; - int getOperandIdx(const MachineInstr &MI, R600Operands::VecOps Op) const; + int getOperandIdx(const MachineInstr &MI, unsigned Op) const; /// \brief Get the index of \p Op for the given Opcode. /// /// \returns -1 if the Instruction does not contain the specified \p Op. - int getOperandIdx(unsigned Opcode, R600Operands::Ops Op) const; - int getOperandIdx(unsigned Opcode, R600Operands::VecOps Op) const; + int getOperandIdx(unsigned Opcode, unsigned Op) const; /// \brief Helper function for setting instruction flag values. - void setImmOperand(MachineInstr *MI, R600Operands::Ops Op, int64_t Imm) const; + void setImmOperand(MachineInstr *MI, unsigned Op, int64_t Imm) const; /// \returns true if this instruction has an operand for storing target flags. bool hasFlagOperand(const MachineInstr &MI) const; |