[Mlir-commits] [mlir] [mlir][EmitC] Add member access ops (PR #98460)
Marius Brehler
llvmlistbot at llvm.org
Sat Jul 13 02:59:37 PDT 2024
================
@@ -183,6 +183,12 @@ struct CppEmitter {
// Returns the textual representation of a subscript operation.
std::string getSubscriptName(emitc::SubscriptOp op);
+ // Returns the textual representation of a member (of object) operation.
+ std::string getOperandAndMemberName(emitc::MemberOp op);
+
+ // Returns the textual representation of a member of pointer operation.
+ std::string getOperandAndMemberName(emitc::MemberOfPtrOp op);
+
----------------
marbre wrote:
The name is inspired by `getSubscriptName`, but I wasn't really satisfied either with `getOperandAndMemberName`. I renamed to `createMemberAccess` as suggested.
https://github.com/llvm/llvm-project/pull/98460
More information about the Mlir-commits
mailing list