Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
mlir/include/mlir/Conversion/VectorToLLVM/ConvertVectorToLLVM.h
Show All 32 Lines | struct LowerVectorToLLVMOptions { | ||||
LowerVectorToLLVMOptions &enableIndexOptimizations(bool b = true) { | LowerVectorToLLVMOptions &enableIndexOptimizations(bool b = true) { | ||||
force32BitVectorIndices = b; | force32BitVectorIndices = b; | ||||
return *this; | return *this; | ||||
} | } | ||||
LowerVectorToLLVMOptions &enableArmNeon(bool b = true) { | LowerVectorToLLVMOptions &enableArmNeon(bool b = true) { | ||||
armNeon = b; | armNeon = b; | ||||
return *this; | return *this; | ||||
} | } | ||||
LowerVectorToLLVMOptions &enableArmSME(bool b = true) { | |||||
armSME = b; | |||||
return *this; | |||||
} | |||||
LowerVectorToLLVMOptions &enableArmSVE(bool b = true) { | LowerVectorToLLVMOptions &enableArmSVE(bool b = true) { | ||||
armSVE = b; | armSVE = b; | ||||
return *this; | return *this; | ||||
} | } | ||||
LowerVectorToLLVMOptions &enableAMX(bool b = true) { | LowerVectorToLLVMOptions &enableAMX(bool b = true) { | ||||
amx = b; | amx = b; | ||||
return *this; | return *this; | ||||
} | } | ||||
LowerVectorToLLVMOptions &enableX86Vector(bool b = true) { | LowerVectorToLLVMOptions &enableX86Vector(bool b = true) { | ||||
x86Vector = b; | x86Vector = b; | ||||
return *this; | return *this; | ||||
} | } | ||||
bool reassociateFPReductions{false}; | bool reassociateFPReductions{false}; | ||||
bool force32BitVectorIndices{true}; | bool force32BitVectorIndices{true}; | ||||
bool armNeon{false}; | bool armNeon{false}; | ||||
bool armSME{false}; | |||||
bool armSVE{false}; | bool armSVE{false}; | ||||
bool amx{false}; | bool amx{false}; | ||||
bool x86Vector{false}; | bool x86Vector{false}; | ||||
}; | }; | ||||
/// Collect a set of patterns to convert from Vector contractions to LLVM Matrix | /// Collect a set of patterns to convert from Vector contractions to LLVM Matrix | ||||
/// Intrinsics. To lower to assembly, the LLVM flag -lower-matrix-intrinsics | /// Intrinsics. To lower to assembly, the LLVM flag -lower-matrix-intrinsics | ||||
/// will be needed when invoking LLVM. | /// will be needed when invoking LLVM. | ||||
Show All 15 Lines |