Beaver.MLIR.Conversion (beaver v0.3.4)

Conversions MLIR provides by default.

Summary

Functions

Convert Arm NEON structured ops to intrinsics

Convert top-level AffineFor Ops to GPU kernels

Convert AMDGPU dialect to ROCDL dialect

Convert Arith operations to AMDGPU-specific implementations

Convert Arith dialect to ArmSME dialect

Convert Arith dialect to LLVM dialect

Convert Arith dialect to SPIR-V dialect

Lower the operations from the ArmSME dialect into the LLVM dialect

Lower the operations from the ArmSME dialect into the SCF dialect

Convert the operations from the async dialect into the LLVM dialect

Convert operations from the Bufferization dialect to the MemRef dialect

Convert ControlFlow operations to the LLVM dialect

Convert ControlFlow dialect to SPIR-V dialect

Convert Complex dialect to libm calls

Convert Complex dialect to LLVM dialect

Convert Complex dialect to SPIRV dialect

Convert Complex dialect to standard dialect

Convert Func dialect to EmitC dialect

Convert from the Func dialect to the LLVM dialect

Convert Func dialect to SPIR-V dialect

Convert gpu.launch_func to vulkanLaunch external call

Generate NVVM operations for gpu operations

Generate ROCDL operations for gpu operations

Convert GPU dialect to SPIR-V dialect

Lower the index dialect to the llvm dialect.

Lower the index dialect to the spirv dialect.

Convert the operations from the linalg dialect into the Standard dialect

Convert Math operations to calls of outlined implementations.

Convert Math dialect to libm calls

Convert Math dialect to LLVM dialect

Convert Math dialect to SPIR-V dialect

Convert MemRef dialect to SPIR-V dialect

Convert NVGPU dialect to NVVM dialect

Convert NVVM to PTX with Inline Assembly in LLVM dialect

Convert the OpenACC ops to OpenACC with SCF dialect

Convert the OpenMP ops to OpenMP ops with LLVM dialect

Convert mapped scf.parallel ops to gpu launch operations

Convert PDL ops to PDL interpreter ops

Convert SCF dialect to ControlFlow dialect, replacing structured control flow with a CFG

Convert SCF dialect to EmitC dialect, maintaining structured control flow

Convert SCF parallel loop to OpenMP parallel + workshare constructs.

Convert SCF dialect to SPIR-V dialect.

Convert shape constraint operations to the standard dialect

Convert operations from the shape dialect into the standard dialect

Convert SPIR-V dialect to LLVM dialect

Convert some Tensor dialect ops to Linalg dialect

Convert Tensor dialect to SPIR-V dialect

Convert to LLVM via dialect interfaces found in the input IR

Convert UB dialect to LLVM dialect

Convert UB dialect to SPIR-V dialect

Lower the operations from the vector dialect into the ArmSME dialect

Lower the operations from the vector dialect into the GPU dialect

Lower the operations from the vector dialect into the LLVM dialect

Lower the operations from the vector dialect into the SCF dialect

Convert Vector dialect to SPIR-V dialect

Finalize MemRef dialect to LLVM dialect conversion

Convert GPU dialect to LLVM dialect with GPU runtime calls

Convert vulkanLaunch external call to Vulkan runtime external calls

Lift ControlFlow dialect to SCF dialect

Lower Affine operations to a combination of Standard and SCF operations

Lowers the host module code and gpu.launch_func to LLVM

Map numeric MemRef memory spaces to SPIR-V storage classes

Simplify and eliminate unrealized conversion casts

Attach a datalayout string as a module attribute

Lower TOSA to the Arith dialect

Lower TOSA to LinAlg on tensors

Lower TOSA to LinAlg named operations

Lower TOSA to the MLProgram dialect

Lower TOSA to the SCF dialect

Lower TOSA to the Tensor dialect

Functions

Link to this function

arm_neon_2d_to_intr()

Convert Arm NEON structured ops to intrinsics

Argument name in MLIR CLI

arm-neon-2d-to-intr

Pass name in TableGen

