LLVM 22.0.0git
llvm::PartialReductionChain Struct Reference

A chain of instructions that form a partial reduction. More...

#include "Transforms/Vectorize/VPRecipeBuilder.h"

Public Member Functions

 PartialReductionChain (Instruction *Reduction, Instruction *ExtendA, Instruction *ExtendB, Instruction *ExtendUser)

Public Attributes

InstructionReduction
 The top-level binary operation that forms the reduction to a scalar after the loop body.
InstructionExtendA
 The extension of each of the inner binary operation's operands.
InstructionExtendB
InstructionExtendUser
 The user of the extends that is then reduced.

Detailed Description

A chain of instructions that form a partial reduction.

Designed to match either: reduction_bin_op (extend (A), accumulator), or reduction_bin_op (bin_op (extend (A), (extend (B))), accumulator).

Definition at line 30 of file VPRecipeBuilder.h.

Constructor & Destructor Documentation

◆ PartialReductionChain()

llvm::PartialReductionChain::PartialReductionChain ( Instruction * Reduction,
Instruction * ExtendA,
Instruction * ExtendB,
Instruction * ExtendUser )
inline

Definition at line 31 of file VPRecipeBuilder.h.

References ExtendA, ExtendB, ExtendUser, and Reduction.

Member Data Documentation

◆ ExtendA

Instruction* llvm::PartialReductionChain::ExtendA

The extension of each of the inner binary operation's operands.

Definition at line 39 of file VPRecipeBuilder.h.

Referenced by llvm::VPRecipeBuilder::collectScaledReductions(), and PartialReductionChain().

◆ ExtendB

Instruction* llvm::PartialReductionChain::ExtendB

◆ ExtendUser

Instruction* llvm::PartialReductionChain::ExtendUser

The user of the extends that is then reduced.

Definition at line 43 of file VPRecipeBuilder.h.

Referenced by PartialReductionChain().

◆ Reduction

Instruction* llvm::PartialReductionChain::Reduction

The top-level binary operation that forms the reduction to a scalar after the loop body.

Definition at line 37 of file VPRecipeBuilder.h.

Referenced by llvm::VPRecipeBuilder::collectScaledReductions(), and PartialReductionChain().


The documentation for this struct was generated from the following file: