@@ -31,3 +31,124 @@ 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
+ "//executorch/backends/cadence/hifi/kernels:kernels" ,
47
+ "//executorch/backends/cadence/hifi/third-party/nnlib:nnlib-extensions"
48
+ ],
49
+ visibility = [
50
+ "//executorch/backends/cadence/..." ,
51
+ "@EXECUTORCH_CLIENTS" ,
52
+ ],
53
+ )
54
+
55
+
56
+ runtime .cxx_library (
57
+ name = "op_mul" ,
58
+ srcs = glob ([
59
+ "op_mul.cpp" ,
60
+ ]),
61
+ platforms = CXX ,
62
+ deps = [
63
+ "//executorch/kernels/portable/cpu/util:all_deps" ,
64
+ "//executorch/kernels/portable/cpu/pattern:all_deps" ,
65
+ "//executorch/runtime/kernel:kernel_includes" ,
66
+ "//executorch/kernels/portable/cpu:scalar_utils" ,
67
+ "//executorch/backends/cadence/hifi/kernels:kernels" ,
68
+ "//executorch/backends/cadence/hifi/third-party/nnlib:nnlib-extensions"
69
+ ],
70
+ visibility = [
71
+ "//executorch/backends/cadence/..." ,
72
+ "@EXECUTORCH_CLIENTS" ,
73
+ ],
74
+ )
75
+
76
+ runtime .cxx_library (
77
+ name = "op_sub" ,
78
+ srcs = glob ([
79
+ "op_sub.cpp" ,
80
+ ]),
81
+ platforms = CXX ,
82
+ deps = [
83
+ "//executorch/kernels/portable/cpu/util:all_deps" ,
84
+ "//executorch/kernels/portable/cpu/pattern:all_deps" ,
85
+ "//executorch/runtime/kernel:kernel_includes" ,
86
+ "//executorch/kernels/portable/cpu:scalar_utils" ,
87
+ "//executorch/backends/cadence/hifi/kernels:kernels" ,
88
+ "//executorch/backends/cadence/hifi/third-party/nnlib:nnlib-extensions"
89
+ ],
90
+ visibility = [
91
+ "//executorch/backends/cadence/..." ,
92
+ "@EXECUTORCH_CLIENTS" ,
93
+ ],
94
+ )
95
+
96
+ runtime .cxx_library (
97
+ name = "op_div" ,
98
+ srcs = glob ([
99
+ "op_div.cpp" ,
100
+ ]),
101
+ platforms = CXX ,
102
+ deps = [
103
+ "//executorch/kernels/portable/cpu/util:all_deps" ,
104
+ "//executorch/kernels/portable/cpu/pattern:all_deps" ,
105
+ "//executorch/runtime/kernel:kernel_includes" ,
106
+ "//executorch/kernels/portable/cpu:scalar_utils" ,
107
+ "//executorch/backends/cadence/hifi/kernels:kernels" ,
108
+ "//executorch/backends/cadence/hifi/third-party/nnlib:nnlib-extensions"
109
+ ],
110
+ visibility = [
111
+ "//executorch/backends/cadence/..." ,
112
+ "@EXECUTORCH_CLIENTS" ,
113
+ ],
114
+ )
115
+
116
+ runtime .cxx_library (
117
+ name = "op_sigmoid" ,
118
+ srcs = glob ([
119
+ "op_sigmoid.cpp" ,
120
+ ]),
121
+ platforms = CXX ,
122
+ deps = [
123
+ "//executorch/kernels/portable/cpu/util:all_deps" ,
124
+ "//executorch/kernels/portable/cpu/pattern:all_deps" ,
125
+ "//executorch/runtime/kernel:kernel_includes" ,
126
+ "//executorch/kernels/portable/cpu:scalar_utils" ,
127
+ "//executorch/backends/cadence/hifi/kernels:kernels" ,
128
+ "//executorch/backends/cadence/hifi/third-party/nnlib:nnlib-extensions"
129
+ ],
130
+ visibility = [
131
+ "//executorch/backends/cadence/..." ,
132
+ "@EXECUTORCH_CLIENTS" ,
133
+ ],
134
+ )
135
+
136
+ runtime .cxx_library (
137
+ name = "op_tanh" ,
138
+ srcs = glob ([
139
+ "op_tanh.cpp" ,
140
+ ]),
141
+ platforms = CXX ,
142
+ deps = [
143
+ "//executorch/kernels/portable/cpu/util:all_deps" ,
144
+ "//executorch/kernels/portable/cpu/pattern:all_deps" ,
145
+ "//executorch/runtime/kernel:kernel_includes" ,
146
+ "//executorch/kernels/portable/cpu:scalar_utils" ,
147
+ "//executorch/backends/cadence/hifi/kernels:kernels" ,
148
+ "//executorch/backends/cadence/hifi/third-party/nnlib:nnlib-extensions"
149
+ ],
150
+ visibility = [
151
+ "//executorch/backends/cadence/..." ,
152
+ "@EXECUTORCH_CLIENTS" ,
153
+ ],
154
+ )
0 commit comments