ConvertArmNeon2dToIntr

Link to this function

arm_neon_2d_to_intr(composer_or_op)

Link to this function

convert_affine_for_to_gpu()

Convert top-level AffineFor Ops to GPU kernels

Argument name in MLIR CLI

convert-affine-for-to-gpu

Pass name in TableGen

ConvertAffineForToGPU

Link to this function

convert_affine_for_to_gpu(composer_or_op)

Link to this function

convert_amdgpu_to_rocdl()

Convert AMDGPU dialect to ROCDL dialect

Argument name in MLIR CLI

convert-amdgpu-to-rocdl

Pass name in TableGen

ConvertAMDGPUToROCDL

Link to this function

convert_amdgpu_to_rocdl(composer_or_op)

Link to this function

convert_arith_to_amdgpu()

Convert Arith operations to AMDGPU-specific implementations

Argument name in MLIR CLI

convert-arith-to-amdgpu

Pass name in TableGen

ArithToAMDGPUConversionPass

Link to this function

convert_arith_to_amdgpu(composer_or_op)

Link to this function

convert_arith_to_arm_sme()

Convert Arith dialect to ArmSME dialect

Argument name in MLIR CLI

convert-arith-to-arm-sme

Pass name in TableGen

ArithToArmSMEConversionPass

Link to this function

convert_arith_to_arm_sme(composer_or_op)

Link to this function

convert_arith_to_llvm()

Convert Arith dialect to LLVM dialect

Argument name in MLIR CLI

convert-arith-to-llvm

Pass name in TableGen

ArithToLLVMConversionPass

Link to this function

convert_arith_to_llvm(composer_or_op)

Link to this function

convert_arith_to_spirv()

Convert Arith dialect to SPIR-V dialect

Argument name in MLIR CLI

convert-arith-to-spirv

Pass name in TableGen

ConvertArithToSPIRV

Link to this function

convert_arith_to_spirv(composer_or_op)

Link to this function

convert_arm_sme_to_llvm()

Lower the operations from the ArmSME dialect into the LLVM dialect

Argument name in MLIR CLI

convert-arm-sme-to-llvm

Pass name in TableGen

ConvertArmSMEToLLVM

Link to this function

convert_arm_sme_to_llvm(composer_or_op)

Link to this function

convert_arm_sme_to_scf()

Lower the operations from the ArmSME dialect into the SCF dialect

Argument name in MLIR CLI

convert-arm-sme-to-scf

Pass name in TableGen

ConvertArmSMEToSCF

Link to this function

convert_arm_sme_to_scf(composer_or_op)

Link to this function

convert_async_to_llvm()

Convert the operations from the async dialect into the LLVM dialect

Argument name in MLIR CLI

convert-async-to-llvm

Pass name in TableGen

ConvertAsyncToLLVMPass

Link to this function

convert_async_to_llvm(composer_or_op)

Link to this function

convert_bufferization_to_memref()

Convert operations from the Bufferization dialect to the MemRef dialect

Argument name in MLIR CLI

convert-bufferization-to-memref

Pass name in TableGen

ConvertBufferizationToMemRef

Link to this function

convert_bufferization_to_memref(composer_or_op)

Link to this function

convert_cf_to_llvm()

Convert ControlFlow operations to the LLVM dialect

Argument name in MLIR CLI

convert-cf-to-llvm

Pass name in TableGen

ConvertControlFlowToLLVMPass

Link to this function

convert_cf_to_llvm(composer_or_op)

Link to this function

convert_cf_to_spirv()

Convert ControlFlow dialect to SPIR-V dialect

Argument name in MLIR CLI

convert-cf-to-spirv

Pass name in TableGen

ConvertControlFlowToSPIRV

Link to this function

convert_cf_to_spirv(composer_or_op)

Link to this function

convert_complex_to_libm()

Convert Complex dialect to libm calls

Argument name in MLIR CLI

convert-complex-to-libm

Pass name in TableGen

ConvertComplexToLibm

Link to this function

convert_complex_to_libm(composer_or_op)

