@@ -31,3 +31,131 @@ def define_common_targets():
31
31
"@EXECUTORCH_CLIENTS" ,
32
32
],
33
33
)
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
+ "fbsource//third-party/nnlib-hifi4/xa_nnlib:libxa_nnlib_common" ,
48
+ "//executorch/backends/cadence/hifi/kernels:kernels" ,
49
+ "//executorch/backends/cadence/hifi/third-party/nnlib:nnlib-custom"
50
+ ],
51
+ visibility = [
52
+ "//executorch/backends/cadence/..." ,
53
+ "@EXECUTORCH_CLIENTS" ,
54
+ ],
55
+ )
56
+
57
+
58
+ runtime .cxx_library (
59
+ name = "op_mul" ,
60
+ srcs = glob ([
61
+ "op_mul.cpp" ,
62
+ ]),
63
+ platforms = CXX ,
64
+ deps = [
65
+ "//executorch/kernels/portable/cpu/util:all_deps" ,
66
+ "//executorch/kernels/portable/cpu/pattern:all_deps" ,
67
+ "//executorch/runtime/kernel:kernel_includes" ,
68
+ "//executorch/kernels/portable/cpu:scalar_utils" ,
69
+ "fbsource//third-party/nnlib-hifi4/xa_nnlib:libxa_nnlib" ,
70
+ "fbsource//third-party/nnlib-hifi4/xa_nnlib:libxa_nnlib_common" ,
71
+ "//executorch/backends/cadence/hifi/kernels:kernels" ,
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
+ ],
94
+ visibility = [
95
+ "//executorch/backends/cadence/..." ,
96
+ "@EXECUTORCH_CLIENTS" ,
97
+ ],
98
+ )
99
+
100
+ runtime .cxx_library (
101
+ name = "op_div" ,
102
+ srcs = glob ([
103
+ "op_div.cpp" ,
104
+ ]),
105
+ platforms = CXX ,
106
+ deps = [
107
+ "//executorch/kernels/portable/cpu/util:all_deps" ,
108
+ "//executorch/kernels/portable/cpu/pattern:all_deps" ,
109
+ "//executorch/runtime/kernel:kernel_includes" ,
110
+ "//executorch/kernels/portable/cpu:scalar_utils" ,
111
+ "fbsource//third-party/nnlib-hifi4/xa_nnlib:libxa_nnlib" ,
112
+ "fbsource//third-party/nnlib-hifi4/xa_nnlib:libxa_nnlib_common" ,
113
+ "//executorch/backends/cadence/hifi/kernels:kernels" ,
114
+ ],
115
+ visibility = [
116
+ "//executorch/backends/cadence/..." ,
117
+ "@EXECUTORCH_CLIENTS" ,
118
+ ],
119
+ )
120
+
121
+ runtime .cxx_library (
122
+ name = "op_sigmoid" ,
123
+ srcs = glob ([
124
+ "op_sigmoid.cpp" ,
125
+ ]),
126
+ platforms = CXX ,
127
+ deps = [
128
+ "//executorch/kernels/portable/cpu/util:all_deps" ,
129
+ "//executorch/kernels/portable/cpu/pattern:all_deps" ,
130
+ "//executorch/runtime/kernel:kernel_includes" ,
131
+ "//executorch/kernels/portable/cpu:scalar_utils" ,
132
+ "fbsource//third-party/nnlib-hifi4/xa_nnlib:libxa_nnlib" ,
133
+ "fbsource//third-party/nnlib-hifi4/xa_nnlib:libxa_nnlib_common" ,
134
+ "//executorch/backends/cadence/hifi/kernels:kernels" ,
135
+ ],
136
+ visibility = [
137
+ "//executorch/backends/cadence/..." ,
138
+ "@EXECUTORCH_CLIENTS" ,
139
+ ],
140
+ )
141
+
142
+ runtime .cxx_library (
143
+ name = "op_tanh" ,
144
+ srcs = glob ([
145
+ "op_tanh.cpp" ,
146
+ ]),
147
+ platforms = CXX ,
148
+ deps = [
149
+ "//executorch/kernels/portable/cpu/util:all_deps" ,
150
+ "//executorch/kernels/portable/cpu/pattern:all_deps" ,
151
+ "//executorch/runtime/kernel:kernel_includes" ,
152
+ "//executorch/kernels/portable/cpu:scalar_utils" ,
153
+ "fbsource//third-party/nnlib-hifi4/xa_nnlib:libxa_nnlib" ,
154
+ "fbsource//third-party/nnlib-hifi4/xa_nnlib:libxa_nnlib_common" ,
155
+ "//executorch/backends/cadence/hifi/kernels:kernels" ,
156
+ ],
157
+ visibility = [
158
+ "//executorch/backends/cadence/..." ,
159
+ "@EXECUTORCH_CLIENTS" ,
160
+ ],
161
+ )
0 commit comments