summaryrefslogtreecommitdiff
path: root/include/llvm/Support/PatternMatch.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-04-13 18:12:09 +0000
committerDan Gohman <gohman@apple.com>2007-04-13 18:12:09 +0000
commita1a702cdd23221e6e3f36632be91150138958e9d (patch)
treedb45bd3350280f315b292069ebe826d568cc3b3f /include/llvm/Support/PatternMatch.h
parent8085bcfdca515a359c746ea475a3b8e9cac1c077 (diff)
downloadllvm-a1a702cdd23221e6e3f36632be91150138958e9d.tar.gz
llvm-a1a702cdd23221e6e3f36632be91150138958e9d.tar.bz2
llvm-a1a702cdd23221e6e3f36632be91150138958e9d.tar.xz
Rename Value::getValueType to getValueID, to avoid confusion with
other things named getValueType. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35964 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/PatternMatch.h')
-rw-r--r--include/llvm/Support/PatternMatch.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Support/PatternMatch.h b/include/llvm/Support/PatternMatch.h
index ab9e45f312..d8099a9aff 100644
--- a/include/llvm/Support/PatternMatch.h
+++ b/include/llvm/Support/PatternMatch.h
@@ -81,7 +81,7 @@ struct BinaryOp_match {
template<typename OpTy>
bool match(OpTy *V) {
- if (V->getValueType() == Value::InstructionVal + Opcode) {
+ if (V->getValueID() == Value::InstructionVal + Opcode) {
ConcreteTy *I = cast<ConcreteTy>(V);
return I->getOpcode() == Opcode && L.match(I->getOperand(0)) &&
R.match(I->getOperand(1));
@@ -195,8 +195,8 @@ struct Shr_match {
template<typename OpTy>
bool match(OpTy *V) {
- if (V->getValueType() == Value::InstructionVal + Instruction::LShr ||
- V->getValueType() == Value::InstructionVal + Instruction::AShr) {
+ if (V->getValueID() == Value::InstructionVal + Instruction::LShr ||
+ V->getValueID() == Value::InstructionVal + Instruction::AShr) {
ConcreteTy *I = cast<ConcreteTy>(V);
return (I->getOpcode() == Instruction::AShr ||
I->getOpcode() == Instruction::LShr) &&