@@ -31,3 +31,135 @@ def define_common_targets():
3131 "@EXECUTORCH_CLIENTS" ,
3232 ],
3333 )
34+
35+ runtime .cxx_library (
36+ name = "op_add" ,
37+ srcs = glob ([
38+ "op_add.cpp" ,
39+ ]),
40+ platforms = CXX ,
41+ deps = [
42+ "//executorch/kernels/portable/cpu/util:all_deps" ,
43+ "//executorch/kernels/portable/cpu/pattern:all_deps" ,
44+ "//executorch/runtime/kernel:kernel_includes" ,
45+ "//executorch/kernels/portable/cpu:scalar_utils" ,
46+ "fbsource//third-party/nnlib-hifi4/xa_nnlib:libxa_nnlib" ,
47+ "//executorch/backends/cadence/hifi/kernels:kernels" ,
48+ "//executorch/backends/cadence/hifi/third-party/nnlib:nnlib-extensions"
49+ ],
50+ visibility = [
51+ "//executorch/backends/cadence/..." ,
52+ "@EXECUTORCH_CLIENTS" ,
53+ ],
54+ )
55+
56+
57+ runtime .cxx_library (
58+ name = "op_mul" ,
59+ srcs = glob ([
60+ "op_mul.cpp" ,
61+ ]),
62+ platforms = CXX ,
63+ deps = [
64+ "//executorch/kernels/portable/cpu/util:all_deps" ,
65+ "//executorch/kernels/portable/cpu/pattern:all_deps" ,
66+ "//executorch/runtime/kernel:kernel_includes" ,
67+ "//executorch/kernels/portable/cpu:scalar_utils" ,
68+ "fbsource//third-party/nnlib-hifi4/xa_nnlib:libxa_nnlib" ,
69+ "fbsource//third-party/nnlib-hifi4/xa_nnlib:libxa_nnlib_common" ,
70+ "//executorch/backends/cadence/hifi/kernels:kernels" ,
71+ "//executorch/backends/cadence/hifi/third-party/nnlib:nnlib-extensions"
72+ ],
73+ visibility = [
74+ "//executorch/backends/cadence/..." ,
75+ "@EXECUTORCH_CLIENTS" ,
76+ ],
77+ )
78+
79+ runtime .cxx_library (
80+ name = "op_sub" ,
81+ srcs = glob ([
82+ "op_sub.cpp" ,
83+ ]),
84+ platforms = CXX ,
85+ deps = [
86+ "//executorch/kernels/portable/cpu/util:all_deps" ,
87+ "//executorch/kernels/portable/cpu/pattern:all_deps" ,
88+ "//executorch/runtime/kernel:kernel_includes" ,
89+ "//executorch/kernels/portable/cpu:scalar_utils" ,
90+ "fbsource//third-party/nnlib-hifi4/xa_nnlib:libxa_nnlib" ,
91+ "fbsource//third-party/nnlib-hifi4/xa_nnlib:libxa_nnlib_common" ,
92+ "//executorch/backends/cadence/hifi/kernels:kernels" ,
93+ "//executorch/backends/cadence/hifi/third-party/nnlib:nnlib-extensions"
94+ ],
95+ visibility = [
96+ "//executorch/backends/cadence/..." ,
97+ "@EXECUTORCH_CLIENTS" ,
98+ ],
99+ )
100+
101+ runtime .cxx_library (
102+ name = "op_div" ,
103+ srcs = glob ([
104+ "op_div.cpp" ,
105+ ]),
106+ platforms = CXX ,
107+ deps = [
108+ "//executorch/kernels/portable/cpu/util:all_deps" ,
109+ "//executorch/kernels/portable/cpu/pattern:all_deps" ,
110+ "//executorch/runtime/kernel:kernel_includes" ,
111+ "//executorch/kernels/portable/cpu:scalar_utils" ,
112+ "fbsource//third-party/nnlib-hifi4/xa_nnlib:libxa_nnlib" ,
113+ "fbsource//third-party/nnlib-hifi4/xa_nnlib:libxa_nnlib_common" ,
114+ "//executorch/backends/cadence/hifi/kernels:kernels" ,
115+ "//executorch/backends/cadence/hifi/third-party/nnlib:nnlib-extensions"
116+ ],
117+ visibility = [
118+ "//executorch/backends/cadence/..." ,
119+ "@EXECUTORCH_CLIENTS" ,
120+ ],
121+ )
122+
123+ runtime .cxx_library (
124+ name = "op_sigmoid" ,
125+ srcs = glob ([
126+ "op_sigmoid.cpp" ,
127+ ]),
128+ platforms = CXX ,
129+ deps = [
130+ "//executorch/kernels/portable/cpu/util:all_deps" ,
131+ "//executorch/kernels/portable/cpu/pattern:all_deps" ,
132+ "//executorch/runtime/kernel:kernel_includes" ,
133+ "//executorch/kernels/portable/cpu:scalar_utils" ,
134+ "fbsource//third-party/nnlib-hifi4/xa_nnlib:libxa_nnlib" ,
135+ "fbsource//third-party/nnlib-hifi4/xa_nnlib:libxa_nnlib_common" ,
136+ "//executorch/backends/cadence/hifi/kernels:kernels" ,
137+ "//executorch/backends/cadence/hifi/third-party/nnlib:nnlib-extensions"
138+ ],
139+ visibility = [
140+ "//executorch/backends/cadence/..." ,
141+ "@EXECUTORCH_CLIENTS" ,
142+ ],
143+ )
144+
145+ runtime .cxx_library (
146+ name = "op_tanh" ,
147+ srcs = glob ([
148+ "op_tanh.cpp" ,
149+ ]),
150+ platforms = CXX ,
151+ deps = [
152+ "//executorch/kernels/portable/cpu/util:all_deps" ,
153+ "//executorch/kernels/portable/cpu/pattern:all_deps" ,
154+ "//executorch/runtime/kernel:kernel_includes" ,
155+ "//executorch/kernels/portable/cpu:scalar_utils" ,
156+ "fbsource//third-party/nnlib-hifi4/xa_nnlib:libxa_nnlib" ,
157+ "fbsource//third-party/nnlib-hifi4/xa_nnlib:libxa_nnlib_common" ,
158+ "//executorch/backends/cadence/hifi/kernels:kernels" ,
159+ "//executorch/backends/cadence/hifi/third-party/nnlib:nnlib-extensions"
160+ ],
161+ visibility = [
162+ "//executorch/backends/cadence/..." ,
163+ "@EXECUTORCH_CLIENTS" ,
164+ ],
165+ )
0 commit comments