projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5afb360
)
[TableGen] Use llvm::is_contained (NFC)
author
Kazu Hirata
<kazu@google.com>
Fri, 6 Nov 2020 22:18:00 +0000
(14:18 -0800)
committer
Kazu Hirata
<kazu@google.com>
Fri, 6 Nov 2020 22:18:01 +0000
(14:18 -0800)
llvm/utils/TableGen/CodeGenRegisters.h
patch
|
blob
|
history
diff --git
a/llvm/utils/TableGen/CodeGenRegisters.h
b/llvm/utils/TableGen/CodeGenRegisters.h
index
2b200ad
..
48cb9fe
100644
(file)
--- a/
llvm/utils/TableGen/CodeGenRegisters.h
+++ b/
llvm/utils/TableGen/CodeGenRegisters.h
@@
-353,7
+353,7
@@
namespace llvm {
unsigned getNumValueTypes() const { return VTs.size(); }
bool hasType(const ValueTypeByHwMode &VT) const {
- return
std::find(VTs.begin(), VTs.end(), VT) != VTs.end(
);
+ return
llvm::is_contained(VTs, VT
);
}
const ValueTypeByHwMode &getValueTypeNum(unsigned VTNum) const {