@@ -48,112 +48,6 @@ def _transform(func, mod, ctx):
4848 return _fpass .prim_func_pass (_transform , opt_level = 0 , name = "Apply" ) # type: ignore
4949
5050
51- def InjectPrefetch ():
52- """Inject prefetch instructions into stmt.
53-
54- Returns
55- -------
56- fpass : tvm.transform.Pass
57- The result pass
58- """
59- return _ffi_api .InjectPrefetch () # type: ignore
60-
61-
62- def ApplyLayoutTransforms ():
63- """Reshape buffers that appear in the "layout_transform_map"
64- fucntion attribute.
65-
66- Returns
67- -------
68- fpass : tvm.transform.Pass
69- The result pass
70-
71- """
72- return _ffi_api .ApplyLayoutTransforms () # type: ignore
73-
74-
75- def StorageFlatten (cache_line_size , create_bound_attribute : bool = False ):
76- """Flatten the multi-dimensional read/write to 1D.
77-
78-
79- Parameters
80- ----------
81- cache_line_size: int
82- The size of CPU cache line.
83-
84- create_bound_attribute:
85- Whether to create bound attributes.
86-
87-
88- Returns
89- -------
90- fpass : tvm.transform.Pass
91- The result pass
92- """
93- return _ffi_api .StorageFlatten (cache_line_size , create_bound_attribute ) # type: ignore
94-
95-
96- def TextureFlatten ():
97- """Flatten the multi-dimensional read/write to 2D.
98-
99-
100- Parameters
101- ----------
102-
103- Returns
104- -------
105- fpass : tvm.transform.Pass
106- The result pass
107- """
108- return _ffi_api .TextureFlatten () # type: ignore
109-
110-
111- def InjectCopyIntrin (pragma_key : str , fintrin ):
112- """Inject virtual thread loops.
113-
114- Parameters
115- ----------
116- pragma_key : str
117- The pragma key for hint of copy.
118-
119- fintrin : function
120- The function with signature copyintrin(src, dst, pad_before, pad_after, pad_value)
121-
122- Returns
123- -------
124- fpass : tvm.transform.Pass
125- The result pass
126- """
127- return _ffi_api .InjectCopyIntrin (pragma_key , fintrin ) # type: ignore
128-
129-
130- def CoProcSync ():
131- """Detect and insert sync points to co-processor.
132-
133- Returns
134- -------
135- fpass : tvm.transform.Pass
136- The result pass
137- """
138- return _ffi_api .CoProcSync () # type: ignore
139-
140-
141- def LiftAttrScope (attr_key : str ):
142- """Lift common attrs with attr_key to outer scope.
143-
144- Parameters
145- ----------
146- attr_key : str
147- The attribute key to be checked.
148-
149- Returns
150- -------
151- fpass : tvm.transform.Pass
152- The result pass
153- """
154- return _ffi_api .LiftAttrScope (attr_key ) # type: ignore
155-
156-
15751def LoopPartition ():
15852 """Inject virtual thread loops.
15953
@@ -682,7 +576,7 @@ def NarrowDataType(target_bits: int):
682576
683577 Note
684578 ----
685- Run this pass after StorageFlatten .
579+ Run this pass after FlattenBuffer .
686580 """
687581 return _ffi_api .NarrowDataType (target_bits ) # type: ignore
688582
0 commit comments