[Mlir-commits] [mlir] [mlir][emitc] Add increment and decrement ops (PR #208648)
Jianjian Guan
llvmlistbot at llvm.org
Mon Jul 27 19:20:25 PDT 2026
================
@@ -148,6 +148,15 @@ func.func @unary(%arg0: i32) {
return
}
+func.func @inc_dec(%arg0: !emitc.ptr<i32>) {
+ %v = "emitc.variable"() <{value = 0 : i32}> : () -> !emitc.lvalue<i32>
+ %0 = emitc.pre_increment %v : !emitc.lvalue<i32>
+ %1 = emitc.post_increment %v : !emitc.lvalue<i32>
+ %2 = emitc.pre_decrement %v : !emitc.lvalue<i32>
+ %3 = emitc.post_decrement %v : !emitc.lvalue<i32>
----------------
jacquesguan wrote:
Change in https://github.com/llvm/llvm-project/pull/212391.
https://github.com/llvm/llvm-project/pull/208648
More information about the Mlir-commits
mailing list