forked from OSchip/llvm-project
[OperandBundles] Address review on r253446; NFC
Post-commit review by David Blaikie, thanks David! llvm-svn: 253494
This commit is contained in:
parent
3de08c5f0c
commit
87f03971fd
|
@ -1160,18 +1160,18 @@ template <typename InputTy> class OperandBundleDefT {
|
||||||
std::vector<InputTy> Inputs;
|
std::vector<InputTy> Inputs;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit OperandBundleDefT(StringRef Tag, std::vector<InputTy> &&Inputs)
|
explicit OperandBundleDefT(StringRef Tag, std::vector<InputTy> Inputs)
|
||||||
: Tag(Tag), Inputs(Inputs) {}
|
: Tag(Tag), Inputs(std::move(Inputs)) {}
|
||||||
|
|
||||||
explicit OperandBundleDefT(std::string &&Tag, std::vector<InputTy> &&Inputs)
|
explicit OperandBundleDefT(std::string Tag, std::vector<InputTy> Inputs)
|
||||||
: Tag(Tag), Inputs(Inputs) {}
|
: Tag(std::move(Tag)), Inputs(std::move(Inputs)) {}
|
||||||
|
|
||||||
explicit OperandBundleDefT(const OperandBundleUse &OBU) {
|
explicit OperandBundleDefT(const OperandBundleUse &OBU) {
|
||||||
Tag = OBU.getTagName();
|
Tag = OBU.getTagName();
|
||||||
Inputs.insert(Inputs.end(), OBU.Inputs.begin(), OBU.Inputs.end());
|
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;
|
typedef typename std::vector<InputTy>::const_iterator input_iterator;
|
||||||
size_t input_size() const { return Inputs.size(); }
|
size_t input_size() const { return Inputs.size(); }
|
||||||
|
|
Loading…
Reference in New Issue