MLIR-AIE 1.4.5.dev
xilinx::aievec::ConvertVectorToAIEVecOptions Struct Reference

Options for the "convert-vector-to-aievec" pipeline. More...

#include "aie/Dialect/AIEVec/Pipelines/Passes.h"

Inheritance diagram for xilinx::aievec::ConvertVectorToAIEVecOptions:
Collaboration diagram for xilinx::aievec::ConvertVectorToAIEVecOptions:

Public Member Functions

mlir::LogicalResult parseFromString (mlir::StringRef options)
const LowerVectorToAIEVecOptions & getLowerVectorToAIEVecOptions () const
const CanonicalizeVectorForAIEVecOptions & getCanonicalizeVectorForAIEVecOptions () const
const OptimizeAIEVecOptions & getOptimizeAIEVecOptions () const

Public Attributes

PassOptions::Option< unsigned > shiftParam
PassOptions::Option< unsigned > zeroOffset
PassOptions::Option< unsigned > dupFactor
PassOptions::Option< std::string > aieTarget
PassOptions::Option< bool > enableBF16Emulation

Detailed Description

Options for the "convert-vector-to-aievec" pipeline.

Definition at line 73 of file Passes.h.

Member Function Documentation

◆ getCanonicalizeVectorForAIEVecOptions()

const CanonicalizeVectorForAIEVecOptions & xilinx::aievec::ConvertVectorToAIEVecOptions::getCanonicalizeVectorForAIEVecOptions ( ) const
inline

Definition at line 120 of file Passes.h.

◆ getLowerVectorToAIEVecOptions()

const LowerVectorToAIEVecOptions & xilinx::aievec::ConvertVectorToAIEVecOptions::getLowerVectorToAIEVecOptions ( ) const
inline

Definition at line 115 of file Passes.h.

◆ getOptimizeAIEVecOptions()

const OptimizeAIEVecOptions & xilinx::aievec::ConvertVectorToAIEVecOptions::getOptimizeAIEVecOptions ( ) const
inline

Definition at line 124 of file Passes.h.

◆ parseFromString()

mlir::LogicalResult xilinx::aievec::ConvertVectorToAIEVecOptions::parseFromString ( mlir::StringRef options)
inline

Definition at line 103 of file Passes.h.

References aieTarget, enableBF16Emulation, and shiftParam.

Member Data Documentation

◆ aieTarget

PassOptions::Option<std::string> xilinx::aievec::ConvertVectorToAIEVecOptions::aieTarget
Initial value:
{
*this, "aie-target",
llvm::cl::desc("Select AIE version: \"aie\" or \"aie2\". This will "
"determine the vector size and available operations."),
llvm::cl::init("aie")}

Definition at line 91 of file Passes.h.

Referenced by parseFromString().

◆ dupFactor

PassOptions::Option<unsigned> xilinx::aievec::ConvertVectorToAIEVecOptions::dupFactor
Initial value:
{
*this, "dup-actor",
llvm::cl::desc("Duplication factor for each value in convolution filter "
"(useful in 8x8 scheme)"),
llvm::cl::init(2)}

Definition at line 86 of file Passes.h.

◆ enableBF16Emulation

PassOptions::Option<bool> xilinx::aievec::ConvertVectorToAIEVecOptions::enableBF16Emulation
Initial value:
{
*this, "bf16-emulation",
llvm::cl::desc(
"Run f32 vector arithmetic on the bf16 datapath: multiplies and "
"transcendentals take inputs rounded to bf16, sums stay f32."),
llvm::cl::init(false)}

Definition at line 96 of file Passes.h.

Referenced by parseFromString().

◆ shiftParam

PassOptions::Option<unsigned> xilinx::aievec::ConvertVectorToAIEVecOptions::shiftParam
Initial value:
{
*this, "shift",
llvm::cl::desc("Shift parameter for rounding and saturation"),
llvm::cl::init(0)}

Definition at line 77 of file Passes.h.

Referenced by parseFromString().

◆ zeroOffset

PassOptions::Option<unsigned> xilinx::aievec::ConvertVectorToAIEVecOptions::zeroOffset
Initial value:
{
*this, "zero-offset",
llvm::cl::desc("Zero offset for indicating the location of zeroes in "
"convolution filter (useful for 16x16 scheme)"),
llvm::cl::init(0)}

Definition at line 81 of file Passes.h.


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