Link to this function

convert_complex_to_llvm()

Convert Complex dialect to LLVM dialect

Argument name in MLIR CLI

convert-complex-to-llvm

Pass name in TableGen

ConvertComplexToLLVMPass

Link to this function

convert_complex_to_llvm(composer_or_op)

Link to this function

convert_complex_to_spirv()

Convert Complex dialect to SPIRV dialect

Argument name in MLIR CLI

convert-complex-to-spirv

Pass name in TableGen

ConvertComplexToSPIRVPass

Link to this function

convert_complex_to_spirv(composer_or_op)

Link to this function

convert_complex_to_standard()

Convert Complex dialect to standard dialect

Argument name in MLIR CLI

convert-complex-to-standard

Pass name in TableGen

ConvertComplexToStandard

Link to this function

convert_complex_to_standard(composer_or_op)

Link to this function

convert_func_to_emitc()

Convert Func dialect to EmitC dialect

Argument name in MLIR CLI

convert-func-to-emitc

Pass name in TableGen

ConvertFuncToEmitC

Link to this function

convert_func_to_emitc(composer_or_op)

Link to this function

convert_func_to_llvm()

Convert from the Func dialect to the LLVM dialect

Argument name in MLIR CLI

convert-func-to-llvm

Pass name in TableGen

ConvertFuncToLLVMPass

Link to this function

convert_func_to_llvm(composer_or_op)

Link to this function

convert_func_to_spirv()

Convert Func dialect to SPIR-V dialect

Argument name in MLIR CLI

convert-func-to-spirv

Pass name in TableGen

ConvertFuncToSPIRV

Link to this function

convert_func_to_spirv(composer_or_op)

Link to this function

convert_gpu_launch_to_vulkan_launch()

Convert gpu.launch_func to vulkanLaunch external call

Argument name in MLIR CLI

convert-gpu-launch-to-vulkan-launch

Pass name in TableGen

ConvertGpuLaunchFuncToVulkanLaunchFunc

Link to this function

convert_gpu_launch_to_vulkan_launch(composer_or_op)

Link to this function

convert_gpu_to_nvvm()

Generate NVVM operations for gpu operations

Argument name in MLIR CLI

convert-gpu-to-nvvm

Pass name in TableGen

ConvertGpuOpsToNVVMOps

Link to this function

convert_gpu_to_nvvm(composer_or_op)

Link to this function

convert_gpu_to_rocdl()

Generate ROCDL operations for gpu operations

Argument name in MLIR CLI

convert-gpu-to-rocdl

Pass name in TableGen

ConvertGpuOpsToROCDLOps

Link to this function

convert_gpu_to_rocdl(composer_or_op)

Link to this function

convert_gpu_to_spirv()

Convert GPU dialect to SPIR-V dialect

Argument name in MLIR CLI

convert-gpu-to-spirv

Pass name in TableGen

ConvertGPUToSPIRV

Link to this function

convert_gpu_to_spirv(composer_or_op)

Link to this function

convert_index_to_llvm()

Lower the index dialect to the llvm dialect.

Argument name in MLIR CLI

convert-index-to-llvm

Pass name in TableGen

ConvertIndexToLLVMPass

Link to this function

convert_index_to_llvm(composer_or_op)

Link to this function

convert_index_to_spirv()

Lower the index dialect to the spirv dialect.

Argument name in MLIR CLI

convert-index-to-spirv

Pass name in TableGen

ConvertIndexToSPIRVPass

Link to this function

convert_index_to_spirv(composer_or_op)

Link to this function

convert_linalg_to_std()

Convert the operations from the linalg dialect into the Standard dialect

Argument name in MLIR CLI

convert-linalg-to-std

Pass name in TableGen

ConvertLinalgToStandard

Link to this function

convert_linalg_to_std(composer_or_op)

Link to this function

convert_math_to_funcs()

Convert Math operations to calls of outlined implementations.

Argument name in MLIR CLI

convert-math-to-funcs

Pass name in TableGen

ConvertMathToFuncs

