For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo struct
OpRole
struct OpRole
Role of an operation in the pipeline data flow.
Classifies ops for automatic phase derivation (prologue, epilogue, etc.). Set at OpDesc construction time by factory methods.
Implemented traitsβ
AnyType,
Copyable,
Equatable,
ImplicitlyCopyable,
ImplicitlyDestructible,
Movable
comptime membersβ
COMPUTEβ
comptime COMPUTE = OpRole(3)
FENCEβ
comptime FENCE = OpRole(5)
FRAGMENT_LOADβ
comptime FRAGMENT_LOAD = OpRole(2)
GLOBAL_LOADβ
comptime GLOBAL_LOAD = OpRole(0)
NONEβ
comptime NONE = OpRole(255)
SHARED_STOREβ
comptime SHARED_STORE = OpRole(1)
SYNCβ
comptime SYNC = OpRole(4)
VALU_COMPUTEβ
comptime VALU_COMPUTE = OpRole(6)
Vector ALU compute (softmax, exp2, reductions).
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!