MLIR-AIE
Public Member Functions | Public Attributes | List of all members
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 LowerVectorToAIEVecOptionsgetLowerVectorToAIEVecOptions () const
 
const CanonicalizeVectorForAIEVecOptionsgetCanonicalizeVectorForAIEVecOptions () const
 
const OptimizeAIEVecOptionsgetOptimizeAIEVecOptions () const
 

Public Attributes

PassOptions::Option< unsigned > shiftParam
 
PassOptions::Option< unsigned > zeroOffset
 
PassOptions::Option< unsigned > dupFactor
 
PassOptions::Option< std::string > aieTarget
 
PassOptions::Option< std::string > targetBackend
 
PassOptions::Option< boolenableBF16Emulation
 

Detailed Description

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

Definition at line 99 of file Passes.h.

Member Function Documentation

◆ getCanonicalizeVectorForAIEVecOptions()

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

Definition at line 156 of file Passes.h.

◆ getLowerVectorToAIEVecOptions()

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

Definition at line 151 of file Passes.h.

◆ getOptimizeAIEVecOptions()

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

Definition at line 160 of file Passes.h.

◆ parseFromString()

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

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 117 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 112 of file Passes.h.

◆ enableBF16Emulation

PassOptions::Option<bool> xilinx::aievec::ConvertVectorToAIEVecOptions::enableBF16Emulation
Initial value:
{
*this, "bf16-emulation",
llvm::cl::desc(
"Emulate f32 vector arithmetic using bf16 operations. Inserts "
"arith.truncf/arith.extf around f32 vector ops to compute in bf16. "
"Trades precision for performance."),
llvm::cl::init(false)}

Definition at line 128 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 103 of file Passes.h.

Referenced by parseFromString().

◆ targetBackend

PassOptions::Option<std::string> xilinx::aievec::ConvertVectorToAIEVecOptions::targetBackend
Initial value:
{
*this, "target-backend",
llvm::cl::desc("Select translation backend: \"cpp\" or \"llvmir\". This "
"will determine the aievec operations used to convert "
"from vector dialect."),
llvm::cl::init("cpp")}

Definition at line 122 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 107 of file Passes.h.


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