[Mlir-commits] [mlir] [mlir][EmitC] Add member access ops (PR #98460)
Gil Rapaport
llvmlistbot at llvm.org
Fri Jul 12 03:51:23 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);
+
----------------
aniragil wrote:
Name is a bit opaque, I'd rename to `createMemberAccess`
https://github.com/llvm/llvm-project/pull/98460
More information about the Mlir-commits
mailing list