Class AccessStepObj#

Inheritance Relationships#

Base Type#

Class Documentation#

class AccessStepObj : public tvm::ffi::Object#

Represent a single step in object field, map key, array index access.

Public Functions

AccessStepObj() = default#
inline AccessStepObj(AccessKind kind, Any key)#

Constructor.

Parameters:
  • kind – The kind of the access step.

  • key – The key of the access step.

inline bool StepEqual(const AccessStep &other) const#

Deep check if two steps are equal.

Parameters:

other – The other step to compare with.

Returns:

True if the two steps are equal, false otherwise.

Public Members

AccessKind kind#

The kind of the access pattern.

Any key#

The access key.

Note

for array access, it will always be integer for field access, it will be string