Add some comments noting some correspondences between ModRefBehavior

values, LLVM IR function attributes, and LLVM intrinsic attributes.

llvm-svn: 118455
This commit is contained in:
Dan Gohman 2010-11-08 23:46:02 +00:00
parent 6147891648
commit fbb44c4d74
1 changed files with 6 additions and 0 deletions

View File

@ -185,10 +185,14 @@ public:
// or stores to memory.
//
// This property corresponds to the GCC 'const' attribute.
// This property corresponds to the LLVM IR 'readnone' attribute.
// This property corresponds to the IntrNoMem LLVM intrinsic flag.
DoesNotAccessMemory,
// AccessesArguments - This function accesses function arguments in well
// known (possibly volatile) ways, but does not access any other memory.
//
// This property corresponds to the IntrReadWriteArgMem LLVM intrinsic flag.
AccessesArguments,
// AccessesArgumentsAndGlobals - This function has accesses function
@ -200,6 +204,8 @@ public:
// volatile loads, but may read from any memory location.
//
// This property corresponds to the GCC 'pure' attribute.
// This property corresponds to the LLVM IR 'readonly' attribute.
// This property corresponds to the IntrReadMem LLVM intrinsic flag.
OnlyReadsMemory,
// UnknownModRefBehavior - This indicates that the function could not be