[all-commits] [llvm/llvm-project] 97f0ab: [mlir][emitc] Add 'emitc.switch' op to the dialect...
Andrey Timonin via All-commits
all-commits at lists.llvm.org
Fri Aug 16 09:25:28 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 97f0ab71c002e8a14142be3a117b3091ab75c552
https://github.com/llvm/llvm-project/commit/97f0ab71c002e8a14142be3a117b3091ab75c552
Author: Andrey Timonin <timonina1909 at gmail.com>
Date: 2024-08-16 (Fri, 16 Aug 2024)
Changed paths:
M mlir/include/mlir/Dialect/EmitC/IR/EmitC.td
M mlir/lib/Conversion/SCFToEmitC/SCFToEmitC.cpp
M mlir/lib/Dialect/EmitC/IR/EmitC.cpp
M mlir/lib/Target/Cpp/TranslateToCpp.cpp
A mlir/test/Conversion/SCFToEmitC/switch.mlir
M mlir/test/Dialect/EmitC/invalid_ops.mlir
M mlir/test/Dialect/EmitC/ops.mlir
M mlir/test/Target/Cpp/invalid.mlir
A mlir/test/Target/Cpp/switch.mlir
Log Message:
-----------
[mlir][emitc] Add 'emitc.switch' op to the dialect (#102331)
This PR is continuation of the [previous
one](https://github.com/llvm/llvm-project/pull/101478). As a result, the
`emitc::SwitchOp` op was developed inspired by `scf::IndexSwitchOp`.
Main points of PR:
- Added the `emitc::SwitchOp` op to the EmitC dialect + CppEmitter
- Corresponding tests were added
- Conversion from the SCF dialect to the EmitC dialect for the op
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list