mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Rename AccessesArguments and AccessesArgumentsReadonly, and rewrite
their comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118696 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a74a58c83b
commit
e88ccb545d
@ -192,18 +192,19 @@ public:
|
|||||||
/// This property corresponds to the IntrNoMem LLVM intrinsic flag.
|
/// This property corresponds to the IntrNoMem LLVM intrinsic flag.
|
||||||
DoesNotAccessMemory = Nowhere | NoModRef,
|
DoesNotAccessMemory = Nowhere | NoModRef,
|
||||||
|
|
||||||
/// AccessesArgumentsReadonly - This function loads through function
|
/// OnlyReadsArgumentPointees - The only memory references in this function
|
||||||
/// arguments and does not perform any non-local stores or volatile
|
/// (if it has any) are non-volatile loads from objects pointed to by its
|
||||||
/// loads.
|
/// pointer-typed arguments, with arbitrary offsets.
|
||||||
///
|
///
|
||||||
/// This property corresponds to the IntrReadArgMem LLVM intrinsic flag.
|
/// This property corresponds to the IntrReadArgMem LLVM intrinsic flag.
|
||||||
AccessesArgumentsReadonly = ArgumentPointees | Ref,
|
OnlyReadsArgumentPointees = ArgumentPointees | Ref,
|
||||||
|
|
||||||
/// AccessesArguments - This function accesses function arguments in well
|
/// OnlyAccessesArgumentPointees - The only memory references in this
|
||||||
/// known (possibly volatile) ways, but does not access any other memory.
|
/// 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.
|
/// 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
|
/// OnlyReadsMemory - This function does not perform any non-local stores or
|
||||||
/// volatile loads, but may read from any memory location.
|
/// volatile loads, but may read from any memory location.
|
||||||
|
@ -573,13 +573,13 @@ EmitModRefBehavior(const std::vector<CodeGenIntrinsic> &Ints, raw_ostream &OS){
|
|||||||
OS << " return DoesNotAccessMemory;\n";
|
OS << " return DoesNotAccessMemory;\n";
|
||||||
break;
|
break;
|
||||||
case CodeGenIntrinsic::ReadArgMem:
|
case CodeGenIntrinsic::ReadArgMem:
|
||||||
OS << " return AccessesArgumentsReadonly;\n";
|
OS << " return OnlyReadsArgumentPointees;\n";
|
||||||
break;
|
break;
|
||||||
case CodeGenIntrinsic::ReadMem:
|
case CodeGenIntrinsic::ReadMem:
|
||||||
OS << " return OnlyReadsMemory;\n";
|
OS << " return OnlyReadsMemory;\n";
|
||||||
break;
|
break;
|
||||||
case CodeGenIntrinsic::ReadWriteArgMem:
|
case CodeGenIntrinsic::ReadWriteArgMem:
|
||||||
OS << " return AccessesArguments;\n";
|
OS << " return OnlyAccessesArgumentPointees;\n";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user