[llvm-commits] [llvm] r118696 - in /llvm/trunk: include/llvm/Analysis/AliasAnalysis.h utils/TableGen/IntrinsicEmitter.cpp
Dan Gohman
gohman at apple.com
Wed Nov 10 10:30:00 PST 2010
Author: djg
Date: Wed Nov 10 12:30:00 2010
New Revision: 118696
URL: http://llvm.org/viewvc/llvm-project?rev=118696&view=rev
Log:
Rename AccessesArguments and AccessesArgumentsReadonly, and rewrite
their comments.
Modified:
llvm/trunk/include/llvm/Analysis/AliasAnalysis.h
llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp
Modified: llvm/trunk/include/llvm/Analysis/AliasAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/AliasAnalysis.h?rev=118696&r1=118695&r2=118696&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/AliasAnalysis.h (original)
+++ llvm/trunk/include/llvm/Analysis/AliasAnalysis.h Wed Nov 10 12:30:00 2010
@@ -192,18 +192,19 @@
/// This property corresponds to the IntrNoMem LLVM intrinsic flag.
DoesNotAccessMemory = Nowhere | NoModRef,
- /// AccessesArgumentsReadonly - This function loads through function
- /// arguments and does not perform any non-local stores or volatile
- /// loads.
+ /// OnlyReadsArgumentPointees - The only memory references in this function
+ /// (if it has any) are non-volatile loads from objects pointed to by its
+ /// pointer-typed arguments, with arbitrary offsets.
///
/// This property corresponds to the IntrReadArgMem LLVM intrinsic flag.
- AccessesArgumentsReadonly = ArgumentPointees | Ref,
+ OnlyReadsArgumentPointees = ArgumentPointees | Ref,
- /// AccessesArguments - This function accesses function arguments in well
- /// known (possibly volatile) ways, but does not access any other memory.
+ /// OnlyAccessesArgumentPointees - The only memory references in this
+ /// function (if it has any) are non-volatile loads and stores from objects
+ /// pointed to by its pointer-typed arguments, with arbitrary offsets.
///
/// This property corresponds to the IntrReadWriteArgMem LLVM intrinsic flag.
- AccessesArguments = ArgumentPointees | ModRef,
+ OnlyAccessesArgumentPointees = ArgumentPointees | ModRef,
/// OnlyReadsMemory - This function does not perform any non-local stores or
/// volatile loads, but may read from any memory location.
Modified: llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp?rev=118696&r1=118695&r2=118696&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp Wed Nov 10 12:30:00 2010
@@ -573,13 +573,13 @@
OS << " return DoesNotAccessMemory;\n";
break;
case CodeGenIntrinsic::ReadArgMem:
- OS << " return AccessesArgumentsReadonly;\n";
+ OS << " return OnlyReadsArgumentPointees;\n";
break;
case CodeGenIntrinsic::ReadMem:
OS << " return OnlyReadsMemory;\n";
break;
case CodeGenIntrinsic::ReadWriteArgMem:
- OS << " return AccessesArguments;\n";
+ OS << " return OnlyAccessesArgumentPointees;\n";
break;
}
}
More information about the llvm-commits
mailing list