[mlir][spirv] Replace StructAttrs with AttrDefsDepends on D127370Reviewed By: antiagainstDifferential Revision: https://reviews.llvm.org/D127373
[mlir] Fix the names of exported functionsThe names of the functions that are supposed to be exported do not match the implementations. This is due in part to https://github.com/llvm/llvm-project/c
[mlir] Fix the names of exported functionsThe names of the functions that are supposed to be exported do not match the implementations. This is due in part to https://github.com/llvm/llvm-project/commit/cac7aabbd8236bef2909bfc0dbba17644f7aaade.This change makes the implementations and declarations match and adds a couple missing declarations.The new names follow the pattern of the existing `verify` functions where the prefix is maintained as `_mlir_ciface_` but the suffix follows the new naming convention.Reviewed By: rriddleDifferential Revision: https://reviews.llvm.org/D124891
show more ...
[mlir][NFC] Update textual references of `func` to `func.func` in tool/runner testsThe special case parsing of `func` operations is being removed.
Fix clang-tidy issues in mlir/ (NFC)Reviewed By: ftynseDifferential Revision: https://reviews.llvm.org/D115956
[MLIR] Replace std ops with arith dialect opsPrecursor: https://reviews.llvm.org/D110200Removed redundant ops from the standard dialect that were moved to the`arith` or `math` dialects.Renamed
[MLIR] Replace std ops with arith dialect opsPrecursor: https://reviews.llvm.org/D110200Removed redundant ops from the standard dialect that were moved to the`arith` or `math` dialects.Renamed all instances of operations in the codebase and in tests.Reviewed By: rriddle, jpienaarDifferential Revision: https://reviews.llvm.org/D110797
[mlir] fix SPIR-V CPU and Vulkan runners after e2310704d890ad252aeb1ca28b4b84d29514b1d1The commit in question changed the syntax but did not update the runnertests. This also required registering
[mlir] fix SPIR-V CPU and Vulkan runners after e2310704d890ad252aeb1ca28b4b84d29514b1d1The commit in question changed the syntax but did not update the runnertests. This also required registering the MemRef dialect for customparser to work correctly.
[MLIR] Extend Symbol verification to reject public symbol declarations.- Extend the Symbol interface with `isDeclaration` to identify operations that declare a symbol as opposed to define it.- E
[MLIR] Extend Symbol verification to reject public symbol declarations.- Extend the Symbol interface with `isDeclaration` to identify operations that declare a symbol as opposed to define it.- Extend verification to disallow public declarations as per the discussion in https://llvm.discourse.group/t/rfc-symbol-definition-declaration-x-visibility-checks/2140- Adopt the new interface for `FuncOp` and fix test and code to not have/create public function declarations.Differential Revision: https://reviews.llvm.org/D91456
[mlir][gpu] NFC: Change gpu.launch_func ops to custom format.This should fix the reason for the failures after ec7780ebdab480139596c3cb08ee77d7035457b3. I will roll forward in a separate change.R
[mlir][gpu] NFC: Change gpu.launch_func ops to custom format.This should fix the reason for the failures after ec7780ebdab480139596c3cb08ee77d7035457b3. I will roll forward in a separate change.Reviewed By: antiagainstDifferential Revision: https://reviews.llvm.org/D90410
[MLIR][mlir-spirv-cpu-runner] A SPIR-V cpu runner prototypeThis patch introduces a SPIR-V runner. The aim is to run a gpukernel on a CPU via GPU -> SPIRV -> LLVM conversions. This is a firstproto
[MLIR][mlir-spirv-cpu-runner] A SPIR-V cpu runner prototypeThis patch introduces a SPIR-V runner. The aim is to run a gpukernel on a CPU via GPU -> SPIRV -> LLVM conversions. This is a firstprototype, so more features will be added in due time.- OverviewThe runner follows similar flow as the other runners in-tree. However,having converted the kernel to SPIR-V, we encode the bind attributes ofglobal variables that represent kernel arguments. Then SPIR-V module isconverted to LLVM. On the host side, we emulate passing the data to deviceby creating in main module globals with the same symbolic name as in kernelmodule. These global variables are later linked with ones from the nestedmodule. We copy data from kernel arguments to globals, call the kernelfunction from nested module and then copy the data back.- Current stateAt the moment, the runner is capable of running 2 modules, nested one inanother. The kernel module must contain exactly one kernel function. Also,the runner supports rank 1 integer memref types as arguments (to be scaled).- Enhancement of JitRunner and ExecutionEngineTo translate nested modules to LLVM IR, JitRunner and ExecutionEngine werealtered to take an optional (default to `nullptr`) function reference thatis a custom LLVM IR module builder. This allows to customize LLVM IR modulecreation from MLIR modules.Reviewed By: ftynse, mravishankarDifferential Revision: https://reviews.llvm.org/D86108