summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2007-08-06 20:57:16 +0000
committerChandler Carruth <chandlerc@gmail.com>2007-08-06 20:57:16 +0000
commita583990ec83a4773608084a9694943ddd268e571 (patch)
tree0003775900ff0a0121087c0aff4d76e98679290c /utils
parentb1183c1ff3b17689c036d5e7443b7343074d2f6f (diff)
downloadllvm-a583990ec83a4773608084a9694943ddd268e571.tar.gz
llvm-a583990ec83a4773608084a9694943ddd268e571.tar.bz2
llvm-a583990ec83a4773608084a9694943ddd268e571.tar.xz
This resolves a regression of BasicAA which failed to find any memory information for overloaded intrinsics (PR1600). This resolves that issue, and improves the matching scheme to use a BitVector rather than a binary search.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/IntrinsicEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/IntrinsicEmitter.cpp b/utils/TableGen/IntrinsicEmitter.cpp
index ebc0c32692..f5df933f2e 100644
--- a/utils/TableGen/IntrinsicEmitter.cpp
+++ b/utils/TableGen/IntrinsicEmitter.cpp
@@ -299,11 +299,11 @@ void IntrinsicEmitter::EmitModRefInfo(const std::vector<CodeGenIntrinsic> &Ints,
switch (Ints[i].ModRef) {
default: break;
case CodeGenIntrinsic::NoMem:
- OS << " NoMemoryTable->push_back(\"" << Ints[i].Name << "\");\n";
+ OS << " NoMemoryIntrinsics->set(Intrinsic::" << Ints[i].EnumName << ");\n";
break;
case CodeGenIntrinsic::ReadArgMem:
case CodeGenIntrinsic::ReadMem:
- OS << " OnlyReadsMemoryTable->push_back(\"" << Ints[i].Name << "\");\n";
+ OS << " OnlyReadsMemoryIntrinsics->set(Intrinsic::" << Ints[i].EnumName << ");\n";
break;
}
}