getMemoryOpCost overloads
Declared in <llvm/Analysis/TargetTransformInfoImpl.h>
Estimate the cost of a load or store of the given type.
virtual
InstructionCost
getMemoryOpCost(
unsigned int Opcode,
Type* Src,
Align Alignment,
unsigned int AddressSpace,
TTI::TargetCostKind CostKind,
TTI::OperandValueInfo OpInfo,
Instruction const* I) const;
» more...
Return the cost of a load or store of type Src.
InstructionCost
getMemoryOpCost(
unsigned int Opcode,
Type* Src,
Align Alignment,
unsigned int AddressSpace,
TTI::TargetCostKind CostKind,
TTI::OperandValueInfo OpInfo = {TTI::OK_AnyValue, TTI::OP_None},
Instruction const* I = nullptr) const override;
» more...
Src.| Name | Description |
|---|---|
| Opcode | Instruction opcode. |
| Src | Source type of the cast or memory value. |
| Alignment | Required alignment of the access. |
| AddressSpace | Address space of the memory operation. |
| CostKind | Kind of cost to compute. |
| OpInfo | Operand value info for the stored or loaded value. |
| I | Instruction providing context for the query. |