struct AAMemoryBehavior
Declaration
struct AAMemoryBehavior : public IRAttribute { /* full declaration omitted */ };
Description
An abstract interface for all memory related attributes.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:2398
Inherits from: IRAttribute
Member Variables
- public static const char ID
- Unique ID (due to the unique address)
Method Overview
- public AAMemoryBehavior(const llvm::IRPosition & IRP)
- public static llvm::AAMemoryBehavior & createForPosition(const llvm::IRPosition & IRP, llvm::Attributor & A)
- public bool isAssumedReadNone() const
- public bool isAssumedReadOnly() const
- public bool isAssumedWriteOnly() const
- public bool isKnownReadNone() const
- public bool isKnownReadOnly() const
- public bool isKnownWriteOnly() const
Methods
¶AAMemoryBehavior(const llvm::IRPosition& IRP)
AAMemoryBehavior(const llvm::IRPosition& IRP)
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:2402
Parameters
- const llvm::IRPosition& IRP
¶static llvm::AAMemoryBehavior& createForPosition(
const llvm::IRPosition& IRP,
llvm::Attributor& A)
static llvm::AAMemoryBehavior& createForPosition(
const llvm::IRPosition& IRP,
llvm::Attributor& A)
Description
Create an abstract attribute view for the position \p IRP.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:2439
Parameters
- const llvm::IRPosition& IRP
- llvm::Attributor& A
¶bool isAssumedReadNone() const
bool isAssumedReadNone() const
Description
Return true if we assume that the underlying value is not read or accessed in its respective scope.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:2420
¶bool isAssumedReadOnly() const
bool isAssumedReadOnly() const
Description
Return true if we assume that the underlying value is not accessed (=written) in its respective scope.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:2428
¶bool isAssumedWriteOnly() const
bool isAssumedWriteOnly() const
Description
Return true if we assume that the underlying value is not read in its respective scope.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:2436
¶bool isKnownReadNone() const
bool isKnownReadNone() const
Description
Return true if we know that the underlying value is not read or accessed in its respective scope.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:2416
¶bool isKnownReadOnly() const
bool isKnownReadOnly() const
Description
Return true if we know that the underlying value is not accessed (=written) in its respective scope.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:2424
¶bool isKnownWriteOnly() const
bool isKnownWriteOnly() const
Description
Return true if we know that the underlying value is not read in its respective scope.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:2432