Return true if the memory access I has a volatile variant.
Synopsis
Declared in <llvm/Analysis/TargetTransformInfo.h>
bool
hasVolatileVariant(
Instruction* I,
unsigned int AddrSpace) const;
Description
If that's the case then we can avoid addrspacecast to generic AS for volatile loads/stores. Default implementation returns false, which prevents address space inference for volatile loads/stores.
Return Value
True if the memory access I has a volatile variant.
Parameters
Name |
Description |
I |
Memory access instruction. |
AddrSpace |
Address space of the access. |
Created with MrDocs