LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
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 *BinOp)
 

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
 
InstructionBinOp
 The binary operation using the extends that is then reduced.
 

Detailed Description

A chain of instructions that form a partial reduction.

Designed to match: 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 BinOp 
)
inline

Definition at line 31 of file VPRecipeBuilder.h.

Member Data Documentation

◆ BinOp

Instruction* llvm::PartialReductionChain::BinOp

The binary operation using the extends that is then reduced.

Definition at line 43 of file VPRecipeBuilder.h.

◆ 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().

◆ ExtendB

Instruction* llvm::PartialReductionChain::ExtendB

Definition at line 40 of file VPRecipeBuilder.h.

Referenced by llvm::VPRecipeBuilder::collectScaledReductions().

◆ 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().


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