mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-11 21:38:19 +00:00
Use ArrayRef<MVT::SimpleValueType> when possible.
Not passing vector references around makes it possible to use SmallVector in most places. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177235 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -57,7 +57,7 @@ EEVT::TypeSet::TypeSet(MVT::SimpleValueType VT, TreePattern &TP) {
|
||||
}
|
||||
|
||||
|
||||
EEVT::TypeSet::TypeSet(const std::vector<MVT::SimpleValueType> &VTList) {
|
||||
EEVT::TypeSet::TypeSet(ArrayRef<MVT::SimpleValueType> VTList) {
|
||||
assert(!VTList.empty() && "empty list?");
|
||||
TypeVec.append(VTList.begin(), VTList.end());
|
||||
|
||||
@ -76,7 +76,7 @@ bool EEVT::TypeSet::FillWithPossibleTypes(TreePattern &TP,
|
||||
bool (*Pred)(MVT::SimpleValueType),
|
||||
const char *PredicateName) {
|
||||
assert(isCompletelyUnknown());
|
||||
const std::vector<MVT::SimpleValueType> &LegalTypes =
|
||||
ArrayRef<MVT::SimpleValueType> LegalTypes =
|
||||
TP.getDAGPatterns().getTargetInfo().getLegalValueTypes();
|
||||
|
||||
if (TP.hasError())
|
||||
|
Reference in New Issue
Block a user