Link to this function

convert_math_to_funcs(composer_or_op)

Link to this function

convert_math_to_libm()

Convert Math dialect to libm calls

Argument name in MLIR CLI

convert-math-to-libm

Pass name in TableGen

ConvertMathToLibm

Link to this function

convert_math_to_libm(composer_or_op)

Link to this function

convert_math_to_llvm()

Convert Math dialect to LLVM dialect

Argument name in MLIR CLI

convert-math-to-llvm

Pass name in TableGen

ConvertMathToLLVMPass

Link to this function

convert_math_to_llvm(composer_or_op)

Link to this function

convert_math_to_spirv()

Convert Math dialect to SPIR-V dialect

Argument name in MLIR CLI

convert-math-to-spirv

Pass name in TableGen

ConvertMathToSPIRV

Link to this function

convert_math_to_spirv(composer_or_op)

Link to this function

convert_memref_to_spirv()

Convert MemRef dialect to SPIR-V dialect

Argument name in MLIR CLI

convert-memref-to-spirv

Pass name in TableGen

ConvertMemRefToSPIRV

Link to this function

convert_memref_to_spirv(composer_or_op)

Link to this function

convert_nvgpu_to_nvvm()

Convert NVGPU dialect to NVVM dialect

Argument name in MLIR CLI

convert-nvgpu-to-nvvm

Pass name in TableGen

ConvertNVGPUToNVVMPass

Link to this function

convert_nvgpu_to_nvvm(composer_or_op)

Link to this function

convert_nvvm_to_llvm()

Convert NVVM to PTX with Inline Assembly in LLVM dialect

Argument name in MLIR CLI

convert-nvvm-to-llvm

Pass name in TableGen

ConvertNVVMToLLVMPass

Link to this function

convert_nvvm_to_llvm(composer_or_op)

Link to this function

convert_openacc_to_scf()

Convert the OpenACC ops to OpenACC with SCF dialect

Argument name in MLIR CLI

convert-openacc-to-scf

Pass name in TableGen

ConvertOpenACCToSCF

Link to this function

convert_openacc_to_scf(composer_or_op)

Link to this function

convert_openmp_to_llvm()

Convert the OpenMP ops to OpenMP ops with LLVM dialect

Argument name in MLIR CLI

convert-openmp-to-llvm

Pass name in TableGen

ConvertOpenMPToLLVMPass

Link to this function

convert_openmp_to_llvm(composer_or_op)

Link to this function

convert_parallel_loops_to_gpu()

Convert mapped scf.parallel ops to gpu launch operations

Argument name in MLIR CLI

convert-parallel-loops-to-gpu

Pass name in TableGen

ConvertParallelLoopToGpu

Link to this function

convert_parallel_loops_to_gpu(composer_or_op)

Link to this function

convert_pdl_to_pdl_interp()

Convert PDL ops to PDL interpreter ops

Argument name in MLIR CLI

convert-pdl-to-pdl-interp

Pass name in TableGen

ConvertPDLToPDLInterp

Link to this function

convert_pdl_to_pdl_interp(composer_or_op)

Link to this function

convert_scf_to_cf()

Convert SCF dialect to ControlFlow dialect, replacing structured control flow with a CFG

Argument name in MLIR CLI

convert-scf-to-cf

Pass name in TableGen

SCFToControlFlow

Link to this function

convert_scf_to_cf(composer_or_op)

Link to this function

convert_scf_to_emitc()

Convert SCF dialect to EmitC dialect, maintaining structured control flow

Argument name in MLIR CLI

convert-scf-to-emitc

Pass name in TableGen

SCFToEmitC

Link to this function

convert_scf_to_emitc(composer_or_op)

Link to this function

convert_scf_to_openmp()

Convert SCF parallel loop to OpenMP parallel + workshare constructs.

Argument name in MLIR CLI

convert-scf-to-openmp

Pass name in TableGen

ConvertSCFToOpenMPPass

Link to this function

convert_scf_to_openmp(composer_or_op)

Link to this function

