mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 15:39:00 +00:00
[OperandBundles] Address review on r253446; NFC
Post-commit review by David Blaikie, thanks David! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a5be9e3cfb
commit
985201d38c
@ -1160,18 +1160,18 @@ template <typename InputTy> class OperandBundleDefT {
|
||||
std::vector<InputTy> Inputs;
|
||||
|
||||
public:
|
||||
explicit OperandBundleDefT(StringRef Tag, std::vector<InputTy> &&Inputs)
|
||||
: Tag(Tag), Inputs(Inputs) {}
|
||||
explicit OperandBundleDefT(StringRef Tag, std::vector<InputTy> Inputs)
|
||||
: Tag(Tag), Inputs(std::move(Inputs)) {}
|
||||
|
||||
explicit OperandBundleDefT(std::string &&Tag, std::vector<InputTy> &&Inputs)
|
||||
: Tag(Tag), Inputs(Inputs) {}
|
||||
explicit OperandBundleDefT(std::string Tag, std::vector<InputTy> Inputs)
|
||||
: Tag(std::move(Tag)), Inputs(std::move(Inputs)) {}
|
||||
|
||||
explicit OperandBundleDefT(const OperandBundleUse &OBU) {
|
||||
Tag = OBU.getTagName();
|
||||
Inputs.insert(Inputs.end(), OBU.Inputs.begin(), OBU.Inputs.end());
|
||||
}
|
||||
|
||||
ArrayRef<InputTy> getInputs() const { return Inputs; }
|
||||
ArrayRef<InputTy> inputs() const { return Inputs; }
|
||||
|
||||
typedef typename std::vector<InputTy>::const_iterator input_iterator;
|
||||
size_t input_size() const { return Inputs.size(); }
|
||||
|
Loading…
Reference in New Issue
Block a user