tvm_tirx.tirx.get_active_lane_mask

tvm_tirx.tirx.get_active_lane_mask#

tvm_tirx.tirx.get_active_lane_mask(base, limit, *, ty, loc=UNKNOWN_LOC)#

Calculate a predicate mask given an upper bound (limit) and a current value (base).

It will be lowered to the llvm.get.active.lane.mask intrinsic. (https://llvm.org/docs/LangRef.html#llvm-get-active-lane-mask-intrinsics)

Parameters:
  • ty (str) – The data type of the result.

  • base (Expr) – An expression reprsenting the base.

  • limit (Expr) – An expression representing the limit.

  • loc (Location)