convert_scf_to_spirv()

Convert SCF dialect to SPIR-V dialect.

Argument name in MLIR CLI

convert-scf-to-spirv

Pass name in TableGen

SCFToSPIRV

Link to this function

convert_scf_to_spirv(composer_or_op)

Link to this function

convert_shape_constraints()

Convert shape constraint operations to the standard dialect

Argument name in MLIR CLI

convert-shape-constraints

Pass name in TableGen

ConvertShapeConstraints

Link to this function

convert_shape_constraints(composer_or_op)

Link to this function

convert_shape_to_std()

Convert operations from the shape dialect into the standard dialect

Argument name in MLIR CLI

convert-shape-to-std

Pass name in TableGen

ConvertShapeToStandard

Link to this function

convert_shape_to_std(composer_or_op)

Link to this function

convert_spirv_to_llvm()

Convert SPIR-V dialect to LLVM dialect

Argument name in MLIR CLI

convert-spirv-to-llvm

Pass name in TableGen

ConvertSPIRVToLLVMPass

Link to this function

convert_spirv_to_llvm(composer_or_op)

Link to this function

convert_tensor_to_linalg()

Convert some Tensor dialect ops to Linalg dialect

Argument name in MLIR CLI

convert-tensor-to-linalg

Pass name in TableGen

ConvertTensorToLinalg

Link to this function

convert_tensor_to_linalg(composer_or_op)

Link to this function

convert_tensor_to_spirv()

Convert Tensor dialect to SPIR-V dialect

Argument name in MLIR CLI

convert-tensor-to-spirv

Pass name in TableGen

ConvertTensorToSPIRV

Link to this function

convert_tensor_to_spirv(composer_or_op)

Link to this function

convert_to_llvm()

Convert to LLVM via dialect interfaces found in the input IR

Argument name in MLIR CLI

convert-to-llvm

Pass name in TableGen

ConvertToLLVMPass

Link to this function

convert_to_llvm(composer_or_op)

Link to this function

convert_ub_to_llvm()

Convert UB dialect to LLVM dialect

Argument name in MLIR CLI

convert-ub-to-llvm

Pass name in TableGen

UBToLLVMConversionPass

Link to this function

convert_ub_to_llvm(composer_or_op)

Link to this function

convert_ub_to_spirv()

Convert UB dialect to SPIR-V dialect

Argument name in MLIR CLI

convert-ub-to-spirv

Pass name in TableGen

UBToSPIRVConversionPass

Link to this function

convert_ub_to_spirv(composer_or_op)

Link to this function

convert_vector_to_arm_sme()

Lower the operations from the vector dialect into the ArmSME dialect

Argument name in MLIR CLI

convert-vector-to-arm-sme

Pass name in TableGen

ConvertVectorToArmSME

Link to this function

convert_vector_to_arm_sme(composer_or_op)

Link to this function

convert_vector_to_gpu()

Lower the operations from the vector dialect into the GPU dialect

Argument name in MLIR CLI

convert-vector-to-gpu

Pass name in TableGen

ConvertVectorToGPU

Link to this function

convert_vector_to_gpu(composer_or_op)

Link to this function

convert_vector_to_llvm()

Lower the operations from the vector dialect into the LLVM dialect

Argument name in MLIR CLI

convert-vector-to-llvm

Pass name in TableGen

ConvertVectorToLLVMPass

Link to this function

convert_vector_to_llvm(composer_or_op)

Link to this function

convert_vector_to_scf()

Lower the operations from the vector dialect into the SCF dialect

Argument name in MLIR CLI

convert-vector-to-scf

Pass name in TableGen

ConvertVectorToSCF

Link to this function

convert_vector_to_scf(composer_or_op)

Link to this function

convert_vector_to_spirv()

Convert Vector dialect to SPIR-V dialect

Argument name in MLIR CLI

convert-vector-to-spirv

Pass name in TableGen

ConvertVectorToSPIRV

Link to this function

convert_vector_to_spirv(composer_or_op)

Link to this function

finalize_memref_to_llvm()

