summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-01-06 08:45:52 +0000
committerDuncan Sands <baldrick@free.fr>2010-01-06 08:45:52 +0000
commit7c422ac216fe39fc9c402a704cf296cca9dc5b22 (patch)
treede0f0e167e65367280cc1d2239699ff52840d87f /utils
parenteaba5102e4f581b2d99794bffcbf2f6d7c3c7dc2 (diff)
downloadllvm-7c422ac216fe39fc9c402a704cf296cca9dc5b22.tar.gz
llvm-7c422ac216fe39fc9c402a704cf296cca9dc5b22.tar.bz2
llvm-7c422ac216fe39fc9c402a704cf296cca9dc5b22.tar.xz
Partially address a README by having functionattrs consider calls to
memcpy, memset and other intrinsics that only access their arguments to be readnone if the intrinsic's arguments all point to local memory. This improves the testcase in the README to readonly, but it could in theory be made readnone, however this would involve more sophisticated analysis that looks through the memcpy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92829 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/IntrinsicEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/IntrinsicEmitter.cpp b/utils/TableGen/IntrinsicEmitter.cpp
index 23919d97f2..c5df9e411c 100644
--- a/utils/TableGen/IntrinsicEmitter.cpp
+++ b/utils/TableGen/IntrinsicEmitter.cpp
@@ -522,7 +522,7 @@ void IntrinsicEmitter::
EmitModRefBehavior(const std::vector<CodeGenIntrinsic> &Ints, raw_ostream &OS){
OS << "// Determine intrinsic alias analysis mod/ref behavior.\n";
OS << "#ifdef GET_INTRINSIC_MODREF_BEHAVIOR\n";
- OS << "switch (id) {\n";
+ OS << "switch (iid) {\n";
OS << "default:\n return UnknownModRefBehavior;\n";
for (unsigned i = 0, e = Ints.size(); i != e; ++i) {
if (Ints[i].ModRef == CodeGenIntrinsic::WriteMem)