[all-commits] [llvm/llvm-project] 657eda: [MLIR][EmitC] Don't translate expressions inline i...
Chris via All-commits
all-commits at lists.llvm.org
Mon May 6 10:53:29 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 657eda36728824b14c3c08d261c93daf2d4664bf
https://github.com/llvm/llvm-project/commit/657eda36728824b14c3c08d261c93daf2d4664bf
Author: Chris <cbate at nvidia.com>
Date: 2024-05-06 (Mon, 06 May 2024)
Changed paths:
M mlir/lib/Target/Cpp/TranslateToCpp.cpp
M mlir/test/Target/Cpp/expressions.mlir
Log Message:
-----------
[MLIR][EmitC] Don't translate expressions inline if user is `emitc.subscript` (#91087)
This change updates the logic that determines whether an `emitc.expression`
result is translated into a dedicated variable assignment. Due to how
the translation of `emitc.subscript` currently works, a previously
inline-able `emitc.expression` would produce incorrect C++ if its single user
was a `emitc.subscript` operation.
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