Finalize MemRef dialect to LLVM dialect conversion

Argument name in MLIR CLI

finalize-memref-to-llvm

Pass name in TableGen

FinalizeMemRefToLLVMConversionPass

Link to this function

finalize_memref_to_llvm(composer_or_op)

Convert GPU dialect to LLVM dialect with GPU runtime calls

Argument name in MLIR CLI

gpu-to-llvm

Pass name in TableGen

GpuToLLVMConversionPass

Link to this function

gpu_to_llvm(composer_or_op)

Link to this function

launch_func_to_vulkan()

Convert vulkanLaunch external call to Vulkan runtime external calls

Argument name in MLIR CLI

launch-func-to-vulkan

Pass name in TableGen

ConvertVulkanLaunchFuncToVulkanCallsPass

Link to this function

launch_func_to_vulkan(composer_or_op)

Link to this function

lift_cf_to_scf()

Lift ControlFlow dialect to SCF dialect

Argument name in MLIR CLI

lift-cf-to-scf

Pass name in TableGen

LiftControlFlowToSCFPass

Link to this function

lift_cf_to_scf(composer_or_op)

Lower Affine operations to a combination of Standard and SCF operations

Argument name in MLIR CLI

lower-affine

Pass name in TableGen

ConvertAffineToStandard

Link to this function

lower_affine(composer_or_op)

Link to this function

lower_host_to_llvm()

Lowers the host module code and gpu.launch_func to LLVM

Argument name in MLIR CLI

lower-host-to-llvm

Pass name in TableGen

LowerHostCodeToLLVMPass

Link to this function

lower_host_to_llvm(composer_or_op)

Link to this function

map_memref_spirv_storage_class()

Map numeric MemRef memory spaces to SPIR-V storage classes

Argument name in MLIR CLI

map-memref-spirv-storage-class

Pass name in TableGen

MapMemRefStorageClass

Link to this function

map_memref_spirv_storage_class(composer_or_op)

Link to this function

reconcile_unrealized_casts()

Simplify and eliminate unrealized conversion casts

Argument name in MLIR CLI

reconcile-unrealized-casts

Pass name in TableGen

ReconcileUnrealizedCasts

Link to this function

reconcile_unrealized_casts(composer_or_op)

Link to this function

set_llvm_module_datalayout()

Attach a datalayout string as a module attribute

Argument name in MLIR CLI

set-llvm-module-datalayout

Pass name in TableGen

SetLLVMModuleDataLayoutPass

Link to this function

set_llvm_module_datalayout(composer_or_op)

Link to this function

tosa_to_arith()

Lower TOSA to the Arith dialect

Argument name in MLIR CLI

tosa-to-arith

Pass name in TableGen

TosaToArith

Link to this function

tosa_to_arith(composer_or_op)

Link to this function

tosa_to_linalg()

Lower TOSA to LinAlg on tensors

Argument name in MLIR CLI

tosa-to-linalg

Pass name in TableGen

TosaToLinalg

Link to this function

tosa_to_linalg(composer_or_op)

Link to this function

tosa_to_linalg_named()

Lower TOSA to LinAlg named operations

Argument name in MLIR CLI

tosa-to-linalg-named

Pass name in TableGen

TosaToLinalgNamed

Link to this function

tosa_to_linalg_named(composer_or_op)

Link to this function

tosa_to_mlprogram()

Lower TOSA to the MLProgram dialect

Argument name in MLIR CLI

tosa-to-mlprogram

Pass name in TableGen

TosaToMLProgram

Link to this function

tosa_to_mlprogram(composer_or_op)

Lower TOSA to the SCF dialect

Argument name in MLIR CLI

tosa-to-scf

Pass name in TableGen

TosaToSCF

Link to this function

tosa_to_scf(composer_or_op)

Link to this function

tosa_to_tensor()

Lower TOSA to the Tensor dialect

Argument name in MLIR CLI

tosa-to-tensor

Pass name in TableGen

TosaToTensor

Link to this function

tosa_to_tensor(composer_or_op)